Add detection of addition include path needed for Ubuntu 11.10
[AROS.git] / configure
blob66916dacf0754dd2589ab2feed82e4f009e625e3
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_crosstools
857 with_aros_gcc
858 with_portssources
859 with_bootloader
860 with_iconset
861 with_theme
862 enable_includes
863 with_resolution
864 with_serial_debug
865 enable_palm_debug_hack
866 enable_usb30_code
867 enable_nesting_supervisor
868 enable_mmu
869 enable_x11_hidd
870 with_x
871 enable_x11_shm
872 enable_x11_vidmode
873 enable_sdl_hidd
874 with_sdl_prefix
875 with_sdl_exec_prefix
876 enable_sdltest
877 enable_dbus
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
888 XMKMF'
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
939 ac_prev=
940 ac_dashdash=
941 for ac_option
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
950 case $ac_option in
951 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *=) ac_optarg= ;;
953 *) ac_optarg=yes ;;
954 esac
956 # Accept the important Cygnus configure options, so we can diagnose typos.
958 case $ac_dashdash$ac_option in
960 ac_dashdash=yes ;;
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
979 --config-cache | -C)
980 cache_file=config.cache ;;
982 -datadir | --datadir | --datadi | --datad)
983 ac_prev=datadir ;;
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
994 -disable-* | --disable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 esac
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296 esac
1297 done
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1345 If a cross compiler is detected then cross compile mode will be used" >&2
1346 elif test "x$build_alias" != "x$host_alias"; then
1347 cross_compiling=yes
1351 ac_tool_prefix=
1352 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354 test "$silent" = yes && exec 6>/dev/null
1357 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358 ac_ls_di=`ls -di .` &&
1359 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1360 as_fn_error $? "working directory cannot be determined"
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 as_fn_error $? "pwd does not report name of working directory"
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$as_myself" ||
1370 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$as_myself" : 'X\(//\)[^/]' \| \
1372 X"$as_myself" : 'X\(//\)$' \| \
1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374 $as_echo X"$as_myself" |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1383 /^X\(\/\/\)$/{
1384 s//\1/
1387 /^X\(\/\).*/{
1388 s//\1/
1391 s/.*/./; q'`
1392 srcdir=$ac_confdir
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 srcdir=..
1396 else
1397 ac_srcdir_defaulted=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404 ac_abs_confdir=`(
1405 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1406 pwd)`
1407 # When building in place, set srcdir=.
1408 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 srcdir=.
1411 # Remove unnecessary trailing slashes from srcdir.
1412 # Double slashes in file names in object file debugging info
1413 # mess up M-x gdb in Emacs.
1414 case $srcdir in
1415 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 esac
1417 for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 done
1425 # Report the --help message.
1427 if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431 \`configure' configures this package to adapt to many kinds of systems.
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436 VAR=VALUE. See below for descriptions of some of the useful variables.
1438 Defaults for the options are specified in brackets.
1440 Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking ...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451 Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
1453 [$ac_default_prefix]
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 [PREFIX]
1457 By default, \`make install' will install all the files in
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460 for instance \`--prefix=\$HOME'.
1462 For better control, use the options below.
1464 Fine tuning of the installation directories:
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1484 _ACEOF
1486 cat <<\_ACEOF
1488 X features:
1489 --x-includes=DIR X include files are in DIR
1490 --x-libraries=DIR X library files are in DIR
1492 System types:
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 _ACEOF
1498 if test -n "$ac_init_help"; then
1500 cat <<\_ACEOF
1502 Optional Features:
1503 --disable-option-checking ignore unrecognized --enable/--with options
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-build-type=TYPE
1507 Select the build type. Available types are:
1508 personal, nightly, snapshot, milestone, release. Do
1509 NOT use this option unless you know what you are
1510 doing! (default=personal)
1511 --enable-debug=list Enable different types of debug. Commas or
1512 whitespaces can be used to separate the items in the
1513 list. Available types of debug are: all, none,
1514 messages, stack, mungwall, modules, symbols. If no
1515 list is provided then "all" is assumed.
1516 (default=none)
1517 --enable-crosstools Build cross-compiler toolchains if necessary
1518 (default=no).
1519 --enable-distcc Use distcc as a front end to the compiler
1520 (default=no).
1521 --enable-ccache Use ccache as a front end to the compiler
1522 (default=no).
1523 --enable-target-variant=NAME
1524 Enable a specific target variant(default=none)
1525 --enable-amigaos-compliance=VERSION
1526 Enforce userspace AmigaOS compliance to a specific
1527 KickStart version (default=none).
1528 --enable-includes=dir Alternative system include directory
1529 --enable-palm-debug-hack
1530 Enable palm debug output hack in palm native
1531 (default=no)
1532 --enable-usb30-code Enable usb3.0 code (default=no)
1533 --enable-nesting-supervisor
1534 Enable nesting supervisor support in unix
1535 (default=no)
1536 --disable-mmu Disable MMU support (default=enabled)
1537 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1538 --enable-x11-shm use X11 shared memory (default=auto)
1539 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1540 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1541 --disable-sdltest Do not try to compile and run a test SDL program
1542 --enable-dbus Enable DBUS support via dbus.library (default=no)
1544 Optional Packages:
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-gcc-version=VERSION
1548 Use host gcc-VERSION for building AROS
1549 --with-optimization=FLAGS
1550 Use optimization flags FLAGS (default=-O2).
1551 --with-paranoia=FLAGS CC flags to enable paranoia
1552 --with-xcode=PATH Specify XCode path for iOS targets
1553 (default=/Developer).
1554 --with-sdk-version=VERSION
1555 Use iOS SDK version VERSION (default=4.1).
1556 --with-sdk=PATH Specify Android SDK path
1557 (default=$default_android_sdk).
1558 --with-ndk=PATH Specify Android NDK path (default=none).
1559 --with-sdk-version=LEVEL
1560 Use Android SDK for API LEVEL (default=12).
1561 --with-ndk-version=LEVEL
1562 Use Android NDK for API LEVEL (default=9).
1563 --with-crosstools=DIR Where to install or search for cross tools binaries
1564 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1565 --with-portssources=DIR Where to download sourcecode for external ports
1566 --with-bootloader=NAME Use a specific bootloader
1567 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1568 --with-theme=NAME Use a specific GUI Theme
1569 --with-resolution=XRESxYRESxDEPTH
1570 Default resolution of the initial WorkbenchScreen
1571 --with-serial-debug Enable serial debug output in native (default=no)
1572 --with-x use the X Window System
1573 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1574 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 CPP C preprocessor
1585 XMKMF Path to xmkmf, Makefile generator for X Window System
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1590 Report bugs to the package provider.
1591 _ACEOF
1592 ac_status=$?
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
1601 ac_builddir=.
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1619 case $srcdir in
1620 .) # We are building in place.
1621 ac_srcdir=.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 esac
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure" --help=recursive
1643 else
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645 fi || ac_status=$?
1646 cd "$ac_pwd" || { ac_status=$?; break; }
1647 done
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1652 cat <<\_ACEOF
1653 configure
1654 generated by GNU Autoconf 2.68
1656 Copyright (C) 2010 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1659 _ACEOF
1660 exit
1663 ## ------------------------ ##
1664 ## Autoconf initialization. ##
1665 ## ------------------------ ##
1667 # ac_fn_c_try_compile LINENO
1668 # --------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_compile ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=1
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_compile
1705 # ac_fn_c_try_cpp LINENO
1706 # ----------------------
1707 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_cpp ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } > conftest.i && {
1727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 }; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1735 ac_retval=1
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1740 } # ac_fn_c_try_cpp
1742 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1743 # -------------------------------------------------------
1744 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1745 # the include files in INCLUDES and setting the cache variable VAR
1746 # accordingly.
1747 ac_fn_c_check_header_mongrel ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if eval \${$3+:} false; then :
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \${$3+:} false; then :
1754 $as_echo_n "(cached) " >&6
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 else
1760 # Is the header compilable?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1762 $as_echo_n "checking $2 usability... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 ac_header_compiler=yes
1770 else
1771 ac_header_compiler=no
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1775 $as_echo "$ac_header_compiler" >&6; }
1777 # Is the header present?
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1779 $as_echo_n "checking $2 presence... " >&6; }
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_cpp "$LINENO"; then :
1785 ac_header_preproc=yes
1786 else
1787 ac_header_preproc=no
1789 rm -f conftest.err conftest.i conftest.$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1791 $as_echo "$ac_header_preproc" >&6; }
1793 # So? What about this header?
1794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1795 yes:no: )
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1797 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 no:yes:* )
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1803 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1805 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1807 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1809 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813 esac
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1818 else
1819 eval "$3=\$ac_header_compiler"
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_c_check_header_mongrel
1829 # ac_fn_c_try_run LINENO
1830 # ----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1832 # that executables *can* be run.
1833 ac_fn_c_try_run ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1847 { { case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_try") 2>&5
1854 ac_status=$?
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; }; }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: program exited with status $ac_status" >&5
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=$ac_status
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_run
1871 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists and can be compiled using the include files in
1874 # INCLUDES, setting the cache variable VAR accordingly.
1875 ac_fn_c_check_header_compile ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889 eval "$3=yes"
1890 else
1891 eval "$3=no"
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_header_compile
1902 # ac_fn_c_try_link LINENO
1903 # -----------------------
1904 # Try to link conftest.$ac_ext, and return whether this succeeded.
1905 ac_fn_c_try_link ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 rm -f conftest.$ac_objext conftest$ac_exeext
1909 if { { ac_try="$ac_link"
1910 case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_link") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && {
1925 test -z "$ac_c_werror_flag" ||
1926 test ! -s conftest.err
1927 } && test -s conftest$ac_exeext && {
1928 test "$cross_compiling" = yes ||
1929 $as_test_x conftest$ac_exeext
1930 }; then :
1931 ac_retval=0
1932 else
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1936 ac_retval=1
1938 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1939 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1940 # interfere with the next link command; also delete a directory that is
1941 # left behind by Apple's compiler. We do this before executing the actions.
1942 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status $ac_retval
1946 } # ac_fn_c_try_link
1948 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1949 # ----------------------------------------------------
1950 # Tries to find if the field MEMBER exists in type AGGR, after including
1951 # INCLUDES, setting cache variable VAR accordingly.
1952 ac_fn_c_check_member ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1956 $as_echo_n "checking for $2.$3... " >&6; }
1957 if eval \${$4+:} false; then :
1958 $as_echo_n "(cached) " >&6
1959 else
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1964 main ()
1966 static $2 ac_aggr;
1967 if (ac_aggr.$3)
1968 return 0;
1970 return 0;
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 eval "$4=yes"
1975 else
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1980 main ()
1982 static $2 ac_aggr;
1983 if (sizeof ac_aggr.$3)
1984 return 0;
1986 return 0;
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 eval "$4=yes"
1991 else
1992 eval "$4=no"
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 eval ac_res=\$$4
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_member
2005 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2006 # ---------------------------------------------
2007 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2008 # accordingly.
2009 ac_fn_c_check_decl ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 as_decl_name=`echo $2|sed 's/ *(.*//'`
2013 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2015 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2023 main ()
2025 #ifndef $as_decl_name
2026 #ifdef __cplusplus
2027 (void) $as_decl_use;
2028 #else
2029 (void) $as_decl_name;
2030 #endif
2031 #endif
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 eval "$3=yes"
2039 else
2040 eval "$3=no"
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 } # ac_fn_c_check_decl
2051 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052 # -------------------------------------------
2053 # Tests whether TYPE exists after having included INCLUDES, setting cache
2054 # variable VAR accordingly.
2055 ac_fn_c_check_type ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 eval "$3=no"
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 if (sizeof ($2))
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 if (sizeof (($2)))
2084 return 0;
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2091 else
2092 eval "$3=yes"
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 } # ac_fn_c_check_type
2105 # ac_fn_c_check_func LINENO FUNC VAR
2106 # ----------------------------------
2107 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2108 ac_fn_c_check_func ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2120 #define $2 innocuous_$2
2122 /* System header to define __stub macros and hopefully few prototypes,
2123 which can conflict with char $2 (); below.
2124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2125 <limits.h> exists even on freestanding compilers. */
2127 #ifdef __STDC__
2128 # include <limits.h>
2129 #else
2130 # include <assert.h>
2131 #endif
2133 #undef $2
2135 /* Override any GCC internal prototype to avoid an error.
2136 Use char because int might match the return type of a GCC
2137 builtin and then its argument prototype would still apply. */
2138 #ifdef __cplusplus
2139 extern "C"
2140 #endif
2141 char $2 ();
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined __stub_$2 || defined __stub___$2
2146 choke me
2147 #endif
2150 main ()
2152 return $2 ();
2154 return 0;
2156 _ACEOF
2157 if ac_fn_c_try_link "$LINENO"; then :
2158 eval "$3=yes"
2159 else
2160 eval "$3=no"
2162 rm -f core conftest.err conftest.$ac_objext \
2163 conftest$ac_exeext conftest.$ac_ext
2165 eval ac_res=\$$3
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 } # ac_fn_c_check_func
2171 cat >config.log <<_ACEOF
2172 This file contains any messages produced by compilers while
2173 running configure, to aid debugging if configure makes a mistake.
2175 It was created by $as_me, which was
2176 generated by GNU Autoconf 2.68. Invocation command line was
2178 $ $0 $@
2180 _ACEOF
2181 exec 5>>config.log
2183 cat <<_ASUNAME
2184 ## --------- ##
2185 ## Platform. ##
2186 ## --------- ##
2188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2205 _ASUNAME
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2213 done
2214 IFS=$as_save_IFS
2216 } >&5
2218 cat >&5 <<_ACEOF
2221 ## ----------- ##
2222 ## Core tests. ##
2223 ## ----------- ##
2225 _ACEOF
2228 # Keep a trace of the command line.
2229 # Strip out --no-create and --no-recursion so they do not pile up.
2230 # Strip out --silent because we don't want to record it for future runs.
2231 # Also quote any args containing shell meta-characters.
2232 # Make two passes to allow for proper duplicate-argument suppression.
2233 ac_configure_args=
2234 ac_configure_args0=
2235 ac_configure_args1=
2236 ac_must_keep_next=false
2237 for ac_pass in 1 2
2239 for ac_arg
2241 case $ac_arg in
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2245 continue ;;
2246 *\'*)
2247 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 esac
2249 case $ac_pass in
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2255 else
2256 case $ac_arg in
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 esac
2265 -* ) ac_must_keep_next=true ;;
2266 esac
2268 as_fn_append ac_configure_args " '$ac_arg'"
2270 esac
2271 done
2272 done
2273 { ac_configure_args0=; unset ac_configure_args0;}
2274 { ac_configure_args1=; unset ac_configure_args1;}
2276 # When interrupted or exit'd, cleanup temporary files, and complete
2277 # config.log. We remove comments because anyway the quotes in there
2278 # would cause problems or look ugly.
2279 # WARNING: Use '\'' to represent an apostrophe within the trap.
2280 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281 trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2284 echo
2286 $as_echo "## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##"
2289 echo
2290 # The following way of writing the cache mishandles newlines in values,
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in #(
2295 *${as_nl}*)
2296 case $ac_var in #(
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 esac
2300 case $ac_var in #(
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2304 esac ;;
2305 esac
2306 done
2307 (set) 2>&1 |
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2310 sed -n \
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 ;; #(
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2317 esac |
2318 sort
2320 echo
2322 $as_echo "## ----------------- ##
2323 ## Output variables. ##
2324 ## ----------------- ##"
2325 echo
2326 for ac_var in $ac_subst_vars
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2336 if test -n "$ac_subst_files"; then
2337 $as_echo "## ------------------- ##
2338 ## File substitutions. ##
2339 ## ------------------- ##"
2340 echo
2341 for ac_var in $ac_subst_files
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 $as_echo "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2352 if test -s confdefs.h; then
2353 $as_echo "## ----------- ##
2354 ## confdefs.h. ##
2355 ## ----------- ##"
2356 echo
2357 cat confdefs.h
2358 echo
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2363 } >&5
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2366 exit $exit_status
2368 for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370 done
2371 ac_signal=0
2373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2374 rm -f -r conftest* confdefs.h
2376 $as_echo "/* confdefs.h */" > confdefs.h
2378 # Predefined preprocessor variables.
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_NAME "$PACKAGE_NAME"
2382 _ACEOF
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_STRING "$PACKAGE_STRING"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398 _ACEOF
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_URL "$PACKAGE_URL"
2402 _ACEOF
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2407 ac_site_file1=NONE
2408 ac_site_file2=NONE
2409 if test -n "$CONFIG_SITE"; then
2410 # We do not want a PATH search for config.site.
2411 case $CONFIG_SITE in #((
2412 -*) ac_site_file1=./$CONFIG_SITE;;
2413 */*) ac_site_file1=$CONFIG_SITE;;
2414 *) ac_site_file1=./$CONFIG_SITE;;
2415 esac
2416 elif test "x$prefix" != xNONE; then
2417 ac_site_file1=$prefix/share/config.site
2418 ac_site_file2=$prefix/etc/config.site
2419 else
2420 ac_site_file1=$ac_default_prefix/share/config.site
2421 ac_site_file2=$ac_default_prefix/etc/config.site
2423 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2425 test "x$ac_site_file" = xNONE && continue
2426 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
2430 . "$ac_site_file" \
2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 as_fn_error $? "failed to load site script $ac_site_file
2434 See \`config.log' for more details" "$LINENO" 5; }
2436 done
2438 if test -r "$cache_file"; then
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443 $as_echo "$as_me: loading cache $cache_file" >&6;}
2444 case $cache_file in
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2447 esac
2449 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451 $as_echo "$as_me: creating cache $cache_file" >&6;}
2452 >$cache_file
2455 as_fn_append ac_header_list " stdlib.h"
2456 as_fn_append ac_header_list " unistd.h"
2457 as_fn_append ac_header_list " sys/param.h"
2458 # Check that the precious variables saved in the cache have kept the same
2459 # value.
2460 ac_cache_corrupted=false
2461 for ac_var in $ac_precious_vars; do
2462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2463 eval ac_new_set=\$ac_env_${ac_var}_set
2464 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2465 eval ac_new_val=\$ac_env_${ac_var}_value
2466 case $ac_old_set,$ac_new_set in
2467 set,)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2469 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,set)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2473 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,);;
2477 if test "x$ac_old_val" != "x$ac_new_val"; then
2478 # differences in whitespace do not lead to failure.
2479 ac_old_val_w=`echo x $ac_old_val`
2480 ac_new_val_w=`echo x $ac_new_val`
2481 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2483 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2484 ac_cache_corrupted=:
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2487 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2488 eval $ac_var=\$ac_old_val
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2491 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2493 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2494 fi;;
2495 esac
2496 # Pass precious variables to config.status.
2497 if test "$ac_new_set" = set; then
2498 case $ac_new_val in
2499 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2500 *) ac_arg=$ac_var=$ac_new_val ;;
2501 esac
2502 case " $ac_configure_args " in
2503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2504 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 esac
2507 done
2508 if $ac_cache_corrupted; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2512 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2513 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2515 ## -------------------- ##
2516 ## Main body of script. ##
2517 ## -------------------- ##
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 ac_aux_dir=
2528 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2529 if test -f "$ac_dir/install-sh"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/install-sh -c"
2532 break
2533 elif test -f "$ac_dir/install.sh"; then
2534 ac_aux_dir=$ac_dir
2535 ac_install_sh="$ac_aux_dir/install.sh -c"
2536 break
2537 elif test -f "$ac_dir/shtool"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/shtool install -c"
2540 break
2542 done
2543 if test -z "$ac_aux_dir"; then
2544 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2547 # These three variables are undocumented and unsupported,
2548 # and are intended to be withdrawn in a future Autoconf release.
2549 # They can cause serious problems if a builder's source tree is in a directory
2550 # whose full name contains unusual characters.
2551 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2552 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2553 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2557 # Check what host we are running on.
2558 # If a target is not suggested, we use this one.
2559 # Note that what we call a target, Autoconf calls a host.
2560 # Make sure we can run config.sub.
2561 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2562 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2565 $as_echo_n "checking build system type... " >&6; }
2566 if ${ac_cv_build+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 ac_build_alias=$build_alias
2570 test "x$ac_build_alias" = x &&
2571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2572 test "x$ac_build_alias" = x &&
2573 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2574 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2579 $as_echo "$ac_cv_build" >&6; }
2580 case $ac_cv_build in
2581 *-*-*) ;;
2582 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2583 esac
2584 build=$ac_cv_build
2585 ac_save_IFS=$IFS; IFS='-'
2586 set x $ac_cv_build
2587 shift
2588 build_cpu=$1
2589 build_vendor=$2
2590 shift; shift
2591 # Remember, the first character of IFS is used to create $*,
2592 # except with old shells:
2593 build_os=$*
2594 IFS=$ac_save_IFS
2595 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2599 $as_echo_n "checking host system type... " >&6; }
2600 if ${ac_cv_host+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test "x$host_alias" = x; then
2604 ac_cv_host=$ac_cv_build
2605 else
2606 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2612 $as_echo "$ac_cv_host" >&6; }
2613 case $ac_cv_host in
2614 *-*-*) ;;
2615 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2616 esac
2617 host=$ac_cv_host
2618 ac_save_IFS=$IFS; IFS='-'
2619 set x $ac_cv_host
2620 shift
2621 host_cpu=$1
2622 host_vendor=$2
2623 shift; shift
2624 # Remember, the first character of IFS is used to create $*,
2625 # except with old shells:
2626 host_os=$*
2627 IFS=$ac_save_IFS
2628 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2632 # The AROS target is slightly different to the normal GNU style
2633 # format. We don't have the middle part, and we reverse the order
2634 # of the $(CPU) and $(OS) bits.
2636 # Don't strip the version of the target yet, it might be
2637 # useful on some systems.
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2640 $as_echo_n "checking for AROS style target... " >&6; }
2642 if test "$target" = "NONE" ; then
2643 target=$host_os-$host_cpu
2644 else
2645 if test "$target" = "" ; then
2646 target=$host_os-$host_cpu
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2650 $as_echo "$target" >&6; }
2652 if test "$host_os" = "mingw32" ; then
2653 PWDCMD="pwd -W"
2656 #don't know where else to put this...
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2658 $as_echo_n "checking building AROS in... " >&6; }
2659 AROS_BUILDDIR=`${PWDCMD-pwd}`
2660 AROS_BUILDDIR_UNIX=${PWD}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2662 $as_echo "$AROS_BUILDDIR" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2665 $as_echo_n "checking AROS source in... " >&6; }
2666 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2667 SRCDIR=${srcpwd}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2669 $as_echo "$SRCDIR" >&6; }
2671 # Parse the target field into something useful.
2673 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2674 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2677 aros_default_wbwidth=800
2678 aros_default_wbheight=600
2679 aros_default_wbdepth=4
2682 # The first step is to find the host binaries.
2683 # Check for a compiler.
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_CC+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2711 done
2712 done
2713 IFS=$as_save_IFS
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2728 if test -z "$ac_cv_prog_CC"; then
2729 ac_ct_CC=$CC
2730 # Extract the first word of "gcc", so it can be a program name with args.
2731 set dummy gcc; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_ac_ct_CC="gcc"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2751 done
2752 done
2753 IFS=$as_save_IFS
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2760 $as_echo "$ac_ct_CC" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2766 if test "x$ac_ct_CC" = x; then
2767 CC=""
2768 else
2769 case $cross_compiling:$ac_tool_warned in
2770 yes:)
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773 ac_tool_warned=yes ;;
2774 esac
2775 CC=$ac_ct_CC
2777 else
2778 CC="$ac_cv_prog_CC"
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}cc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_CC+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CC="${ac_tool_prefix}cc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2804 done
2805 done
2806 IFS=$as_save_IFS
2810 CC=$ac_cv_prog_CC
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2822 if test -z "$CC"; then
2823 # Extract the first word of "cc", so it can be a program name with args.
2824 set dummy cc; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 else
2833 ac_prog_rejected=no
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2842 ac_prog_rejected=yes
2843 continue
2845 ac_cv_prog_CC="cc"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2851 IFS=$as_save_IFS
2853 if test $ac_prog_rejected = yes; then
2854 # We found a bogon in the path, so make sure we never use it.
2855 set dummy $ac_cv_prog_CC
2856 shift
2857 if test $# != 0; then
2858 # We chose a different compiler from the bogus one.
2859 # However, it has the same basename, so the bogon will be chosen
2860 # first if we set CC to just the basename; use the full file name.
2861 shift
2862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2867 CC=$ac_cv_prog_CC
2868 if test -n "$CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2870 $as_echo "$CC" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 for ac_prog in cl.exe
2882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2903 done
2904 done
2905 IFS=$as_save_IFS
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2919 test -n "$CC" && break
2920 done
2922 if test -z "$CC"; then
2923 ac_ct_CC=$CC
2924 for ac_prog in cl.exe
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy $ac_prog; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_ac_ct_CC="$ac_prog"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2949 IFS=$as_save_IFS
2953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954 if test -n "$ac_ct_CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2956 $as_echo "$ac_ct_CC" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2963 test -n "$ac_ct_CC" && break
2964 done
2966 if test "x$ac_ct_CC" = x; then
2967 CC=""
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970 yes:)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2974 esac
2975 CC=$ac_ct_CC
2982 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 as_fn_error $? "no acceptable C compiler found in \$PATH
2985 See \`config.log' for more details" "$LINENO" 5; }
2987 # Provide some information about the compiler.
2988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2989 set X $ac_compile
2990 ac_compiler=$2
2991 for ac_option in --version -v -V -qversion; do
2992 { { ac_try="$ac_compiler $ac_option >&5"
2993 case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3000 ac_status=$?
3001 if test -s conftest.err; then
3002 sed '10a\
3003 ... rest of stderr output deleted ...
3004 10q' conftest.err >conftest.er1
3005 cat conftest.er1 >&5
3007 rm -f conftest.er1 conftest.err
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }
3010 done
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3016 main ()
3020 return 0;
3022 _ACEOF
3023 ac_clean_files_save=$ac_clean_files
3024 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3025 # Try to create an executable without -o first, disregard a.out.
3026 # It will help us diagnose broken compilers, and finding out an intuition
3027 # of exeext.
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3029 $as_echo_n "checking whether the C compiler works... " >&6; }
3030 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3032 # The possible output files:
3033 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3035 ac_rmfiles=
3036 for ac_file in $ac_files
3038 case $ac_file in
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3041 esac
3042 done
3043 rm -f $ac_rmfiles
3045 if { { ac_try="$ac_link_default"
3046 case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049 esac
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_link_default") 2>&5
3053 ac_status=$?
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }; then :
3056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3057 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3058 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3059 # so that the user can short-circuit this test for compilers unknown to
3060 # Autoconf.
3061 for ac_file in $ac_files ''
3063 test -f "$ac_file" || continue
3064 case $ac_file in
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3067 [ab].out )
3068 # We found the default executable, but exeext='' is most
3069 # certainly right.
3070 break;;
3071 *.* )
3072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3073 then :; else
3074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3076 # We set ac_cv_exeext here because the later test for it is not
3077 # safe: cross compilers may not add the suffix if given an `-o'
3078 # argument, so we may need to know it at that point already.
3079 # Even if this section looks crufty: it has the advantage of
3080 # actually working.
3081 break;;
3083 break;;
3084 esac
3085 done
3086 test "$ac_cv_exeext" = no && ac_cv_exeext=
3088 else
3089 ac_file=''
3091 if test -z "$ac_file"; then :
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 $as_echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099 as_fn_error 77 "C compiler cannot create executables
3100 See \`config.log' for more details" "$LINENO" 5; }
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3103 $as_echo "yes" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3106 $as_echo_n "checking for C compiler default output file name... " >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3108 $as_echo "$ac_file" >&6; }
3109 ac_exeext=$ac_cv_exeext
3111 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3112 ac_clean_files=$ac_clean_files_save
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3114 $as_echo_n "checking for suffix of executables... " >&6; }
3115 if { { ac_try="$ac_link"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_link") 2>&5
3123 ac_status=$?
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }; then :
3126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3127 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3128 # work properly (i.e., refer to `conftest.exe'), while it won't with
3129 # `rm'.
3130 for ac_file in conftest.exe conftest conftest.*; do
3131 test -f "$ac_file" || continue
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 break;;
3136 * ) break;;
3137 esac
3138 done
3139 else
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3143 See \`config.log' for more details" "$LINENO" 5; }
3145 rm -f conftest conftest$ac_cv_exeext
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3147 $as_echo "$ac_cv_exeext" >&6; }
3149 rm -f conftest.$ac_ext
3150 EXEEXT=$ac_cv_exeext
3151 ac_exeext=$EXEEXT
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3154 #include <stdio.h>
3156 main ()
3158 FILE *f = fopen ("conftest.out", "w");
3159 return ferror (f) || fclose (f) != 0;
3162 return 0;
3164 _ACEOF
3165 ac_clean_files="$ac_clean_files conftest.out"
3166 # Check that the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3169 $as_echo_n "checking whether we are cross compiling... " >&6; }
3170 if test "$cross_compiling" != yes; then
3171 { { ac_try="$ac_link"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_link") 2>&5
3179 ac_status=$?
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }
3182 if { ac_try='./conftest$ac_cv_exeext'
3183 { { case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_try") 2>&5
3190 ac_status=$?
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; }; then
3193 cross_compiling=no
3194 else
3195 if test "$cross_compiling" = maybe; then
3196 cross_compiling=yes
3197 else
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "cannot run C compiled programs.
3201 If you meant to cross compile, use \`--host'.
3202 See \`config.log' for more details" "$LINENO" 5; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3207 $as_echo "$cross_compiling" >&6; }
3209 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3210 ac_clean_files=$ac_clean_files_save
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3212 $as_echo_n "checking for suffix of object files... " >&6; }
3213 if ${ac_cv_objext+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3220 main ()
3224 return 0;
3226 _ACEOF
3227 rm -f conftest.o conftest.obj
3228 if { { ac_try="$ac_compile"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_compile") 2>&5
3236 ac_status=$?
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }; then :
3239 for ac_file in conftest.o conftest.obj conftest.*; do
3240 test -f "$ac_file" || continue;
3241 case $ac_file in
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3243 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3244 break;;
3245 esac
3246 done
3247 else
3248 $as_echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "cannot compute suffix of object files: cannot compile
3254 See \`config.log' for more details" "$LINENO" 5; }
3256 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3259 $as_echo "$ac_cv_objext" >&6; }
3260 OBJEXT=$ac_cv_objext
3261 ac_objext=$OBJEXT
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3263 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3264 if ${ac_cv_c_compiler_gnu+:} false; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3271 main ()
3273 #ifndef __GNUC__
3274 choke me
3275 #endif
3278 return 0;
3280 _ACEOF
3281 if ac_fn_c_try_compile "$LINENO"; then :
3282 ac_compiler_gnu=yes
3283 else
3284 ac_compiler_gnu=no
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3291 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3292 if test $ac_compiler_gnu = yes; then
3293 GCC=yes
3294 else
3295 GCC=
3297 ac_test_CFLAGS=${CFLAGS+set}
3298 ac_save_CFLAGS=$CFLAGS
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3300 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3301 if ${ac_cv_prog_cc_g+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 ac_save_c_werror_flag=$ac_c_werror_flag
3305 ac_c_werror_flag=yes
3306 ac_cv_prog_cc_g=no
3307 CFLAGS="-g"
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3312 main ()
3316 return 0;
3318 _ACEOF
3319 if ac_fn_c_try_compile "$LINENO"; then :
3320 ac_cv_prog_cc_g=yes
3321 else
3322 CFLAGS=""
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3327 main ()
3331 return 0;
3333 _ACEOF
3334 if ac_fn_c_try_compile "$LINENO"; then :
3336 else
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3338 CFLAGS="-g"
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3343 main ()
3347 return 0;
3349 _ACEOF
3350 if ac_fn_c_try_compile "$LINENO"; then :
3351 ac_cv_prog_cc_g=yes
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 ac_c_werror_flag=$ac_save_c_werror_flag
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3361 $as_echo "$ac_cv_prog_cc_g" >&6; }
3362 if test "$ac_test_CFLAGS" = set; then
3363 CFLAGS=$ac_save_CFLAGS
3364 elif test $ac_cv_prog_cc_g = yes; then
3365 if test "$GCC" = yes; then
3366 CFLAGS="-g -O2"
3367 else
3368 CFLAGS="-g"
3370 else
3371 if test "$GCC" = yes; then
3372 CFLAGS="-O2"
3373 else
3374 CFLAGS=
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3378 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3379 if ${ac_cv_prog_cc_c89+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 ac_cv_prog_cc_c89=no
3383 ac_save_CC=$CC
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386 #include <stdarg.h>
3387 #include <stdio.h>
3388 #include <sys/types.h>
3389 #include <sys/stat.h>
3390 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3391 struct buf { int x; };
3392 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3393 static char *e (p, i)
3394 char **p;
3395 int i;
3397 return p[i];
3399 static char *f (char * (*g) (char **, int), char **p, ...)
3401 char *s;
3402 va_list v;
3403 va_start (v,p);
3404 s = g (p, va_arg (v,int));
3405 va_end (v);
3406 return s;
3409 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3410 function prototypes and stuff, but not '\xHH' hex character constants.
3411 These don't provoke an error unfortunately, instead are silently treated
3412 as 'x'. The following induces an error, until -std is added to get
3413 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3414 array size at least. It's necessary to write '\x00'==0 to get something
3415 that's true only with -std. */
3416 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3418 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3419 inside strings and character constants. */
3420 #define FOO(x) 'x'
3421 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3423 int test (int i, double x);
3424 struct s1 {int (*f) (int a);};
3425 struct s2 {int (*f) (double a);};
3426 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3427 int argc;
3428 char **argv;
3430 main ()
3432 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3434 return 0;
3436 _ACEOF
3437 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3438 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3440 CC="$ac_save_CC $ac_arg"
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442 ac_cv_prog_cc_c89=$ac_arg
3444 rm -f core conftest.err conftest.$ac_objext
3445 test "x$ac_cv_prog_cc_c89" != "xno" && break
3446 done
3447 rm -f conftest.$ac_ext
3448 CC=$ac_save_CC
3451 # AC_CACHE_VAL
3452 case "x$ac_cv_prog_cc_c89" in
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3455 $as_echo "none needed" >&6; } ;;
3456 xno)
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3458 $as_echo "unsupported" >&6; } ;;
3460 CC="$CC $ac_cv_prog_cc_c89"
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3462 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3463 esac
3464 if test "x$ac_cv_prog_cc_c89" != xno; then :
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 case $ac_cv_prog_cc_stdc in #(
3475 no) :
3476 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3477 *) :
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3479 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3480 if ${ac_cv_prog_cc_c99+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 ac_cv_prog_cc_c99=no
3484 ac_save_CC=$CC
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487 #include <stdarg.h>
3488 #include <stdbool.h>
3489 #include <stdlib.h>
3490 #include <wchar.h>
3491 #include <stdio.h>
3493 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3494 #define debug(...) fprintf (stderr, __VA_ARGS__)
3495 #define showlist(...) puts (#__VA_ARGS__)
3496 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3497 static void
3498 test_varargs_macros (void)
3500 int x = 1234;
3501 int y = 5678;
3502 debug ("Flag");
3503 debug ("X = %d\n", x);
3504 showlist (The first, second, and third items.);
3505 report (x>y, "x is %d but y is %d", x, y);
3508 // Check long long types.
3509 #define BIG64 18446744073709551615ull
3510 #define BIG32 4294967295ul
3511 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3512 #if !BIG_OK
3513 your preprocessor is broken;
3514 #endif
3515 #if BIG_OK
3516 #else
3517 your preprocessor is broken;
3518 #endif
3519 static long long int bignum = -9223372036854775807LL;
3520 static unsigned long long int ubignum = BIG64;
3522 struct incomplete_array
3524 int datasize;
3525 double data[];
3528 struct named_init {
3529 int number;
3530 const wchar_t *name;
3531 double average;
3534 typedef const char *ccp;
3536 static inline int
3537 test_restrict (ccp restrict text)
3539 // See if C++-style comments work.
3540 // Iterate through items via the restricted pointer.
3541 // Also check for declarations in for loops.
3542 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3543 continue;
3544 return 0;
3547 // Check varargs and va_copy.
3548 static void
3549 test_varargs (const char *format, ...)
3551 va_list args;
3552 va_start (args, format);
3553 va_list args_copy;
3554 va_copy (args_copy, args);
3556 const char *str;
3557 int number;
3558 float fnumber;
3560 while (*format)
3562 switch (*format++)
3564 case 's': // string
3565 str = va_arg (args_copy, const char *);
3566 break;
3567 case 'd': // int
3568 number = va_arg (args_copy, int);
3569 break;
3570 case 'f': // float
3571 fnumber = va_arg (args_copy, double);
3572 break;
3573 default:
3574 break;
3577 va_end (args_copy);
3578 va_end (args);
3582 main ()
3585 // Check bool.
3586 _Bool success = false;
3588 // Check restrict.
3589 if (test_restrict ("String literal") == 0)
3590 success = true;
3591 char *restrict newvar = "Another string";
3593 // Check varargs.
3594 test_varargs ("s, d' f .", "string", 65, 34.234);
3595 test_varargs_macros ();
3597 // Check flexible array members.
3598 struct incomplete_array *ia =
3599 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3600 ia->datasize = 10;
3601 for (int i = 0; i < ia->datasize; ++i)
3602 ia->data[i] = i * 1.234;
3604 // Check named initializers.
3605 struct named_init ni = {
3606 .number = 34,
3607 .name = L"Test wide string",
3608 .average = 543.34343,
3611 ni.number = 58;
3613 int dynamic_array[ni.number];
3614 dynamic_array[ni.number - 1] = 543;
3616 // work around unused variable warnings
3617 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3618 || dynamic_array[ni.number - 1] != 543);
3621 return 0;
3623 _ACEOF
3624 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3626 CC="$ac_save_CC $ac_arg"
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628 ac_cv_prog_cc_c99=$ac_arg
3630 rm -f core conftest.err conftest.$ac_objext
3631 test "x$ac_cv_prog_cc_c99" != "xno" && break
3632 done
3633 rm -f conftest.$ac_ext
3634 CC=$ac_save_CC
3637 # AC_CACHE_VAL
3638 case "x$ac_cv_prog_cc_c99" in
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3641 $as_echo "none needed" >&6; } ;;
3642 xno)
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3644 $as_echo "unsupported" >&6; } ;;
3646 CC="$CC $ac_cv_prog_cc_c99"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3648 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3649 esac
3650 if test "x$ac_cv_prog_cc_c99" != xno; then :
3651 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3652 else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3655 if ${ac_cv_prog_cc_c89+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_cv_prog_cc_c89=no
3659 ac_save_CC=$CC
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662 #include <stdarg.h>
3663 #include <stdio.h>
3664 #include <sys/types.h>
3665 #include <sys/stat.h>
3666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3667 struct buf { int x; };
3668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3669 static char *e (p, i)
3670 char **p;
3671 int i;
3673 return p[i];
3675 static char *f (char * (*g) (char **, int), char **p, ...)
3677 char *s;
3678 va_list v;
3679 va_start (v,p);
3680 s = g (p, va_arg (v,int));
3681 va_end (v);
3682 return s;
3685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3686 function prototypes and stuff, but not '\xHH' hex character constants.
3687 These don't provoke an error unfortunately, instead are silently treated
3688 as 'x'. The following induces an error, until -std is added to get
3689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3690 array size at least. It's necessary to write '\x00'==0 to get something
3691 that's true only with -std. */
3692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3695 inside strings and character constants. */
3696 #define FOO(x) 'x'
3697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699 int test (int i, double x);
3700 struct s1 {int (*f) (int a);};
3701 struct s2 {int (*f) (double a);};
3702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703 int argc;
3704 char **argv;
3706 main ()
3708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 return 0;
3712 _ACEOF
3713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 CC="$ac_save_CC $ac_arg"
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_cv_prog_cc_c89=$ac_arg
3720 rm -f core conftest.err conftest.$ac_objext
3721 test "x$ac_cv_prog_cc_c89" != "xno" && break
3722 done
3723 rm -f conftest.$ac_ext
3724 CC=$ac_save_CC
3727 # AC_CACHE_VAL
3728 case "x$ac_cv_prog_cc_c89" in
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3731 $as_echo "none needed" >&6; } ;;
3732 xno)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3734 $as_echo "unsupported" >&6; } ;;
3736 CC="$CC $ac_cv_prog_cc_c89"
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3738 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3739 esac
3740 if test "x$ac_cv_prog_cc_c89" != xno; then :
3741 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3742 else
3743 ac_cv_prog_cc_stdc=no
3748 esac
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3750 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3751 if ${ac_cv_prog_cc_stdc+:} false; then :
3752 $as_echo_n "(cached) " >&6
3755 case $ac_cv_prog_cc_stdc in #(
3756 no) :
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758 $as_echo "unsupported" >&6; } ;; #(
3759 '') :
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3761 $as_echo "none needed" >&6; } ;; #(
3762 *) :
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3764 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3765 esac
3767 ac_ext=c
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3773 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3774 # On Suns, sometimes $CPP names a directory.
3775 if test -n "$CPP" && test -d "$CPP"; then
3776 CPP=
3778 if test -z "$CPP"; then
3779 if ${ac_cv_prog_CPP+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 # Double quotes because CPP needs to be expanded
3783 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3785 ac_preproc_ok=false
3786 for ac_c_preproc_warn_flag in '' yes
3788 # Use a header file that comes with gcc, so configuring glibc
3789 # with a fresh cross-compiler works.
3790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791 # <limits.h> exists even on freestanding compilers.
3792 # On the NeXT, cc -E runs the code through the compiler's parser,
3793 # not just through cpp. "Syntax error" is here to catch this case.
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796 #ifdef __STDC__
3797 # include <limits.h>
3798 #else
3799 # include <assert.h>
3800 #endif
3801 Syntax error
3802 _ACEOF
3803 if ac_fn_c_try_cpp "$LINENO"; then :
3805 else
3806 # Broken: fails on valid input.
3807 continue
3809 rm -f conftest.err conftest.i conftest.$ac_ext
3811 # OK, works on sane cases. Now check whether nonexistent headers
3812 # can be detected and how.
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815 #include <ac_nonexistent.h>
3816 _ACEOF
3817 if ac_fn_c_try_cpp "$LINENO"; then :
3818 # Broken: success on invalid input.
3819 continue
3820 else
3821 # Passes both tests.
3822 ac_preproc_ok=:
3823 break
3825 rm -f conftest.err conftest.i conftest.$ac_ext
3827 done
3828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3829 rm -f conftest.i conftest.err conftest.$ac_ext
3830 if $ac_preproc_ok; then :
3831 break
3834 done
3835 ac_cv_prog_CPP=$CPP
3838 CPP=$ac_cv_prog_CPP
3839 else
3840 ac_cv_prog_CPP=$CPP
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3843 $as_echo "$CPP" >&6; }
3844 ac_preproc_ok=false
3845 for ac_c_preproc_warn_flag in '' yes
3847 # Use a header file that comes with gcc, so configuring glibc
3848 # with a fresh cross-compiler works.
3849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3850 # <limits.h> exists even on freestanding compilers.
3851 # On the NeXT, cc -E runs the code through the compiler's parser,
3852 # not just through cpp. "Syntax error" is here to catch this case.
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855 #ifdef __STDC__
3856 # include <limits.h>
3857 #else
3858 # include <assert.h>
3859 #endif
3860 Syntax error
3861 _ACEOF
3862 if ac_fn_c_try_cpp "$LINENO"; then :
3864 else
3865 # Broken: fails on valid input.
3866 continue
3868 rm -f conftest.err conftest.i conftest.$ac_ext
3870 # OK, works on sane cases. Now check whether nonexistent headers
3871 # can be detected and how.
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874 #include <ac_nonexistent.h>
3875 _ACEOF
3876 if ac_fn_c_try_cpp "$LINENO"; then :
3877 # Broken: success on invalid input.
3878 continue
3879 else
3880 # Passes both tests.
3881 ac_preproc_ok=:
3882 break
3884 rm -f conftest.err conftest.i conftest.$ac_ext
3886 done
3887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3888 rm -f conftest.i conftest.err conftest.$ac_ext
3889 if $ac_preproc_ok; then :
3891 else
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3895 See \`config.log' for more details" "$LINENO" 5; }
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 # Check for a compatible awk
3906 for ac_prog in gawk nawk
3908 # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_prog_AWK+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if test -n "$AWK"; then
3916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925 ac_cv_prog_AWK="$ac_prog"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3929 done
3930 done
3931 IFS=$as_save_IFS
3935 AWK=$ac_cv_prog_AWK
3936 if test -n "$AWK"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3938 $as_echo "$AWK" >&6; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3945 test -n "$AWK" && break
3946 done
3948 if test "$AWK" = ""; then
3949 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3951 # Extract the first word of "mmake", so it can be a program name with args.
3952 set dummy mmake; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if ${ac_cv_prog_MMAKE+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 if test -n "$MMAKE"; then
3959 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_MMAKE="mmake "
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3972 done
3973 done
3974 IFS=$as_save_IFS
3978 MMAKE=$ac_cv_prog_MMAKE
3979 if test -n "$MMAKE"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3981 $as_echo "$MMAKE" >&6; }
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3989 # Perform some default variable assignments. Note all of these will be
3990 # Regenerated from the script, so there is no need to cache them.
3992 aros_host_cc="$CC"
3993 if test "$GCC" = "yes"; then
3994 aros_gcc_ld=`$CC -print-prog-name=ld`
3995 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3996 set dummy `basename $aros_gcc_ld`; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if ${ac_cv_path_aros_host_ld+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 case $aros_host_ld in
4003 [\\/]* | ?:[\\/]*)
4004 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in `dirname $aros_gcc_ld`
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4018 done
4019 done
4020 IFS=$as_save_IFS
4023 esac
4025 aros_host_ld=$ac_cv_path_aros_host_ld
4026 if test -n "$aros_host_ld"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4028 $as_echo "$aros_host_ld" >&6; }
4029 else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4036 if test "$aros_host_ld" = ""; then
4037 # Extract the first word of "ld", so it can be a program name with args.
4038 set dummy ld; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if ${ac_cv_path_aros_host_ld+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 case $aros_host_ld in
4045 [\\/]* | ?:[\\/]*)
4046 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4060 done
4061 done
4062 IFS=$as_save_IFS
4065 esac
4067 aros_host_ld=$ac_cv_path_aros_host_ld
4068 if test -n "$aros_host_ld"; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4070 $as_echo "$aros_host_ld" >&6; }
4071 else
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073 $as_echo "no" >&6; }
4078 if test "$aros_host_ld" = ""; then
4079 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4081 aros_host_make="make"
4082 aros_host_cflags=$CFLAGS
4083 aros_host_ldflags=$LDFLAGS
4084 aros_host_debug="-g -O0"
4085 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4086 aros_host_mkargs="--no-print-directory"
4087 aros_host_incl="/usr/include"
4088 aros_host_exe_suffix="$EXEEXT"
4089 aros_host_lib_suffix=""
4091 # Ignore all compliance, AROS ROMs = 0
4092 # KickStart v1.0 = 30
4093 # KickStart v1.3 = 34
4094 # KickStart v2.0 = 37
4095 # KickStart v3.0 = 39
4096 # KickStart v3.1 = 40
4097 # AmigaOS v3.5 = 44
4098 aros_amigaos_compliance=0
4100 for ac_prog in aclocal aclocal19 aclocal-1.9
4102 # Extract the first word of "$ac_prog", so it can be a program name with args.
4103 set dummy $ac_prog; ac_word=$2
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 $as_echo_n "checking for $ac_word... " >&6; }
4106 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test -n "$aros_host_aclocal"; then
4110 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_aros_host_aclocal="$ac_prog"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4123 done
4124 done
4125 IFS=$as_save_IFS
4129 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4130 if test -n "$aros_host_aclocal"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4132 $as_echo "$aros_host_aclocal" >&6; }
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4139 test -n "$aros_host_aclocal" && break
4140 done
4142 for ac_prog in autoconf autoconf259 autoconf253
4144 # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 if test -n "$aros_host_autoconf"; then
4152 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161 ac_cv_prog_aros_host_autoconf="$ac_prog"
4162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4167 IFS=$as_save_IFS
4171 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4172 if test -n "$aros_host_autoconf"; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4174 $as_echo "$aros_host_autoconf" >&6; }
4175 else
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4181 test -n "$aros_host_autoconf" && break
4182 done
4184 for ac_prog in autoheader autoheader259 autoheader253
4186 # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -n "$aros_host_autoheader"; then
4194 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_aros_host_autoheader="$ac_prog"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4207 done
4208 done
4209 IFS=$as_save_IFS
4213 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4214 if test -n "$aros_host_autoheader"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4216 $as_echo "$aros_host_autoheader" >&6; }
4217 else
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4223 test -n "$aros_host_autoheader" && break
4224 done
4226 for ac_prog in automake automake19 automake-1.9
4228 # Extract the first word of "$ac_prog", so it can be a program name with args.
4229 set dummy $ac_prog; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_aros_host_automake+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if test -n "$aros_host_automake"; then
4236 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_aros_host_automake="$ac_prog"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4249 done
4250 done
4251 IFS=$as_save_IFS
4255 aros_host_automake=$ac_cv_prog_aros_host_automake
4256 if test -n "$aros_host_automake"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4258 $as_echo "$aros_host_automake" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4265 test -n "$aros_host_automake" && break
4266 done
4269 if test "$aros_host_aclocal" = ""; then
4270 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4272 if test "$aros_host_automake" = ""; then
4273 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4276 case "$aros_host_cc" in
4277 *gcc*)
4278 aros_host_cc_pipe="-pipe"
4280 icc)
4281 aros_host_cc_pipe=""
4284 aros_host_cc_pipe=""
4286 esac
4288 aros_kernel_cc_includes=""
4289 aros_target_cc_includes=""
4291 # ----------------------------------------------------------------------------------------
4292 # Host-specific defaults
4294 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4295 # instead of a wrapper script.
4296 # Useful for non-ELF hosts (like Windows and Darwin).
4297 # Can also be overriden in target section below
4298 use_aros_gcc="no"
4300 # This is the main host configuration section. It is where the host
4301 # can change the values of any variables it needs to change. We do
4302 # not look at anything that compiles to the target yet, we'll get
4303 # to that later.
4305 case "$host_os" in
4306 aros*)
4307 aros_host_arch="aros"
4308 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4309 case "$host_cpu" in
4310 *i?86*)
4311 aros_host_cpu="i386"
4313 *x86_64*)
4314 aros_host_cpu="x86_64"
4316 *powerpc*)
4317 aros_host_cpu="ppc"
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4321 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4322 aros_host_cpu="$host_cpu"
4324 esac
4327 linux*)
4328 aros_host_arch="linux"
4329 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4330 android_build_os="linux-x86"
4331 android_tool="android"
4332 default_android_sdk="/opt/android-sdk-linux_x86"
4333 case "$host_cpu" in
4334 *i?86*)
4335 aros_host_cpu="i386"
4337 *x86_64*)
4338 aros_host_cpu="x86_64"
4340 *m68k*)
4341 aros_host_cpu="m68k"
4343 *powerpc*)
4344 aros_host_cpu="ppc"
4346 *arm*)
4347 aros_host_cpu="arm"
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4351 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4352 aros_host_cpu="$host_cpu"
4354 esac
4357 freebsd*)
4358 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4359 aros_host_make="gmake"
4360 aros_host_arch="freebsd"
4361 aros_host_cpu="i386"
4363 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4365 case $host_os in
4366 freebsd[234]*)
4367 aros_object_format="elf_i386"
4371 aros_object_format="elf_i386_fbsd"
4373 esac
4377 darwin*)
4378 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4379 aros_host_arch="darwin"
4380 use_aros_gcc="yes"
4381 android_build_os="darwin-x86"
4382 android_tool="android"
4383 default_android_sdk="/android-sdk-mac_x86"
4384 case "$host_cpu" in
4385 *i?86*)
4386 aros_host_cpu="i386"
4388 *x86_64*)
4389 aros_host_cpu="x86_64"
4391 *powerpc*)
4392 aros_host_cpu="ppc"
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4396 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4397 aros_host_cpu="$host_cpu"
4399 esac
4401 aros_host_ldflags="$aros_host_ldflags -liconv"
4405 dragonfly*)
4406 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4407 aros_host_make="gmake"
4408 aros_host_arch="dragonfly"
4409 case $host_cpu in
4410 *i?86*)
4411 aros_host_cpu="i386"
4413 *amd64*)
4414 aros_host_cpu="x86_64"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4418 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4419 aros_host_cpu="$host_cpu"
4421 esac
4424 netbsd*)
4425 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4426 aros_host_make="gmake"
4427 aros_host_arch="netbsd"
4428 case "$host_cpu" in
4429 *i?86*)
4430 aros_host_cpu="i386"
4432 *m68k*)
4433 aros_host_cpu="m68k"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4437 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4438 aros_host_cpu="$host_cpu"
4440 esac
4441 aros_host_lib_suffix=".0.0"
4444 openbsd*)
4445 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4446 aros_host_make="gmake"
4447 aros_host_arch="openbsd"
4448 case "$host_cpu" in
4449 *i?86*)
4450 aros_host_cpu="i386"
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4454 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4455 aros_host_cpu="$host_cpu"
4457 esac
4460 solaris*)
4461 aros_host_arch="solaris"
4462 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4463 case "$host_cpu" in
4464 *i?86*)
4465 aros_host_cpu="i386"
4467 *sparc*)
4468 aros_host_cpu="sparc"
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4472 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4473 aros_host_cpu="$host_cpu"
4475 esac
4478 morphos*)
4479 aros_host_arch="morphos"
4480 aros_host_cpu="ppc"
4483 amiga*)
4484 aros_host_arch="amiga"
4485 SORT="/gg/bin/sort"
4486 TEST="/gg/bin/test"
4487 UNIQ="/gg/bin/uniq"
4488 FOR="for"
4489 TOUCH="/gg/bin/touch"
4490 case "$host_cpu" in
4491 *m68k*)
4492 aros_host_cpu="m68k"
4494 *powerpc*)
4495 aros_host_cpu="ppc"
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4499 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4500 aros_host_cpu="$host_cpu"
4502 esac
4505 cygwin*)
4506 aros_host_arch="cygwin"
4507 use_aros_gcc="yes"
4508 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4509 android_build_os="windows"
4510 android_tool="android.bat"
4511 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4513 case "$host_cpu" in
4514 *i?86*)
4515 aros_host_cpu="i386"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4519 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4520 aros_host_cpu="$host_cpu"
4522 esac
4525 mingw32*)
4526 aros_host_arch="mingw32"
4527 use_aros_gcc="yes"
4528 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4529 android_build_os="windows"
4530 android_tool="android.bat"
4531 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4533 case "$host_cpu" in
4534 *i?86*)
4535 aros_host_cpu="i386"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4539 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4540 aros_host_cpu="$host_cpu"
4542 esac
4545 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4547 esac
4549 # Extract the first word of "ar", so it can be a program name with args.
4550 set dummy ar; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_aros_host_ar+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if test -n "$aros_host_ar"; then
4557 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_aros_host_ar="ar cr"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4570 done
4571 done
4572 IFS=$as_save_IFS
4576 aros_host_ar=$ac_cv_prog_aros_host_ar
4577 if test -n "$aros_host_ar"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4579 $as_echo "$aros_host_ar" >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4586 if test "$aros_host_ar" = ""; then
4587 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4589 # Extract the first word of "ranlib", so it can be a program name with args.
4590 set dummy ranlib; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$aros_host_ranlib"; then
4597 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_aros_host_ranlib="ranlib "
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4617 if test -n "$aros_host_ranlib"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4619 $as_echo "$aros_host_ranlib" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4626 if test "$aros_host_ranlib" = ""; then
4627 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4629 # Extract the first word of "strip", so it can be a program name with args.
4630 set dummy strip; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_aros_host_strip+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$aros_host_strip"; then
4637 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_aros_host_strip="strip "
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4652 IFS=$as_save_IFS
4656 aros_host_strip=$ac_cv_prog_aros_host_strip
4657 if test -n "$aros_host_strip"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4659 $as_echo "$aros_host_strip" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4666 if test "$aros_host_strip" = ""; then
4667 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4670 # Extract the first word of "rm", so it can be a program name with args.
4671 set dummy rm; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if ${ac_cv_prog_RM+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$RM"; then
4678 ac_cv_prog_RM="$RM" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_RM="rm -rf"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4691 done
4692 done
4693 IFS=$as_save_IFS
4697 RM=$ac_cv_prog_RM
4698 if test -n "$RM"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4700 $as_echo "$RM" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4707 if test "$RM" = ""; then
4708 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4710 # Extract the first word of "cp", so it can be a program name with args.
4711 set dummy cp; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_prog_CP+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$CP"; then
4718 ac_cv_prog_CP="$CP" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_prog_CP="cp "
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4731 done
4732 done
4733 IFS=$as_save_IFS
4737 CP=$ac_cv_prog_CP
4738 if test -n "$CP"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4740 $as_echo "$CP" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4747 if test "$CP" = ""; then
4748 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4750 # Extract the first word of "mv", so it can be a program name with args.
4751 set dummy mv; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_prog_MV+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$MV"; then
4758 ac_cv_prog_MV="$MV" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_MV="mv "
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4771 done
4772 done
4773 IFS=$as_save_IFS
4777 MV=$ac_cv_prog_MV
4778 if test -n "$MV"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4780 $as_echo "$MV" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4787 if test "$MV" = ""; then
4788 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4790 # Extract the first word of "echo", so it can be a program name with args.
4791 set dummy echo; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if ${ac_cv_prog_ECHO+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$ECHO"; then
4798 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_ECHO="echo "
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4811 done
4812 done
4813 IFS=$as_save_IFS
4817 ECHO=$ac_cv_prog_ECHO
4818 if test -n "$ECHO"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4820 $as_echo "$ECHO" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4827 if test "$ECHO" = ""; then
4828 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4830 # Extract the first word of "mkdir", so it can be a program name with args.
4831 set dummy mkdir; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if ${ac_cv_prog_MKDIR+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -n "$MKDIR"; then
4838 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_MKDIR="mkdir -p"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4851 done
4852 done
4853 IFS=$as_save_IFS
4857 MKDIR=$ac_cv_prog_MKDIR
4858 if test -n "$MKDIR"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4860 $as_echo "$MKDIR" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4867 if test "$MKDIR" = ""; then
4868 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4870 # Extract the first word of "touch", so it can be a program name with args.
4871 set dummy touch; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_TOUCH+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$TOUCH"; then
4878 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_TOUCH="touch "
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4897 TOUCH=$ac_cv_prog_TOUCH
4898 if test -n "$TOUCH"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4900 $as_echo "$TOUCH" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4907 if test "$TOUCH" = ""; then
4908 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4910 # Extract the first word of "sort", so it can be a program name with args.
4911 set dummy sort; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_SORT+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$SORT"; then
4918 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_SORT="sort "
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 SORT=$ac_cv_prog_SORT
4938 if test -n "$SORT"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4940 $as_echo "$SORT" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 if test "$SORT" = ""; then
4948 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4950 # Extract the first word of "uniq", so it can be a program name with args.
4951 set dummy uniq; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_UNIQ+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$UNIQ"; then
4958 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_UNIQ="uniq "
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 UNIQ=$ac_cv_prog_UNIQ
4978 if test -n "$UNIQ"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4980 $as_echo "$UNIQ" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 if test "$UNIQ" = ""; then
4988 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4990 # Extract the first word of "true", so it can be a program name with args.
4991 set dummy true; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_prog_NOP+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 if test -n "$NOP"; then
4998 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_prog_NOP="true "
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5011 done
5012 done
5013 IFS=$as_save_IFS
5017 NOP=$ac_cv_prog_NOP
5018 if test -n "$NOP"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5020 $as_echo "$NOP" >&6; }
5021 else
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5027 if test "$NOP" = ""; then
5028 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5030 # Extract the first word of "cat", so it can be a program name with args.
5031 set dummy cat; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_prog_CAT+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$CAT"; then
5038 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_CAT="cat "
5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5051 done
5052 done
5053 IFS=$as_save_IFS
5057 CAT=$ac_cv_prog_CAT
5058 if test -n "$CAT"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5060 $as_echo "$CAT" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5067 if test "$CAT" = ""; then
5068 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5070 # Extract the first word of "bison", so it can be a program name with args.
5071 set dummy bison; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_BISON+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if test -n "$BISON"; then
5078 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_prog_BISON="bison "
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5091 done
5092 done
5093 IFS=$as_save_IFS
5097 BISON=$ac_cv_prog_BISON
5098 if test -n "$BISON"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5100 $as_echo "$BISON" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5107 if test "$BISON" = ""; then
5108 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5110 # Extract the first word of "flex", so it can be a program name with args.
5111 set dummy flex; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_FLEX+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$FLEX"; then
5118 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_FLEX="flex "
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5137 FLEX=$ac_cv_prog_FLEX
5138 if test -n "$FLEX"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5140 $as_echo "$FLEX" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5147 if test "$FLEX" = ""; then
5148 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5150 # Extract the first word of "pngtopnm", so it can be a program name with args.
5151 set dummy pngtopnm; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$PNGTOPNM"; then
5158 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_PNGTOPNM="pngtopnm "
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5171 done
5172 done
5173 IFS=$as_save_IFS
5177 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5178 if test -n "$PNGTOPNM"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5180 $as_echo "$PNGTOPNM" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5187 if test "$PNGTOPNM" = ""; then
5188 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5190 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5191 set dummy ppmtoilbm; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$PPMTOILBM"; then
5198 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5211 done
5212 done
5213 IFS=$as_save_IFS
5217 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5218 if test -n "$PPMTOILBM"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5220 $as_echo "$PPMTOILBM" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5227 if test "$PPMTOILBM" = ""; then
5228 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5230 # Extract the first word of "sed", so it can be a program name with args.
5231 set dummy sed; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_prog_SED+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 if test -n "$SED"; then
5238 ac_cv_prog_SED="$SED" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_prog_SED="sed "
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5251 done
5252 done
5253 IFS=$as_save_IFS
5257 SED=$ac_cv_prog_SED
5258 if test -n "$SED"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5260 $as_echo "$SED" >&6; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5267 if test "$SED" = ""; then
5268 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5270 # Extract the first word of "chmod", so it can be a program name with args.
5271 set dummy chmod; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_prog_CHMOD+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$CHMOD"; then
5278 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_CHMOD="chmod "
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5291 done
5292 done
5293 IFS=$as_save_IFS
5297 CHMOD=$ac_cv_prog_CHMOD
5298 if test -n "$CHMOD"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5300 $as_echo "$CHMOD" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5307 if test "$CHMOD" = ""; then
5308 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5310 # Extract the first word of "patch", so it can be a program name with args.
5311 set dummy patch; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_PATCH+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if test -n "$PATCH"; then
5318 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_PATCH="patch "
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5333 IFS=$as_save_IFS
5337 PATCH=$ac_cv_prog_PATCH
5338 if test -n "$PATCH"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5340 $as_echo "$PATCH" >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5347 if test "$PATCH" = ""; then
5348 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5355 if test -n "$PYTHON"; then
5356 # If the user set $PYTHON, use it and don't search something else.
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5358 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5359 prog="import sys, string
5360 # split strings by '.' and convert to numeric. Append some zeros
5361 # because we need at least 4 digits for the hex conversion.
5362 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5363 minverhex = 0
5364 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5365 sys.exit(sys.hexversion < minverhex)"
5366 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5367 ($PYTHON -c "$prog") >&5 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; then :
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5372 $as_echo "yes" >&6; }
5373 else
5374 as_fn_error $? "too old" "$LINENO" 5
5376 am_display_PYTHON=$PYTHON
5377 else
5378 # Otherwise, try each interpreter until we find one that satisfies
5379 # VERSION.
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5381 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5382 if ${am_cv_pathless_PYTHON+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5386 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
5387 test "$am_cv_pathless_PYTHON" = none && break
5388 prog="import sys, string
5389 # split strings by '.' and convert to numeric. Append some zeros
5390 # because we need at least 4 digits for the hex conversion.
5391 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5392 minverhex = 0
5393 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5394 sys.exit(sys.hexversion < minverhex)"
5395 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5396 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; then :
5400 break
5402 done
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5405 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5406 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5407 if test "$am_cv_pathless_PYTHON" = none; then
5408 PYTHON=:
5409 else
5410 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5411 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_path_PYTHON+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 case $PYTHON in
5418 [\\/]* | ?:[\\/]*)
5419 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5429 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5433 done
5434 done
5435 IFS=$as_save_IFS
5438 esac
5440 PYTHON=$ac_cv_path_PYTHON
5441 if test -n "$PYTHON"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5443 $as_echo "$PYTHON" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5451 am_display_PYTHON=$am_cv_pathless_PYTHON
5455 if test "$PYTHON" = :; then
5456 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5457 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5461 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5462 if ${am_cv_python_version+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5468 $as_echo "$am_cv_python_version" >&6; }
5469 PYTHON_VERSION=$am_cv_python_version
5473 PYTHON_PREFIX='${prefix}'
5475 PYTHON_EXEC_PREFIX='${exec_prefix}'
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5480 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5481 if ${am_cv_python_platform+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5487 $as_echo "$am_cv_python_platform" >&6; }
5488 PYTHON_PLATFORM=$am_cv_python_platform
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5494 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5495 if ${am_cv_python_pythondir+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5499 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5502 $as_echo "$am_cv_python_pythondir" >&6; }
5503 pythondir=$am_cv_python_pythondir
5507 pkgpythondir=\${pythondir}/$PACKAGE
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5511 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5512 if ${am_cv_python_pyexecdir+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5516 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5519 $as_echo "$am_cv_python_pyexecdir" >&6; }
5520 pyexecdir=$am_cv_python_pyexecdir
5524 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5532 FOR=for
5534 IF=if
5536 TEST=test
5538 CMP=cmp
5542 # Check for some includes for the X11 HIDD and the kernel
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5546 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5547 if ${ac_cv_path_GREP+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -z "$GREP"; then
5551 ac_path_GREP_found=false
5552 # Loop through the user's path and test for each of PROGNAME-LIST
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_prog in grep ggrep; do
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5561 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5562 # Check for GNU ac_path_GREP and select it if it is found.
5563 # Check for GNU $ac_path_GREP
5564 case `"$ac_path_GREP" --version 2>&1` in
5565 *GNU*)
5566 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5568 ac_count=0
5569 $as_echo_n 0123456789 >"conftest.in"
5570 while :
5572 cat "conftest.in" "conftest.in" >"conftest.tmp"
5573 mv "conftest.tmp" "conftest.in"
5574 cp "conftest.in" "conftest.nl"
5575 $as_echo 'GREP' >> "conftest.nl"
5576 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5578 as_fn_arith $ac_count + 1 && ac_count=$as_val
5579 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5580 # Best one so far, save it but keep looking for a better one
5581 ac_cv_path_GREP="$ac_path_GREP"
5582 ac_path_GREP_max=$ac_count
5584 # 10*(2^10) chars as input seems more than enough
5585 test $ac_count -gt 10 && break
5586 done
5587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5588 esac
5590 $ac_path_GREP_found && break 3
5591 done
5592 done
5593 done
5594 IFS=$as_save_IFS
5595 if test -z "$ac_cv_path_GREP"; then
5596 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5598 else
5599 ac_cv_path_GREP=$GREP
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5604 $as_echo "$ac_cv_path_GREP" >&6; }
5605 GREP="$ac_cv_path_GREP"
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5609 $as_echo_n "checking for egrep... " >&6; }
5610 if ${ac_cv_path_EGREP+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5614 then ac_cv_path_EGREP="$GREP -E"
5615 else
5616 if test -z "$EGREP"; then
5617 ac_path_EGREP_found=false
5618 # Loop through the user's path and test for each of PROGNAME-LIST
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_prog in egrep; do
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5627 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5628 # Check for GNU ac_path_EGREP and select it if it is found.
5629 # Check for GNU $ac_path_EGREP
5630 case `"$ac_path_EGREP" --version 2>&1` in
5631 *GNU*)
5632 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5634 ac_count=0
5635 $as_echo_n 0123456789 >"conftest.in"
5636 while :
5638 cat "conftest.in" "conftest.in" >"conftest.tmp"
5639 mv "conftest.tmp" "conftest.in"
5640 cp "conftest.in" "conftest.nl"
5641 $as_echo 'EGREP' >> "conftest.nl"
5642 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5644 as_fn_arith $ac_count + 1 && ac_count=$as_val
5645 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5646 # Best one so far, save it but keep looking for a better one
5647 ac_cv_path_EGREP="$ac_path_EGREP"
5648 ac_path_EGREP_max=$ac_count
5650 # 10*(2^10) chars as input seems more than enough
5651 test $ac_count -gt 10 && break
5652 done
5653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654 esac
5656 $ac_path_EGREP_found && break 3
5657 done
5658 done
5659 done
5660 IFS=$as_save_IFS
5661 if test -z "$ac_cv_path_EGREP"; then
5662 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5664 else
5665 ac_cv_path_EGREP=$EGREP
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5671 $as_echo "$ac_cv_path_EGREP" >&6; }
5672 EGREP="$ac_cv_path_EGREP"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5676 $as_echo_n "checking for ANSI C header files... " >&6; }
5677 if ${ac_cv_header_stdc+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <stdlib.h>
5683 #include <stdarg.h>
5684 #include <string.h>
5685 #include <float.h>
5688 main ()
5692 return 0;
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_header_stdc=yes
5697 else
5698 ac_cv_header_stdc=no
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 if test $ac_cv_header_stdc = yes; then
5703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 #include <string.h>
5708 _ACEOF
5709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 $EGREP "memchr" >/dev/null 2>&1; then :
5712 else
5713 ac_cv_header_stdc=no
5715 rm -f conftest*
5719 if test $ac_cv_header_stdc = yes; then
5720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <stdlib.h>
5725 _ACEOF
5726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "free" >/dev/null 2>&1; then :
5729 else
5730 ac_cv_header_stdc=no
5732 rm -f conftest*
5736 if test $ac_cv_header_stdc = yes; then
5737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5738 if test "$cross_compiling" = yes; then :
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <ctype.h>
5744 #include <stdlib.h>
5745 #if ((' ' & 0x0FF) == 0x020)
5746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5748 #else
5749 # define ISLOWER(c) \
5750 (('a' <= (c) && (c) <= 'i') \
5751 || ('j' <= (c) && (c) <= 'r') \
5752 || ('s' <= (c) && (c) <= 'z'))
5753 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754 #endif
5756 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5758 main ()
5760 int i;
5761 for (i = 0; i < 256; i++)
5762 if (XOR (islower (i), ISLOWER (i))
5763 || toupper (i) != TOUPPER (i))
5764 return 2;
5765 return 0;
5767 _ACEOF
5768 if ac_fn_c_try_run "$LINENO"; then :
5770 else
5771 ac_cv_header_stdc=no
5773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5774 conftest.$ac_objext conftest.beam conftest.$ac_ext
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5780 $as_echo "$ac_cv_header_stdc" >&6; }
5781 if test $ac_cv_header_stdc = yes; then
5783 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5787 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5788 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5789 inttypes.h stdint.h unistd.h
5790 do :
5791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5795 cat >>confdefs.h <<_ACEOF
5796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5797 _ACEOF
5801 done
5804 for ac_header in sys/ipc.h sys/shm.h \
5805 sys/mmap.h sys/mman.h sysexits.h \
5806 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5808 do :
5809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5810 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5812 cat >>confdefs.h <<_ACEOF
5813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5814 _ACEOF
5818 done
5821 for ac_header in sys/mount.h
5822 do :
5823 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5825 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5826 cat >>confdefs.h <<_ACEOF
5827 #define HAVE_SYS_MOUNT_H 1
5828 _ACEOF
5832 done
5835 ac_header_dirent=no
5836 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5837 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5839 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5840 if eval \${$as_ac_Header+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #include <sys/types.h>
5846 #include <$ac_hdr>
5849 main ()
5851 if ((DIR *) 0)
5852 return 0;
5854 return 0;
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"; then :
5858 eval "$as_ac_Header=yes"
5859 else
5860 eval "$as_ac_Header=no"
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 eval ac_res=\$$as_ac_Header
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5866 $as_echo "$ac_res" >&6; }
5867 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5868 cat >>confdefs.h <<_ACEOF
5869 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5870 _ACEOF
5872 ac_header_dirent=$ac_hdr; break
5875 done
5876 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5877 if test $ac_header_dirent = dirent.h; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5879 $as_echo_n "checking for library containing opendir... " >&6; }
5880 if ${ac_cv_search_opendir+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 ac_func_search_save_LIBS=$LIBS
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5887 /* Override any GCC internal prototype to avoid an error.
5888 Use char because int might match the return type of a GCC
5889 builtin and then its argument prototype would still apply. */
5890 #ifdef __cplusplus
5891 extern "C"
5892 #endif
5893 char opendir ();
5895 main ()
5897 return opendir ();
5899 return 0;
5901 _ACEOF
5902 for ac_lib in '' dir; do
5903 if test -z "$ac_lib"; then
5904 ac_res="none required"
5905 else
5906 ac_res=-l$ac_lib
5907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5909 if ac_fn_c_try_link "$LINENO"; then :
5910 ac_cv_search_opendir=$ac_res
5912 rm -f core conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext
5914 if ${ac_cv_search_opendir+:} false; then :
5915 break
5917 done
5918 if ${ac_cv_search_opendir+:} false; then :
5920 else
5921 ac_cv_search_opendir=no
5923 rm conftest.$ac_ext
5924 LIBS=$ac_func_search_save_LIBS
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5927 $as_echo "$ac_cv_search_opendir" >&6; }
5928 ac_res=$ac_cv_search_opendir
5929 if test "$ac_res" != no; then :
5930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5934 else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5936 $as_echo_n "checking for library containing opendir... " >&6; }
5937 if ${ac_cv_search_opendir+:} false; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 ac_func_search_save_LIBS=$LIBS
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5944 /* Override any GCC internal prototype to avoid an error.
5945 Use char because int might match the return type of a GCC
5946 builtin and then its argument prototype would still apply. */
5947 #ifdef __cplusplus
5948 extern "C"
5949 #endif
5950 char opendir ();
5952 main ()
5954 return opendir ();
5956 return 0;
5958 _ACEOF
5959 for ac_lib in '' x; do
5960 if test -z "$ac_lib"; then
5961 ac_res="none required"
5962 else
5963 ac_res=-l$ac_lib
5964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5966 if ac_fn_c_try_link "$LINENO"; then :
5967 ac_cv_search_opendir=$ac_res
5969 rm -f core conftest.err conftest.$ac_objext \
5970 conftest$ac_exeext
5971 if ${ac_cv_search_opendir+:} false; then :
5972 break
5974 done
5975 if ${ac_cv_search_opendir+:} false; then :
5977 else
5978 ac_cv_search_opendir=no
5980 rm conftest.$ac_ext
5981 LIBS=$ac_func_search_save_LIBS
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5984 $as_echo "$ac_cv_search_opendir" >&6; }
5985 ac_res=$ac_cv_search_opendir
5986 if test "$ac_res" != no; then :
5987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5994 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5995 if ${ac_cv_header_stat_broken+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 #include <sys/types.h>
6001 #include <sys/stat.h>
6003 #if defined S_ISBLK && defined S_IFDIR
6004 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6005 #endif
6007 #if defined S_ISBLK && defined S_IFCHR
6008 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6009 #endif
6011 #if defined S_ISLNK && defined S_IFREG
6012 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6013 #endif
6015 #if defined S_ISSOCK && defined S_IFREG
6016 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6017 #endif
6019 _ACEOF
6020 if ac_fn_c_try_compile "$LINENO"; then :
6021 ac_cv_header_stat_broken=no
6022 else
6023 ac_cv_header_stat_broken=yes
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6028 $as_echo "$ac_cv_header_stat_broken" >&6; }
6029 if test $ac_cv_header_stat_broken = yes; then
6031 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6036 $as_echo_n "checking for ANSI C header files... " >&6; }
6037 if ${ac_cv_header_stdc+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 #include <stdlib.h>
6043 #include <stdarg.h>
6044 #include <string.h>
6045 #include <float.h>
6048 main ()
6052 return 0;
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056 ac_cv_header_stdc=yes
6057 else
6058 ac_cv_header_stdc=no
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 if test $ac_cv_header_stdc = yes; then
6063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 #include <string.h>
6068 _ACEOF
6069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6070 $EGREP "memchr" >/dev/null 2>&1; then :
6072 else
6073 ac_cv_header_stdc=no
6075 rm -f conftest*
6079 if test $ac_cv_header_stdc = yes; then
6080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 #include <stdlib.h>
6085 _ACEOF
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "free" >/dev/null 2>&1; then :
6089 else
6090 ac_cv_header_stdc=no
6092 rm -f conftest*
6096 if test $ac_cv_header_stdc = yes; then
6097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6098 if test "$cross_compiling" = yes; then :
6100 else
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 #include <ctype.h>
6104 #include <stdlib.h>
6105 #if ((' ' & 0x0FF) == 0x020)
6106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6108 #else
6109 # define ISLOWER(c) \
6110 (('a' <= (c) && (c) <= 'i') \
6111 || ('j' <= (c) && (c) <= 'r') \
6112 || ('s' <= (c) && (c) <= 'z'))
6113 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6114 #endif
6116 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6118 main ()
6120 int i;
6121 for (i = 0; i < 256; i++)
6122 if (XOR (islower (i), ISLOWER (i))
6123 || toupper (i) != TOUPPER (i))
6124 return 2;
6125 return 0;
6127 _ACEOF
6128 if ac_fn_c_try_run "$LINENO"; then :
6130 else
6131 ac_cv_header_stdc=no
6133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6134 conftest.$ac_objext conftest.beam conftest.$ac_ext
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6140 $as_echo "$ac_cv_header_stdc" >&6; }
6141 if test $ac_cv_header_stdc = yes; then
6143 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6148 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6149 if ${ac_cv_header_sys_wait_h+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 #include <sys/types.h>
6155 #include <sys/wait.h>
6156 #ifndef WEXITSTATUS
6157 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6158 #endif
6159 #ifndef WIFEXITED
6160 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6161 #endif
6164 main ()
6166 int s;
6167 wait (&s);
6168 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6170 return 0;
6172 _ACEOF
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174 ac_cv_header_sys_wait_h=yes
6175 else
6176 ac_cv_header_sys_wait_h=no
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6181 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6182 if test $ac_cv_header_sys_wait_h = yes; then
6184 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6189 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6190 if ${ac_cv_header_time+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <sys/types.h>
6196 #include <sys/time.h>
6197 #include <time.h>
6200 main ()
6202 if ((struct tm *) 0)
6203 return 0;
6205 return 0;
6207 _ACEOF
6208 if ac_fn_c_try_compile "$LINENO"; then :
6209 ac_cv_header_time=yes
6210 else
6211 ac_cv_header_time=no
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6216 $as_echo "$ac_cv_header_time" >&6; }
6217 if test $ac_cv_header_time = yes; then
6219 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6223 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6224 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6226 cat >>confdefs.h <<_ACEOF
6227 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6228 _ACEOF
6231 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6236 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6237 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6239 cat >>confdefs.h <<_ACEOF
6240 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6241 _ACEOF
6244 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6246 else
6247 case " $LIBOBJS " in
6248 *" fileblocks.$ac_objext "* ) ;;
6249 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6251 esac
6256 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6257 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6259 cat >>confdefs.h <<_ACEOF
6260 #define HAVE_STRUCT_STAT_ST_RDEV 1
6261 _ACEOF
6264 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6270 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6271 if ${ac_cv_struct_tm+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #include <sys/types.h>
6277 #include <time.h>
6280 main ()
6282 struct tm tm;
6283 int *p = &tm.tm_sec;
6284 return !p;
6286 return 0;
6288 _ACEOF
6289 if ac_fn_c_try_compile "$LINENO"; then :
6290 ac_cv_struct_tm=time.h
6291 else
6292 ac_cv_struct_tm=sys/time.h
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6297 $as_echo "$ac_cv_struct_tm" >&6; }
6298 if test $ac_cv_struct_tm = sys/time.h; then
6300 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6304 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6305 #include <$ac_cv_struct_tm>
6308 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6310 cat >>confdefs.h <<_ACEOF
6311 #define HAVE_STRUCT_TM_TM_ZONE 1
6312 _ACEOF
6317 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6319 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6321 else
6322 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6324 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6325 ac_have_decl=1
6326 else
6327 ac_have_decl=0
6330 cat >>confdefs.h <<_ACEOF
6331 #define HAVE_DECL_TZNAME $ac_have_decl
6332 _ACEOF
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6335 $as_echo_n "checking for tzname... " >&6; }
6336 if ${ac_cv_var_tzname+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 #include <time.h>
6342 #if !HAVE_DECL_TZNAME
6343 extern char *tzname[];
6344 #endif
6347 main ()
6349 return tzname[0][0];
6351 return 0;
6353 _ACEOF
6354 if ac_fn_c_try_link "$LINENO"; then :
6355 ac_cv_var_tzname=yes
6356 else
6357 ac_cv_var_tzname=no
6359 rm -f core conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6363 $as_echo "$ac_cv_var_tzname" >&6; }
6364 if test $ac_cv_var_tzname = yes; then
6366 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6371 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6372 if test "x$ac_cv_type_off_t" = xyes; then :
6374 else
6376 cat >>confdefs.h <<_ACEOF
6377 #define off_t long int
6378 _ACEOF
6382 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6383 if test "x$ac_cv_type_pid_t" = xyes; then :
6385 else
6387 cat >>confdefs.h <<_ACEOF
6388 #define pid_t int
6389 _ACEOF
6393 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6394 if test "x$ac_cv_type_size_t" = xyes; then :
6396 else
6398 cat >>confdefs.h <<_ACEOF
6399 #define size_t unsigned int
6400 _ACEOF
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6405 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6406 if ${ac_cv_type_uid_t+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 #include <sys/types.h>
6413 _ACEOF
6414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6415 $EGREP "uid_t" >/dev/null 2>&1; then :
6416 ac_cv_type_uid_t=yes
6417 else
6418 ac_cv_type_uid_t=no
6420 rm -f conftest*
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6424 $as_echo "$ac_cv_type_uid_t" >&6; }
6425 if test $ac_cv_type_uid_t = no; then
6427 $as_echo "#define uid_t int" >>confdefs.h
6430 $as_echo "#define gid_t int" >>confdefs.h
6435 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6436 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6438 cat >>confdefs.h <<_ACEOF
6439 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6440 _ACEOF
6446 # Look for some functions
6447 for ac_func in getpagesize kqueue statfs statvfs \
6448 clone kse_create rfork_thread thr_create sa_register \
6449 getcontext makecontext setcontext sigaltstack swapcontext
6450 do :
6451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6452 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6453 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6454 cat >>confdefs.h <<_ACEOF
6455 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6456 _ACEOF
6459 done
6465 for ac_header in $ac_header_list
6466 do :
6467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6468 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6471 cat >>confdefs.h <<_ACEOF
6472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473 _ACEOF
6477 done
6486 for ac_func in getpagesize
6487 do :
6488 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6489 if test "x$ac_cv_func_getpagesize" = xyes; then :
6490 cat >>confdefs.h <<_ACEOF
6491 #define HAVE_GETPAGESIZE 1
6492 _ACEOF
6495 done
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6498 $as_echo_n "checking for working mmap... " >&6; }
6499 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test "$cross_compiling" = yes; then :
6503 ac_cv_func_mmap_fixed_mapped=no
6504 else
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 $ac_includes_default
6508 /* malloc might have been renamed as rpl_malloc. */
6509 #undef malloc
6511 /* Thanks to Mike Haertel and Jim Avera for this test.
6512 Here is a matrix of mmap possibilities:
6513 mmap private not fixed
6514 mmap private fixed at somewhere currently unmapped
6515 mmap private fixed at somewhere already mapped
6516 mmap shared not fixed
6517 mmap shared fixed at somewhere currently unmapped
6518 mmap shared fixed at somewhere already mapped
6519 For private mappings, we should verify that changes cannot be read()
6520 back from the file, nor mmap's back from the file at a different
6521 address. (There have been systems where private was not correctly
6522 implemented like the infamous i386 svr4.0, and systems where the
6523 VM page cache was not coherent with the file system buffer cache
6524 like early versions of FreeBSD and possibly contemporary NetBSD.)
6525 For shared mappings, we should conversely verify that changes get
6526 propagated back to all the places they're supposed to be.
6528 Grep wants private fixed already mapped.
6529 The main things grep needs to know about mmap are:
6530 * does it exist and is it safe to write into the mmap'd area
6531 * how to use it (BSD variants) */
6533 #include <fcntl.h>
6534 #include <sys/mman.h>
6536 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6537 char *malloc ();
6538 #endif
6540 /* This mess was copied from the GNU getpagesize.h. */
6541 #ifndef HAVE_GETPAGESIZE
6542 # ifdef _SC_PAGESIZE
6543 # define getpagesize() sysconf(_SC_PAGESIZE)
6544 # else /* no _SC_PAGESIZE */
6545 # ifdef HAVE_SYS_PARAM_H
6546 # include <sys/param.h>
6547 # ifdef EXEC_PAGESIZE
6548 # define getpagesize() EXEC_PAGESIZE
6549 # else /* no EXEC_PAGESIZE */
6550 # ifdef NBPG
6551 # define getpagesize() NBPG * CLSIZE
6552 # ifndef CLSIZE
6553 # define CLSIZE 1
6554 # endif /* no CLSIZE */
6555 # else /* no NBPG */
6556 # ifdef NBPC
6557 # define getpagesize() NBPC
6558 # else /* no NBPC */
6559 # ifdef PAGESIZE
6560 # define getpagesize() PAGESIZE
6561 # endif /* PAGESIZE */
6562 # endif /* no NBPC */
6563 # endif /* no NBPG */
6564 # endif /* no EXEC_PAGESIZE */
6565 # else /* no HAVE_SYS_PARAM_H */
6566 # define getpagesize() 8192 /* punt totally */
6567 # endif /* no HAVE_SYS_PARAM_H */
6568 # endif /* no _SC_PAGESIZE */
6570 #endif /* no HAVE_GETPAGESIZE */
6573 main ()
6575 char *data, *data2, *data3;
6576 const char *cdata2;
6577 int i, pagesize;
6578 int fd, fd2;
6580 pagesize = getpagesize ();
6582 /* First, make a file with some known garbage in it. */
6583 data = (char *) malloc (pagesize);
6584 if (!data)
6585 return 1;
6586 for (i = 0; i < pagesize; ++i)
6587 *(data + i) = rand ();
6588 umask (0);
6589 fd = creat ("conftest.mmap", 0600);
6590 if (fd < 0)
6591 return 2;
6592 if (write (fd, data, pagesize) != pagesize)
6593 return 3;
6594 close (fd);
6596 /* Next, check that the tail of a page is zero-filled. File must have
6597 non-zero length, otherwise we risk SIGBUS for entire page. */
6598 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6599 if (fd2 < 0)
6600 return 4;
6601 cdata2 = "";
6602 if (write (fd2, cdata2, 1) != 1)
6603 return 5;
6604 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6605 if (data2 == MAP_FAILED)
6606 return 6;
6607 for (i = 0; i < pagesize; ++i)
6608 if (*(data2 + i))
6609 return 7;
6610 close (fd2);
6611 if (munmap (data2, pagesize))
6612 return 8;
6614 /* Next, try to mmap the file at a fixed address which already has
6615 something else allocated at it. If we can, also make sure that
6616 we see the same garbage. */
6617 fd = open ("conftest.mmap", O_RDWR);
6618 if (fd < 0)
6619 return 9;
6620 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6621 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6622 return 10;
6623 for (i = 0; i < pagesize; ++i)
6624 if (*(data + i) != *(data2 + i))
6625 return 11;
6627 /* Finally, make sure that changes to the mapped area do not
6628 percolate back to the file as seen by read(). (This is a bug on
6629 some variants of i386 svr4.0.) */
6630 for (i = 0; i < pagesize; ++i)
6631 *(data2 + i) = *(data2 + i) + 1;
6632 data3 = (char *) malloc (pagesize);
6633 if (!data3)
6634 return 12;
6635 if (read (fd, data3, pagesize) != pagesize)
6636 return 13;
6637 for (i = 0; i < pagesize; ++i)
6638 if (*(data + i) != *(data3 + i))
6639 return 14;
6640 close (fd);
6641 return 0;
6643 _ACEOF
6644 if ac_fn_c_try_run "$LINENO"; then :
6645 ac_cv_func_mmap_fixed_mapped=yes
6646 else
6647 ac_cv_func_mmap_fixed_mapped=no
6649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6650 conftest.$ac_objext conftest.beam conftest.$ac_ext
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6655 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6656 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6658 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6661 rm -f conftest.mmap conftest.txt
6666 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6667 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6668 aros_config_ldflags=""
6670 aros_shared_default=yes
6672 aros_shared_cflags="-fPIC"
6673 aros_shared_aflags=""
6674 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6675 aros_kernel_ldflags="-Wl,-rpath,./lib"
6677 aros_kernel_ar_flags="cr"
6678 aros_target_ar_flags="cr"
6679 aros_target_nm_flags="-C -ul"
6680 aros_target_strip_flags="--strip-unneeded -R.comment"
6682 aros_compiler_libs=
6683 aros_arch_libs=
6685 aros_target_genmap="-Wl,-Map -Xlinker"
6687 # Native flavour stuff
6688 aros_serial_debug="0"
6690 # Palm native flavour stuff
6691 aros_palm_debug_hack="0"
6693 # Unix flavour stuff
6694 aros_nesting_supervisor="0"
6696 # Collect-aros stuff: "-ius" to ignore undefined symbols
6697 ignore_undefined_symbols=""
6699 # Check for X11 by default
6700 need_x11="auto"
6702 #-----------------------------------------------------------------------------
6705 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6706 # it switched on by default, and we use the host compiler, so it compiles AROS
6707 # code with this enabled resulting in link failures as we don't have support
6708 # for it.
6710 # We use two methods to disable it. For the host compiler (used to compile
6711 # some hosted modules), we test to see if the compiler supports stack
6712 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6713 # work on all platforms.
6715 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6716 # (this is done unconditionally, as it should have no effect on compilers
6717 # without the stack protection feature). This may be specific to the way that
6718 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6719 # strong enough to disable it in a generic way though, so we'll live with it
6720 # until another vendor ships GCC with it enabled in a different way, and deal
6721 # with it then.
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6725 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6726 save_cflags="$CFLAGS"
6727 CFLAGS="$CFLAGS -fno-stack-protector"
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6732 main ()
6736 return 0;
6738 _ACEOF
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740 use_no_stack_protector="yes"
6741 else
6742 use_no_stack_protector="no"
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6746 $as_echo "$use_no_stack_protector" >&6; }
6747 if test "x-$use_no_stack_protector" = "x-yes" ; then
6748 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6750 CFLAGS="$save_cflags"
6752 #-----------------------------------------------------------------------------
6754 # Disable pointer-signedness warnings if the compiler recognises the option
6755 # (this only works for the host compiler at the moment)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6758 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6759 save_cflags="$CFLAGS"
6760 CFLAGS="$CFLAGS -Wno-pointer-sign"
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6765 main ()
6769 return 0;
6771 _ACEOF
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773 use_no_sign_warning="yes"
6774 else
6775 use_no_sign_warning="no"
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6779 $as_echo "$use_no_sign_warning" >&6; }
6780 if test "x-$use_no_sign_warning" = "x-yes" ; then
6781 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6783 CFLAGS="$save_cflags"
6785 #-----------------------------------------------------------------------------
6787 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6790 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6791 save_cflags="$CFLAGS"
6792 CFLAGS="$CFLAGS -fgnu89-inline"
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6797 main ()
6801 return 0;
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805 use_gnu89_inline="yes"
6806 else
6807 use_gnu89_inline="no"
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6811 $as_echo "$use_gnu89_inline" >&6; }
6812 if test "x-$use_gnu89_inline" = "x-yes" ; then
6813 gnu89_inline="-fgnu89-inline"
6815 CFLAGS="$save_cflags"
6817 #-----------------------------------------------------------------------------
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6820 $as_echo_n "checking for type of build... " >&6; }
6821 # Check whether --enable-build_type was given.
6822 if test "${enable_build_type+set}" = set; then :
6823 enableval=$enable_build_type; build_type=$enableval
6824 else
6825 build_type="personal"
6829 if test "$build_type" = "nightly"; then
6830 build_type_string="NIGHTLY"
6831 elif test "$build_type" = "snapshot"; then
6832 build_type_string="SNAPSHOT"
6833 elif test "$build_type" = "milestone"; then
6834 build_type_string="MILESTONE"
6835 elif test "$build_type" = "release"; then
6836 build_type_string="RELEASE"
6837 else
6838 build_type_string="PERSONAL"
6839 build_type="personal"
6842 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6845 $as_echo "$build_type" >&6; }
6847 #-----------------------------------------------------------------------------
6848 all_debug_types="messages stack modules mungwall symbols"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6851 $as_echo_n "checking which debug types to enable... " >&6; }
6852 # Check whether --enable-debug was given.
6853 if test "${enable_debug+set}" = set; then :
6854 enableval=$enable_debug; debug="$enableval"
6855 else
6856 debug=""
6860 if test "$debug" = "" -o "$debug" = "no"; then
6861 debug="none"
6862 elif test "$debug" = "yes"; then
6863 debug="all"
6866 if test "$debug" = "all" ; then
6867 debug="messages stack modules symbols"
6868 for d in $all_debug_types; do
6869 export aros_${d}_debug="1"
6870 done
6871 else
6872 for d in $all_debug_types; do
6873 export aros_${d}_debug="0"
6874 done
6877 if test "$debug" != "none"; then
6878 debug=`echo $debug | sed s/,/\ /g`
6879 for d in $debug; do
6880 found="0"
6881 for d2 in $all_debug_types; do
6882 if test "$d2" = "$d"; then
6883 found="1"
6884 break
6886 done
6887 if test "$found" = "0"; then
6888 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6890 export aros_${d}_debug="1"
6891 done
6892 aros_debug="yes"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6895 $as_echo "$debug" >&6; }
6897 if test "$aros_messages_debug" = "1"; then
6898 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6899 else
6900 aros_messages_debug=""
6902 if test "$aros_symbols_debug" = "1"; then
6903 aros_symbols_debug="-g"
6904 else
6905 aros_symbols_debug=""
6908 # These are the flags to pass when compiling debugged programs
6909 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6910 aros_debug_aflags=""
6911 aros_debug_ldflags="$aros_symbols_debug"
6913 #-----------------------------------------------------------------------------
6914 # Checking if we should build crosstools..
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6916 $as_echo_n "checking whether to build crosstools... " >&6; }
6917 # Check whether --enable-crosstools was given.
6918 if test "${enable_crosstools+set}" = set; then :
6919 enableval=$enable_crosstools; crosstools="$enableval"
6920 else
6921 crosstools="no"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6925 $as_echo "$crosstools" >&6; }
6927 #-----------------------------------------------------------------------------
6928 # Checking for distcc and ccache.
6930 # Always apply the transforms in this particular order. Basically you should
6931 # always run 'ccache distcc compiler' in that order for the best performance.
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6934 $as_echo_n "checking whether to enable distcc... " >&6; }
6935 # Check whether --enable-distcc was given.
6936 if test "${enable_distcc+set}" = set; then :
6937 enableval=$enable_distcc; distcc="$enableval"
6938 else
6939 distcc="no"
6942 if test "$distcc" != "" -a "$distcc" != "no"; then
6943 # AC_CHECK_PROG will print out the result in this case
6944 # Extract the first word of "distcc", so it can be a program name with args.
6945 set dummy distcc; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_path_DISTCC+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 case $DISTCC in
6952 [\\/]* | ?:[\\/]*)
6953 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6967 done
6968 done
6969 IFS=$as_save_IFS
6971 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6973 esac
6975 DISTCC=$ac_cv_path_DISTCC
6976 if test -n "$DISTCC"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6978 $as_echo "$DISTCC" >&6; }
6979 else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6991 $as_echo_n "checking whether to enable ccache... " >&6; }
6992 # Check whether --enable-ccache was given.
6993 if test "${enable_ccache+set}" = set; then :
6994 enableval=$enable_ccache; ccache="$enableval"
6995 else
6996 ccache="no"
6999 if test "$ccache" != "" -a "$ccache" != "no"; then
7000 # AC_CHECK_PROG will print out the result in this case
7001 # Extract the first word of "ccache", so it can be a program name with args.
7002 set dummy ccache; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_CCACHE+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$CCACHE"; then
7009 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_CCACHE="ccache"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7022 done
7023 done
7024 IFS=$as_save_IFS
7028 CCACHE=$ac_cv_prog_CCACHE
7029 if test -n "$CCACHE"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7031 $as_echo "$CCACHE" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7043 #-----------------------------------------------------------------------------
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7045 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7047 # Check whether --with-gcc-version was given.
7048 if test "${with_gcc_version+set}" = set; then :
7049 withval=$with_gcc_version; target_tool_version="$withval"
7050 else
7051 target_tool_version="default"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7055 $as_echo "$target_tool_version" >&6; }
7057 #-----------------------------------------------------------------------------
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7059 $as_echo_n "checking what optimization flags to use... " >&6; }
7061 # Check whether --with-optimization was given.
7062 if test "${with_optimization+set}" = set; then :
7063 withval=$with_optimization; optimization="$withval"
7064 else
7065 optimization="unknown"
7068 if test "$optimization" = "unknown"; then
7069 if test "$debug" != "none"; then
7070 optimization="-O0"
7071 else
7072 optimization="-O2"
7075 aros_config_cflags="$aros_config_cflags $optimization"
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7077 $as_echo "$optimization" >&6; }
7079 #-----------------------------------------------------------------------------
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7081 $as_echo_n "checking what paranoia flags to use... " >&6; }
7083 # Check whether --with-paranoia was given.
7084 if test "${with_paranoia+set}" = set; then :
7085 withval=$with_paranoia; paranoia_flags="$withval"
7086 else
7087 paranoia_flags="default"
7090 if test "$paranoia_flags" = "default"; then
7091 paranoia_flags=""
7092 else if test "$paranoia_flags" = "yes"; then
7093 paranoia_flags="-Wall -Werror"
7094 fi fi
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7096 $as_echo "$paranoia_flags" >&6; }
7097 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7099 #-----------------------------------------------------------------------------
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7101 $as_echo_n "checking what target variant to enable... " >&6; }
7102 # Check whether --enable-target_variant was given.
7103 if test "${enable_target_variant+set}" = set; then :
7104 enableval=$enable_target_variant; target_variant=$enableval
7105 else
7106 target_variant=""
7109 if test "$target_variant" = ""; then
7110 aros_target_variant=""
7111 aros_target_suffix=""
7112 enableval="none"
7113 else
7114 aros_target_variant="$target_variant"
7115 aros_target_suffix="-$target_variant"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7118 $as_echo "$enableval" >&6; }
7120 #-----------------------------------------------------------------------------
7121 # Target-specific defaults. You can override then on a per-target basis.
7123 # Bootloader name. Currently used by PC target.
7124 target_bootloader="none"
7126 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7127 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7128 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7129 if test "$crosstools" != "yes"; then
7130 target_tool_prefix=${target_cpu}-elf-
7131 else
7132 target_tool_prefix=${target_cpu}-aros-
7135 #-----------------------------------------------------------------------------
7136 # Additional options for some specific targets
7138 case "$aros_target_variant" in
7139 ios)
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7141 $as_echo_n "checking XCode path... " >&6; }
7143 # Check whether --with-xcode was given.
7144 if test "${with_xcode+set}" = set; then :
7145 withval=$with_xcode; aros_xcode_path="$withval"
7146 else
7147 aros_xcode_path="/Developer"
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7151 $as_echo "$aros_xcode_path" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7154 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7156 # Check whether --with-sdk-version was given.
7157 if test "${with_sdk_version+set}" = set; then :
7158 withval=$with_sdk_version; aros_sdk_version="$withval"
7159 else
7160 aros_sdk_version="4.1"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7164 $as_echo "$aros_sdk_version" >&6; }
7168 "android")
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7170 $as_echo_n "checking Android SDK path... " >&6; }
7172 # Check whether --with-sdk was given.
7173 if test "${with_sdk+set}" = set; then :
7174 withval=$with_sdk; aros_android_sdk="$withval"
7175 else
7176 aros_android_sdk=$default_android_sdk
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7180 $as_echo "$aros_android_sdk" >&6; }
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7183 $as_echo_n "checking Android NDK path... " >&6; }
7185 # Check whether --with-ndk was given.
7186 if test "${with_ndk+set}" = set; then :
7187 withval=$with_ndk; aros_android_ndk="$withval"
7188 else
7189 aros_android_ndk="none"
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7193 $as_echo "$aros_android_ndk" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7196 $as_echo_n "checking what Android SDK version to use... " >&6; }
7198 # Check whether --with-sdk-version was given.
7199 if test "${with_sdk_version+set}" = set; then :
7200 withval=$with_sdk_version; aros_sdk_version="$withval"
7201 else
7202 aros_sdk_version="12"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7206 $as_echo "$aros_sdk_version" >&6; }
7208 if test "$aros_android_ndk" != "none"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7210 $as_echo_n "checking what Android NDK version to use... " >&6; }
7212 # Check whether --with-ndk-version was given.
7213 if test "${with_ndk_version+set}" = set; then :
7214 withval=$with_ndk_version; aros_ndk_version="$withval"
7215 else
7216 aros_ndk_version="9"
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7220 $as_echo "$aros_ndk_version" >&6; }
7223 export PATH="$aros_android_sdk/tools:$PATH"
7224 # Extract the first word of "$android_tool", so it can be a program name with args.
7225 set dummy $android_tool; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_path_android_tool+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 case $android_tool in
7232 [\\/]* | ?:[\\/]*)
7233 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7247 done
7248 done
7249 IFS=$as_save_IFS
7252 esac
7254 android_tool=$ac_cv_path_android_tool
7255 if test -n "$android_tool"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7257 $as_echo "$android_tool" >&6; }
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7264 if test "$android_tool" = ""; then
7265 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7268 aros_android_level=android-$aros_sdk_version
7269 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7270 echo "Platform $aros_android_level is not installed in your SDK"
7271 echo "Use --with-sdk-version=<API level number> to select another platform version"
7272 echo "You can check what plaform versions are installed in your SDK"
7273 echo "by examining contents of $aros_android_sdk/platforms directory"
7274 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7277 # Extract the first word of "ant", so it can be a program name with args.
7278 set dummy ant; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_path_ant+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 case $ant in
7285 [\\/]* | ?:[\\/]*)
7286 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7300 done
7301 done
7302 IFS=$as_save_IFS
7305 esac
7307 ant=$ac_cv_path_ant
7308 if test -n "$ant"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7310 $as_echo "$ant" >&6; }
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7317 if test "$ant" = ""; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7319 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7322 if test "$host_os" = "mingw32"; then
7323 android_tool="cmd //c $android_tool"
7327 esac
7329 #-----------------------------------------------------------------------------
7330 # This is the target configuration switch.
7331 case "$target_os" in
7332 linux*)
7333 aros_target_arch="linux"
7334 aros_target_family="unix"
7335 case "$target_cpu" in
7336 *m68k*)
7337 aros_target_cpu="m68k"
7338 aros_object_format="m68kelf"
7339 aros_flavour="emulcompat"
7340 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7341 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7342 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7343 gcc_target_cpu="mc68000"
7345 *i?86*)
7346 aros_target_cpu="i386"
7347 aros_object_format="elf_i386"
7348 aros_flavour="emulation"
7349 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7350 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7351 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7352 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7353 aros_config_ldflags="-m32 -march=i486"
7354 aros_kernel_ldflags="-melf_i386"
7355 aros_default_wbdepth=8
7356 gcc_target_cpu="i386"
7357 pci_hidd_target="hidd-pci-linux"
7358 android_tool_dir_prefix="x86"
7359 android_tool_prefix="i686-android-linux"
7360 android_ndk_arch="x86"
7362 *x86_64*)
7363 aros_target_cpu="x86_64"
7364 aros_object_format="elf_x86_64"
7365 aros_flavour="emulation"
7366 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7367 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7368 aros_default_wbdepth=8
7369 pci_hidd_target="hidd-pci-linux"
7371 *powerpc*)
7372 aros_target_cpu="ppc"
7373 aros_object_format="elf32ppc"
7374 aros_flavour="emulation"
7375 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7376 aros_default_wbdepth=8
7377 gcc_target_cpu="ppc"
7379 # TODO
7380 # Same as powerpc, but I need this for the nightly build to work again.
7381 # Actually, the nightly should be made working with powerpc target.
7382 # That just was too much work for the moment, another week or two.
7383 *ppc*)
7384 aros_target_cpu="ppc"
7385 aros_object_format="elf32ppc"
7386 aros_flavour="emulation"
7387 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7388 aros_default_wbdepth=8
7389 gcc_target_cpu="ppc"
7391 *arm*)
7392 aros_target_cpu="arm"
7393 aros_object_format="armelf_linux_eabi"
7394 aros_flavour="emulation"
7395 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7396 gcc_target_cpu="arm"
7397 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing -fno-omit-frame-pointer"
7398 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7399 aros_arch_libs="-laeabi"
7400 android_tool_dir_prefix="arm-linux-androideabi"
7401 android_tool_prefix="arm-linux-androideabi"
7402 android_ndk_arch="arm"
7405 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7407 esac
7408 case "$aros_target_variant" in
7409 android)
7411 if test "$android_ndk_arch" = ""; then
7412 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7415 aros_default_wbwidth=320
7416 aros_default_wbheight=480
7417 if test "$aros_android_ndk" = "none"; then
7418 aros_kernel_cflags="-mandroid"
7419 aros_kernel_ldflags="-mandroid"
7420 CFLAGS="-mandroid"
7421 else
7422 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7423 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7424 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7425 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7426 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7427 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7429 need_x11=no
7430 x11_hidd_target=kernel-hidd-androidgfx-kobj
7431 target_tool_prefix="$android_tool_prefix-"
7433 esac
7437 aros_target_arch="pc"
7438 aros_shared_default="no"
7439 target_bootloader="grub2"
7440 case "$target_cpu" in
7441 *i?86*)
7442 aros_target_cpu="i386"
7445 if test "$aros_object_format" = "" ; then
7446 aros_object_format="elf_i386"
7448 aros_flavour="standalone"
7449 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7450 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7451 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7452 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7453 aros_config_ldflags="-m32 -march=i486"
7454 aros_kernel_ldflags="-melf_i386"
7455 aros_default_wbwidth=640
7456 aros_default_wbheight=480
7457 gcc_target_cpu="i386"
7459 *x86_64*)
7460 aros_target_cpu="x86_64"
7461 aros_serial_debug=1
7462 if test "$aros_object_format" = "" ; then
7463 aros_object_format="elf_x86_64"
7465 aros_flavour="standalone"
7466 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7467 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7468 aros_kernel_ldflags=""
7469 aros_default_wbwidth=640
7470 aros_default_wbheight=480
7473 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7475 esac
7478 prep)
7479 aros_target_arch="prep"
7480 aros_shared_default="no"
7481 aros_target_cpu="ppc"
7482 aros_object_format="elf32ppc"
7483 aros_flavour="ppcnative"
7484 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7485 aros_kernel_ldflags=""
7486 aros_default_wbwidth=640
7487 aros_default_wbheight=480
7488 gcc_target_cpu="ppc"
7491 freebsd*)
7492 aros_target_arch="freebsd"
7493 aros_target_family="unix"
7494 aros_target_cpu="i386"
7495 aros_flavour="emulation"
7496 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7497 gcc_target_cpu="i386"
7499 aros_target_strip_flags="-x"
7502 darwin*)
7503 aros_target_arch="darwin"
7504 aros_target_family="unix"
7505 aros_flavour="emulation"
7506 case "$target_cpu" in
7507 *i?86*)
7508 aros_ios_platform="iPhoneSimulator"
7509 aros_target_cpu="i386"
7510 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7511 aros_kernel_ldflags=""
7512 aros_macosx_version="10.4"
7513 aros_default_wbdepth=8
7514 gcc_target_cpu="i386"
7515 aros_object_format="elf_i386"
7516 aros_kernel_ar_flags="-cr"
7517 aros_target_strip_flags="-x"
7518 target_tool_prefix="i686-apple-darwin10-"
7519 target_tool_flags="-m32"
7521 *x86_64*)
7522 aros_target_cpu="x86_64"
7523 aros_object_format="elf_x86_64"
7524 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7525 aros_macosx_version="10.6"
7526 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7527 aros_kernel_cflags="-m64"
7528 aros_kernel_ldflags="-m64"
7529 aros_target_cflags="-mcmodel=large"
7530 aros_default_wbdepth=8
7531 aros_kernel_ar="ar"
7532 aros_kernel_ar_flags="-cr"
7533 aros_kernel_ld="ld"
7534 aros_kernel_ranlib="ranlib"
7535 target_tool_prefix="i686-apple-darwin10-"
7537 *ppc*)
7538 aros_target_cpu="ppc"
7539 aros_object_format="elf32ppc"
7540 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7541 aros_kernel_ldflags=""
7542 aros_macosx_version="10.0"
7543 aros_default_wbdepth=8
7544 gcc_target_cpu="ppc"
7545 aros_kernel_ar="ar"
7546 aros_kernel_ar_flags="-cr"
7547 aros_kernel_ld="ld -arch ppc"
7548 aros_kernel_ranlib="ranlib -arch ppc"
7549 target_tool_prefix="powerpc-apple-darwin10-"
7551 *arm*)
7552 aros_ios_platform="iPhoneOS"
7553 aros_target_cpu="arm"
7554 aros_object_format="armelf_linux_eabi"
7555 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7556 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7557 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7558 aros_arch_libs="-laeabi"
7559 aros_default_wbdepth=8
7560 gcc_target_cpu="arm"
7561 aros_kernel_ar="ar"
7562 aros_kernel_ar_flags="-cr"
7563 aros_kernel_ld="ld -arch arm"
7564 aros_kernel_ranlib="ranlib -arch arm"
7565 target_tool_prefix="arm-apple-darwin10-"
7566 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7569 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7571 esac
7572 case "$aros_target_variant" in
7573 ios)
7574 aros_ios_version="3.0"
7575 aros_default_wbwidth=320
7576 aros_default_wbheight=480
7577 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7578 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7579 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7580 need_x11=no
7581 # This is here because it may depend on iOS or SDK version
7582 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7583 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7584 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7587 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7588 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7590 esac
7593 dragonfly*)
7594 aros_target_arch="dragonfly"
7595 aros_target_family="unix"
7596 aros_flavour="emulation"
7597 case "$target_cpu" in
7598 *i?86*)
7599 aros_target_cpu="i386"
7600 aros_object_format="elf_i386"
7601 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7603 *x86_64*)
7604 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7605 aros_target_cpu="x86_64"
7606 aros_object_format="elf_x86_64"
7607 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7610 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7612 esac
7615 netbsd*)
7616 aros_target_arch="netbsd"
7617 aros_target_family="unix"
7618 case "$target_cpu" in
7619 *m68k*)
7620 aros_target_cpu="m68k"
7621 aros_object_format="m68kelf"
7622 aros_flavour="emulcompat"
7623 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7624 gcc_target_cpu="mc68000"
7626 *i?86*)
7627 aros_target_cpu="i386"
7628 aros_object_format="elf_i386"
7629 aros_flavour="emulation"
7630 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7631 aros_default_wbdepth=8
7632 gcc_target_cpu="i386"
7635 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7637 esac
7638 aros_target_genmap="-Wl,-M -Xlinker >"
7639 aros_flavour="emulation"
7640 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7643 openbsd*)
7644 aros_target_arch="openbsd"
7645 aros_target_family="unix"
7646 case "$target_cpu" in
7647 *i?86*)
7648 aros_target_cpu="i386"
7649 aros_object_format="elf_i386"
7650 aros_flavour="emulation"
7651 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7652 gcc_target_cpu="i386"
7655 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7657 esac
7658 aros_target_genmap="-Wl,-M -Xlinker >"
7659 aros_target_nm_flags="-u"
7660 aros_flavour="emulation"
7663 solaris*)
7664 aros_target_arch="solaris"
7665 aros_target_family="unix"
7666 case "$target_cpu" in
7667 *i?86*)
7668 aros_target_cpu="i386"
7669 aros_object_format="elf_i386"
7670 aros_flavour="emulation"
7671 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7672 aros_default_wbdepth=8
7673 gcc_target_cpu="i386"
7675 *sparc*)
7676 aros_target_cpu="sparc"
7677 aros_object_format="elf_sparc"
7678 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7679 gcc_target_cpu="sparc"
7682 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7684 esac
7685 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7686 aros_flavour="emulation"
7689 morphos*)
7690 aros_target_arch="morphos"
7691 aros_shared_default="no"
7692 aros_target_cpu="ppc"
7693 aros_object_format="elf_ppc"
7694 aros_flavour="nativecompat"
7695 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7696 gcc_target_cpu="ppc"
7699 sam440)
7700 aros_target_arch="sam440"
7701 aros_shared_default="no"
7702 aros_target_cpu="ppc"
7703 aros_object_format="elf32ppc"
7704 aros_flavour="ppcnative"
7705 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7706 aros_kernel_ldflags=""
7707 aros_default_wbwidth=1024
7708 aros_default_wbheight=768
7709 aros_default_wbdepth=24
7710 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7711 gcc_target_cpu="powerpc"
7714 efika)
7715 aros_target_arch="efika"
7716 aros_shared_default="no"
7717 aros_target_cpu="arm"
7718 aros_object_format="armelf_linux_eabi"
7719 aros_flavour="standalone"
7720 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7721 aros_kernel_ldflags=""
7722 aros_default_wbwidth=1024
7723 aros_default_wbheight=600
7724 aros_arch_libs="-laeabi"
7725 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7726 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7729 chrp)
7730 aros_target_arch="chrp"
7731 aros_shared_default="no"
7732 aros_target_cpu="ppc"
7733 aros_object_format="elf32ppc"
7734 aros_flavour="ppcnative"
7735 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7736 aros_kernel_ldflags=""
7737 aros_default_wbwidth=640
7738 aros_default_wbheight=480
7739 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7740 gcc_target_cpu="powerpc"
7741 case "$aros_target_variant" in
7742 efika)
7743 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7745 esac
7748 amiga*)
7749 aros_target_arch="amiga"
7750 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7751 aros_shared_default="no"
7753 case "$target_cpu" in
7754 *m68k*)
7755 # Check whether --enable-amigaos_compliance was given.
7756 if test "${enable_amigaos_compliance+set}" = set; then :
7757 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7760 aros_enable_mmu=no
7761 aros_target_cpu="m68k"
7762 aros_object_format="m68kelf"
7763 aros_flavour="standcompat"
7764 gcc_target_cpu="m68000"
7765 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7766 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7767 target_tool_prefix="m68k-elf-"
7768 # Needed to get the correct multilib
7769 aros_config_ldflags="-${gcc_target_cpu}"
7770 aros_shared_ldflags="-${gcc_target_cpu}"
7771 aros_kernel_ldflags="-${gcc_target_cpu}"
7772 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7773 aros_target_strip_flags="-R.comment --strip-debug"
7774 aros_default_wbwidth=640
7775 aros_default_wbheight=256
7776 aros_default_wbdepth=2
7778 *ppc*)
7779 aros_cpu="ppc"
7780 aros_flavour="native"
7781 gcc_target_cpu="ppc"
7784 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7786 esac
7789 mingw*)
7790 aros_target_arch="mingw32"
7791 aros_shared_default="no"
7792 aros_flavour="emulation"
7793 aros_shared_cflags=""
7794 need_dlopen="no"
7795 rescomp="windres"
7796 case "$target_cpu" in
7797 *i?86*)
7798 aros_target_cpu="i386"
7799 aros_object_format="elf_i386"
7800 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7801 aros_default_wbdepth=8
7802 gcc_target_cpu="i386"
7804 aros_target_as="i386-aros-as"
7805 aros_target_ar="i386-aros-ar"
7806 aros_target_ranlib="i386-aros-ranlib"
7807 aros_target_nm="i386-aros-nm"
7808 aros_target_strip="i386-aros-strip"
7809 aros_target_objcopy="i386-aros-objcopy"
7810 aros_target_objdump="i386-aros-objdump"
7812 target_tool_prefix="i386-mingw32-"
7814 *x86_64*)
7815 aros_target_cpu="x86_64"
7816 aros_object_format="elf_x86_64"
7817 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7818 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7819 aros_default_wbdepth=8
7820 target_tool_prefix="x86_64-w64-mingw32-"
7822 *arm*)
7823 aros_target_cpu="arm"
7824 aros_object_format="armelf_linux_eabi"
7825 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7826 aros_arch_libs="-laeabi"
7827 aros_default_wbdepth=8
7828 gcc_target_cpu="arm"
7829 target_tool_prefix="arm-mingw32ce-"
7830 aros_default_wbwidth=160
7831 aros_default_wbheight=160
7834 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7836 esac
7837 if test $host_os = "cygwin"; then
7838 aros_kernel_cflags="-mno-cygwin"
7841 pp*)
7842 aros_target_arch="pp"
7843 aros_shared_default="no"
7844 case "$target_cpu" in
7845 *m68k*)
7846 aros_target_cpu="m68k"
7847 aros_object_format="m68kelf"
7848 aros_flavour="palmnative"
7849 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7850 aros_default_wbwidth=160
7851 aros_default_wbheight=160
7852 aros_default_wbdepth=1
7853 aros_target_ar_flags="cru"
7854 aros_compiler_libs="-lgcc1"
7855 aros_shared_default=no
7856 aros_shared_cflags="-fpic"
7857 aros_shared_aflags=""
7858 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7859 aros_kernel_ldflags="-Wl,-rpath,./lib"
7860 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7861 aros_debug_aflags=""
7862 aros_debug_ldflags="$aros_symbols_debug"
7863 aros_mungwall_debug="0"
7864 aros_modules_debug="0"
7865 gcc_target_cpu="mc68000"
7866 ignore_undefined_symbols="-ius"
7869 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7871 esac
7874 mac*)
7875 aros_target_arch="mac"
7876 aros_shared_default="no"
7877 case "$target_cpu" in
7878 *m68k*)
7879 aros_target_cpu="m68k"
7880 aros_object_format="m68kelf"
7881 aros_flavour="mac68knative"
7882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7883 aros_default_wbwidth=512
7884 aros_default_wbheight=384
7885 aros_default_wbdepth=8
7886 aros_target_ar_flags="cru"
7887 aros_compiler_libs="-lgcc1"
7888 aros_shared_default=no
7889 aros_shared_cflags="-fpic"
7890 aros_shared_aflags=""
7891 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7892 aros_kernel_ldflags="-Wl,-rpath,./lib"
7893 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7894 aros_debug_aflags=""
7895 aros_debug_ldflags="$aros_symbols_debug"
7896 aros_mungwall_debug="0"
7897 aros_modules_debug="0"
7898 gcc_target_cpu="mc68000"
7899 ignore_undefined_symbols="-ius"
7902 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7904 esac
7908 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7910 esac
7912 # Some formats need custom ELF specs.
7913 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
7914 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
7915 elf_specs_in=config/${aros_object_format}-specs.in
7916 else
7917 elf_specs_in=config/elf-specs.in
7920 #-----------------------------------------------------------------------------
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7922 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7924 # Check whether --with-crosstools was given.
7925 if test "${with_crosstools+set}" = set; then :
7926 withval=$with_crosstools; with_crosstools=$withval
7927 else
7928 with_crosstools="default"
7931 if test "$with_crosstools" = "default"; then
7932 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7933 else
7934 AROS_CROSSTOOLSDIR="$with_crosstools"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7937 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7939 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
7942 use_aros_gcc=yes
7943 PATH=$AROS_CROSSTOOLSDIR:$PATH
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7947 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7949 # Check whether --with-aros-gcc was given.
7950 if test "${with_aros_gcc+set}" = set; then :
7951 withval=$with_aros_gcc; aros_gcc_version="$withval"
7952 else
7953 aros_gcc_version="$use_aros_gcc"
7956 case "$aros_gcc_version" in
7957 yes)
7958 aros_gcc_version="default"
7961 aros_gcc_version="none"
7963 esac
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7965 $as_echo "$aros_gcc_version" >&6; }
7967 if test "$aros_gcc_version" != "none"; then
7970 if test "$aros_gcc_version" != "default"; then
7971 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7972 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7973 else
7974 aros_target_cc="$aros_target_cpu-aros-gcc"
7975 aros_target_cxx="$aros_target_cpu-aros-g++"
7978 aros_target_ld="$aros_target_cpu-aros-ld"
7979 aros_target_as="$aros_target_cpu-aros-as"
7980 aros_target_ar="$aros_target_cpu-aros-ar"
7981 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7982 aros_target_nm="$aros_target_cpu-aros-nm"
7983 aros_target_strip="$aros_target_cpu-aros-strip"
7984 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7985 aros_target_objdump="$aros_target_cpu-aros-objdump"
7988 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7989 # Since we override specs, we may need to put these defines there
7990 if test "$gcc_target_cpu" != ""; then
7991 gcc_target_cpu="-D__${gcc_target_cpu}__"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7995 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7997 # Check whether --with-portssources was given.
7998 if test "${with_portssources+set}" = set; then :
7999 withval=$with_portssources; with_portssrcdir=$withval
8000 else
8001 with_portssrcdir="default"
8004 if test "$with_portssrcdir" = "default"; then
8005 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8006 else
8007 AROS_PORTSSRCDIR="$with_portssrcdir"
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8010 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8013 $as_echo_n "checking which bootloader to use... " >&6; }
8015 # Check whether --with-bootloader was given.
8016 if test "${with_bootloader+set}" = set; then :
8017 withval=$with_bootloader; target_bootloader=$withval
8018 else
8019 target_bootloader=$target_bootloader
8022 if test "$target_bootloader" = "none"; then
8023 aros_target_bootloader=""
8024 else
8025 aros_target_bootloader="$target_bootloader"
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8028 $as_echo "$target_bootloader" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8031 $as_echo_n "checking which icon-set to use... " >&6; }
8033 # Check whether --with-iconset was given.
8034 if test "${with_iconset+set}" = set; then :
8035 withval=$with_iconset; target_iconset=$withval
8036 else
8037 target_iconset="default"
8040 if test "$target_iconset" = "default"; then
8041 aros_target_iconset="Gorilla"
8042 target_iconset="default (Gorilla)"
8043 else
8044 aros_target_iconset="$target_iconset"
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8047 $as_echo "$target_iconset" >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8050 $as_echo_n "checking which GUI Theme to use... " >&6; }
8052 # Check whether --with-theme was given.
8053 if test "${with_theme+set}" = set; then :
8054 withval=$with_theme; target_guitheme=$withval
8055 else
8056 target_guitheme="default"
8059 if test "$target_guitheme" = "default"; then
8060 aros_target_guitheme="Ice"
8061 else
8062 aros_target_guitheme="$target_guitheme"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8065 $as_echo "$aros_target_guitheme" >&6; }
8067 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8068 # for target code)
8069 cross_compiling=no
8070 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8071 cross_compiling=yes
8074 if test "$aros_host_cpu" == "x86_64" ; then
8075 if test "$aros_target_cpu" == "i386" ; then
8076 if test "$aros_target_arch" != "mingw32"; then
8077 cross_compiling=no
8082 if test "$aros_host_arch" == "darwin" ; then
8083 if test "$aros_target_arch" != "darwin" ; then
8084 cross_compiling=yes
8088 if test "$aros_host_arch" == "mingw32" ; then
8089 if test "$aros_target_arch" != "mingw32" ; then
8090 cross_compiling=yes
8094 # I want to have this information in configure output, although it might be
8095 # misleading, e.g. for darwin hosted you cannot compile target code without a
8096 # cross compiler, but here it says no.
8098 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8099 # Target code is a little bit different thing.
8100 # sonic
8101 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8103 # Set prefix for target compiler etc. if we're cross-compiling
8104 # (should possibly be earlier but needs to be after AC_PROG_CC)
8105 if test "$cross_compiling" = "yes" ; then
8107 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8108 if test "$aros_gcc_version" != "none"; then
8111 target_tool_prefix=${target_cpu}-aros-
8112 target_tool_version=$aros_gcc_version
8113 use_kernel_cc_wrapper=yes
8115 aros_target_cc=
8116 aros_target_ld=
8117 aros_target_as=
8118 aros_target_ar=
8119 aros_target_ranlib=
8120 aros_target_nm=
8121 aros_target_strip=
8122 aros_target_objcopy=
8123 aros_target_objdump=
8127 CC=${target_tool_prefix}gcc
8128 CPP=${target_tool_prefix}cpp
8129 if test "$target_tool_version" != "default"; then
8130 CC="$CC-$target_tool_version"
8131 CPP="$CC-$target_tool_version"
8133 if test "$crosstools" != "yes" ; then
8134 # Extract the first word of "$CC", so it can be a program name with args.
8135 set dummy $CC; ac_word=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if ${ac_cv_path_CC+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 case $CC in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8157 done
8158 done
8159 IFS=$as_save_IFS
8162 esac
8164 CC=$ac_cv_path_CC
8165 if test -n "$CC"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8167 $as_echo "$CC" >&6; }
8168 else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8174 if test "$CC" = ""; then
8175 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8177 else
8178 CC=$AROS_CROSSTOOLSDIR/$CC
8181 CC="$CC $target_tool_flags"
8183 #-----------------------------------------------------------------------------
8185 # Disable pointer-signedness warnings if the compiler recognises the option
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8188 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8189 save_cflags="$CFLAGS"
8190 if test "$crosstools" != "yes" ; then
8191 CFLAGS="$CFLAGS -Wno-pointer-sign"
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8196 main ()
8200 return 0;
8202 _ACEOF
8203 if ac_fn_c_try_compile "$LINENO"; then :
8204 use_no_sign_warning="yes"
8205 else
8206 use_no_sign_warning="no"
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 else
8210 # we do know it is supported for the smallest version of gcc we are going to build
8211 # we assume it's also supported by later versions
8212 use_no_sign_warning=yes
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8215 $as_echo "$use_no_sign_warning" >&6; }
8216 if test "x-$use_no_sign_warning" = "x-yes" ; then
8217 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8219 CFLAGS="$save_cflags"
8221 #-----------------------------------------------------------------------------
8223 # Find all the tools we need to compile. This could be cross-compiling
8224 # though! If that is the case we use the GNU form of the target and
8225 # simply add this to the front of the binary name. This is rather simple,
8226 # but it should work under most circumstances.
8228 # The default tools are to use the same as the host, but only if the
8229 # host and target CPU are the same. With GCC this is normally enough.
8232 aros_cc_pre=""
8233 aros_shared_ld="$aros_host_ld"
8235 aros_target_mkdep="$aros_host_mkdep"
8236 aros_target_incl_def="$aros_host_incl"
8238 aros_kernel_cc="$CC"
8240 # The default tools executables to be linked to.
8241 if test "$rescomp" != ""; then
8242 if test "$cross_compiling" = "yes" ; then
8243 rescomp=${target_tool_prefix}${rescomp}
8245 # Extract the first word of "$rescomp", so it can be a program name with args.
8246 set dummy $rescomp; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 case $aros_kernel_rescomp in
8253 [\\/]* | ?:[\\/]*)
8254 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8270 IFS=$as_save_IFS
8273 esac
8275 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8276 if test -n "$aros_kernel_rescomp"; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8278 $as_echo "$aros_kernel_rescomp" >&6; }
8279 else
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8285 if test "$aros_kernel_rescomp" = ""; then
8286 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8290 if test "$crosstools" != "yes"; then
8292 if test "$aros_kernel_ld" = ""; then
8293 if test "$cross_compiling" = "yes" ; then
8294 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8295 set dummy ${target_tool_prefix}ld; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 case $aros_kernel_ld in
8302 [\\/]* | ?:[\\/]*)
8303 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8317 done
8318 done
8319 IFS=$as_save_IFS
8322 esac
8324 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8325 if test -n "$aros_kernel_ld"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8327 $as_echo "$aros_kernel_ld" >&6; }
8328 else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8334 else
8335 if test "$GCC" = "yes"; then
8336 aros_gcc_ld=`$CC -print-prog-name=ld`
8337 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8338 set dummy `basename $aros_gcc_ld`; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 case $aros_kernel_ld in
8345 [\\/]* | ?:[\\/]*)
8346 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in `dirname $aros_gcc_ld`
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8360 done
8361 done
8362 IFS=$as_save_IFS
8365 esac
8367 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8368 if test -n "$aros_kernel_ld"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8370 $as_echo "$aros_kernel_ld" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8378 if test "$aros_kernel_ld" = ""; then
8379 # Extract the first word of "ld", so it can be a program name with args.
8380 set dummy ld; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $aros_kernel_ld in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8402 done
8403 done
8404 IFS=$as_save_IFS
8407 esac
8409 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8410 if test -n "$aros_kernel_ld"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8412 $as_echo "$aros_kernel_ld" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8421 else
8422 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8423 set dummy $aros_kernel_ld; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 case $aros_kernel_ld in
8430 [\\/]* | ?:[\\/]*)
8431 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8441 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 break 2
8445 done
8446 done
8447 IFS=$as_save_IFS
8450 esac
8452 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8453 if test -n "$aros_kernel_ld"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8455 $as_echo "$aros_kernel_ld" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8464 if test "$aros_kernel_ld" = ""; then
8465 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8468 if test "$aros_kernel_ar" = ""; then
8469 if test "$cross_compiling" = "yes" ; then
8470 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8471 set dummy ${target_tool_prefix}ar; ac_word=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 case $aros_kernel_ar in
8478 [\\/]* | ?:[\\/]*)
8479 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8489 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 break 2
8493 done
8494 done
8495 IFS=$as_save_IFS
8498 esac
8500 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8501 if test -n "$aros_kernel_ar"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8503 $as_echo "$aros_kernel_ar" >&6; }
8504 else
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8510 else
8511 if test "$GCC" = "yes"; then
8512 aros_gcc_ar=`$CC -print-prog-name=ar`
8513 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8514 set dummy `basename $aros_gcc_ar`; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 case $aros_kernel_ar in
8521 [\\/]* | ?:[\\/]*)
8522 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in `dirname $aros_gcc_ar`
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8532 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8536 done
8537 done
8538 IFS=$as_save_IFS
8541 esac
8543 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8544 if test -n "$aros_kernel_ar"; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8546 $as_echo "$aros_kernel_ar" >&6; }
8547 else
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 $as_echo "no" >&6; }
8554 if test "$aros_kernel_ar" = ""; then
8555 # Extract the first word of "ar", so it can be a program name with args.
8556 set dummy ar; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 case $aros_kernel_ar in
8563 [\\/]* | ?:[\\/]*)
8564 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8578 done
8579 done
8580 IFS=$as_save_IFS
8583 esac
8585 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8586 if test -n "$aros_kernel_ar"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8588 $as_echo "$aros_kernel_ar" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8597 else
8598 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8599 set dummy $aros_kernel_ar; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 case $aros_kernel_ar in
8606 [\\/]* | ?:[\\/]*)
8607 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8617 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8621 done
8622 done
8623 IFS=$as_save_IFS
8626 esac
8628 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8629 if test -n "$aros_kernel_ar"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8631 $as_echo "$aros_kernel_ar" >&6; }
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8640 if test "$aros_kernel_ar" = ""; then
8641 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8644 if test "$aros_kernel_ranlib" = ""; then
8645 if test "$cross_compiling" = "yes" ; then
8646 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8647 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8649 $as_echo_n "checking for $ac_word... " >&6; }
8650 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 case $aros_kernel_ranlib in
8654 [\\/]* | ?:[\\/]*)
8655 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8669 done
8670 done
8671 IFS=$as_save_IFS
8674 esac
8676 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8677 if test -n "$aros_kernel_ranlib"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8679 $as_echo "$aros_kernel_ranlib" >&6; }
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8686 else
8687 if test "$GCC" = "yes"; then
8688 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8689 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8690 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 case $aros_kernel_ranlib in
8697 [\\/]* | ?:[\\/]*)
8698 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in `dirname $aros_gcc_ranlib`
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8708 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710 break 2
8712 done
8713 done
8714 IFS=$as_save_IFS
8717 esac
8719 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8720 if test -n "$aros_kernel_ranlib"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8722 $as_echo "$aros_kernel_ranlib" >&6; }
8723 else
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8730 if test "$aros_kernel_ranlib" = ""; then
8731 # Extract the first word of "ranlib", so it can be a program name with args.
8732 set dummy ranlib; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 case $aros_kernel_ranlib in
8739 [\\/]* | ?:[\\/]*)
8740 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8759 esac
8761 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8762 if test -n "$aros_kernel_ranlib"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8764 $as_echo "$aros_kernel_ranlib" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8773 else
8774 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8775 set dummy $aros_kernel_ranlib; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 case $aros_kernel_ranlib in
8782 [\\/]* | ?:[\\/]*)
8783 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in $PATH
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8793 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8797 done
8798 done
8799 IFS=$as_save_IFS
8802 esac
8804 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8805 if test -n "$aros_kernel_ranlib"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8807 $as_echo "$aros_kernel_ranlib" >&6; }
8808 else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8816 if test "$aros_kernel_ranlib" = ""; then
8817 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8820 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8821 target_tool_prefix=${target_cpu}-elf-
8822 if test "$aros_target_cc" == ""; then
8823 aros_target_cc="${target_tool_prefix}gcc"
8825 if test "$aros_target_ld" == ""; then
8826 aros_target_ld="${target_tool_prefix}ld"
8830 if test "$aros_target_as" = ""; then
8831 if test "$cross_compiling" = "yes" ; then
8832 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8833 set dummy ${target_tool_prefix}as; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 case $aros_target_as_ln in
8840 [\\/]* | ?:[\\/]*)
8841 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8855 done
8856 done
8857 IFS=$as_save_IFS
8860 esac
8862 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8863 if test -n "$aros_target_as_ln"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8865 $as_echo "$aros_target_as_ln" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8872 else
8873 if test "$GCC" = "yes"; then
8874 aros_gcc_as=`$CC -print-prog-name=as`
8875 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8876 set dummy `basename $aros_gcc_as`; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 case $aros_target_as_ln in
8883 [\\/]* | ?:[\\/]*)
8884 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in `dirname $aros_gcc_as`
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8898 done
8899 done
8900 IFS=$as_save_IFS
8903 esac
8905 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8906 if test -n "$aros_target_as_ln"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8908 $as_echo "$aros_target_as_ln" >&6; }
8909 else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8916 if test "$aros_target_as_ln" = ""; then
8917 # Extract the first word of "as", so it can be a program name with args.
8918 set dummy as; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 case $aros_target_as_ln in
8925 [\\/]* | ?:[\\/]*)
8926 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8940 done
8941 done
8942 IFS=$as_save_IFS
8945 esac
8947 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8948 if test -n "$aros_target_as_ln"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8950 $as_echo "$aros_target_as_ln" >&6; }
8951 else
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8959 else
8960 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8961 set dummy $aros_target_as; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 case $aros_target_as_ln in
8968 [\\/]* | ?:[\\/]*)
8969 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8979 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8983 done
8984 done
8985 IFS=$as_save_IFS
8988 esac
8990 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8991 if test -n "$aros_target_as_ln"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8993 $as_echo "$aros_target_as_ln" >&6; }
8994 else
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
9002 if test "$aros_target_as_ln" = ""; then
9003 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9006 if test "$aros_target_ar" = ""; then
9007 if test "$cross_compiling" = "yes" ; then
9008 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9009 set dummy ${target_tool_prefix}ar; ac_word=$2
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011 $as_echo_n "checking for $ac_word... " >&6; }
9012 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 case $aros_target_ar_ln in
9016 [\\/]* | ?:[\\/]*)
9017 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 for as_dir in $PATH
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9027 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9031 done
9032 done
9033 IFS=$as_save_IFS
9036 esac
9038 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9039 if test -n "$aros_target_ar_ln"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9041 $as_echo "$aros_target_ar_ln" >&6; }
9042 else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9048 else
9049 if test "$GCC" = "yes"; then
9050 aros_gcc_ar=`$CC -print-prog-name=ar`
9051 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9052 set dummy `basename $aros_gcc_ar`; ac_word=$2
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054 $as_echo_n "checking for $ac_word... " >&6; }
9055 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 case $aros_target_ar_ln in
9059 [\\/]* | ?:[\\/]*)
9060 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 for as_dir in `dirname $aros_gcc_ar`
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9070 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 break 2
9074 done
9075 done
9076 IFS=$as_save_IFS
9079 esac
9081 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9082 if test -n "$aros_target_ar_ln"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9084 $as_echo "$aros_target_ar_ln" >&6; }
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9092 if test "$aros_target_ar_ln" = ""; then
9093 # Extract the first word of "ar", so it can be a program name with args.
9094 set dummy ar; ac_word=$2
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9096 $as_echo_n "checking for $ac_word... " >&6; }
9097 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 case $aros_target_ar_ln in
9101 [\\/]* | ?:[\\/]*)
9102 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 for as_dir in $PATH
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9112 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 break 2
9116 done
9117 done
9118 IFS=$as_save_IFS
9121 esac
9123 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9124 if test -n "$aros_target_ar_ln"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9126 $as_echo "$aros_target_ar_ln" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9135 else
9136 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9137 set dummy $aros_target_ar; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 case $aros_target_ar_ln in
9144 [\\/]* | ?:[\\/]*)
9145 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149 for as_dir in $PATH
9151 IFS=$as_save_IFS
9152 test -z "$as_dir" && as_dir=.
9153 for ac_exec_ext in '' $ac_executable_extensions; do
9154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9155 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 break 2
9159 done
9160 done
9161 IFS=$as_save_IFS
9164 esac
9166 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9167 if test -n "$aros_target_ar_ln"; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9169 $as_echo "$aros_target_ar_ln" >&6; }
9170 else
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9178 if test "$aros_target_ar_ln" = ""; then
9179 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9182 if test "$aros_target_nm" = ""; then
9183 if test "$cross_compiling" = "yes" ; then
9184 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9185 set dummy ${target_tool_prefix}nm; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 case $aros_target_nm_ln in
9192 [\\/]* | ?:[\\/]*)
9193 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9203 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9207 done
9208 done
9209 IFS=$as_save_IFS
9212 esac
9214 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9215 if test -n "$aros_target_nm_ln"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9217 $as_echo "$aros_target_nm_ln" >&6; }
9218 else
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9224 else
9225 if test "$GCC" = "yes"; then
9226 aros_gcc_nm=`$CC -print-prog-name=nm`
9227 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9228 set dummy `basename $aros_gcc_nm`; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 case $aros_target_nm_ln in
9235 [\\/]* | ?:[\\/]*)
9236 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in `dirname $aros_gcc_nm`
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9246 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 break 2
9250 done
9251 done
9252 IFS=$as_save_IFS
9255 esac
9257 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9258 if test -n "$aros_target_nm_ln"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9260 $as_echo "$aros_target_nm_ln" >&6; }
9261 else
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9268 if test "$aros_target_nm_ln" = ""; then
9269 # Extract the first word of "nm", so it can be a program name with args.
9270 set dummy nm; ac_word=$2
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272 $as_echo_n "checking for $ac_word... " >&6; }
9273 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 case $aros_target_nm_ln in
9277 [\\/]* | ?:[\\/]*)
9278 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 for as_dir in $PATH
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 break 2
9292 done
9293 done
9294 IFS=$as_save_IFS
9297 esac
9299 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9300 if test -n "$aros_target_nm_ln"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9302 $as_echo "$aros_target_nm_ln" >&6; }
9303 else
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9311 else
9312 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9313 set dummy $aros_target_nm; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 case $aros_target_nm_ln in
9320 [\\/]* | ?:[\\/]*)
9321 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9335 done
9336 done
9337 IFS=$as_save_IFS
9340 esac
9342 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9343 if test -n "$aros_target_nm_ln"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9345 $as_echo "$aros_target_nm_ln" >&6; }
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9354 if test "$aros_target_nm_ln" = ""; then
9355 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9358 if test "$aros_target_objcopy" = ""; then
9359 if test "$cross_compiling" = "yes" ; then
9360 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9361 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 case $aros_target_objcopy_ln in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9383 done
9384 done
9385 IFS=$as_save_IFS
9388 esac
9390 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9391 if test -n "$aros_target_objcopy_ln"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9393 $as_echo "$aros_target_objcopy_ln" >&6; }
9394 else
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9400 else
9401 if test "$GCC" = "yes"; then
9402 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9403 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9404 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 case $aros_target_objcopy_ln in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in `dirname $aros_gcc_objcopy`
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9426 done
9427 done
9428 IFS=$as_save_IFS
9431 esac
9433 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9434 if test -n "$aros_target_objcopy_ln"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9436 $as_echo "$aros_target_objcopy_ln" >&6; }
9437 else
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 $as_echo "no" >&6; }
9444 if test "$aros_target_objcopy_ln" = ""; then
9445 # Extract the first word of "objcopy", so it can be a program name with args.
9446 set dummy objcopy; ac_word=$2
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 $as_echo_n "checking for $ac_word... " >&6; }
9449 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 case $aros_target_objcopy_ln in
9453 [\\/]* | ?:[\\/]*)
9454 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9464 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9468 done
9469 done
9470 IFS=$as_save_IFS
9473 esac
9475 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9476 if test -n "$aros_target_objcopy_ln"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9478 $as_echo "$aros_target_objcopy_ln" >&6; }
9479 else
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9487 else
9488 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9489 set dummy $aros_target_objcopy; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 case $aros_target_objcopy_ln in
9496 [\\/]* | ?:[\\/]*)
9497 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2
9511 done
9512 done
9513 IFS=$as_save_IFS
9516 esac
9518 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9519 if test -n "$aros_target_objcopy_ln"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9521 $as_echo "$aros_target_objcopy_ln" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9530 if test "$aros_target_objcopy_ln" = ""; then
9531 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9534 if test "$aros_target_objdump" = ""; then
9535 if test "$cross_compiling" = "yes" ; then
9536 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9537 set dummy ${target_tool_prefix}objdump; ac_word=$2
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9539 $as_echo_n "checking for $ac_word... " >&6; }
9540 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 case $aros_target_objdump_ln in
9544 [\\/]* | ?:[\\/]*)
9545 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in $PATH
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9555 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9559 done
9560 done
9561 IFS=$as_save_IFS
9564 esac
9566 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9567 if test -n "$aros_target_objdump_ln"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9569 $as_echo "$aros_target_objdump_ln" >&6; }
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9576 else
9577 if test "$GCC" = "yes"; then
9578 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9579 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9580 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 $as_echo_n "checking for $ac_word... " >&6; }
9583 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 case $aros_target_objdump_ln in
9587 [\\/]* | ?:[\\/]*)
9588 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592 for as_dir in `dirname $aros_gcc_objdump`
9594 IFS=$as_save_IFS
9595 test -z "$as_dir" && as_dir=.
9596 for ac_exec_ext in '' $ac_executable_extensions; do
9597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9598 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 break 2
9602 done
9603 done
9604 IFS=$as_save_IFS
9607 esac
9609 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9610 if test -n "$aros_target_objdump_ln"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9612 $as_echo "$aros_target_objdump_ln" >&6; }
9613 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9620 if test "$aros_target_objdump_ln" = ""; then
9621 # Extract the first word of "objdump", so it can be a program name with args.
9622 set dummy objdump; ac_word=$2
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 $as_echo_n "checking for $ac_word... " >&6; }
9625 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 case $aros_target_objdump_ln in
9629 [\\/]* | ?:[\\/]*)
9630 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 break 2
9644 done
9645 done
9646 IFS=$as_save_IFS
9649 esac
9651 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9652 if test -n "$aros_target_objdump_ln"; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9654 $as_echo "$aros_target_objdump_ln" >&6; }
9655 else
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9663 else
9664 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9665 set dummy $aros_target_objdump; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 case $aros_target_objdump_ln in
9672 [\\/]* | ?:[\\/]*)
9673 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $PATH
9679 IFS=$as_save_IFS
9680 test -z "$as_dir" && as_dir=.
9681 for ac_exec_ext in '' $ac_executable_extensions; do
9682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9683 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 break 2
9687 done
9688 done
9689 IFS=$as_save_IFS
9692 esac
9694 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9695 if test -n "$aros_target_objdump_ln"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9697 $as_echo "$aros_target_objdump_ln" >&6; }
9698 else
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9706 if test "$aros_target_objdump_ln" = ""; then
9707 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9710 if test "$aros_target_ranlib" = ""; then
9711 if test "$cross_compiling" = "yes" ; then
9712 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9713 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 case $aros_target_ranlib_ln in
9720 [\\/]* | ?:[\\/]*)
9721 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 break 2
9735 done
9736 done
9737 IFS=$as_save_IFS
9740 esac
9742 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9743 if test -n "$aros_target_ranlib_ln"; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9745 $as_echo "$aros_target_ranlib_ln" >&6; }
9746 else
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9752 else
9753 if test "$GCC" = "yes"; then
9754 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9755 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9756 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 case $aros_target_ranlib_ln in
9763 [\\/]* | ?:[\\/]*)
9764 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in `dirname $aros_gcc_ranlib`
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9774 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 break 2
9778 done
9779 done
9780 IFS=$as_save_IFS
9783 esac
9785 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9786 if test -n "$aros_target_ranlib_ln"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9788 $as_echo "$aros_target_ranlib_ln" >&6; }
9789 else
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9796 if test "$aros_target_ranlib_ln" = ""; then
9797 # Extract the first word of "ranlib", so it can be a program name with args.
9798 set dummy ranlib; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 case $aros_target_ranlib_ln in
9805 [\\/]* | ?:[\\/]*)
9806 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810 for as_dir in $PATH
9812 IFS=$as_save_IFS
9813 test -z "$as_dir" && as_dir=.
9814 for ac_exec_ext in '' $ac_executable_extensions; do
9815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9816 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9818 break 2
9820 done
9821 done
9822 IFS=$as_save_IFS
9825 esac
9827 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9828 if test -n "$aros_target_ranlib_ln"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9830 $as_echo "$aros_target_ranlib_ln" >&6; }
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9839 else
9840 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9841 set dummy $aros_target_ranlib; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 case $aros_target_ranlib_ln in
9848 [\\/]* | ?:[\\/]*)
9849 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853 for as_dir in $PATH
9855 IFS=$as_save_IFS
9856 test -z "$as_dir" && as_dir=.
9857 for ac_exec_ext in '' $ac_executable_extensions; do
9858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9859 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861 break 2
9863 done
9864 done
9865 IFS=$as_save_IFS
9868 esac
9870 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9871 if test -n "$aros_target_ranlib_ln"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9873 $as_echo "$aros_target_ranlib_ln" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9882 if test "$aros_target_ranlib_ln" = ""; then
9883 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9886 if test "$aros_target_strip" = ""; then
9887 if test "$cross_compiling" = "yes" ; then
9888 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9889 set dummy ${target_tool_prefix}strip; ac_word=$2
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9891 $as_echo_n "checking for $ac_word... " >&6; }
9892 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 case $aros_target_strip_ln in
9896 [\\/]* | ?:[\\/]*)
9897 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9911 done
9912 done
9913 IFS=$as_save_IFS
9916 esac
9918 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9919 if test -n "$aros_target_strip_ln"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9921 $as_echo "$aros_target_strip_ln" >&6; }
9922 else
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9928 else
9929 if test "$GCC" = "yes"; then
9930 aros_gcc_strip=`$CC -print-prog-name=strip`
9931 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9932 set dummy `basename $aros_gcc_strip`; ac_word=$2
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934 $as_echo_n "checking for $ac_word... " >&6; }
9935 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 case $aros_target_strip_ln in
9939 [\\/]* | ?:[\\/]*)
9940 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in `dirname $aros_gcc_strip`
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9950 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9954 done
9955 done
9956 IFS=$as_save_IFS
9959 esac
9961 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9962 if test -n "$aros_target_strip_ln"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9964 $as_echo "$aros_target_strip_ln" >&6; }
9965 else
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 $as_echo "no" >&6; }
9972 if test "$aros_target_strip_ln" = ""; then
9973 # Extract the first word of "strip", so it can be a program name with args.
9974 set dummy strip; ac_word=$2
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976 $as_echo_n "checking for $ac_word... " >&6; }
9977 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980 case $aros_target_strip_ln in
9981 [\\/]* | ?:[\\/]*)
9982 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9996 done
9997 done
9998 IFS=$as_save_IFS
10001 esac
10003 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10004 if test -n "$aros_target_strip_ln"; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10006 $as_echo "$aros_target_strip_ln" >&6; }
10007 else
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 $as_echo "no" >&6; }
10015 else
10016 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10017 set dummy $aros_target_strip; ac_word=$2
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 $as_echo_n "checking for $ac_word... " >&6; }
10020 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 case $aros_target_strip_ln in
10024 [\\/]* | ?:[\\/]*)
10025 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10035 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 break 2
10039 done
10040 done
10041 IFS=$as_save_IFS
10044 esac
10046 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10047 if test -n "$aros_target_strip_ln"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10049 $as_echo "$aros_target_strip_ln" >&6; }
10050 else
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10058 if test "$aros_target_strip_ln" = ""; then
10059 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10061 if test "$aros_target_cxx" != ""; then
10062 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10063 set dummy $aros_target_cxx; ac_word=$2
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065 $as_echo_n "checking for $ac_word... " >&6; }
10066 if ${ac_cv_path_aros_target_cxx+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 case $aros_target_cxx in
10070 [\\/]* | ?:[\\/]*)
10071 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10081 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10085 done
10086 done
10087 IFS=$as_save_IFS
10090 esac
10092 aros_target_cxx=$ac_cv_path_aros_target_cxx
10093 if test -n "$aros_target_cxx"; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10095 $as_echo "$aros_target_cxx" >&6; }
10096 else
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10102 if test "$aros_target_cxx" = ""; then
10103 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10106 else
10107 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10108 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10109 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10110 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10111 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10112 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10113 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10114 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10115 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10117 if test "$target_tool_prefix" != "${target_cpu}-aros-" ; then
10119 if test "$aros_kernel_ld" = ""; then
10120 if test "$cross_compiling" = "yes" ; then
10121 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10122 set dummy ${target_tool_prefix}ld; ac_word=$2
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124 $as_echo_n "checking for $ac_word... " >&6; }
10125 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 case $aros_kernel_ld in
10129 [\\/]* | ?:[\\/]*)
10130 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134 for as_dir in $PATH
10136 IFS=$as_save_IFS
10137 test -z "$as_dir" && as_dir=.
10138 for ac_exec_ext in '' $ac_executable_extensions; do
10139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10140 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10142 break 2
10144 done
10145 done
10146 IFS=$as_save_IFS
10149 esac
10151 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10152 if test -n "$aros_kernel_ld"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10154 $as_echo "$aros_kernel_ld" >&6; }
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10161 else
10162 if test "$GCC" = "yes"; then
10163 aros_gcc_ld=`$CC -print-prog-name=ld`
10164 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10165 set dummy `basename $aros_gcc_ld`; ac_word=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 case $aros_kernel_ld in
10172 [\\/]* | ?:[\\/]*)
10173 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177 for as_dir in `dirname $aros_gcc_ld`
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10183 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10187 done
10188 done
10189 IFS=$as_save_IFS
10192 esac
10194 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10195 if test -n "$aros_kernel_ld"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10197 $as_echo "$aros_kernel_ld" >&6; }
10198 else
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200 $as_echo "no" >&6; }
10205 if test "$aros_kernel_ld" = ""; then
10206 # Extract the first word of "ld", so it can be a program name with args.
10207 set dummy ld; ac_word=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 case $aros_kernel_ld in
10214 [\\/]* | ?:[\\/]*)
10215 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10221 IFS=$as_save_IFS
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 break 2
10229 done
10230 done
10231 IFS=$as_save_IFS
10234 esac
10236 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10237 if test -n "$aros_kernel_ld"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10239 $as_echo "$aros_kernel_ld" >&6; }
10240 else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242 $as_echo "no" >&6; }
10248 else
10249 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10250 set dummy $aros_kernel_ld; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 case $aros_kernel_ld in
10257 [\\/]* | ?:[\\/]*)
10258 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in $PATH
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 break 2
10272 done
10273 done
10274 IFS=$as_save_IFS
10277 esac
10279 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10280 if test -n "$aros_kernel_ld"; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10282 $as_echo "$aros_kernel_ld" >&6; }
10283 else
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10291 if test "$aros_kernel_ld" = ""; then
10292 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10295 if test "$aros_kernel_ar" = ""; then
10296 if test "$cross_compiling" = "yes" ; then
10297 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10298 set dummy ${target_tool_prefix}ar; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300 $as_echo_n "checking for $ac_word... " >&6; }
10301 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10304 case $aros_kernel_ar in
10305 [\\/]* | ?:[\\/]*)
10306 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 break 2
10320 done
10321 done
10322 IFS=$as_save_IFS
10325 esac
10327 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10328 if test -n "$aros_kernel_ar"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10330 $as_echo "$aros_kernel_ar" >&6; }
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10337 else
10338 if test "$GCC" = "yes"; then
10339 aros_gcc_ar=`$CC -print-prog-name=ar`
10340 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10341 set dummy `basename $aros_gcc_ar`; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 case $aros_kernel_ar in
10348 [\\/]* | ?:[\\/]*)
10349 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in `dirname $aros_gcc_ar`
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10363 done
10364 done
10365 IFS=$as_save_IFS
10368 esac
10370 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10371 if test -n "$aros_kernel_ar"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10373 $as_echo "$aros_kernel_ar" >&6; }
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10381 if test "$aros_kernel_ar" = ""; then
10382 # Extract the first word of "ar", so it can be a program name with args.
10383 set dummy ar; ac_word=$2
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385 $as_echo_n "checking for $ac_word... " >&6; }
10386 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 case $aros_kernel_ar in
10390 [\\/]* | ?:[\\/]*)
10391 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395 for as_dir in $PATH
10397 IFS=$as_save_IFS
10398 test -z "$as_dir" && as_dir=.
10399 for ac_exec_ext in '' $ac_executable_extensions; do
10400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10401 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10403 break 2
10405 done
10406 done
10407 IFS=$as_save_IFS
10410 esac
10412 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10413 if test -n "$aros_kernel_ar"; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10415 $as_echo "$aros_kernel_ar" >&6; }
10416 else
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418 $as_echo "no" >&6; }
10424 else
10425 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10426 set dummy $aros_kernel_ar; ac_word=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 case $aros_kernel_ar in
10433 [\\/]* | ?:[\\/]*)
10434 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10444 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10448 done
10449 done
10450 IFS=$as_save_IFS
10453 esac
10455 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10456 if test -n "$aros_kernel_ar"; then
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10458 $as_echo "$aros_kernel_ar" >&6; }
10459 else
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10467 if test "$aros_kernel_ar" = ""; then
10468 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10471 if test "$aros_kernel_ranlib" = ""; then
10472 if test "$cross_compiling" = "yes" ; then
10473 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10474 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 case $aros_kernel_ranlib in
10481 [\\/]* | ?:[\\/]*)
10482 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10488 IFS=$as_save_IFS
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10492 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 break 2
10496 done
10497 done
10498 IFS=$as_save_IFS
10501 esac
10503 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10504 if test -n "$aros_kernel_ranlib"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10506 $as_echo "$aros_kernel_ranlib" >&6; }
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10513 else
10514 if test "$GCC" = "yes"; then
10515 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10516 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10517 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 case $aros_kernel_ranlib in
10524 [\\/]* | ?:[\\/]*)
10525 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in `dirname $aros_gcc_ranlib`
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10535 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10539 done
10540 done
10541 IFS=$as_save_IFS
10544 esac
10546 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10547 if test -n "$aros_kernel_ranlib"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10549 $as_echo "$aros_kernel_ranlib" >&6; }
10550 else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 $as_echo "no" >&6; }
10557 if test "$aros_kernel_ranlib" = ""; then
10558 # Extract the first word of "ranlib", so it can be a program name with args.
10559 set dummy ranlib; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 case $aros_kernel_ranlib in
10566 [\\/]* | ?:[\\/]*)
10567 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10581 done
10582 done
10583 IFS=$as_save_IFS
10586 esac
10588 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10589 if test -n "$aros_kernel_ranlib"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10591 $as_echo "$aros_kernel_ranlib" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10600 else
10601 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10602 set dummy $aros_kernel_ranlib; ac_word=$2
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 case $aros_kernel_ranlib in
10609 [\\/]* | ?:[\\/]*)
10610 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10620 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10624 done
10625 done
10626 IFS=$as_save_IFS
10629 esac
10631 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10632 if test -n "$aros_kernel_ranlib"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10634 $as_echo "$aros_kernel_ranlib" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10643 if test "$aros_kernel_ranlib" = ""; then
10644 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10646 else
10647 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10648 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10649 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10652 crosstools_target=tools-crosstools
10655 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10657 orig_target_cc=$aros_kernel_cc
10658 orig_target_ld=$aros_kernel_ld
10660 if test "$crosstools" != "yes"; then
10661 if test "$aros_target_cc" != ""; then
10662 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10663 set dummy $aros_target_cc; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if ${ac_cv_path_aros_target_cc+:} false; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 case $aros_target_cc in
10670 [\\/]* | ?:[\\/]*)
10671 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10685 done
10686 done
10687 IFS=$as_save_IFS
10690 esac
10692 aros_target_cc=$ac_cv_path_aros_target_cc
10693 if test -n "$aros_target_cc"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10695 $as_echo "$aros_target_cc" >&6; }
10696 else
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10702 if test "$aros_target_cc" = ""; then
10703 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10705 orig_target_cc=$aros_target_cc
10707 if test "$aros_target_ld" != ""; then
10708 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10709 set dummy $aros_target_ld; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if ${ac_cv_path_aros_target_ld+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 case $aros_target_ld in
10716 [\\/]* | ?:[\\/]*)
10717 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10727 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10731 done
10732 done
10733 IFS=$as_save_IFS
10736 esac
10738 aros_target_ld=$ac_cv_path_aros_target_ld
10739 if test -n "$aros_target_ld"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10741 $as_echo "$aros_target_ld" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10748 if test "$aros_target_ld" = ""; then
10749 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10751 orig_target_ld=$aros_target_ld
10753 else
10754 orig_target_cc=$aros_target_cc
10755 orig_target_ld=$aros_target_ld
10758 # Build crosstools if we have no C++ - temporary thing
10759 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10760 crosstools_cxx_target=tools-crosstools
10763 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10764 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10765 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10766 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10767 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10768 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10769 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10771 # aros_cc_pre is a variable that is added to the front of the compiler name
10772 # in the generated aros-gcc shell script. We need this to enable the cache
10773 # to work across cleaned builds. Also, support DISTCC using the correct
10774 # environment variable.
10777 if test "x${DISTCC}" != "x" ; then
10778 if test "x${CCACHE}" != "x" ; then
10779 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10780 else
10781 aros_cc_pre="${DISTCC} "
10783 else
10784 if test "x${CCACHE}" != "x" ; then
10785 aros_cc_pre="${CCACHE} "
10789 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10791 aros_target_nostdinc_cflags=-nostdinc
10793 aros_target_nostartup_ldflags=-nostartfiles
10795 aros_target_nix_ldflags=-nix
10797 aros_target_detach_ldflags=-detach
10799 aros_target_nostdlib_ldflags=-nostdlib
10802 # Target tools
10803 if test "$crosstools" != "yes"; then
10804 if test "$GCC" = "yes"; then
10805 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10807 else
10808 # We do not know which gcc version we are going to build and what we need to know
10809 # here is different for different versions so this will be set later during the
10810 # build of crosstools.
10811 aros_target_cc_path=@aros_target_cc_path@
10813 aros_target_cc="${prefix}-gcc"
10814 aros_target_as="${prefix}-as"
10815 aros_target_ld="${prefix}-ld"
10816 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10817 aros_target_objcopy=${prefix}-objcopy
10818 aros_target_objdump=${prefix}-objdump
10819 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10820 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10821 aros_target_strip=${prefix}-strip
10822 aros_plain_nm="${prefix}-nm"
10823 aros_plain_ar="${prefix}-ar"
10825 # Find the system include path. We can suggest that an alternative is
10826 # used if we don't get it correct. The default is to use /usr/include.
10827 # Which is set in the aros_target_incl_def variable.
10829 # Check whether --enable-includes was given.
10830 if test "${enable_includes+set}" = set; then :
10831 enableval=$enable_includes; aros_target_incl=$enable_includes
10832 else
10833 aros_target_incl=$aros_target_incl_def
10837 if test "$aros_kernel_includes" = ""; then
10838 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10839 # FIXME: for cross-compiling this should point to another location
10840 aros_kernel_includes="-isystem $aros_target_incl"
10844 if test "$aros_kernel_includes" != "" ; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10846 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10847 if test "$aros_kernel_cc_includes" = "" ; then
10848 # Try to guess where the directory is.
10849 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10850 if test -d $aros_kernel_cc_includes; then
10851 # Check if there is also an include-fixed directory and add it
10852 # to kernel compiler's include path as it may contain some of
10853 # the headers we need.
10854 if test -d "$aros_kernel_cc_includes"-fixed; then
10855 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10857 # Check for specific includes directory. Neede for Ubuntu 11.10
10858 if test -d "/usr/include/i386-linux-gnu"; then
10859 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
10861 else
10862 # The directory doesn't exist, we need to do some more work.
10863 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10865 # These are the headers we're looking for.
10866 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10867 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10868 zutil.h"
10870 if test ! -f $aros_target_incl/stdint.h; then
10871 headers="$headers stdint.h"
10874 dirs=
10875 for h in $headers; do
10876 # Which other headers are needed by each of the above?
10877 deps=$(echo "#include <$h>" | \
10878 $aros_kernel_cc -E -M - 2>/dev/null | \
10879 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10881 # Copy all the needed headers to a directory beneath gendir.
10882 for d in $deps; do
10883 h=$(basename $d)
10884 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10885 sed -n "s,^.*/include\(/.*\),\1,p")
10886 ! test -d $dir && mkdir -p $dir
10887 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10888 done
10889 done
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10893 $as_echo "$aros_kernel_cc_includes" >&6; }
10894 # Adding -nostdinc to kernel includes as they are always used together.
10895 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10898 if test "$crosstools" != "yes"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10900 $as_echo_n "checking for the target compiler's include path... " >&6; }
10901 if test "$aros_target_cc_includes" = "" ; then
10902 #try to guess where the directory is
10903 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10904 if ! test -d $aros_target_cc_includes; then
10905 #the directory doesn't exist, we need to do some more work
10906 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10908 #these are the headers we're looking for
10909 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10910 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10911 zutil.h"
10913 dirs=
10914 for h in $headers; do
10915 #which other headers each of the above headers needs?
10916 deps=$(echo "#include <$h>" | \
10917 $orig_target_cc -E -M - 2>/dev/null | \
10918 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10920 #copy all the needed headers to a directory beneath gendir
10921 for d in $deps; do
10922 h=$(basename $d)
10923 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10924 sed -n "s,^.*/include\(/.*\),\1,p")
10925 ! test -d $dir && mkdir -p $dir
10926 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10927 done
10928 done
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10932 $as_echo "$aros_target_cc_includes" >&6; }
10933 else
10934 # We do not know which gcc version we are going to build and what we need to know
10935 # here is different for different versions so this will be set later during the
10936 # build of crosstools.
10937 aros_target_cc_includes=@aros_target_cc_includes@
10941 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10942 # On GCC >= 4.0 -iquote should be used
10945 save_cc="$CC"
10946 save_cflags="$CFLAGS"
10947 CFLAGS="-iquote."
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10949 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10950 if test "x-$crosstools" != "x-yes"; then
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10955 main ()
10959 return 0;
10961 _ACEOF
10962 if ac_fn_c_try_compile "$LINENO"; then :
10963 has_iquote="yes"
10964 else
10965 has_iquote="no"
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10968 else
10969 # we do know it is supported for the smallest version of gcc we are going to build
10970 # we assume it's also supported by later versions
10971 has_iquote=yes
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10974 $as_echo "$has_iquote" >&6; }
10975 if test "x-$has_iquote" = "x-yes" ; then
10976 host_cflags_iquote=-iquote
10977 host_cflags_iquote_end=
10978 else
10979 host_cflags_iquote=-I
10980 host_cflags_iquote_end=-I-
10982 kernel_cflags_iquote=$host_cflags_iquote
10983 kernel_cflags_iquote_end=$host_cflags_iquote_end
10984 if test "x-$cross_compiling" = "x-yes"; then
10985 CC="$aros_kernel_cc"
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
10987 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
10988 if test "x-$crosstools" != "x-yes"; then
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10993 main ()
10997 return 0;
10999 _ACEOF
11000 if ac_fn_c_try_compile "$LINENO"; then :
11001 use_no_stack_protector="yes"
11002 else
11003 use_no_stack_protector="no"
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 else
11007 # we do know it is supported for the smallest version of gcc we are going to build
11008 # we assume it's also supported by later versions
11009 use_no_stack_protector=yes
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11012 $as_echo "$use_no_stack_protector" >&6; }
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11014 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11015 if test "x-$crosstools" != "x-yes"; then
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11020 main ()
11024 return 0;
11026 _ACEOF
11027 if ac_fn_c_try_compile "$LINENO"; then :
11028 has_iquote="yes"
11029 else
11030 has_iquote="no"
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 else
11034 # we do know it is supported for the smallest version of gcc we are going to build
11035 # we assume it's also supported by later versions
11036 has_iquote=yes
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11039 $as_echo "$has_iquote" >&6; }
11040 if test "x-$has_iquote" = "x-yes" ; then
11041 kernel_cflags_iquote=-iquote
11042 kernel_cflags_iquote_end=
11043 else
11044 kernel_cflags_iquote=-I
11045 kernel_cflags_iquote_end=-I-
11048 aros_cflags_iquote=$kernel_cflags_iquote
11049 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11050 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11051 CC="$orig_target_cc"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11053 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11054 if test "x-$crosstools" != "x-yes"; then
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11059 main ()
11063 return 0;
11065 _ACEOF
11066 if ac_fn_c_try_compile "$LINENO"; then :
11067 has_iquote="yes"
11068 else
11069 has_iquote="no"
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 else
11073 # we do know it is supported for the smallest version of gcc we are going to build
11074 # we assume it's also supported by later versions
11075 has_iquote=yes
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11078 $as_echo "$has_iquote" >&6; }
11079 if test "x-$has_iquote" = "x-yes" ; then
11080 aros_cflags_iquote=-iquote
11081 aros_cflags_iquote_end=
11082 else
11083 aros_cflags_iquote=-I
11084 aros_cflags_iquote_end=-I-
11087 if test "x-$use_no_stack_protector" = "x-yes" ; then
11088 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11091 #-----------------------------------------------------------------------------
11093 # Check if we can explicitly choose older version of symbol hashing
11095 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11096 CC="$aros_kernel_cc"
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11098 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11103 main ()
11107 return 0;
11109 _ACEOF
11110 if ac_fn_c_try_link "$LINENO"; then :
11111 use_hash_style="yes"
11112 else
11113 use_hash_style="no"
11115 rm -f core conftest.err conftest.$ac_objext \
11116 conftest$ac_exeext conftest.$ac_ext
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11118 $as_echo "$use_hash_style" >&6; }
11119 if test "x-$use_hash_style" = "x-yes" ; then
11120 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11122 CC="$save_cc"
11123 CFLAGS="$save_cflags"
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11134 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11136 # Check whether --with-resolution was given.
11137 if test "${with_resolution+set}" = set; then :
11138 withval=$with_resolution; resolution=$withval
11139 else
11140 resolution=none
11143 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11144 if test "$resolution" = "yes" ; then
11145 resolution="none"
11147 if test "$resolution" = "no" ; then
11148 resolution="none"
11150 if test "$resolution" != "none" ; then
11151 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11152 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11153 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11156 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11157 aros_cv_default_wbwidth=$aros_default_wbwidth
11158 aros_cv_default_wbheight=$aros_default_wbheight
11159 aros_cv_default_wbdepth=$aros_default_wbdepth
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11162 $as_echo_n "checking if serial debug is enabled... " >&6; }
11164 # Check whether --with-serial-debug was given.
11165 if test "${with_serial_debug+set}" = set; then :
11166 withval=$with_serial_debug; serial_debug=$withval
11167 else
11168 serial_debug=none
11171 if test "$aros_serial_debug" = 0 ; then
11172 serial_debug_forced=""
11173 if test "$serial_debug" = "yes" ; then
11174 serial_debug="1"
11176 if test "$serial_debug" = "no" ; then
11177 serial_debug="none"
11179 else
11180 serial_debug_forced="(forced)"
11181 serial_debug=$aros_serial_debug
11183 if test "$serial_debug" != "none" ; then
11184 aros_serial_debug=$serial_debug
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11186 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189 $as_echo "no" >&6; }
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11193 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11194 # Check whether --enable-palm_debug_hack was given.
11195 if test "${enable_palm_debug_hack+set}" = set; then :
11196 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11197 else
11198 palm_debug_hack="no"
11201 if test "$palm_debug_hack" = "yes" ; then
11202 aros_palm_debug_hack="1"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11205 $as_echo "$palm_debug_hack" >&6; }
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11208 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11209 # Check whether --enable-usb30_code was given.
11210 if test "${enable_usb30_code+set}" = set; then :
11211 enableval=$enable_usb30_code; usb30_code="yes"
11212 else
11213 usb30_code="no"
11216 if test "$usb30_code" = "yes" ; then
11217 aros_usb30_code="1"
11218 else
11219 aros_usb30_code="0"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11222 $as_echo "$usb30_code" >&6; }
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11225 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11226 # Check whether --enable-nesting_supervisor was given.
11227 if test "${enable_nesting_supervisor+set}" = set; then :
11228 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11229 else
11230 nesting_supervisor="no"
11233 if test "$nesting_supervisor" = "yes" ; then
11234 aros_nesting_supervisor="1"
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11237 $as_echo "$nesting_supervisor" >&6; }
11239 if test "$aros_enable_mmu" = "" ; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11241 $as_echo_n "checking if MMU support is enabled... " >&6; }
11242 # Check whether --enable-mmu was given.
11243 if test "${enable_mmu+set}" = set; then :
11244 enableval=$enable_mmu; aros_enable_mmu=$enableval
11245 else
11246 aros_enable_mmu="yes"
11249 if test "$aros_enable_mmu" = "" ; then
11250 aros_enable_mmu="yes"
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11253 $as_echo "$aros_enable_mmu" >&6; }
11255 if test "$aros_enable_mmu" = "no" ; then
11256 aros_enable_mmu="0"
11257 else
11258 aros_enable_mmu="1"
11262 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11264 if test "x-$need_dlopen" != "x-no" ; then
11265 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11266 if test "x$ac_cv_func_dlopen" = xyes; then :
11267 have_dl="yes"
11268 else
11269 have_dl="no"
11272 if test "x-$have_dl" = "x-no" ; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11275 if ${ac_cv_lib_dl_dlopen+:} false; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 ac_check_lib_save_LIBS=$LIBS
11279 LIBS="-ldl $LIBS"
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 char dlopen ();
11291 main ()
11293 return dlopen ();
11295 return 0;
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 ac_cv_lib_dl_dlopen=yes
11300 else
11301 ac_cv_lib_dl_dlopen=no
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 LIBS=$ac_check_lib_save_LIBS
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11309 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11310 have_dl="yes"
11311 aros_host_ldflags="$aros_host_ldflags -ldl"
11312 else
11313 have_dl="no"
11317 if test "x-$have_dl" = "x-no" ; then
11318 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11323 # Check whether --enable-x11_hidd was given.
11324 if test "${enable_x11_hidd+set}" = set; then :
11325 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11326 else
11327 x11_hidd="$need_x11"
11330 case "x-$x11_hidd" in
11331 x-yes|x-no|x-auto) ;;
11332 *) x11_hidd="$need_x11" ;;
11333 esac
11335 ENABLE_X11=0
11337 if test "x-$x11_hidd" != "x-no" ; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11340 $as_echo_n "checking for X... " >&6; }
11343 # Check whether --with-x was given.
11344 if test "${with_x+set}" = set; then :
11345 withval=$with_x;
11348 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11349 if test "x$with_x" = xno; then
11350 # The user explicitly disabled X.
11351 have_x=disabled
11352 else
11353 case $x_includes,$x_libraries in #(
11354 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11355 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 # One or both of the vars are not set, and there is no cached value.
11359 ac_x_includes=no ac_x_libraries=no
11360 rm -f -r conftest.dir
11361 if mkdir conftest.dir; then
11362 cd conftest.dir
11363 cat >Imakefile <<'_ACEOF'
11364 incroot:
11365 @echo incroot='${INCROOT}'
11366 usrlibdir:
11367 @echo usrlibdir='${USRLIBDIR}'
11368 libdir:
11369 @echo libdir='${LIBDIR}'
11370 _ACEOF
11371 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11372 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11373 for ac_var in incroot usrlibdir libdir; do
11374 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11375 done
11376 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11377 for ac_extension in a so sl dylib la dll; do
11378 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11379 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11380 ac_im_usrlibdir=$ac_im_libdir; break
11382 done
11383 # Screen out bogus values from the imake configuration. They are
11384 # bogus both because they are the default anyway, and because
11385 # using them would break gcc on systems where it needs fixed includes.
11386 case $ac_im_incroot in
11387 /usr/include) ac_x_includes= ;;
11388 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11389 esac
11390 case $ac_im_usrlibdir in
11391 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11392 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11393 esac
11395 cd ..
11396 rm -f -r conftest.dir
11399 # Standard set of common directories for X headers.
11400 # Check X11 before X11Rn because it is often a symlink to the current release.
11401 ac_x_header_dirs='
11402 /usr/X11/include
11403 /usr/X11R7/include
11404 /usr/X11R6/include
11405 /usr/X11R5/include
11406 /usr/X11R4/include
11408 /usr/include/X11
11409 /usr/include/X11R7
11410 /usr/include/X11R6
11411 /usr/include/X11R5
11412 /usr/include/X11R4
11414 /usr/local/X11/include
11415 /usr/local/X11R7/include
11416 /usr/local/X11R6/include
11417 /usr/local/X11R5/include
11418 /usr/local/X11R4/include
11420 /usr/local/include/X11
11421 /usr/local/include/X11R7
11422 /usr/local/include/X11R6
11423 /usr/local/include/X11R5
11424 /usr/local/include/X11R4
11426 /usr/X386/include
11427 /usr/x386/include
11428 /usr/XFree86/include/X11
11430 /usr/include
11431 /usr/local/include
11432 /usr/unsupported/include
11433 /usr/athena/include
11434 /usr/local/x11r5/include
11435 /usr/lpp/Xamples/include
11437 /usr/openwin/include
11438 /usr/openwin/share/include'
11440 if test "$ac_x_includes" = no; then
11441 # Guess where to find include files, by looking for Xlib.h.
11442 # First, try using that file with no special directory specified.
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445 #include <X11/Xlib.h>
11446 _ACEOF
11447 if ac_fn_c_try_cpp "$LINENO"; then :
11448 # We can compile using X headers with no special include directory.
11449 ac_x_includes=
11450 else
11451 for ac_dir in $ac_x_header_dirs; do
11452 if test -r "$ac_dir/X11/Xlib.h"; then
11453 ac_x_includes=$ac_dir
11454 break
11456 done
11458 rm -f conftest.err conftest.i conftest.$ac_ext
11459 fi # $ac_x_includes = no
11461 if test "$ac_x_libraries" = no; then
11462 # Check for the libraries.
11463 # See if we find them without any special options.
11464 # Don't add to $LIBS permanently.
11465 ac_save_LIBS=$LIBS
11466 LIBS="-lX11 $LIBS"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469 #include <X11/Xlib.h>
11471 main ()
11473 XrmInitialize ()
11475 return 0;
11477 _ACEOF
11478 if ac_fn_c_try_link "$LINENO"; then :
11479 LIBS=$ac_save_LIBS
11480 # We can link X programs with no special library path.
11481 ac_x_libraries=
11482 else
11483 LIBS=$ac_save_LIBS
11484 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11486 # Don't even attempt the hair of trying to link an X program!
11487 for ac_extension in a so sl dylib la dll; do
11488 if test -r "$ac_dir/libX11.$ac_extension"; then
11489 ac_x_libraries=$ac_dir
11490 break 2
11492 done
11493 done
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 fi # $ac_x_libraries = no
11499 case $ac_x_includes,$ac_x_libraries in #(
11500 no,* | *,no | *\'*)
11501 # Didn't find X, or a directory has "'" in its name.
11502 ac_cv_have_x="have_x=no";; #(
11504 # Record where we found X for the cache.
11505 ac_cv_have_x="have_x=yes\
11506 ac_x_includes='$ac_x_includes'\
11507 ac_x_libraries='$ac_x_libraries'"
11508 esac
11510 ;; #(
11511 *) have_x=yes;;
11512 esac
11513 eval "$ac_cv_have_x"
11514 fi # $with_x != no
11516 if test "$have_x" != yes; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11518 $as_echo "$have_x" >&6; }
11519 no_x=yes
11520 else
11521 # If each of the values was on the command line, it overrides each guess.
11522 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11523 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11524 # Update the cache value to reflect the command line values.
11525 ac_cv_have_x="have_x=yes\
11526 ac_x_includes='$x_includes'\
11527 ac_x_libraries='$x_libraries'"
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11529 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11533 x_cflags=
11534 for path in $x_libraries
11536 x_cflags="$x_cflags -L$path"
11537 done
11539 for path in $x_includes
11541 x_cflags="$x_cflags -I$path"
11542 done
11544 if test "x-$no_x" = "x-yes" ; then
11546 if test "x-$x11_hidd" != "x-auto" ; then
11547 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11550 else
11551 x11_hidd_target=kernel-x11gfx-kobj
11552 ENABLE_X11=1
11554 # Check whether --enable-x11_shm was given.
11555 if test "${enable_x11_shm+set}" = set; then :
11556 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11557 else
11558 x11_hidd_shm="auto"
11561 case "x-$x11_hidd_shm" in
11562 x-yes|x-no|x-auto) ;;
11563 *) x11_hidd_shm="auto" ;;
11564 esac
11566 have_xshm=no
11568 if test "x-$x11_hidd_shm" != "x-no" ; then
11570 for ac_header in sys/ipc.h
11571 do :
11572 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11573 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11574 cat >>confdefs.h <<_ACEOF
11575 #define HAVE_SYS_IPC_H 1
11576 _ACEOF
11580 done
11582 for ac_header in sys/shm.h
11583 do :
11584 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11585 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_SYS_SHM_H 1
11588 _ACEOF
11592 done
11595 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11597 save_cflags="$CFLAGS"
11598 CFLAGS="$CFLAGS $x_cflags"
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11600 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11601 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-lXext $LIBS"
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11609 /* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 char XShmQueryExtension ();
11617 main ()
11619 return XShmQueryExtension ();
11621 return 0;
11623 _ACEOF
11624 if ac_fn_c_try_link "$LINENO"; then :
11625 ac_cv_lib_Xext_XShmQueryExtension=yes
11626 else
11627 ac_cv_lib_Xext_XShmQueryExtension=no
11629 rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11634 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11635 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11636 have_xshm=yes
11639 CFLAGS="$save_cflags"
11643 if test "x-$have_xshm" = "x-yes" ; then
11644 DO_XSHM_SUPPORT="1"
11645 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11646 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11647 else
11648 DO_XSHM_SUPPORT="0"
11652 # Check whether --enable-x11_vidmode was given.
11653 if test "${enable_x11_vidmode+set}" = set; then :
11654 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11655 else
11656 x11_hidd_vidmode="auto"
11659 case "x-$x11_hidd_vidmode" in
11660 x-yes|x-no|x-auto) ;;
11661 *) x11_hidd_vidmode="auto" ;;
11662 esac
11664 have_vidmode=no
11666 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11668 save_cflags="$CFLAGS"
11669 CFLAGS="$CFLAGS $x_cflags"
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11671 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11672 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 ac_check_lib_save_LIBS=$LIBS
11676 LIBS="-lXxf86vm $LIBS"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11683 #ifdef __cplusplus
11684 extern "C"
11685 #endif
11686 char XF86VidModeQueryExtension ();
11688 main ()
11690 return XF86VidModeQueryExtension ();
11692 return 0;
11694 _ACEOF
11695 if ac_fn_c_try_link "$LINENO"; then :
11696 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11697 else
11698 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11700 rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11702 LIBS=$ac_check_lib_save_LIBS
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11705 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11706 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11707 have_vidmode=yes
11710 CFLAGS="$save_cflags"
11713 if test "x-$have_vidmode" = "x-yes" ; then
11714 DO_VIDMODE_SUPPORT="1"
11715 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11716 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11717 else
11718 DO_VIDMODE_SUPPORT="0"
11722 aros_host_x11_includes=$x_includes
11723 aros_host_x11_libdirs=$x_libraries
11727 # Check whether --enable-sdl_hidd was given.
11728 if test "${enable_sdl_hidd+set}" = set; then :
11729 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11730 else
11731 sdl_hidd="auto"
11734 case "x-$sdl_hidd" in
11735 x-yes|x-no|x-auto) ;;
11736 *) sdl_hidd="auto" ;;
11737 esac
11739 if test "x-$sdl_hidd" != "x-no" ; then
11742 # Check whether --with-sdl-prefix was given.
11743 if test "${with_sdl_prefix+set}" = set; then :
11744 withval=$with_sdl_prefix; sdl_prefix="$withval"
11745 else
11746 sdl_prefix=""
11750 # Check whether --with-sdl-exec-prefix was given.
11751 if test "${with_sdl_exec_prefix+set}" = set; then :
11752 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11753 else
11754 sdl_exec_prefix=""
11757 # Check whether --enable-sdltest was given.
11758 if test "${enable_sdltest+set}" = set; then :
11759 enableval=$enable_sdltest;
11760 else
11761 enable_sdltest=yes
11765 if test x$sdl_exec_prefix != x ; then
11766 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11767 if test x${SDL_CONFIG+set} != xset ; then
11768 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11771 if test x$sdl_prefix != x ; then
11772 sdl_args="$sdl_args --prefix=$sdl_prefix"
11773 if test x${SDL_CONFIG+set} != xset ; then
11774 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11778 if test "x$prefix" != xNONE; then
11779 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11781 # Extract the first word of "sdl-config", so it can be a program name with args.
11782 set dummy sdl-config; ac_word=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787 else
11788 case $SDL_CONFIG in
11789 [\\/]* | ?:[\\/]*)
11790 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11796 IFS=$as_save_IFS
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11800 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 break 2
11804 done
11805 done
11806 IFS=$as_save_IFS
11808 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11810 esac
11812 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11813 if test -n "$SDL_CONFIG"; then
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11815 $as_echo "$SDL_CONFIG" >&6; }
11816 else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11822 min_sdl_version=1.2.10
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11824 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11825 no_sdl=""
11826 if test "$SDL_CONFIG" = "no" ; then
11827 no_sdl=yes
11828 else
11829 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11830 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11832 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11834 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11835 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11836 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11837 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11838 if test "x$enable_sdltest" = "xyes" ; then
11839 ac_save_CFLAGS="$CFLAGS"
11840 ac_save_CXXFLAGS="$CXXFLAGS"
11841 ac_save_LIBS="$LIBS"
11842 CFLAGS="$CFLAGS $SDL_CFLAGS"
11843 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11844 LIBS="$LIBS $SDL_LIBS"
11845 rm -f conf.sdltest
11846 if test "$cross_compiling" = yes; then :
11847 echo $ac_n "cross compiling; assumed OK... $ac_c"
11848 else
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h. */
11852 #include <stdio.h>
11853 #include <stdlib.h>
11854 #include <string.h>
11855 #include "SDL.h"
11857 char*
11858 my_strdup (char *str)
11860 char *new_str;
11862 if (str)
11864 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11865 strcpy (new_str, str);
11867 else
11868 new_str = NULL;
11870 return new_str;
11873 int main (int argc, char *argv[])
11875 int major, minor, micro;
11876 char *tmp_version;
11878 /* This hangs on some systems (?)
11879 system ("touch conf.sdltest");
11881 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11883 /* HP/UX 9 (%@#!) writes to sscanf strings */
11884 tmp_version = my_strdup("$min_sdl_version");
11885 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11886 printf("%s, bad version string\n", "$min_sdl_version");
11887 exit(1);
11890 if (($sdl_major_version > major) ||
11891 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11892 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11894 return 0;
11896 else
11898 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11899 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11900 printf("*** best to upgrade to the required version.\n");
11901 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11902 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11903 printf("*** config.cache before re-running configure\n");
11904 return 1;
11909 _ACEOF
11910 if ac_fn_c_try_run "$LINENO"; then :
11912 else
11913 no_sdl=yes
11915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11916 conftest.$ac_objext conftest.beam conftest.$ac_ext
11919 CFLAGS="$ac_save_CFLAGS"
11920 CXXFLAGS="$ac_save_CXXFLAGS"
11921 LIBS="$ac_save_LIBS"
11924 if test "x$no_sdl" = x ; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11926 $as_echo "yes" >&6; }
11927 have_sdl="yes"
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931 if test "$SDL_CONFIG" = "no" ; then
11932 echo "*** The sdl-config script installed by SDL could not be found"
11933 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11934 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11935 echo "*** full path to sdl-config."
11936 else
11937 if test -f conf.sdltest ; then
11939 else
11940 echo "*** Could not run SDL test program, checking why..."
11941 CFLAGS="$CFLAGS $SDL_CFLAGS"
11942 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11943 LIBS="$LIBS $SDL_LIBS"
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11947 #include <stdio.h>
11948 #include "SDL.h"
11950 int main(int argc, char *argv[])
11951 { return 0; }
11952 #undef main
11953 #define main K_and_R_C_main
11956 main ()
11958 return 0;
11960 return 0;
11962 _ACEOF
11963 if ac_fn_c_try_link "$LINENO"; then :
11964 echo "*** The test program compiled, but did not run. This usually means"
11965 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11966 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11967 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11968 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11969 echo "*** is required on your system"
11970 echo "***"
11971 echo "*** If you have an old version installed, it is best to remove it, although"
11972 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11973 else
11974 echo "*** The test program failed to compile or link. See the file config.log for the"
11975 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11976 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11977 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 CFLAGS="$ac_save_CFLAGS"
11982 CXXFLAGS="$ac_save_CXXFLAGS"
11983 LIBS="$ac_save_LIBS"
11986 SDL_CFLAGS=""
11987 SDL_LIBS=""
11988 have_sdl="no"
11992 rm -f conf.sdltest
11995 if test "x-$have_sdl" != "x-yes" ; then
11997 if test "x-$sdl_hidd" != "x-auto" ; then
11998 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12001 else
12002 sdl_hidd_target=kernel-hidd-sdl
12003 aros_host_sdl_cflags=SDL_CFLAGS
12004 aros_host_sdl_libs=SDL_LIBS
12008 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12009 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12014 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12015 oss_library_target=workbench-libs-oss-unix
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12021 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12022 # Check whether --enable-dbus was given.
12023 if test "${enable_dbus+set}" = set; then :
12024 enableval=$enable_dbus; dbus="yes"
12025 else
12026 dbus="no"
12029 if test "$dbus" = "yes" ; then
12030 ENABLE_DBUS=1
12031 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12032 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12033 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12034 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12035 else
12036 ENABLE_DBUS=0
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12039 $as_echo "$dbus" >&6; }
12041 if test "$use_kernel_cc_wrapper" = "yes" ; then
12042 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12046 # Generic
12057 # Compatability with other Amiga-like operation systems
12060 # Host related
12085 # Target Related
12143 # Graphics Related
12160 # Native version related
12163 # Palm native version related
12166 # USB3.0 code
12169 # Unix/Hosted version related
12172 # MMU related
12175 # Apple iOS related
12180 # Android related
12184 # DBUS related
12191 #X11 related
12194 # Debug related
12200 # Collect-aros stuff: "-ius" to ignore undefined symbols
12203 # C compiler related
12206 case "$aros_flavour" in
12207 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12208 aros_flavour="emulation" ;;
12209 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12210 aros_flavour="emulation" ;;
12211 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12212 aros_flavour="standalone";;
12213 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12214 aros_flavour="standalone";;
12215 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12216 aros_flavour="native" ;;
12217 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12218 aros_flavour="native" ;;
12219 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12220 aros_flavour="linklib" ;;
12221 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12222 aros_flavour="palmnative" ;;
12223 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12224 aros_flavour="mac68knative" ;;
12225 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12226 aros_flavour="ppcnative" ;;
12227 esac
12229 if test ! -d ${aros_inc_dir} ; then
12230 ${MKDIR} ${aros_inc_dir}
12232 if test ! -d ${aros_geninc_dir} ; then
12233 ${MKDIR} ${aros_geninc_dir}
12235 if test ! -d ${aros_hostcfg_dir} ; then
12236 ${MKDIR} ${aros_hostcfg_dir}
12238 if test ! -d ${aros_targetcfg_dir} ; then
12239 ${MKDIR} ${aros_targetcfg_dir}
12241 if test ! -d ${aros_tools_dir} ; then
12242 ${MKDIR} ${aros_tools_dir}
12244 if test ! -d ${aros_scripts_dir} ; then
12245 ${MKDIR} ${aros_scripts_dir}
12248 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12251 ac_config_commands="$ac_config_commands compiler_executable"
12253 ac_config_commands="$ac_config_commands genmf_executable"
12256 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"
12259 cat >confcache <<\_ACEOF
12260 # This file is a shell script that caches the results of configure
12261 # tests run on this system so they can be shared between configure
12262 # scripts and configure runs, see configure's option --config-cache.
12263 # It is not useful on other systems. If it contains results you don't
12264 # want to keep, you may remove or edit it.
12266 # config.status only pays attention to the cache file if you give it
12267 # the --recheck option to rerun configure.
12269 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12270 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12271 # following values.
12273 _ACEOF
12275 # The following way of writing the cache mishandles newlines in values,
12276 # but we know of no workaround that is simple, portable, and efficient.
12277 # So, we kill variables containing newlines.
12278 # Ultrix sh set writes to stderr and can't be redirected directly,
12279 # and sets the high bit in the cache file unless we assign to the vars.
12281 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12282 eval ac_val=\$$ac_var
12283 case $ac_val in #(
12284 *${as_nl}*)
12285 case $ac_var in #(
12286 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12287 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12288 esac
12289 case $ac_var in #(
12290 _ | IFS | as_nl) ;; #(
12291 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12292 *) { eval $ac_var=; unset $ac_var;} ;;
12293 esac ;;
12294 esac
12295 done
12297 (set) 2>&1 |
12298 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12299 *${as_nl}ac_space=\ *)
12300 # `set' does not quote correctly, so add quotes: double-quote
12301 # substitution turns \\\\ into \\, and sed turns \\ into \.
12302 sed -n \
12303 "s/'/'\\\\''/g;
12304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12305 ;; #(
12307 # `set' quotes correctly as required by POSIX, so do not add quotes.
12308 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12310 esac |
12311 sort
12313 sed '
12314 /^ac_cv_env_/b end
12315 t clear
12316 :clear
12317 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12318 t end
12319 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12320 :end' >>confcache
12321 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12322 if test -w "$cache_file"; then
12323 if test "x$cache_file" != "x/dev/null"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12325 $as_echo "$as_me: updating cache $cache_file" >&6;}
12326 if test ! -f "$cache_file" || test -h "$cache_file"; then
12327 cat confcache >"$cache_file"
12328 else
12329 case $cache_file in #(
12330 */* | ?:*)
12331 mv -f confcache "$cache_file"$$ &&
12332 mv -f "$cache_file"$$ "$cache_file" ;; #(
12334 mv -f confcache "$cache_file" ;;
12335 esac
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12340 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12343 rm -f confcache
12345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12346 # Let make expand exec_prefix.
12347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12349 DEFS=-DHAVE_CONFIG_H
12351 ac_libobjs=
12352 ac_ltlibobjs=
12354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12355 # 1. Remove the extension, and $U if already installed.
12356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12357 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12359 # will be set to the directory where LIBOBJS objects are built.
12360 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12361 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12362 done
12363 LIBOBJS=$ac_libobjs
12365 LTLIBOBJS=$ac_ltlibobjs
12369 : "${CONFIG_STATUS=./config.status}"
12370 ac_write_fail=0
12371 ac_clean_files_save=$ac_clean_files
12372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12374 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12375 as_write_fail=0
12376 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12377 #! $SHELL
12378 # Generated by $as_me.
12379 # Run this file to recreate the current configuration.
12380 # Compiler output produced by configure, useful for debugging
12381 # configure, is in config.log if it exists.
12383 debug=false
12384 ac_cs_recheck=false
12385 ac_cs_silent=false
12387 SHELL=\${CONFIG_SHELL-$SHELL}
12388 export SHELL
12389 _ASEOF
12390 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12391 ## -------------------- ##
12392 ## M4sh Initialization. ##
12393 ## -------------------- ##
12395 # Be more Bourne compatible
12396 DUALCASE=1; export DUALCASE # for MKS sh
12397 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12398 emulate sh
12399 NULLCMD=:
12400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12401 # is contrary to our usage. Disable this feature.
12402 alias -g '${1+"$@"}'='"$@"'
12403 setopt NO_GLOB_SUBST
12404 else
12405 case `(set -o) 2>/dev/null` in #(
12406 *posix*) :
12407 set -o posix ;; #(
12408 *) :
12410 esac
12414 as_nl='
12416 export as_nl
12417 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12418 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12419 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12421 # Prefer a ksh shell builtin over an external printf program on Solaris,
12422 # but without wasting forks for bash or zsh.
12423 if test -z "$BASH_VERSION$ZSH_VERSION" \
12424 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12425 as_echo='print -r --'
12426 as_echo_n='print -rn --'
12427 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12428 as_echo='printf %s\n'
12429 as_echo_n='printf %s'
12430 else
12431 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12432 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12433 as_echo_n='/usr/ucb/echo -n'
12434 else
12435 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12436 as_echo_n_body='eval
12437 arg=$1;
12438 case $arg in #(
12439 *"$as_nl"*)
12440 expr "X$arg" : "X\\(.*\\)$as_nl";
12441 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12442 esac;
12443 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12445 export as_echo_n_body
12446 as_echo_n='sh -c $as_echo_n_body as_echo'
12448 export as_echo_body
12449 as_echo='sh -c $as_echo_body as_echo'
12452 # The user is always right.
12453 if test "${PATH_SEPARATOR+set}" != set; then
12454 PATH_SEPARATOR=:
12455 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12456 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12457 PATH_SEPARATOR=';'
12462 # IFS
12463 # We need space, tab and new line, in precisely that order. Quoting is
12464 # there to prevent editors from complaining about space-tab.
12465 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12466 # splitting by setting IFS to empty value.)
12467 IFS=" "" $as_nl"
12469 # Find who we are. Look in the path if we contain no directory separator.
12470 as_myself=
12471 case $0 in #((
12472 *[\\/]* ) as_myself=$0 ;;
12473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
12478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12479 done
12480 IFS=$as_save_IFS
12483 esac
12484 # We did not find ourselves, most probably we were run as `sh COMMAND'
12485 # in which case we are not to be found in the path.
12486 if test "x$as_myself" = x; then
12487 as_myself=$0
12489 if test ! -f "$as_myself"; then
12490 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12491 exit 1
12494 # Unset variables that we do not need and which cause bugs (e.g. in
12495 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12496 # suppresses any "Segmentation fault" message there. '((' could
12497 # trigger a bug in pdksh 5.2.14.
12498 for as_var in BASH_ENV ENV MAIL MAILPATH
12499 do eval test x\${$as_var+set} = xset \
12500 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12501 done
12502 PS1='$ '
12503 PS2='> '
12504 PS4='+ '
12506 # NLS nuisances.
12507 LC_ALL=C
12508 export LC_ALL
12509 LANGUAGE=C
12510 export LANGUAGE
12512 # CDPATH.
12513 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12516 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12517 # ----------------------------------------
12518 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12519 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12520 # script with STATUS, using 1 if that was 0.
12521 as_fn_error ()
12523 as_status=$1; test $as_status -eq 0 && as_status=1
12524 if test "$4"; then
12525 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12526 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12528 $as_echo "$as_me: error: $2" >&2
12529 as_fn_exit $as_status
12530 } # as_fn_error
12533 # as_fn_set_status STATUS
12534 # -----------------------
12535 # Set $? to STATUS, without forking.
12536 as_fn_set_status ()
12538 return $1
12539 } # as_fn_set_status
12541 # as_fn_exit STATUS
12542 # -----------------
12543 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12544 as_fn_exit ()
12546 set +e
12547 as_fn_set_status $1
12548 exit $1
12549 } # as_fn_exit
12551 # as_fn_unset VAR
12552 # ---------------
12553 # Portably unset VAR.
12554 as_fn_unset ()
12556 { eval $1=; unset $1;}
12558 as_unset=as_fn_unset
12559 # as_fn_append VAR VALUE
12560 # ----------------------
12561 # Append the text in VALUE to the end of the definition contained in VAR. Take
12562 # advantage of any shell optimizations that allow amortized linear growth over
12563 # repeated appends, instead of the typical quadratic growth present in naive
12564 # implementations.
12565 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12566 eval 'as_fn_append ()
12568 eval $1+=\$2
12570 else
12571 as_fn_append ()
12573 eval $1=\$$1\$2
12575 fi # as_fn_append
12577 # as_fn_arith ARG...
12578 # ------------------
12579 # Perform arithmetic evaluation on the ARGs, and store the result in the
12580 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12581 # must be portable across $(()) and expr.
12582 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12583 eval 'as_fn_arith ()
12585 as_val=$(( $* ))
12587 else
12588 as_fn_arith ()
12590 as_val=`expr "$@" || test $? -eq 1`
12592 fi # as_fn_arith
12595 if expr a : '\(a\)' >/dev/null 2>&1 &&
12596 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12597 as_expr=expr
12598 else
12599 as_expr=false
12602 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12603 as_basename=basename
12604 else
12605 as_basename=false
12608 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12609 as_dirname=dirname
12610 else
12611 as_dirname=false
12614 as_me=`$as_basename -- "$0" ||
12615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12616 X"$0" : 'X\(//\)$' \| \
12617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12618 $as_echo X/"$0" |
12619 sed '/^.*\/\([^/][^/]*\)\/*$/{
12620 s//\1/
12623 /^X\/\(\/\/\)$/{
12624 s//\1/
12627 /^X\/\(\/\).*/{
12628 s//\1/
12631 s/.*/./; q'`
12633 # Avoid depending upon Character Ranges.
12634 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12635 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12636 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12637 as_cr_digits='0123456789'
12638 as_cr_alnum=$as_cr_Letters$as_cr_digits
12640 ECHO_C= ECHO_N= ECHO_T=
12641 case `echo -n x` in #(((((
12642 -n*)
12643 case `echo 'xy\c'` in
12644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12645 xy) ECHO_C='\c';;
12646 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12647 ECHO_T=' ';;
12648 esac;;
12650 ECHO_N='-n';;
12651 esac
12653 rm -f conf$$ conf$$.exe conf$$.file
12654 if test -d conf$$.dir; then
12655 rm -f conf$$.dir/conf$$.file
12656 else
12657 rm -f conf$$.dir
12658 mkdir conf$$.dir 2>/dev/null
12660 if (echo >conf$$.file) 2>/dev/null; then
12661 if ln -s conf$$.file conf$$ 2>/dev/null; then
12662 as_ln_s='ln -s'
12663 # ... but there are two gotchas:
12664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12666 # In both cases, we have to default to `cp -p'.
12667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12668 as_ln_s='cp -p'
12669 elif ln conf$$.file conf$$ 2>/dev/null; then
12670 as_ln_s=ln
12671 else
12672 as_ln_s='cp -p'
12674 else
12675 as_ln_s='cp -p'
12677 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12678 rmdir conf$$.dir 2>/dev/null
12681 # as_fn_mkdir_p
12682 # -------------
12683 # Create "$as_dir" as a directory, including parents if necessary.
12684 as_fn_mkdir_p ()
12687 case $as_dir in #(
12688 -*) as_dir=./$as_dir;;
12689 esac
12690 test -d "$as_dir" || eval $as_mkdir_p || {
12691 as_dirs=
12692 while :; do
12693 case $as_dir in #(
12694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12695 *) as_qdir=$as_dir;;
12696 esac
12697 as_dirs="'$as_qdir' $as_dirs"
12698 as_dir=`$as_dirname -- "$as_dir" ||
12699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12700 X"$as_dir" : 'X\(//\)[^/]' \| \
12701 X"$as_dir" : 'X\(//\)$' \| \
12702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12703 $as_echo X"$as_dir" |
12704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12705 s//\1/
12708 /^X\(\/\/\)[^/].*/{
12709 s//\1/
12712 /^X\(\/\/\)$/{
12713 s//\1/
12716 /^X\(\/\).*/{
12717 s//\1/
12720 s/.*/./; q'`
12721 test -d "$as_dir" && break
12722 done
12723 test -z "$as_dirs" || eval "mkdir $as_dirs"
12724 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12727 } # as_fn_mkdir_p
12728 if mkdir -p . 2>/dev/null; then
12729 as_mkdir_p='mkdir -p "$as_dir"'
12730 else
12731 test -d ./-p && rmdir ./-p
12732 as_mkdir_p=false
12735 if test -x / >/dev/null 2>&1; then
12736 as_test_x='test -x'
12737 else
12738 if ls -dL / >/dev/null 2>&1; then
12739 as_ls_L_option=L
12740 else
12741 as_ls_L_option=
12743 as_test_x='
12744 eval sh -c '\''
12745 if test -d "$1"; then
12746 test -d "$1/.";
12747 else
12748 case $1 in #(
12749 -*)set "./$1";;
12750 esac;
12751 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12752 ???[sx]*):;;*)false;;esac;fi
12753 '\'' sh
12756 as_executable_p=$as_test_x
12758 # Sed expression to map a string onto a valid CPP name.
12759 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12761 # Sed expression to map a string onto a valid variable name.
12762 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12765 exec 6>&1
12766 ## ----------------------------------- ##
12767 ## Main body of $CONFIG_STATUS script. ##
12768 ## ----------------------------------- ##
12769 _ASEOF
12770 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12773 # Save the log message, to keep $0 and so on meaningful, and to
12774 # report actual input values of CONFIG_FILES etc. instead of their
12775 # values after options handling.
12776 ac_log="
12777 This file was extended by $as_me, which was
12778 generated by GNU Autoconf 2.68. Invocation command line was
12780 CONFIG_FILES = $CONFIG_FILES
12781 CONFIG_HEADERS = $CONFIG_HEADERS
12782 CONFIG_LINKS = $CONFIG_LINKS
12783 CONFIG_COMMANDS = $CONFIG_COMMANDS
12784 $ $0 $@
12786 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12789 _ACEOF
12791 case $ac_config_files in *"
12792 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12793 esac
12795 case $ac_config_headers in *"
12796 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12797 esac
12800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12801 # Files that config.status was made for.
12802 config_files="$ac_config_files"
12803 config_headers="$ac_config_headers"
12804 config_commands="$ac_config_commands"
12806 _ACEOF
12808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12809 ac_cs_usage="\
12810 \`$as_me' instantiates files and other configuration actions
12811 from templates according to the current configuration. Unless the files
12812 and actions are specified as TAGs, all are instantiated by default.
12814 Usage: $0 [OPTION]... [TAG]...
12816 -h, --help print this help, then exit
12817 -V, --version print version number and configuration settings, then exit
12818 --config print configuration, then exit
12819 -q, --quiet, --silent
12820 do not print progress messages
12821 -d, --debug don't remove temporary files
12822 --recheck update $as_me by reconfiguring in the same conditions
12823 --file=FILE[:TEMPLATE]
12824 instantiate the configuration file FILE
12825 --header=FILE[:TEMPLATE]
12826 instantiate the configuration header FILE
12828 Configuration files:
12829 $config_files
12831 Configuration headers:
12832 $config_headers
12834 Configuration commands:
12835 $config_commands
12837 Report bugs to the package provider."
12839 _ACEOF
12840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12841 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12842 ac_cs_version="\\
12843 config.status
12844 configured by $0, generated by GNU Autoconf 2.68,
12845 with options \\"\$ac_cs_config\\"
12847 Copyright (C) 2010 Free Software Foundation, Inc.
12848 This config.status script is free software; the Free Software Foundation
12849 gives unlimited permission to copy, distribute and modify it."
12851 ac_pwd='$ac_pwd'
12852 srcdir='$srcdir'
12853 test -n "\$AWK" || AWK=awk
12854 _ACEOF
12856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12857 # The default lists apply if the user does not specify any file.
12858 ac_need_defaults=:
12859 while test $# != 0
12861 case $1 in
12862 --*=?*)
12863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12865 ac_shift=:
12867 --*=)
12868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12869 ac_optarg=
12870 ac_shift=:
12873 ac_option=$1
12874 ac_optarg=$2
12875 ac_shift=shift
12877 esac
12879 case $ac_option in
12880 # Handling of the options.
12881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12882 ac_cs_recheck=: ;;
12883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12884 $as_echo "$ac_cs_version"; exit ;;
12885 --config | --confi | --conf | --con | --co | --c )
12886 $as_echo "$ac_cs_config"; exit ;;
12887 --debug | --debu | --deb | --de | --d | -d )
12888 debug=: ;;
12889 --file | --fil | --fi | --f )
12890 $ac_shift
12891 case $ac_optarg in
12892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12893 '') as_fn_error $? "missing file argument" ;;
12894 esac
12895 as_fn_append CONFIG_FILES " '$ac_optarg'"
12896 ac_need_defaults=false;;
12897 --header | --heade | --head | --hea )
12898 $ac_shift
12899 case $ac_optarg in
12900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12901 esac
12902 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12903 ac_need_defaults=false;;
12904 --he | --h)
12905 # Conflict between --help and --header
12906 as_fn_error $? "ambiguous option: \`$1'
12907 Try \`$0 --help' for more information.";;
12908 --help | --hel | -h )
12909 $as_echo "$ac_cs_usage"; exit ;;
12910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12911 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12912 ac_cs_silent=: ;;
12914 # This is an error.
12915 -*) as_fn_error $? "unrecognized option: \`$1'
12916 Try \`$0 --help' for more information." ;;
12918 *) as_fn_append ac_config_targets " $1"
12919 ac_need_defaults=false ;;
12921 esac
12922 shift
12923 done
12925 ac_configure_extra_args=
12927 if $ac_cs_silent; then
12928 exec 6>/dev/null
12929 ac_configure_extra_args="$ac_configure_extra_args --silent"
12932 _ACEOF
12933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12934 if \$ac_cs_recheck; then
12935 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12936 shift
12937 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12938 CONFIG_SHELL='$SHELL'
12939 export CONFIG_SHELL
12940 exec "\$@"
12943 _ACEOF
12944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12945 exec 5>>config.log
12947 echo
12948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12949 ## Running $as_me. ##
12950 _ASBOX
12951 $as_echo "$ac_log"
12952 } >&5
12954 _ACEOF
12955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12957 # INIT-COMMANDS
12960 aros_host_exe_suffix=${aros_host_exe_suffix}
12961 aros_tools_dir=${aros_tools_dir}
12962 aros_target_cpu=${aros_target_cpu}
12963 aros_target_arch=${aros_target_arch}
12964 aros_target_suffix=${aros_target_suffix}
12965 aros_target_nm_ln=${aros_target_nm_ln}
12966 aros_target_as_ln=${aros_target_as_ln}
12967 aros_target_ar_ln=${aros_target_ar_ln}
12968 aros_target_ranlib_ln=${aros_target_ranlib_ln}
12969 aros_target_objdump_ln=${aros_target_objdump_ln}
12970 aros_target_objcopy_ln=${aros_target_objcopy_ln}
12971 aros_target_strip_ln=${aros_target_strip_ln}
12972 aros_kernel_ld=${aros_kernel_ld}
12975 aros_tools_dir=${aros_tools_dir}
12978 _ACEOF
12980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12982 # Handling of arguments.
12983 for ac_config_target in $ac_config_targets
12985 case $ac_config_target in
12986 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12987 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
12988 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
12989 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12990 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
12991 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
12992 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
12993 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
12994 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
12995 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
12996 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
12997 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
12998 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
12999 "${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" ;;
13000 "${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" ;;
13001 "${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" ;;
13002 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13003 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13004 "${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" ;;
13006 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13007 esac
13008 done
13011 # If the user did not use the arguments to specify the items to instantiate,
13012 # then the envvar interface is used. Set only those that are not.
13013 # We use the long form for the default assignment because of an extremely
13014 # bizarre bug on SunOS 4.1.3.
13015 if $ac_need_defaults; then
13016 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13017 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13018 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13021 # Have a temporary directory for convenience. Make it in the build tree
13022 # simply because there is no reason against having it here, and in addition,
13023 # creating and moving files from /tmp can sometimes cause problems.
13024 # Hook for its removal unless debugging.
13025 # Note that there is a small window in which the directory will not be cleaned:
13026 # after its creation but before its name has been assigned to `$tmp'.
13027 $debug ||
13029 tmp= ac_tmp=
13030 trap 'exit_status=$?
13031 : "${ac_tmp:=$tmp}"
13032 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13034 trap 'as_fn_exit 1' 1 2 13 15
13036 # Create a (secure) tmp directory for tmp files.
13039 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13040 test -d "$tmp"
13041 } ||
13043 tmp=./conf$$-$RANDOM
13044 (umask 077 && mkdir "$tmp")
13045 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13046 ac_tmp=$tmp
13048 # Set up the scripts for CONFIG_FILES section.
13049 # No need to generate them if there are no CONFIG_FILES.
13050 # This happens for instance with `./config.status config.h'.
13051 if test -n "$CONFIG_FILES"; then
13054 ac_cr=`echo X | tr X '\015'`
13055 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13056 # But we know of no other shell where ac_cr would be empty at this
13057 # point, so we can use a bashism as a fallback.
13058 if test "x$ac_cr" = x; then
13059 eval ac_cr=\$\'\\r\'
13061 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13062 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13063 ac_cs_awk_cr='\\r'
13064 else
13065 ac_cs_awk_cr=$ac_cr
13068 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13069 _ACEOF
13073 echo "cat >conf$$subs.awk <<_ACEOF" &&
13074 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13075 echo "_ACEOF"
13076 } >conf$$subs.sh ||
13077 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13078 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13079 ac_delim='%!_!# '
13080 for ac_last_try in false false false false false :; do
13081 . ./conf$$subs.sh ||
13082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13084 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13085 if test $ac_delim_n = $ac_delim_num; then
13086 break
13087 elif $ac_last_try; then
13088 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13089 else
13090 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13092 done
13093 rm -f conf$$subs.sh
13095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13096 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13097 _ACEOF
13098 sed -n '
13100 s/^/S["/; s/!.*/"]=/
13103 s/^[^!]*!//
13104 :repl
13105 t repl
13106 s/'"$ac_delim"'$//
13107 t delim
13110 s/\(.\{148\}\)..*/\1/
13111 t more1
13112 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13115 b repl
13116 :more1
13117 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13120 s/.\{148\}//
13121 t nl
13122 :delim
13124 s/\(.\{148\}\)..*/\1/
13125 t more2
13126 s/["\\]/\\&/g; s/^/"/; s/$/"/
13129 :more2
13130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13133 s/.\{148\}//
13134 t delim
13135 ' <conf$$subs.awk | sed '
13136 /^[^""]/{
13138 s/\n//
13140 ' >>$CONFIG_STATUS || ac_write_fail=1
13141 rm -f conf$$subs.awk
13142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13143 _ACAWK
13144 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13145 for (key in S) S_is_set[key] = 1
13146 FS = "\a"
13150 line = $ 0
13151 nfields = split(line, field, "@")
13152 substed = 0
13153 len = length(field[1])
13154 for (i = 2; i < nfields; i++) {
13155 key = field[i]
13156 keylen = length(key)
13157 if (S_is_set[key]) {
13158 value = S[key]
13159 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13160 len += length(value) + length(field[++i])
13161 substed = 1
13162 } else
13163 len += 1 + keylen
13166 print line
13169 _ACAWK
13170 _ACEOF
13171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13172 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13173 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13174 else
13176 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13177 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13178 _ACEOF
13180 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13181 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13182 # trailing colons and then remove the whole line if VPATH becomes empty
13183 # (actually we leave an empty line to preserve line numbers).
13184 if test "x$srcdir" = x.; then
13185 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13187 s///
13188 s/^/:/
13189 s/[ ]*$/:/
13190 s/:\$(srcdir):/:/g
13191 s/:\${srcdir}:/:/g
13192 s/:@srcdir@:/:/g
13193 s/^:*//
13194 s/:*$//
13196 s/\(=[ ]*\).*/\1/
13198 s/\n//
13199 s/^[^=]*=[ ]*$//
13203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13204 fi # test -n "$CONFIG_FILES"
13206 # Set up the scripts for CONFIG_HEADERS section.
13207 # No need to generate them if there are no CONFIG_HEADERS.
13208 # This happens for instance with `./config.status Makefile'.
13209 if test -n "$CONFIG_HEADERS"; then
13210 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13211 BEGIN {
13212 _ACEOF
13214 # Transform confdefs.h into an awk script `defines.awk', embedded as
13215 # here-document in config.status, that substitutes the proper values into
13216 # config.h.in to produce config.h.
13218 # Create a delimiter string that does not exist in confdefs.h, to ease
13219 # handling of long lines.
13220 ac_delim='%!_!# '
13221 for ac_last_try in false false :; do
13222 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13223 if test -z "$ac_tt"; then
13224 break
13225 elif $ac_last_try; then
13226 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13227 else
13228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13230 done
13232 # For the awk script, D is an array of macro values keyed by name,
13233 # likewise P contains macro parameters if any. Preserve backslash
13234 # newline sequences.
13236 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13237 sed -n '
13238 s/.\{148\}/&'"$ac_delim"'/g
13239 t rset
13240 :rset
13241 s/^[ ]*#[ ]*define[ ][ ]*/ /
13242 t def
13244 :def
13245 s/\\$//
13246 t bsnl
13247 s/["\\]/\\&/g
13248 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13249 D["\1"]=" \3"/p
13250 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13252 :bsnl
13253 s/["\\]/\\&/g
13254 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13255 D["\1"]=" \3\\\\\\n"\\/p
13256 t cont
13257 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13258 t cont
13260 :cont
13262 s/.\{148\}/&'"$ac_delim"'/g
13263 t clear
13264 :clear
13265 s/\\$//
13266 t bsnlc
13267 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13269 :bsnlc
13270 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13271 b cont
13272 ' <confdefs.h | sed '
13273 s/'"$ac_delim"'/"\\\
13274 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13277 for (key in D) D_is_set[key] = 1
13278 FS = "\a"
13280 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13281 line = \$ 0
13282 split(line, arg, " ")
13283 if (arg[1] == "#") {
13284 defundef = arg[2]
13285 mac1 = arg[3]
13286 } else {
13287 defundef = substr(arg[1], 2)
13288 mac1 = arg[2]
13290 split(mac1, mac2, "(") #)
13291 macro = mac2[1]
13292 prefix = substr(line, 1, index(line, defundef) - 1)
13293 if (D_is_set[macro]) {
13294 # Preserve the white space surrounding the "#".
13295 print prefix "define", macro P[macro] D[macro]
13296 next
13297 } else {
13298 # Replace #undef with comments. This is necessary, for example,
13299 # in the case of _POSIX_SOURCE, which is predefined and required
13300 # on some systems where configure will not decide to define it.
13301 if (defundef == "undef") {
13302 print "/*", prefix defundef, macro, "*/"
13303 next
13307 { print }
13308 _ACAWK
13309 _ACEOF
13310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13311 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13312 fi # test -n "$CONFIG_HEADERS"
13315 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13316 shift
13317 for ac_tag
13319 case $ac_tag in
13320 :[FHLC]) ac_mode=$ac_tag; continue;;
13321 esac
13322 case $ac_mode$ac_tag in
13323 :[FHL]*:*);;
13324 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13325 :[FH]-) ac_tag=-:-;;
13326 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13327 esac
13328 ac_save_IFS=$IFS
13329 IFS=:
13330 set x $ac_tag
13331 IFS=$ac_save_IFS
13332 shift
13333 ac_file=$1
13334 shift
13336 case $ac_mode in
13337 :L) ac_source=$1;;
13338 :[FH])
13339 ac_file_inputs=
13340 for ac_f
13342 case $ac_f in
13343 -) ac_f="$ac_tmp/stdin";;
13344 *) # Look for the file first in the build tree, then in the source tree
13345 # (if the path is not absolute). The absolute path cannot be DOS-style,
13346 # because $ac_f cannot contain `:'.
13347 test -f "$ac_f" ||
13348 case $ac_f in
13349 [\\/$]*) false;;
13350 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13351 esac ||
13352 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13353 esac
13354 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13355 as_fn_append ac_file_inputs " '$ac_f'"
13356 done
13358 # Let's still pretend it is `configure' which instantiates (i.e., don't
13359 # use $as_me), people would be surprised to read:
13360 # /* config.h. Generated by config.status. */
13361 configure_input='Generated from '`
13362 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13363 `' by configure.'
13364 if test x"$ac_file" != x-; then
13365 configure_input="$ac_file. $configure_input"
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13367 $as_echo "$as_me: creating $ac_file" >&6;}
13369 # Neutralize special characters interpreted by sed in replacement strings.
13370 case $configure_input in #(
13371 *\&* | *\|* | *\\* )
13372 ac_sed_conf_input=`$as_echo "$configure_input" |
13373 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13374 *) ac_sed_conf_input=$configure_input;;
13375 esac
13377 case $ac_tag in
13378 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13380 esac
13382 esac
13384 ac_dir=`$as_dirname -- "$ac_file" ||
13385 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13386 X"$ac_file" : 'X\(//\)[^/]' \| \
13387 X"$ac_file" : 'X\(//\)$' \| \
13388 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13389 $as_echo X"$ac_file" |
13390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13391 s//\1/
13394 /^X\(\/\/\)[^/].*/{
13395 s//\1/
13398 /^X\(\/\/\)$/{
13399 s//\1/
13402 /^X\(\/\).*/{
13403 s//\1/
13406 s/.*/./; q'`
13407 as_dir="$ac_dir"; as_fn_mkdir_p
13408 ac_builddir=.
13410 case "$ac_dir" in
13411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13414 # A ".." for each directory in $ac_dir_suffix.
13415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13416 case $ac_top_builddir_sub in
13417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13419 esac ;;
13420 esac
13421 ac_abs_top_builddir=$ac_pwd
13422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13423 # for backward compatibility:
13424 ac_top_builddir=$ac_top_build_prefix
13426 case $srcdir in
13427 .) # We are building in place.
13428 ac_srcdir=.
13429 ac_top_srcdir=$ac_top_builddir_sub
13430 ac_abs_top_srcdir=$ac_pwd ;;
13431 [\\/]* | ?:[\\/]* ) # Absolute name.
13432 ac_srcdir=$srcdir$ac_dir_suffix;
13433 ac_top_srcdir=$srcdir
13434 ac_abs_top_srcdir=$srcdir ;;
13435 *) # Relative name.
13436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13437 ac_top_srcdir=$ac_top_build_prefix$srcdir
13438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13439 esac
13440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13443 case $ac_mode in
13446 # CONFIG_FILE
13449 _ACEOF
13451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13452 # If the template does not know about datarootdir, expand it.
13453 # FIXME: This hack should be removed a few years after 2.60.
13454 ac_datarootdir_hack=; ac_datarootdir_seen=
13455 ac_sed_dataroot='
13456 /datarootdir/ {
13460 /@datadir@/p
13461 /@docdir@/p
13462 /@infodir@/p
13463 /@localedir@/p
13464 /@mandir@/p'
13465 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13466 *datarootdir*) ac_datarootdir_seen=yes;;
13467 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13469 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13470 _ACEOF
13471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13472 ac_datarootdir_hack='
13473 s&@datadir@&$datadir&g
13474 s&@docdir@&$docdir&g
13475 s&@infodir@&$infodir&g
13476 s&@localedir@&$localedir&g
13477 s&@mandir@&$mandir&g
13478 s&\\\${datarootdir}&$datarootdir&g' ;;
13479 esac
13480 _ACEOF
13482 # Neutralize VPATH when `$srcdir' = `.'.
13483 # Shell code in configure.ac might set extrasub.
13484 # FIXME: do we really want to maintain this feature?
13485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13486 ac_sed_extra="$ac_vpsub
13487 $extrasub
13488 _ACEOF
13489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13492 s|@configure_input@|$ac_sed_conf_input|;t t
13493 s&@top_builddir@&$ac_top_builddir_sub&;t t
13494 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13495 s&@srcdir@&$ac_srcdir&;t t
13496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13497 s&@top_srcdir@&$ac_top_srcdir&;t t
13498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13499 s&@builddir@&$ac_builddir&;t t
13500 s&@abs_builddir@&$ac_abs_builddir&;t t
13501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13502 $ac_datarootdir_hack
13504 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13505 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13507 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13508 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13509 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13510 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13512 which seems to be undefined. Please make sure it is defined" >&5
13513 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13514 which seems to be undefined. Please make sure it is defined" >&2;}
13516 rm -f "$ac_tmp/stdin"
13517 case $ac_file in
13518 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13519 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13520 esac \
13521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13525 # CONFIG_HEADER
13527 if test x"$ac_file" != x-; then
13529 $as_echo "/* $configure_input */" \
13530 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13531 } >"$ac_tmp/config.h" \
13532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13533 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13535 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13536 else
13537 rm -f "$ac_file"
13538 mv "$ac_tmp/config.h" "$ac_file" \
13539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13541 else
13542 $as_echo "/* $configure_input */" \
13543 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13544 || as_fn_error $? "could not create -" "$LINENO" 5
13548 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13549 $as_echo "$as_me: executing $ac_file commands" >&6;}
13551 esac
13554 case $ac_file$ac_mode in
13555 "compiler_executable":C)
13556 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13557 mkdir -p $prefix
13558 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13559 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13561 echo ${prefix2}
13562 echo ${prefix3}
13563 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
13565 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13566 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13567 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13568 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13569 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13570 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13571 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13573 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13575 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13577 esac
13578 done # for ac_tag
13581 as_fn_exit 0
13582 _ACEOF
13583 ac_clean_files=$ac_clean_files_save
13585 test $ac_write_fail = 0 ||
13586 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13589 # configure is writing to config.log, and then calls config.status.
13590 # config.status does its own redirection, appending to config.log.
13591 # Unfortunately, on DOS this fails, as config.log is still kept open
13592 # by configure, so config.status won't be able to write to it; its
13593 # output is simply discarded. So we exec the FD to /dev/null,
13594 # effectively closing config.log, so it can be properly (re)opened and
13595 # appended to by config.status. When coming back to configure, we
13596 # need to make the FD available again.
13597 if test "$no_create" != yes; then
13598 ac_cs_success=:
13599 ac_config_status_args=
13600 test "$silent" = yes &&
13601 ac_config_status_args="$ac_config_status_args --quiet"
13602 exec 5>/dev/null
13603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13604 exec 5>>config.log
13605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13606 # would make configure fail if this is the last instruction.
13607 $ac_cs_success || as_fn_exit 1
13609 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13611 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13616 #XXX compatability...
13617 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13619 if test -n "$aros_shared_cflags" ; then
13620 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13621 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg