Added and unified debug output.
[AROS.git] / configure
blob6f7b4b49ab409bf087c77960148f76d86168a9e2
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_ios_version
852 with_ios_sdk
853 with_sdk
854 with_ndk
855 with_sdk_version
856 with_ndk_version
857 enable_amigaos_compliance
858 with_crosstools
859 with_aros_gcc
860 with_portssources
861 with_bootloader
862 with_iconset
863 with_theme
864 enable_includes
865 with_resolution
866 with_serial_debug
867 enable_palm_debug_hack
868 enable_usb30_code
869 enable_nesting_supervisor
870 enable_mmu
871 enable_x11_hidd
872 with_x
873 enable_x11_shm
874 enable_x11_vidmode
875 enable_sdl_hidd
876 with_sdl_prefix
877 with_sdl_exec_prefix
878 enable_sdltest
879 enable_dbus
881 ac_precious_vars='build_alias
882 host_alias
883 target_alias
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
890 CPPFLAGS
891 XMKMF'
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 ac_unrecognized_opts=
898 ac_unrecognized_sep=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
942 ac_prev=
943 ac_dashdash=
944 for ac_option
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
953 case $ac_option in
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *=) ac_optarg= ;;
956 *) ac_optarg=yes ;;
957 esac
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
963 ac_dashdash=yes ;;
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
982 --config-cache | -C)
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1007 "*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1299 esac
1300 done
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used" >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357 test "$silent" = yes && exec 6>/dev/null
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 as_fn_error $? "working directory cannot be determined"
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 as_fn_error $? "pwd does not report name of working directory"
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1386 /^X\(\/\/\)$/{
1387 s//\1/
1390 /^X\(\/\).*/{
1391 s//\1/
1394 s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 srcdir=..
1399 else
1400 ac_srcdir_defaulted=no
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 ac_abs_confdir=`(
1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409 pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures this package to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking ...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1489 cat <<\_ACEOF
1491 X features:
1492 --x-includes=DIR X include files are in DIR
1493 --x-libraries=DIR X library files are in DIR
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1501 if test -n "$ac_init_help"; then
1503 cat <<\_ACEOF
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --enable-build-type=TYPE
1510 Select the build type. Available types are:
1511 personal, nightly, snapshot, milestone, release. Do
1512 NOT use this option unless you know what you are
1513 doing! (default=personal)
1514 --enable-debug=list Enable different types of debug. Commas or
1515 whitespaces can be used to separate the items in the
1516 list. Available types of debug are: all, none,
1517 messages, stack, mungwall, modules, symbols. If no
1518 list is provided then "all" is assumed.
1519 (default=none)
1520 --enable-crosstools Build cross-compiler toolchains if necessary
1521 (default=no).
1522 --enable-distcc Use distcc as a front end to the compiler
1523 (default=no).
1524 --enable-ccache Use ccache as a front end to the compiler
1525 (default=no).
1526 --enable-target-variant=NAME
1527 Enable a specific target variant(default=none)
1528 --enable-amigaos-compliance=VERSION
1529 Enforce userspace AmigaOS compliance to a specific
1530 KickStart version (default=none).
1531 --enable-includes=dir Alternative system include directory
1532 --enable-palm-debug-hack
1533 Enable palm debug output hack in palm native
1534 (default=no)
1535 --enable-usb30-code Enable usb3.0 code (default=no)
1536 --enable-nesting-supervisor
1537 Enable nesting supervisor support in unix
1538 (default=no)
1539 --disable-mmu Disable MMU support (default=enabled)
1540 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1541 --enable-x11-shm use X11 shared memory (default=auto)
1542 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1543 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1544 --disable-sdltest Do not try to compile and run a test SDL program
1545 --enable-dbus Enable DBUS support via dbus.library (default=no)
1547 Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-gcc-version=VERSION
1551 Use host gcc-VERSION for building AROS
1552 --with-optimization=FLAGS
1553 Use optimization flags FLAGS (default=-O2).
1554 --with-paranoia=FLAGS CC flags to enable paranoia
1555 --with-xcode=PATH Specify XCode path for iOS targets
1556 (default=/Developer).
1557 --with-ios-version=VERSION
1558 Specify minimum supported iOS version (default=3.0).
1559 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1560 --with-sdk=PATH Specify Android SDK path
1561 (default=$default_android_sdk).
1562 --with-ndk=PATH Specify Android NDK path (default=none).
1563 --with-sdk-version=LEVEL
1564 Use Android SDK for API LEVEL (default=8).
1565 --with-ndk-version=LEVEL
1566 Use Android NDK for API LEVEL (default=9).
1567 --with-crosstools=DIR Where to install or search for cross tools binaries
1568 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1569 --with-portssources=DIR Where to download sourcecode for external ports
1570 --with-bootloader=NAME Use a specific bootloader
1571 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1572 --with-theme=NAME Use a specific GUI Theme
1573 --with-resolution=XRESxYRESxDEPTH
1574 Default resolution of the initial WorkbenchScreen
1575 --with-serial-debug Enable serial debug output in native (default=no)
1576 --with-x use the X Window System
1577 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1578 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 XMKMF Path to xmkmf, Makefile generator for X Window System
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1594 Report bugs to the package provider.
1595 _ACEOF
1596 ac_status=$?
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
1605 ac_builddir=.
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1623 case $srcdir in
1624 .) # We are building in place.
1625 ac_srcdir=.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1647 else
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1651 done
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656 cat <<\_ACEOF
1657 configure
1658 generated by GNU Autoconf 2.68
1660 Copyright (C) 2010 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664 exit
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=1
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_cpp ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i && {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=1
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_cpp
1746 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1749 # the include files in INCLUDES and setting the cache variable VAR
1750 # accordingly.
1751 ac_fn_c_check_header_mongrel ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if eval \${$3+:} false; then :
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 else
1764 # Is the header compilable?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1766 $as_echo_n "checking $2 usability... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 ac_header_compiler=yes
1774 else
1775 ac_header_compiler=no
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1779 $as_echo "$ac_header_compiler" >&6; }
1781 # Is the header present?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1783 $as_echo_n "checking $2 presence... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_cpp "$LINENO"; then :
1789 ac_header_preproc=yes
1790 else
1791 ac_header_preproc=no
1793 rm -f conftest.err conftest.i conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1795 $as_echo "$ac_header_preproc" >&6; }
1797 # So? What about this header?
1798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1799 yes:no: )
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1801 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 no:yes:* )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1807 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1809 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1811 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1813 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 esac
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 eval "$3=\$ac_header_compiler"
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 } # ac_fn_c_check_header_mongrel
1833 # ac_fn_c_try_run LINENO
1834 # ----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836 # that executables *can* be run.
1837 ac_fn_c_try_run ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>&5
1848 ac_status=$?
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851 { { case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_try") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; }; }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: program exited with status $ac_status" >&5
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=$ac_status
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_run
1875 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists and can be compiled using the include files in
1878 # INCLUDES, setting the cache variable VAR accordingly.
1879 ac_fn_c_check_header_compile ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 eval "$3=yes"
1894 else
1895 eval "$3=no"
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 } # ac_fn_c_check_header_compile
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_link ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext conftest$ac_exeext
1913 if { { ac_try="$ac_link"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 $as_test_x conftest$ac_exeext
1934 }; then :
1935 ac_retval=0
1936 else
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 ac_retval=1
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_link
1952 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1953 # ----------------------------------------------------
1954 # Tries to find if the field MEMBER exists in type AGGR, after including
1955 # INCLUDES, setting cache variable VAR accordingly.
1956 ac_fn_c_check_member ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1960 $as_echo_n "checking for $2.$3... " >&6; }
1961 if eval \${$4+:} false; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1968 main ()
1970 static $2 ac_aggr;
1971 if (ac_aggr.$3)
1972 return 0;
1974 return 0;
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 eval "$4=yes"
1979 else
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1984 main ()
1986 static $2 ac_aggr;
1987 if (sizeof ac_aggr.$3)
1988 return 0;
1990 return 0;
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 eval "$4=yes"
1995 else
1996 eval "$4=no"
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 eval ac_res=\$$4
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 } # ac_fn_c_check_member
2009 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2010 # ---------------------------------------------
2011 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2012 # accordingly.
2013 ac_fn_c_check_decl ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 as_decl_name=`echo $2|sed 's/ *(.*//'`
2017 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2019 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 #ifndef $as_decl_name
2030 #ifdef __cplusplus
2031 (void) $as_decl_use;
2032 #else
2033 (void) $as_decl_name;
2034 #endif
2035 #endif
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$3=yes"
2043 else
2044 eval "$3=no"
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 } # ac_fn_c_check_decl
2055 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056 # -------------------------------------------
2057 # Tests whether TYPE exists after having included INCLUDES, setting cache
2058 # variable VAR accordingly.
2059 ac_fn_c_check_type ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval \${$3+:} false; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 eval "$3=no"
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2072 main ()
2074 if (sizeof ($2))
2075 return 0;
2077 return 0;
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 if (sizeof (($2)))
2088 return 0;
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2095 else
2096 eval "$3=yes"
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 } # ac_fn_c_check_type
2109 # ac_fn_c_check_func LINENO FUNC VAR
2110 # ----------------------------------
2111 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2112 ac_fn_c_check_func ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if eval \${$3+:} false; then :
2118 $as_echo_n "(cached) " >&6
2119 else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2124 #define $2 innocuous_$2
2126 /* System header to define __stub macros and hopefully few prototypes,
2127 which can conflict with char $2 (); below.
2128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2129 <limits.h> exists even on freestanding compilers. */
2131 #ifdef __STDC__
2132 # include <limits.h>
2133 #else
2134 # include <assert.h>
2135 #endif
2137 #undef $2
2139 /* Override any GCC internal prototype to avoid an error.
2140 Use char because int might match the return type of a GCC
2141 builtin and then its argument prototype would still apply. */
2142 #ifdef __cplusplus
2143 extern "C"
2144 #endif
2145 char $2 ();
2146 /* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149 #if defined __stub_$2 || defined __stub___$2
2150 choke me
2151 #endif
2154 main ()
2156 return $2 ();
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_link "$LINENO"; then :
2162 eval "$3=yes"
2163 else
2164 eval "$3=no"
2166 rm -f core conftest.err conftest.$ac_objext \
2167 conftest$ac_exeext conftest.$ac_ext
2169 eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 } # ac_fn_c_check_func
2175 cat >config.log <<_ACEOF
2176 This file contains any messages produced by compilers while
2177 running configure, to aid debugging if configure makes a mistake.
2179 It was created by $as_me, which was
2180 generated by GNU Autoconf 2.68. Invocation command line was
2182 $ $0 $@
2184 _ACEOF
2185 exec 5>>config.log
2187 cat <<_ASUNAME
2188 ## --------- ##
2189 ## Platform. ##
2190 ## --------- ##
2192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2204 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2209 _ASUNAME
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 $as_echo "PATH: $as_dir"
2217 done
2218 IFS=$as_save_IFS
2220 } >&5
2222 cat >&5 <<_ACEOF
2225 ## ----------- ##
2226 ## Core tests. ##
2227 ## ----------- ##
2229 _ACEOF
2232 # Keep a trace of the command line.
2233 # Strip out --no-create and --no-recursion so they do not pile up.
2234 # Strip out --silent because we don't want to record it for future runs.
2235 # Also quote any args containing shell meta-characters.
2236 # Make two passes to allow for proper duplicate-argument suppression.
2237 ac_configure_args=
2238 ac_configure_args0=
2239 ac_configure_args1=
2240 ac_must_keep_next=false
2241 for ac_pass in 1 2
2243 for ac_arg
2245 case $ac_arg in
2246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2248 | -silent | --silent | --silen | --sile | --sil)
2249 continue ;;
2250 *\'*)
2251 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2252 esac
2253 case $ac_pass in
2254 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2256 as_fn_append ac_configure_args1 " '$ac_arg'"
2257 if test $ac_must_keep_next = true; then
2258 ac_must_keep_next=false # Got value, back to normal.
2259 else
2260 case $ac_arg in
2261 *=* | --config-cache | -C | -disable-* | --disable-* \
2262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2264 | -with-* | --with-* | -without-* | --without-* | --x)
2265 case "$ac_configure_args0 " in
2266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2267 esac
2269 -* ) ac_must_keep_next=true ;;
2270 esac
2272 as_fn_append ac_configure_args " '$ac_arg'"
2274 esac
2275 done
2276 done
2277 { ac_configure_args0=; unset ac_configure_args0;}
2278 { ac_configure_args1=; unset ac_configure_args1;}
2280 # When interrupted or exit'd, cleanup temporary files, and complete
2281 # config.log. We remove comments because anyway the quotes in there
2282 # would cause problems or look ugly.
2283 # WARNING: Use '\'' to represent an apostrophe within the trap.
2284 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2285 trap 'exit_status=$?
2286 # Save into config.log some information that might help in debugging.
2288 echo
2290 $as_echo "## ---------------- ##
2291 ## Cache variables. ##
2292 ## ---------------- ##"
2293 echo
2294 # The following way of writing the cache mishandles newlines in values,
2296 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297 eval ac_val=\$$ac_var
2298 case $ac_val in #(
2299 *${as_nl}*)
2300 case $ac_var in #(
2301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303 esac
2304 case $ac_var in #(
2305 _ | IFS | as_nl) ;; #(
2306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307 *) { eval $ac_var=; unset $ac_var;} ;;
2308 esac ;;
2309 esac
2310 done
2311 (set) 2>&1 |
2312 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313 *${as_nl}ac_space=\ *)
2314 sed -n \
2315 "s/'\''/'\''\\\\'\'''\''/g;
2316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317 ;; #(
2319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2321 esac |
2322 sort
2324 echo
2326 $as_echo "## ----------------- ##
2327 ## Output variables. ##
2328 ## ----------------- ##"
2329 echo
2330 for ac_var in $ac_subst_vars
2332 eval ac_val=\$$ac_var
2333 case $ac_val in
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 esac
2336 $as_echo "$ac_var='\''$ac_val'\''"
2337 done | sort
2338 echo
2340 if test -n "$ac_subst_files"; then
2341 $as_echo "## ------------------- ##
2342 ## File substitutions. ##
2343 ## ------------------- ##"
2344 echo
2345 for ac_var in $ac_subst_files
2347 eval ac_val=\$$ac_var
2348 case $ac_val in
2349 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 esac
2351 $as_echo "$ac_var='\''$ac_val'\''"
2352 done | sort
2353 echo
2356 if test -s confdefs.h; then
2357 $as_echo "## ----------- ##
2358 ## confdefs.h. ##
2359 ## ----------- ##"
2360 echo
2361 cat confdefs.h
2362 echo
2364 test "$ac_signal" != 0 &&
2365 $as_echo "$as_me: caught signal $ac_signal"
2366 $as_echo "$as_me: exit $exit_status"
2367 } >&5
2368 rm -f core *.core core.conftest.* &&
2369 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370 exit $exit_status
2372 for ac_signal in 1 2 13 15; do
2373 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374 done
2375 ac_signal=0
2377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378 rm -f -r conftest* confdefs.h
2380 $as_echo "/* confdefs.h */" > confdefs.h
2382 # Predefined preprocessor variables.
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_NAME "$PACKAGE_NAME"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_STRING "$PACKAGE_STRING"
2398 _ACEOF
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402 _ACEOF
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_URL "$PACKAGE_URL"
2406 _ACEOF
2409 # Let the site file select an alternate cache file if it wants to.
2410 # Prefer an explicitly selected file to automatically selected ones.
2411 ac_site_file1=NONE
2412 ac_site_file2=NONE
2413 if test -n "$CONFIG_SITE"; then
2414 # We do not want a PATH search for config.site.
2415 case $CONFIG_SITE in #((
2416 -*) ac_site_file1=./$CONFIG_SITE;;
2417 */*) ac_site_file1=$CONFIG_SITE;;
2418 *) ac_site_file1=./$CONFIG_SITE;;
2419 esac
2420 elif test "x$prefix" != xNONE; then
2421 ac_site_file1=$prefix/share/config.site
2422 ac_site_file2=$prefix/etc/config.site
2423 else
2424 ac_site_file1=$ac_default_prefix/share/config.site
2425 ac_site_file2=$ac_default_prefix/etc/config.site
2427 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2429 test "x$ac_site_file" = xNONE && continue
2430 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433 sed 's/^/| /' "$ac_site_file" >&5
2434 . "$ac_site_file" \
2435 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 as_fn_error $? "failed to load site script $ac_site_file
2438 See \`config.log' for more details" "$LINENO" 5; }
2440 done
2442 if test -r "$cache_file"; then
2443 # Some versions of bash will fail to source /dev/null (special files
2444 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2445 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447 $as_echo "$as_me: loading cache $cache_file" >&6;}
2448 case $cache_file in
2449 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450 *) . "./$cache_file";;
2451 esac
2453 else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455 $as_echo "$as_me: creating cache $cache_file" >&6;}
2456 >$cache_file
2459 as_fn_append ac_header_list " stdlib.h"
2460 as_fn_append ac_header_list " unistd.h"
2461 as_fn_append ac_header_list " sys/param.h"
2462 # Check that the precious variables saved in the cache have kept the same
2463 # value.
2464 ac_cache_corrupted=false
2465 for ac_var in $ac_precious_vars; do
2466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2467 eval ac_new_set=\$ac_env_${ac_var}_set
2468 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2469 eval ac_new_val=\$ac_env_${ac_var}_value
2470 case $ac_old_set,$ac_new_set in
2471 set,)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2473 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,set)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,);;
2481 if test "x$ac_old_val" != "x$ac_new_val"; then
2482 # differences in whitespace do not lead to failure.
2483 ac_old_val_w=`echo x $ac_old_val`
2484 ac_new_val_w=`echo x $ac_new_val`
2485 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2487 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488 ac_cache_corrupted=:
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2491 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2492 eval $ac_var=\$ac_old_val
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2495 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2497 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2498 fi;;
2499 esac
2500 # Pass precious variables to config.status.
2501 if test "$ac_new_set" = set; then
2502 case $ac_new_val in
2503 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2504 *) ac_arg=$ac_var=$ac_new_val ;;
2505 esac
2506 case " $ac_configure_args " in
2507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2508 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2509 esac
2511 done
2512 if $ac_cache_corrupted; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2516 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2517 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519 ## -------------------- ##
2520 ## Main body of script. ##
2521 ## -------------------- ##
2523 ac_ext=c
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 ac_aux_dir=
2532 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2533 if 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/install.sh"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/install.sh -c"
2540 break
2541 elif test -f "$ac_dir/shtool"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/shtool install -c"
2544 break
2546 done
2547 if test -z "$ac_aux_dir"; then
2548 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2551 # These three variables are undocumented and unsupported,
2552 # and are intended to be withdrawn in a future Autoconf release.
2553 # They can cause serious problems if a builder's source tree is in a directory
2554 # whose full name contains unusual characters.
2555 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2556 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2557 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561 # Check what host we are running on.
2562 # If a target is not suggested, we use this one.
2563 # Note that what we call a target, Autoconf calls a host.
2564 # Make sure we can run config.sub.
2565 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2566 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2569 $as_echo_n "checking build system type... " >&6; }
2570 if ${ac_cv_build+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 ac_build_alias=$build_alias
2574 test "x$ac_build_alias" = x &&
2575 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2576 test "x$ac_build_alias" = x &&
2577 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2578 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2579 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2583 $as_echo "$ac_cv_build" >&6; }
2584 case $ac_cv_build in
2585 *-*-*) ;;
2586 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2587 esac
2588 build=$ac_cv_build
2589 ac_save_IFS=$IFS; IFS='-'
2590 set x $ac_cv_build
2591 shift
2592 build_cpu=$1
2593 build_vendor=$2
2594 shift; shift
2595 # Remember, the first character of IFS is used to create $*,
2596 # except with old shells:
2597 build_os=$*
2598 IFS=$ac_save_IFS
2599 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2603 $as_echo_n "checking host system type... " >&6; }
2604 if ${ac_cv_host+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test "x$host_alias" = x; then
2608 ac_cv_host=$ac_cv_build
2609 else
2610 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2616 $as_echo "$ac_cv_host" >&6; }
2617 case $ac_cv_host in
2618 *-*-*) ;;
2619 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2620 esac
2621 host=$ac_cv_host
2622 ac_save_IFS=$IFS; IFS='-'
2623 set x $ac_cv_host
2624 shift
2625 host_cpu=$1
2626 host_vendor=$2
2627 shift; shift
2628 # Remember, the first character of IFS is used to create $*,
2629 # except with old shells:
2630 host_os=$*
2631 IFS=$ac_save_IFS
2632 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2636 # The AROS target is slightly different to the normal GNU style
2637 # format. We don't have the middle part, and we reverse the order
2638 # of the $(CPU) and $(OS) bits.
2640 # Don't strip the version of the target yet, it might be
2641 # useful on some systems.
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2644 $as_echo_n "checking for AROS style target... " >&6; }
2646 if test "$target" = "NONE" ; then
2647 target=$host_os-$host_cpu
2648 else
2649 if test "$target" = "" ; then
2650 target=$host_os-$host_cpu
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2654 $as_echo "$target" >&6; }
2656 if test "$host_os" = "mingw32" ; then
2657 PWDCMD="pwd -W"
2660 #don't know where else to put this...
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2662 $as_echo_n "checking building AROS in... " >&6; }
2663 AROS_BUILDDIR=`${PWDCMD-pwd}`
2664 AROS_BUILDDIR_UNIX=${PWD}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2666 $as_echo "$AROS_BUILDDIR" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2669 $as_echo_n "checking AROS source in... " >&6; }
2670 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2671 SRCDIR=${srcpwd}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2673 $as_echo "$SRCDIR" >&6; }
2675 # Parse the target field into something useful.
2677 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2678 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2681 aros_default_wbwidth=800
2682 aros_default_wbheight=600
2683 aros_default_wbdepth=4
2686 # The first step is to find the host binaries.
2687 # Check for a compiler.
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2695 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if ${ac_cv_prog_CC+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2715 done
2716 done
2717 IFS=$as_save_IFS
2721 CC=$ac_cv_prog_CC
2722 if test -n "$CC"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2724 $as_echo "$CC" >&6; }
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2732 if test -z "$ac_cv_prog_CC"; then
2733 ac_ct_CC=$CC
2734 # Extract the first word of "gcc", so it can be a program name with args.
2735 set dummy gcc; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test -n "$ac_ct_CC"; then
2742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 ac_cv_prog_ac_ct_CC="gcc"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2757 IFS=$as_save_IFS
2761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2762 if test -n "$ac_ct_CC"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2764 $as_echo "$ac_ct_CC" >&6; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2770 if test "x$ac_ct_CC" = x; then
2771 CC=""
2772 else
2773 case $cross_compiling:$ac_tool_warned in
2774 yes:)
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2777 ac_tool_warned=yes ;;
2778 esac
2779 CC=$ac_ct_CC
2781 else
2782 CC="$ac_cv_prog_CC"
2785 if test -z "$CC"; then
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}cc; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CC+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_CC="${ac_tool_prefix}cc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2808 done
2809 done
2810 IFS=$as_save_IFS
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 $as_echo "$CC" >&6; }
2818 else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2826 if test -z "$CC"; then
2827 # Extract the first word of "cc", so it can be a program name with args.
2828 set dummy cc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 ac_prog_rejected=no
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2846 ac_prog_rejected=yes
2847 continue
2849 ac_cv_prog_CC="cc"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2853 done
2854 done
2855 IFS=$as_save_IFS
2857 if test $ac_prog_rejected = yes; then
2858 # We found a bogon in the path, so make sure we never use it.
2859 set dummy $ac_cv_prog_CC
2860 shift
2861 if test $# != 0; then
2862 # We chose a different compiler from the bogus one.
2863 # However, it has the same basename, so the bogon will be chosen
2864 # first if we set CC to just the basename; use the full file name.
2865 shift
2866 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2871 CC=$ac_cv_prog_CC
2872 if test -n "$CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874 $as_echo "$CC" >&6; }
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2882 if test -z "$CC"; then
2883 if test -n "$ac_tool_prefix"; then
2884 for ac_prog in cl.exe
2886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_CC+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2907 done
2908 done
2909 IFS=$as_save_IFS
2913 CC=$ac_cv_prog_CC
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2923 test -n "$CC" && break
2924 done
2926 if test -z "$CC"; then
2927 ac_ct_CC=$CC
2928 for ac_prog in cl.exe
2930 # Extract the first word of "$ac_prog", so it can be a program name with args.
2931 set dummy $ac_prog; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_ac_ct_CC="$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2953 IFS=$as_save_IFS
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 $as_echo "$ac_ct_CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2967 test -n "$ac_ct_CC" && break
2968 done
2970 if test "x$ac_ct_CC" = x; then
2971 CC=""
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974 yes:)
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977 ac_tool_warned=yes ;;
2978 esac
2979 CC=$ac_ct_CC
2986 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error $? "no acceptable C compiler found in \$PATH
2989 See \`config.log' for more details" "$LINENO" 5; }
2991 # Provide some information about the compiler.
2992 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2993 set X $ac_compile
2994 ac_compiler=$2
2995 for ac_option in --version -v -V -qversion; do
2996 { { ac_try="$ac_compiler $ac_option >&5"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002 $as_echo "$ac_try_echo"; } >&5
3003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3004 ac_status=$?
3005 if test -s conftest.err; then
3006 sed '10a\
3007 ... rest of stderr output deleted ...
3008 10q' conftest.err >conftest.er1
3009 cat conftest.er1 >&5
3011 rm -f conftest.er1 conftest.err
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }
3014 done
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3020 main ()
3024 return 0;
3026 _ACEOF
3027 ac_clean_files_save=$ac_clean_files
3028 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3029 # Try to create an executable without -o first, disregard a.out.
3030 # It will help us diagnose broken compilers, and finding out an intuition
3031 # of exeext.
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3033 $as_echo_n "checking whether the C compiler works... " >&6; }
3034 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3036 # The possible output files:
3037 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3039 ac_rmfiles=
3040 for ac_file in $ac_files
3042 case $ac_file in
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3044 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3045 esac
3046 done
3047 rm -f $ac_rmfiles
3049 if { { ac_try="$ac_link_default"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055 $as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_link_default") 2>&5
3057 ac_status=$?
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }; then :
3060 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3061 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3062 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3063 # so that the user can short-circuit this test for compilers unknown to
3064 # Autoconf.
3065 for ac_file in $ac_files ''
3067 test -f "$ac_file" || continue
3068 case $ac_file in
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3071 [ab].out )
3072 # We found the default executable, but exeext='' is most
3073 # certainly right.
3074 break;;
3075 *.* )
3076 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3077 then :; else
3078 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # We set ac_cv_exeext here because the later test for it is not
3081 # safe: cross compilers may not add the suffix if given an `-o'
3082 # argument, so we may need to know it at that point already.
3083 # Even if this section looks crufty: it has the advantage of
3084 # actually working.
3085 break;;
3087 break;;
3088 esac
3089 done
3090 test "$ac_cv_exeext" = no && ac_cv_exeext=
3092 else
3093 ac_file=''
3095 if test -z "$ac_file"; then :
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error 77 "C compiler cannot create executables
3104 See \`config.log' for more details" "$LINENO" 5; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3110 $as_echo_n "checking for C compiler default output file name... " >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3112 $as_echo "$ac_file" >&6; }
3113 ac_exeext=$ac_cv_exeext
3115 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3116 ac_clean_files=$ac_clean_files_save
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3118 $as_echo_n "checking for suffix of executables... " >&6; }
3119 if { { ac_try="$ac_link"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link") 2>&5
3127 ac_status=$?
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3131 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3132 # work properly (i.e., refer to `conftest.exe'), while it won't with
3133 # `rm'.
3134 for ac_file in conftest.exe conftest conftest.*; do
3135 test -f "$ac_file" || continue
3136 case $ac_file in
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3138 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 break;;
3140 * ) break;;
3141 esac
3142 done
3143 else
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3147 See \`config.log' for more details" "$LINENO" 5; }
3149 rm -f conftest conftest$ac_cv_exeext
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3151 $as_echo "$ac_cv_exeext" >&6; }
3153 rm -f conftest.$ac_ext
3154 EXEEXT=$ac_cv_exeext
3155 ac_exeext=$EXEEXT
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3158 #include <stdio.h>
3160 main ()
3162 FILE *f = fopen ("conftest.out", "w");
3163 return ferror (f) || fclose (f) != 0;
3166 return 0;
3168 _ACEOF
3169 ac_clean_files="$ac_clean_files conftest.out"
3170 # Check that the compiler produces executables we can run. If not, either
3171 # the compiler is broken, or we cross compile.
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3173 $as_echo_n "checking whether we are cross compiling... " >&6; }
3174 if test "$cross_compiling" != yes; then
3175 { { ac_try="$ac_link"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }
3186 if { ac_try='./conftest$ac_cv_exeext'
3187 { { case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; }; then
3197 cross_compiling=no
3198 else
3199 if test "$cross_compiling" = maybe; then
3200 cross_compiling=yes
3201 else
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details" "$LINENO" 5; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3211 $as_echo "$cross_compiling" >&6; }
3213 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3214 ac_clean_files=$ac_clean_files_save
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3216 $as_echo_n "checking for suffix of object files... " >&6; }
3217 if ${ac_cv_objext+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3224 main ()
3228 return 0;
3230 _ACEOF
3231 rm -f conftest.o conftest.obj
3232 if { { ac_try="$ac_compile"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_compile") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }; then :
3243 for ac_file in conftest.o conftest.obj conftest.*; do
3244 test -f "$ac_file" || continue;
3245 case $ac_file in
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3247 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3248 break;;
3249 esac
3250 done
3251 else
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "cannot compute suffix of object files: cannot compile
3258 See \`config.log' for more details" "$LINENO" 5; }
3260 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3263 $as_echo "$ac_cv_objext" >&6; }
3264 OBJEXT=$ac_cv_objext
3265 ac_objext=$OBJEXT
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3267 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3268 if ${ac_cv_c_compiler_gnu+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3275 main ()
3277 #ifndef __GNUC__
3278 choke me
3279 #endif
3282 return 0;
3284 _ACEOF
3285 if ac_fn_c_try_compile "$LINENO"; then :
3286 ac_compiler_gnu=yes
3287 else
3288 ac_compiler_gnu=no
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3295 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3296 if test $ac_compiler_gnu = yes; then
3297 GCC=yes
3298 else
3299 GCC=
3301 ac_test_CFLAGS=${CFLAGS+set}
3302 ac_save_CFLAGS=$CFLAGS
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3304 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3305 if ${ac_cv_prog_cc_g+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 ac_save_c_werror_flag=$ac_c_werror_flag
3309 ac_c_werror_flag=yes
3310 ac_cv_prog_cc_g=no
3311 CFLAGS="-g"
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3316 main ()
3320 return 0;
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324 ac_cv_prog_cc_g=yes
3325 else
3326 CFLAGS=""
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3331 main ()
3335 return 0;
3337 _ACEOF
3338 if ac_fn_c_try_compile "$LINENO"; then :
3340 else
3341 ac_c_werror_flag=$ac_save_c_werror_flag
3342 CFLAGS="-g"
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3347 main ()
3351 return 0;
3353 _ACEOF
3354 if ac_fn_c_try_compile "$LINENO"; then :
3355 ac_cv_prog_cc_g=yes
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_c_werror_flag=$ac_save_c_werror_flag
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3365 $as_echo "$ac_cv_prog_cc_g" >&6; }
3366 if test "$ac_test_CFLAGS" = set; then
3367 CFLAGS=$ac_save_CFLAGS
3368 elif test $ac_cv_prog_cc_g = yes; then
3369 if test "$GCC" = yes; then
3370 CFLAGS="-g -O2"
3371 else
3372 CFLAGS="-g"
3374 else
3375 if test "$GCC" = yes; then
3376 CFLAGS="-O2"
3377 else
3378 CFLAGS=
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3382 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3383 if ${ac_cv_prog_cc_c89+:} false; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 ac_cv_prog_cc_c89=no
3387 ac_save_CC=$CC
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390 #include <stdarg.h>
3391 #include <stdio.h>
3392 #include <sys/types.h>
3393 #include <sys/stat.h>
3394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3395 struct buf { int x; };
3396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397 static char *e (p, i)
3398 char **p;
3399 int i;
3401 return p[i];
3403 static char *f (char * (*g) (char **, int), char **p, ...)
3405 char *s;
3406 va_list v;
3407 va_start (v,p);
3408 s = g (p, va_arg (v,int));
3409 va_end (v);
3410 return s;
3413 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3414 function prototypes and stuff, but not '\xHH' hex character constants.
3415 These don't provoke an error unfortunately, instead are silently treated
3416 as 'x'. The following induces an error, until -std is added to get
3417 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3418 array size at least. It's necessary to write '\x00'==0 to get something
3419 that's true only with -std. */
3420 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3423 inside strings and character constants. */
3424 #define FOO(x) 'x'
3425 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3427 int test (int i, double x);
3428 struct s1 {int (*f) (int a);};
3429 struct s2 {int (*f) (double a);};
3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3431 int argc;
3432 char **argv;
3434 main ()
3436 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 return 0;
3440 _ACEOF
3441 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3442 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3444 CC="$ac_save_CC $ac_arg"
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_cv_prog_cc_c89=$ac_arg
3448 rm -f core conftest.err conftest.$ac_objext
3449 test "x$ac_cv_prog_cc_c89" != "xno" && break
3450 done
3451 rm -f conftest.$ac_ext
3452 CC=$ac_save_CC
3455 # AC_CACHE_VAL
3456 case "x$ac_cv_prog_cc_c89" in
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3459 $as_echo "none needed" >&6; } ;;
3460 xno)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3462 $as_echo "unsupported" >&6; } ;;
3464 CC="$CC $ac_cv_prog_cc_c89"
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3466 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3467 esac
3468 if test "x$ac_cv_prog_cc_c89" != xno; then :
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 case $ac_cv_prog_cc_stdc in #(
3479 no) :
3480 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3481 *) :
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3483 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3484 if ${ac_cv_prog_cc_c99+:} false; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 ac_cv_prog_cc_c99=no
3488 ac_save_CC=$CC
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491 #include <stdarg.h>
3492 #include <stdbool.h>
3493 #include <stdlib.h>
3494 #include <wchar.h>
3495 #include <stdio.h>
3497 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3498 #define debug(...) fprintf (stderr, __VA_ARGS__)
3499 #define showlist(...) puts (#__VA_ARGS__)
3500 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3501 static void
3502 test_varargs_macros (void)
3504 int x = 1234;
3505 int y = 5678;
3506 debug ("Flag");
3507 debug ("X = %d\n", x);
3508 showlist (The first, second, and third items.);
3509 report (x>y, "x is %d but y is %d", x, y);
3512 // Check long long types.
3513 #define BIG64 18446744073709551615ull
3514 #define BIG32 4294967295ul
3515 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3516 #if !BIG_OK
3517 your preprocessor is broken;
3518 #endif
3519 #if BIG_OK
3520 #else
3521 your preprocessor is broken;
3522 #endif
3523 static long long int bignum = -9223372036854775807LL;
3524 static unsigned long long int ubignum = BIG64;
3526 struct incomplete_array
3528 int datasize;
3529 double data[];
3532 struct named_init {
3533 int number;
3534 const wchar_t *name;
3535 double average;
3538 typedef const char *ccp;
3540 static inline int
3541 test_restrict (ccp restrict text)
3543 // See if C++-style comments work.
3544 // Iterate through items via the restricted pointer.
3545 // Also check for declarations in for loops.
3546 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3547 continue;
3548 return 0;
3551 // Check varargs and va_copy.
3552 static void
3553 test_varargs (const char *format, ...)
3555 va_list args;
3556 va_start (args, format);
3557 va_list args_copy;
3558 va_copy (args_copy, args);
3560 const char *str;
3561 int number;
3562 float fnumber;
3564 while (*format)
3566 switch (*format++)
3568 case 's': // string
3569 str = va_arg (args_copy, const char *);
3570 break;
3571 case 'd': // int
3572 number = va_arg (args_copy, int);
3573 break;
3574 case 'f': // float
3575 fnumber = va_arg (args_copy, double);
3576 break;
3577 default:
3578 break;
3581 va_end (args_copy);
3582 va_end (args);
3586 main ()
3589 // Check bool.
3590 _Bool success = false;
3592 // Check restrict.
3593 if (test_restrict ("String literal") == 0)
3594 success = true;
3595 char *restrict newvar = "Another string";
3597 // Check varargs.
3598 test_varargs ("s, d' f .", "string", 65, 34.234);
3599 test_varargs_macros ();
3601 // Check flexible array members.
3602 struct incomplete_array *ia =
3603 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3604 ia->datasize = 10;
3605 for (int i = 0; i < ia->datasize; ++i)
3606 ia->data[i] = i * 1.234;
3608 // Check named initializers.
3609 struct named_init ni = {
3610 .number = 34,
3611 .name = L"Test wide string",
3612 .average = 543.34343,
3615 ni.number = 58;
3617 int dynamic_array[ni.number];
3618 dynamic_array[ni.number - 1] = 543;
3620 // work around unused variable warnings
3621 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3622 || dynamic_array[ni.number - 1] != 543);
3625 return 0;
3627 _ACEOF
3628 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3630 CC="$ac_save_CC $ac_arg"
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_c99=$ac_arg
3634 rm -f core conftest.err conftest.$ac_objext
3635 test "x$ac_cv_prog_cc_c99" != "xno" && break
3636 done
3637 rm -f conftest.$ac_ext
3638 CC=$ac_save_CC
3641 # AC_CACHE_VAL
3642 case "x$ac_cv_prog_cc_c99" in
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645 $as_echo "none needed" >&6; } ;;
3646 xno)
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3648 $as_echo "unsupported" >&6; } ;;
3650 CC="$CC $ac_cv_prog_cc_c99"
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3652 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3653 esac
3654 if test "x$ac_cv_prog_cc_c99" != xno; then :
3655 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3658 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3659 if ${ac_cv_prog_cc_c89+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 ac_cv_prog_cc_c89=no
3663 ac_save_CC=$CC
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 #include <stdarg.h>
3667 #include <stdio.h>
3668 #include <sys/types.h>
3669 #include <sys/stat.h>
3670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671 struct buf { int x; };
3672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673 static char *e (p, i)
3674 char **p;
3675 int i;
3677 return p[i];
3679 static char *f (char * (*g) (char **, int), char **p, ...)
3681 char *s;
3682 va_list v;
3683 va_start (v,p);
3684 s = g (p, va_arg (v,int));
3685 va_end (v);
3686 return s;
3689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3700 #define FOO(x) 'x'
3701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703 int test (int i, double x);
3704 struct s1 {int (*f) (int a);};
3705 struct s2 {int (*f) (double a);};
3706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707 int argc;
3708 char **argv;
3710 main ()
3712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 return 0;
3716 _ACEOF
3717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 CC="$ac_save_CC $ac_arg"
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_c89=$ac_arg
3724 rm -f core conftest.err conftest.$ac_objext
3725 test "x$ac_cv_prog_cc_c89" != "xno" && break
3726 done
3727 rm -f conftest.$ac_ext
3728 CC=$ac_save_CC
3731 # AC_CACHE_VAL
3732 case "x$ac_cv_prog_cc_c89" in
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735 $as_echo "none needed" >&6; } ;;
3736 xno)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738 $as_echo "unsupported" >&6; } ;;
3740 CC="$CC $ac_cv_prog_cc_c89"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3743 esac
3744 if test "x$ac_cv_prog_cc_c89" != xno; then :
3745 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3746 else
3747 ac_cv_prog_cc_stdc=no
3752 esac
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3754 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3755 if ${ac_cv_prog_cc_stdc+:} false; then :
3756 $as_echo_n "(cached) " >&6
3759 case $ac_cv_prog_cc_stdc in #(
3760 no) :
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3762 $as_echo "unsupported" >&6; } ;; #(
3763 '') :
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3765 $as_echo "none needed" >&6; } ;; #(
3766 *) :
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3768 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3769 esac
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3777 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3778 # On Suns, sometimes $CPP names a directory.
3779 if test -n "$CPP" && test -d "$CPP"; then
3780 CPP=
3782 if test -z "$CPP"; then
3783 if ${ac_cv_prog_CPP+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 # Double quotes because CPP needs to be expanded
3787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3789 ac_preproc_ok=false
3790 for ac_c_preproc_warn_flag in '' yes
3792 # Use a header file that comes with gcc, so configuring glibc
3793 # with a fresh cross-compiler works.
3794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795 # <limits.h> exists even on freestanding compilers.
3796 # On the NeXT, cc -E runs the code through the compiler's parser,
3797 # not just through cpp. "Syntax error" is here to catch this case.
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800 #ifdef __STDC__
3801 # include <limits.h>
3802 #else
3803 # include <assert.h>
3804 #endif
3805 Syntax error
3806 _ACEOF
3807 if ac_fn_c_try_cpp "$LINENO"; then :
3809 else
3810 # Broken: fails on valid input.
3811 continue
3813 rm -f conftest.err conftest.i conftest.$ac_ext
3815 # OK, works on sane cases. Now check whether nonexistent headers
3816 # can be detected and how.
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #include <ac_nonexistent.h>
3820 _ACEOF
3821 if ac_fn_c_try_cpp "$LINENO"; then :
3822 # Broken: success on invalid input.
3823 continue
3824 else
3825 # Passes both tests.
3826 ac_preproc_ok=:
3827 break
3829 rm -f conftest.err conftest.i conftest.$ac_ext
3831 done
3832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3833 rm -f conftest.i conftest.err conftest.$ac_ext
3834 if $ac_preproc_ok; then :
3835 break
3838 done
3839 ac_cv_prog_CPP=$CPP
3842 CPP=$ac_cv_prog_CPP
3843 else
3844 ac_cv_prog_CPP=$CPP
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3847 $as_echo "$CPP" >&6; }
3848 ac_preproc_ok=false
3849 for ac_c_preproc_warn_flag in '' yes
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #ifdef __STDC__
3860 # include <limits.h>
3861 #else
3862 # include <assert.h>
3863 #endif
3864 Syntax error
3865 _ACEOF
3866 if ac_fn_c_try_cpp "$LINENO"; then :
3868 else
3869 # Broken: fails on valid input.
3870 continue
3872 rm -f conftest.err conftest.i conftest.$ac_ext
3874 # OK, works on sane cases. Now check whether nonexistent headers
3875 # can be detected and how.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <ac_nonexistent.h>
3879 _ACEOF
3880 if ac_fn_c_try_cpp "$LINENO"; then :
3881 # Broken: success on invalid input.
3882 continue
3883 else
3884 # Passes both tests.
3885 ac_preproc_ok=:
3886 break
3888 rm -f conftest.err conftest.i conftest.$ac_ext
3890 done
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.i conftest.err conftest.$ac_ext
3893 if $ac_preproc_ok; then :
3895 else
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3899 See \`config.log' for more details" "$LINENO" 5; }
3902 ac_ext=c
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 # Check for a compatible awk
3910 for ac_prog in gawk nawk
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_AWK+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$AWK"; then
3920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_prog_AWK="$ac_prog"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3933 done
3934 done
3935 IFS=$as_save_IFS
3939 AWK=$ac_cv_prog_AWK
3940 if test -n "$AWK"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3942 $as_echo "$AWK" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3949 test -n "$AWK" && break
3950 done
3952 if test "$AWK" = ""; then
3953 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3955 # Extract the first word of "mmake", so it can be a program name with args.
3956 set dummy mmake; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if ${ac_cv_prog_MMAKE+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if test -n "$MMAKE"; then
3963 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_MMAKE="mmake "
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3976 done
3977 done
3978 IFS=$as_save_IFS
3982 MMAKE=$ac_cv_prog_MMAKE
3983 if test -n "$MMAKE"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3985 $as_echo "$MMAKE" >&6; }
3986 else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3993 # Perform some default variable assignments. Note all of these will be
3994 # Regenerated from the script, so there is no need to cache them.
3996 aros_host_cc="$CC"
3997 if test "$GCC" = "yes"; then
3998 aros_gcc_ld=`$CC -print-prog-name=ld`
3999 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4000 set dummy `basename $aros_gcc_ld`; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if ${ac_cv_path_aros_host_ld+:} false; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 case $aros_host_ld in
4007 [\\/]* | ?:[\\/]*)
4008 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in `dirname $aros_gcc_ld`
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4018 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 break 2
4022 done
4023 done
4024 IFS=$as_save_IFS
4027 esac
4029 aros_host_ld=$ac_cv_path_aros_host_ld
4030 if test -n "$aros_host_ld"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4032 $as_echo "$aros_host_ld" >&6; }
4033 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test "$aros_host_ld" = ""; then
4041 # Extract the first word of "ld", so it can be a program name with args.
4042 set dummy ld; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_path_aros_host_ld+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 case $aros_host_ld in
4049 [\\/]* | ?:[\\/]*)
4050 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4060 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4066 IFS=$as_save_IFS
4069 esac
4071 aros_host_ld=$ac_cv_path_aros_host_ld
4072 if test -n "$aros_host_ld"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4074 $as_echo "$aros_host_ld" >&6; }
4075 else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4082 if test "$aros_host_ld" = ""; then
4083 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4085 aros_host_make="make"
4086 aros_host_cflags=$CFLAGS
4087 aros_host_ldflags=$LDFLAGS
4088 aros_host_debug="-g -O0"
4089 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4090 aros_host_mkargs="--no-print-directory"
4091 aros_host_incl="/usr/include"
4092 aros_host_exe_suffix="$EXEEXT"
4093 aros_host_lib_suffix=""
4095 # Ignore all compliance, AROS ROMs = 0
4096 # KickStart v1.0 = 30
4097 # KickStart v1.3 = 34
4098 # KickStart v2.0 = 37
4099 # KickStart v3.0 = 39
4100 # KickStart v3.1 = 40
4101 # AmigaOS v3.5 = 44
4102 aros_amigaos_compliance=0
4104 for ac_prog in aclocal aclocal19 aclocal-1.9
4106 # Extract the first word of "$ac_prog", so it can be a program name with args.
4107 set dummy $ac_prog; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -n "$aros_host_aclocal"; then
4114 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_prog_aros_host_aclocal="$ac_prog"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4127 done
4128 done
4129 IFS=$as_save_IFS
4133 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4134 if test -n "$aros_host_aclocal"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4136 $as_echo "$aros_host_aclocal" >&6; }
4137 else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4143 test -n "$aros_host_aclocal" && break
4144 done
4146 for ac_prog in autoconf autoconf259 autoconf253
4148 # Extract the first word of "$ac_prog", so it can be a program name with args.
4149 set dummy $ac_prog; ac_word=$2
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151 $as_echo_n "checking for $ac_word... " >&6; }
4152 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if test -n "$aros_host_autoconf"; then
4156 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_aros_host_autoconf="$ac_prog"
4166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4169 done
4170 done
4171 IFS=$as_save_IFS
4175 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4176 if test -n "$aros_host_autoconf"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4178 $as_echo "$aros_host_autoconf" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4185 test -n "$aros_host_autoconf" && break
4186 done
4188 for ac_prog in autoheader autoheader259 autoheader253
4190 # Extract the first word of "$ac_prog", so it can be a program name with args.
4191 set dummy $ac_prog; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 if test -n "$aros_host_autoheader"; then
4198 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_aros_host_autoheader="$ac_prog"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4211 done
4212 done
4213 IFS=$as_save_IFS
4217 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4218 if test -n "$aros_host_autoheader"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4220 $as_echo "$aros_host_autoheader" >&6; }
4221 else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4227 test -n "$aros_host_autoheader" && break
4228 done
4230 for ac_prog in automake automake19 automake-1.9
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_aros_host_automake+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 if test -n "$aros_host_automake"; then
4240 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_aros_host_automake="$ac_prog"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4253 done
4254 done
4255 IFS=$as_save_IFS
4259 aros_host_automake=$ac_cv_prog_aros_host_automake
4260 if test -n "$aros_host_automake"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4262 $as_echo "$aros_host_automake" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4269 test -n "$aros_host_automake" && break
4270 done
4273 if test "$aros_host_aclocal" = ""; then
4274 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4276 if test "$aros_host_automake" = ""; then
4277 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4280 case "$aros_host_cc" in
4281 *gcc*)
4282 aros_host_cc_pipe="-pipe"
4284 icc)
4285 aros_host_cc_pipe=""
4288 aros_host_cc_pipe=""
4290 esac
4292 aros_kernel_cc_includes=""
4293 aros_target_cc_includes=""
4295 # ----------------------------------------------------------------------------------------
4296 # Host-specific defaults
4298 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4299 # instead of a wrapper script.
4300 # Useful for non-ELF hosts (like Windows and Darwin).
4301 # Can also be overriden in target section below
4302 use_aros_gcc="no"
4304 # This is the main host configuration section. It is where the host
4305 # can change the values of any variables it needs to change. We do
4306 # not look at anything that compiles to the target yet, we'll get
4307 # to that later.
4309 case "$host_os" in
4310 aros*)
4311 aros_host_arch="aros"
4312 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4313 case "$host_cpu" in
4314 *i?86*)
4315 aros_host_cpu="i386"
4317 *x86_64*)
4318 aros_host_cpu="x86_64"
4320 *powerpc*)
4321 aros_host_cpu="ppc"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4325 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4326 aros_host_cpu="$host_cpu"
4328 esac
4331 linux*)
4332 aros_host_arch="linux"
4333 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4334 android_build_os="linux-x86"
4335 android_tool="android"
4336 default_android_sdk="/opt/android-sdk-linux_x86"
4337 case "$host_cpu" in
4338 *i?86*)
4339 aros_host_cpu="i386"
4341 *x86_64*)
4342 aros_host_cpu="x86_64"
4344 *m68k*)
4345 aros_host_cpu="m68k"
4347 *powerpc*)
4348 aros_host_cpu="ppc"
4350 *arm*)
4351 aros_host_cpu="arm"
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4355 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4356 aros_host_cpu="$host_cpu"
4358 esac
4361 freebsd*)
4362 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4363 aros_host_make="gmake"
4364 aros_host_arch="freebsd"
4365 aros_host_cpu="i386"
4367 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4369 case $host_os in
4370 freebsd[234]*)
4371 aros_object_format="elf_i386"
4375 aros_object_format="elf_i386_fbsd"
4377 esac
4381 darwin*)
4382 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4383 aros_host_arch="darwin"
4384 use_aros_gcc="yes"
4385 android_build_os="darwin-x86"
4386 android_tool="android"
4387 default_android_sdk="/android-sdk-mac_x86"
4388 case "$host_cpu" in
4389 *i?86*)
4390 aros_host_cpu="i386"
4392 *x86_64*)
4393 aros_host_cpu="x86_64"
4395 *powerpc*)
4396 aros_host_cpu="ppc"
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4400 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4401 aros_host_cpu="$host_cpu"
4403 esac
4405 aros_host_ldflags="$aros_host_ldflags -liconv"
4409 dragonfly*)
4410 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4411 aros_host_make="gmake"
4412 aros_host_arch="dragonfly"
4413 case $host_cpu in
4414 *i?86*)
4415 aros_host_cpu="i386"
4417 *amd64*)
4418 aros_host_cpu="x86_64"
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4422 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4423 aros_host_cpu="$host_cpu"
4425 esac
4428 netbsd*)
4429 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4430 aros_host_make="gmake"
4431 aros_host_arch="netbsd"
4432 case "$host_cpu" in
4433 *i?86*)
4434 aros_host_cpu="i386"
4436 *m68k*)
4437 aros_host_cpu="m68k"
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4441 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4442 aros_host_cpu="$host_cpu"
4444 esac
4445 aros_host_lib_suffix=".0.0"
4448 openbsd*)
4449 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4450 aros_host_make="gmake"
4451 aros_host_arch="openbsd"
4452 case "$host_cpu" in
4453 *i?86*)
4454 aros_host_cpu="i386"
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4458 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4459 aros_host_cpu="$host_cpu"
4461 esac
4464 solaris*)
4465 aros_host_arch="solaris"
4466 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4467 case "$host_cpu" in
4468 *i?86*)
4469 aros_host_cpu="i386"
4471 *sparc*)
4472 aros_host_cpu="sparc"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4476 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4477 aros_host_cpu="$host_cpu"
4479 esac
4482 morphos*)
4483 aros_host_arch="morphos"
4484 aros_host_cpu="ppc"
4487 amiga*)
4488 aros_host_arch="amiga"
4489 SORT="/gg/bin/sort"
4490 TEST="/gg/bin/test"
4491 UNIQ="/gg/bin/uniq"
4492 FOR="for"
4493 TOUCH="/gg/bin/touch"
4494 case "$host_cpu" in
4495 *m68k*)
4496 aros_host_cpu="m68k"
4498 *powerpc*)
4499 aros_host_cpu="ppc"
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4503 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4504 aros_host_cpu="$host_cpu"
4506 esac
4509 cygwin*)
4510 aros_host_arch="cygwin"
4511 use_aros_gcc="yes"
4512 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4513 android_build_os="windows"
4514 android_tool="android.bat"
4515 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4517 case "$host_cpu" in
4518 *i?86*)
4519 aros_host_cpu="i386"
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4523 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4524 aros_host_cpu="$host_cpu"
4526 esac
4529 mingw32*)
4530 aros_host_arch="mingw32"
4531 use_aros_gcc="yes"
4532 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4533 android_build_os="windows"
4534 android_tool="android.bat"
4535 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4537 case "$host_cpu" in
4538 *i?86*)
4539 aros_host_cpu="i386"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4543 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4544 aros_host_cpu="$host_cpu"
4546 esac
4549 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4551 esac
4553 # Extract the first word of "ar", so it can be a program name with args.
4554 set dummy ar; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_prog_aros_host_ar+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$aros_host_ar"; then
4561 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_aros_host_ar="ar cr"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 aros_host_ar=$ac_cv_prog_aros_host_ar
4581 if test -n "$aros_host_ar"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4583 $as_echo "$aros_host_ar" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4590 if test "$aros_host_ar" = ""; then
4591 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4593 # Extract the first word of "ranlib", so it can be a program name with args.
4594 set dummy ranlib; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$aros_host_ranlib"; then
4601 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_aros_host_ranlib="ranlib "
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4621 if test -n "$aros_host_ranlib"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4623 $as_echo "$aros_host_ranlib" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4630 if test "$aros_host_ranlib" = ""; then
4631 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4633 # Extract the first word of "strip", so it can be a program name with args.
4634 set dummy strip; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_aros_host_strip+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$aros_host_strip"; then
4641 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_aros_host_strip="strip "
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 aros_host_strip=$ac_cv_prog_aros_host_strip
4661 if test -n "$aros_host_strip"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4663 $as_echo "$aros_host_strip" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4670 if test "$aros_host_strip" = ""; then
4671 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4674 # Extract the first word of "rm", so it can be a program name with args.
4675 set dummy rm; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_prog_RM+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$RM"; then
4682 ac_cv_prog_RM="$RM" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_RM="rm -rf"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4695 done
4696 done
4697 IFS=$as_save_IFS
4701 RM=$ac_cv_prog_RM
4702 if test -n "$RM"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4704 $as_echo "$RM" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4711 if test "$RM" = ""; then
4712 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4714 # Extract the first word of "cp", so it can be a program name with args.
4715 set dummy cp; ac_word=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if ${ac_cv_prog_CP+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -n "$CP"; then
4722 ac_cv_prog_CP="$CP" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_CP="cp "
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4741 CP=$ac_cv_prog_CP
4742 if test -n "$CP"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4744 $as_echo "$CP" >&6; }
4745 else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4751 if test "$CP" = ""; then
4752 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4754 # Extract the first word of "mv", so it can be a program name with args.
4755 set dummy mv; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if ${ac_cv_prog_MV+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$MV"; then
4762 ac_cv_prog_MV="$MV" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_MV="mv "
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4777 IFS=$as_save_IFS
4781 MV=$ac_cv_prog_MV
4782 if test -n "$MV"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4784 $as_echo "$MV" >&6; }
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4791 if test "$MV" = ""; then
4792 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4794 # Extract the first word of "echo", so it can be a program name with args.
4795 set dummy echo; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_prog_ECHO+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$ECHO"; then
4802 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_ECHO="echo "
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4815 done
4816 done
4817 IFS=$as_save_IFS
4821 ECHO=$ac_cv_prog_ECHO
4822 if test -n "$ECHO"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4824 $as_echo "$ECHO" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4831 if test "$ECHO" = ""; then
4832 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4834 # Extract the first word of "mkdir", so it can be a program name with args.
4835 set dummy mkdir; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if ${ac_cv_prog_MKDIR+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 if test -n "$MKDIR"; then
4842 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851 ac_cv_prog_MKDIR="mkdir -p"
4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4855 done
4856 done
4857 IFS=$as_save_IFS
4861 MKDIR=$ac_cv_prog_MKDIR
4862 if test -n "$MKDIR"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4864 $as_echo "$MKDIR" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4871 if test "$MKDIR" = ""; then
4872 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4874 # Extract the first word of "touch", so it can be a program name with args.
4875 set dummy touch; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if ${ac_cv_prog_TOUCH+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$TOUCH"; then
4882 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_TOUCH="touch "
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4897 IFS=$as_save_IFS
4901 TOUCH=$ac_cv_prog_TOUCH
4902 if test -n "$TOUCH"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4904 $as_echo "$TOUCH" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4911 if test "$TOUCH" = ""; then
4912 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4914 # Extract the first word of "sort", so it can be a program name with args.
4915 set dummy sort; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_SORT+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$SORT"; then
4922 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_SORT="sort "
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4937 IFS=$as_save_IFS
4941 SORT=$ac_cv_prog_SORT
4942 if test -n "$SORT"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4944 $as_echo "$SORT" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4951 if test "$SORT" = ""; then
4952 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4954 # Extract the first word of "uniq", so it can be a program name with args.
4955 set dummy uniq; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_UNIQ+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$UNIQ"; then
4962 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_prog_UNIQ="uniq "
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4975 done
4976 done
4977 IFS=$as_save_IFS
4981 UNIQ=$ac_cv_prog_UNIQ
4982 if test -n "$UNIQ"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4984 $as_echo "$UNIQ" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4991 if test "$UNIQ" = ""; then
4992 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4994 # Extract the first word of "true", so it can be a program name with args.
4995 set dummy true; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_NOP+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$NOP"; then
5002 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_prog_NOP="true "
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5015 done
5016 done
5017 IFS=$as_save_IFS
5021 NOP=$ac_cv_prog_NOP
5022 if test -n "$NOP"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5024 $as_echo "$NOP" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5031 if test "$NOP" = ""; then
5032 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5034 # Extract the first word of "cat", so it can be a program name with args.
5035 set dummy cat; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_prog_CAT+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -n "$CAT"; then
5042 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_CAT="cat "
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5055 done
5056 done
5057 IFS=$as_save_IFS
5061 CAT=$ac_cv_prog_CAT
5062 if test -n "$CAT"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5064 $as_echo "$CAT" >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5071 if test "$CAT" = ""; then
5072 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5074 # Extract the first word of "bison", so it can be a program name with args.
5075 set dummy bison; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_BISON+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$BISON"; then
5082 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_BISON="bison "
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 BISON=$ac_cv_prog_BISON
5102 if test -n "$BISON"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5104 $as_echo "$BISON" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 if test "$BISON" = ""; then
5112 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5114 # Extract the first word of "flex", so it can be a program name with args.
5115 set dummy flex; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_prog_FLEX+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$FLEX"; then
5122 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_FLEX="flex "
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5135 done
5136 done
5137 IFS=$as_save_IFS
5141 FLEX=$ac_cv_prog_FLEX
5142 if test -n "$FLEX"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5144 $as_echo "$FLEX" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5151 if test "$FLEX" = ""; then
5152 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5154 # Extract the first word of "pngtopnm", so it can be a program name with args.
5155 set dummy pngtopnm; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$PNGTOPNM"; then
5162 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_PNGTOPNM="pngtopnm "
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5181 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5182 if test -n "$PNGTOPNM"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5184 $as_echo "$PNGTOPNM" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 if test "$PNGTOPNM" = ""; then
5192 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5194 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5195 set dummy ppmtoilbm; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -n "$PPMTOILBM"; then
5202 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5215 done
5216 done
5217 IFS=$as_save_IFS
5221 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5222 if test -n "$PPMTOILBM"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5224 $as_echo "$PPMTOILBM" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5231 if test "$PPMTOILBM" = ""; then
5232 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5234 # Extract the first word of "sed", so it can be a program name with args.
5235 set dummy sed; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_SED+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$SED"; then
5242 ac_cv_prog_SED="$SED" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_SED="sed "
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5255 done
5256 done
5257 IFS=$as_save_IFS
5261 SED=$ac_cv_prog_SED
5262 if test -n "$SED"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5264 $as_echo "$SED" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5271 if test "$SED" = ""; then
5272 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5274 # Extract the first word of "chmod", so it can be a program name with args.
5275 set dummy chmod; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_CHMOD+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$CHMOD"; then
5282 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_CHMOD="chmod "
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5295 done
5296 done
5297 IFS=$as_save_IFS
5301 CHMOD=$ac_cv_prog_CHMOD
5302 if test -n "$CHMOD"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5304 $as_echo "$CHMOD" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5311 if test "$CHMOD" = ""; then
5312 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5314 # Extract the first word of "patch", so it can be a program name with args.
5315 set dummy patch; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_prog_PATCH+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if test -n "$PATCH"; then
5322 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_prog_PATCH="patch "
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5335 done
5336 done
5337 IFS=$as_save_IFS
5341 PATCH=$ac_cv_prog_PATCH
5342 if test -n "$PATCH"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5344 $as_echo "$PATCH" >&6; }
5345 else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5351 if test "$PATCH" = ""; then
5352 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5359 if test -n "$PYTHON"; then
5360 # If the user set $PYTHON, use it and don't search something else.
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5362 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5363 prog="import sys, string
5364 # split strings by '.' and convert to numeric. Append some zeros
5365 # because we need at least 4 digits for the hex conversion.
5366 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5367 minverhex = 0
5368 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5369 sys.exit(sys.hexversion < minverhex)"
5370 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5371 ($PYTHON -c "$prog") >&5 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; then :
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376 $as_echo "yes" >&6; }
5377 else
5378 as_fn_error $? "too old" "$LINENO" 5
5380 am_display_PYTHON=$PYTHON
5381 else
5382 # Otherwise, try each interpreter until we find one that satisfies
5383 # VERSION.
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5385 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5386 if ${am_cv_pathless_PYTHON+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5390 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
5391 test "$am_cv_pathless_PYTHON" = none && break
5392 prog="import sys, string
5393 # split strings by '.' and convert to numeric. Append some zeros
5394 # because we need at least 4 digits for the hex conversion.
5395 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5396 minverhex = 0
5397 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5398 sys.exit(sys.hexversion < minverhex)"
5399 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5400 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; then :
5404 break
5406 done
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5409 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5410 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5411 if test "$am_cv_pathless_PYTHON" = none; then
5412 PYTHON=:
5413 else
5414 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5415 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_path_PYTHON+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 case $PYTHON in
5422 [\\/]* | ?:[\\/]*)
5423 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5437 done
5438 done
5439 IFS=$as_save_IFS
5442 esac
5444 PYTHON=$ac_cv_path_PYTHON
5445 if test -n "$PYTHON"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5447 $as_echo "$PYTHON" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5455 am_display_PYTHON=$am_cv_pathless_PYTHON
5459 if test "$PYTHON" = :; then
5460 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5461 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5465 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5466 if ${am_cv_python_version+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5472 $as_echo "$am_cv_python_version" >&6; }
5473 PYTHON_VERSION=$am_cv_python_version
5477 PYTHON_PREFIX='${prefix}'
5479 PYTHON_EXEC_PREFIX='${exec_prefix}'
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5484 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5485 if ${am_cv_python_platform+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5491 $as_echo "$am_cv_python_platform" >&6; }
5492 PYTHON_PLATFORM=$am_cv_python_platform
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5498 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5499 if ${am_cv_python_pythondir+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5503 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5506 $as_echo "$am_cv_python_pythondir" >&6; }
5507 pythondir=$am_cv_python_pythondir
5511 pkgpythondir=\${pythondir}/$PACKAGE
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5515 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5516 if ${am_cv_python_pyexecdir+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5520 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5523 $as_echo "$am_cv_python_pyexecdir" >&6; }
5524 pyexecdir=$am_cv_python_pyexecdir
5528 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5536 FOR=for
5538 IF=if
5540 TEST=test
5542 CMP=cmp
5546 # Check for some includes for the X11 HIDD and the kernel
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5550 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5551 if ${ac_cv_path_GREP+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -z "$GREP"; then
5555 ac_path_GREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_prog in grep ggrep; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5565 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5566 # Check for GNU ac_path_GREP and select it if it is found.
5567 # Check for GNU $ac_path_GREP
5568 case `"$ac_path_GREP" --version 2>&1` in
5569 *GNU*)
5570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5572 ac_count=0
5573 $as_echo_n 0123456789 >"conftest.in"
5574 while :
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 $as_echo 'GREP' >> "conftest.nl"
5580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582 as_fn_arith $ac_count + 1 && ac_count=$as_val
5583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_GREP="$ac_path_GREP"
5586 ac_path_GREP_max=$ac_count
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5590 done
5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592 esac
5594 $ac_path_GREP_found && break 3
5595 done
5596 done
5597 done
5598 IFS=$as_save_IFS
5599 if test -z "$ac_cv_path_GREP"; then
5600 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5602 else
5603 ac_cv_path_GREP=$GREP
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5608 $as_echo "$ac_cv_path_GREP" >&6; }
5609 GREP="$ac_cv_path_GREP"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5613 $as_echo_n "checking for egrep... " >&6; }
5614 if ${ac_cv_path_EGREP+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5618 then ac_cv_path_EGREP="$GREP -E"
5619 else
5620 if test -z "$EGREP"; then
5621 ac_path_EGREP_found=false
5622 # Loop through the user's path and test for each of PROGNAME-LIST
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_prog in egrep; do
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5631 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5632 # Check for GNU ac_path_EGREP and select it if it is found.
5633 # Check for GNU $ac_path_EGREP
5634 case `"$ac_path_EGREP" --version 2>&1` in
5635 *GNU*)
5636 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5638 ac_count=0
5639 $as_echo_n 0123456789 >"conftest.in"
5640 while :
5642 cat "conftest.in" "conftest.in" >"conftest.tmp"
5643 mv "conftest.tmp" "conftest.in"
5644 cp "conftest.in" "conftest.nl"
5645 $as_echo 'EGREP' >> "conftest.nl"
5646 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5648 as_fn_arith $ac_count + 1 && ac_count=$as_val
5649 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5650 # Best one so far, save it but keep looking for a better one
5651 ac_cv_path_EGREP="$ac_path_EGREP"
5652 ac_path_EGREP_max=$ac_count
5654 # 10*(2^10) chars as input seems more than enough
5655 test $ac_count -gt 10 && break
5656 done
5657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5658 esac
5660 $ac_path_EGREP_found && break 3
5661 done
5662 done
5663 done
5664 IFS=$as_save_IFS
5665 if test -z "$ac_cv_path_EGREP"; then
5666 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5668 else
5669 ac_cv_path_EGREP=$EGREP
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5675 $as_echo "$ac_cv_path_EGREP" >&6; }
5676 EGREP="$ac_cv_path_EGREP"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5680 $as_echo_n "checking for ANSI C header files... " >&6; }
5681 if ${ac_cv_header_stdc+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #include <stdlib.h>
5687 #include <stdarg.h>
5688 #include <string.h>
5689 #include <float.h>
5692 main ()
5696 return 0;
5698 _ACEOF
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700 ac_cv_header_stdc=yes
5701 else
5702 ac_cv_header_stdc=no
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 if test $ac_cv_header_stdc = yes; then
5707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 #include <string.h>
5712 _ACEOF
5713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5714 $EGREP "memchr" >/dev/null 2>&1; then :
5716 else
5717 ac_cv_header_stdc=no
5719 rm -f conftest*
5723 if test $ac_cv_header_stdc = yes; then
5724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <stdlib.h>
5729 _ACEOF
5730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5731 $EGREP "free" >/dev/null 2>&1; then :
5733 else
5734 ac_cv_header_stdc=no
5736 rm -f conftest*
5740 if test $ac_cv_header_stdc = yes; then
5741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5742 if test "$cross_compiling" = yes; then :
5744 else
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <ctype.h>
5748 #include <stdlib.h>
5749 #if ((' ' & 0x0FF) == 0x020)
5750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5752 #else
5753 # define ISLOWER(c) \
5754 (('a' <= (c) && (c) <= 'i') \
5755 || ('j' <= (c) && (c) <= 'r') \
5756 || ('s' <= (c) && (c) <= 'z'))
5757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5758 #endif
5760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5762 main ()
5764 int i;
5765 for (i = 0; i < 256; i++)
5766 if (XOR (islower (i), ISLOWER (i))
5767 || toupper (i) != TOUPPER (i))
5768 return 2;
5769 return 0;
5771 _ACEOF
5772 if ac_fn_c_try_run "$LINENO"; then :
5774 else
5775 ac_cv_header_stdc=no
5777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5778 conftest.$ac_objext conftest.beam conftest.$ac_ext
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5784 $as_echo "$ac_cv_header_stdc" >&6; }
5785 if test $ac_cv_header_stdc = yes; then
5787 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5791 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5792 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5793 inttypes.h stdint.h unistd.h
5794 do :
5795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5796 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5799 cat >>confdefs.h <<_ACEOF
5800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5801 _ACEOF
5805 done
5808 for ac_header in sys/ipc.h sys/shm.h \
5809 sys/mmap.h sys/mman.h sysexits.h \
5810 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5812 do :
5813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5814 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5816 cat >>confdefs.h <<_ACEOF
5817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5818 _ACEOF
5822 done
5825 for ac_header in sys/mount.h
5826 do :
5827 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5829 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5830 cat >>confdefs.h <<_ACEOF
5831 #define HAVE_SYS_MOUNT_H 1
5832 _ACEOF
5836 done
5839 ac_header_dirent=no
5840 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5841 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5843 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5844 if eval \${$as_ac_Header+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5849 #include <sys/types.h>
5850 #include <$ac_hdr>
5853 main ()
5855 if ((DIR *) 0)
5856 return 0;
5858 return 0;
5860 _ACEOF
5861 if ac_fn_c_try_compile "$LINENO"; then :
5862 eval "$as_ac_Header=yes"
5863 else
5864 eval "$as_ac_Header=no"
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 eval ac_res=\$$as_ac_Header
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5870 $as_echo "$ac_res" >&6; }
5871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5872 cat >>confdefs.h <<_ACEOF
5873 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5874 _ACEOF
5876 ac_header_dirent=$ac_hdr; break
5879 done
5880 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5881 if test $ac_header_dirent = dirent.h; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5883 $as_echo_n "checking for library containing opendir... " >&6; }
5884 if ${ac_cv_search_opendir+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 ac_func_search_save_LIBS=$LIBS
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5891 /* Override any GCC internal prototype to avoid an error.
5892 Use char because int might match the return type of a GCC
5893 builtin and then its argument prototype would still apply. */
5894 #ifdef __cplusplus
5895 extern "C"
5896 #endif
5897 char opendir ();
5899 main ()
5901 return opendir ();
5903 return 0;
5905 _ACEOF
5906 for ac_lib in '' dir; do
5907 if test -z "$ac_lib"; then
5908 ac_res="none required"
5909 else
5910 ac_res=-l$ac_lib
5911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5913 if ac_fn_c_try_link "$LINENO"; then :
5914 ac_cv_search_opendir=$ac_res
5916 rm -f core conftest.err conftest.$ac_objext \
5917 conftest$ac_exeext
5918 if ${ac_cv_search_opendir+:} false; then :
5919 break
5921 done
5922 if ${ac_cv_search_opendir+:} false; then :
5924 else
5925 ac_cv_search_opendir=no
5927 rm conftest.$ac_ext
5928 LIBS=$ac_func_search_save_LIBS
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5931 $as_echo "$ac_cv_search_opendir" >&6; }
5932 ac_res=$ac_cv_search_opendir
5933 if test "$ac_res" != no; then :
5934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5938 else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5940 $as_echo_n "checking for library containing opendir... " >&6; }
5941 if ${ac_cv_search_opendir+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 ac_func_search_save_LIBS=$LIBS
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5948 /* Override any GCC internal prototype to avoid an error.
5949 Use char because int might match the return type of a GCC
5950 builtin and then its argument prototype would still apply. */
5951 #ifdef __cplusplus
5952 extern "C"
5953 #endif
5954 char opendir ();
5956 main ()
5958 return opendir ();
5960 return 0;
5962 _ACEOF
5963 for ac_lib in '' x; do
5964 if test -z "$ac_lib"; then
5965 ac_res="none required"
5966 else
5967 ac_res=-l$ac_lib
5968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5970 if ac_fn_c_try_link "$LINENO"; then :
5971 ac_cv_search_opendir=$ac_res
5973 rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext
5975 if ${ac_cv_search_opendir+:} false; then :
5976 break
5978 done
5979 if ${ac_cv_search_opendir+:} false; then :
5981 else
5982 ac_cv_search_opendir=no
5984 rm conftest.$ac_ext
5985 LIBS=$ac_func_search_save_LIBS
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5988 $as_echo "$ac_cv_search_opendir" >&6; }
5989 ac_res=$ac_cv_search_opendir
5990 if test "$ac_res" != no; then :
5991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5998 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5999 if ${ac_cv_header_stat_broken+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <sys/types.h>
6005 #include <sys/stat.h>
6007 #if defined S_ISBLK && defined S_IFDIR
6008 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6009 #endif
6011 #if defined S_ISBLK && defined S_IFCHR
6012 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6013 #endif
6015 #if defined S_ISLNK && defined S_IFREG
6016 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6017 #endif
6019 #if defined S_ISSOCK && defined S_IFREG
6020 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6021 #endif
6023 _ACEOF
6024 if ac_fn_c_try_compile "$LINENO"; then :
6025 ac_cv_header_stat_broken=no
6026 else
6027 ac_cv_header_stat_broken=yes
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6032 $as_echo "$ac_cv_header_stat_broken" >&6; }
6033 if test $ac_cv_header_stat_broken = yes; then
6035 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6040 $as_echo_n "checking for ANSI C header files... " >&6; }
6041 if ${ac_cv_header_stdc+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 #include <stdlib.h>
6047 #include <stdarg.h>
6048 #include <string.h>
6049 #include <float.h>
6052 main ()
6056 return 0;
6058 _ACEOF
6059 if ac_fn_c_try_compile "$LINENO"; then :
6060 ac_cv_header_stdc=yes
6061 else
6062 ac_cv_header_stdc=no
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 if test $ac_cv_header_stdc = yes; then
6067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <string.h>
6072 _ACEOF
6073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6074 $EGREP "memchr" >/dev/null 2>&1; then :
6076 else
6077 ac_cv_header_stdc=no
6079 rm -f conftest*
6083 if test $ac_cv_header_stdc = yes; then
6084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 #include <stdlib.h>
6089 _ACEOF
6090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6091 $EGREP "free" >/dev/null 2>&1; then :
6093 else
6094 ac_cv_header_stdc=no
6096 rm -f conftest*
6100 if test $ac_cv_header_stdc = yes; then
6101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6102 if test "$cross_compiling" = yes; then :
6104 else
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 #include <ctype.h>
6108 #include <stdlib.h>
6109 #if ((' ' & 0x0FF) == 0x020)
6110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6112 #else
6113 # define ISLOWER(c) \
6114 (('a' <= (c) && (c) <= 'i') \
6115 || ('j' <= (c) && (c) <= 'r') \
6116 || ('s' <= (c) && (c) <= 'z'))
6117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6118 #endif
6120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6122 main ()
6124 int i;
6125 for (i = 0; i < 256; i++)
6126 if (XOR (islower (i), ISLOWER (i))
6127 || toupper (i) != TOUPPER (i))
6128 return 2;
6129 return 0;
6131 _ACEOF
6132 if ac_fn_c_try_run "$LINENO"; then :
6134 else
6135 ac_cv_header_stdc=no
6137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6138 conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6144 $as_echo "$ac_cv_header_stdc" >&6; }
6145 if test $ac_cv_header_stdc = yes; then
6147 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6152 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6153 if ${ac_cv_header_sys_wait_h+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158 #include <sys/types.h>
6159 #include <sys/wait.h>
6160 #ifndef WEXITSTATUS
6161 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6162 #endif
6163 #ifndef WIFEXITED
6164 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6165 #endif
6168 main ()
6170 int s;
6171 wait (&s);
6172 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6174 return 0;
6176 _ACEOF
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 ac_cv_header_sys_wait_h=yes
6179 else
6180 ac_cv_header_sys_wait_h=no
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6185 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6186 if test $ac_cv_header_sys_wait_h = yes; then
6188 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6193 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6194 if ${ac_cv_header_time+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <sys/types.h>
6200 #include <sys/time.h>
6201 #include <time.h>
6204 main ()
6206 if ((struct tm *) 0)
6207 return 0;
6209 return 0;
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"; then :
6213 ac_cv_header_time=yes
6214 else
6215 ac_cv_header_time=no
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6220 $as_echo "$ac_cv_header_time" >&6; }
6221 if test $ac_cv_header_time = yes; then
6223 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6227 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6228 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6230 cat >>confdefs.h <<_ACEOF
6231 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6232 _ACEOF
6235 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6240 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6241 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6243 cat >>confdefs.h <<_ACEOF
6244 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6245 _ACEOF
6248 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6250 else
6251 case " $LIBOBJS " in
6252 *" fileblocks.$ac_objext "* ) ;;
6253 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6255 esac
6260 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6261 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6263 cat >>confdefs.h <<_ACEOF
6264 #define HAVE_STRUCT_STAT_ST_RDEV 1
6265 _ACEOF
6268 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6274 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6275 if ${ac_cv_struct_tm+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <sys/types.h>
6281 #include <time.h>
6284 main ()
6286 struct tm tm;
6287 int *p = &tm.tm_sec;
6288 return !p;
6290 return 0;
6292 _ACEOF
6293 if ac_fn_c_try_compile "$LINENO"; then :
6294 ac_cv_struct_tm=time.h
6295 else
6296 ac_cv_struct_tm=sys/time.h
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6301 $as_echo "$ac_cv_struct_tm" >&6; }
6302 if test $ac_cv_struct_tm = sys/time.h; then
6304 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6308 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6309 #include <$ac_cv_struct_tm>
6312 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6314 cat >>confdefs.h <<_ACEOF
6315 #define HAVE_STRUCT_TM_TM_ZONE 1
6316 _ACEOF
6321 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6323 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6325 else
6326 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6328 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6329 ac_have_decl=1
6330 else
6331 ac_have_decl=0
6334 cat >>confdefs.h <<_ACEOF
6335 #define HAVE_DECL_TZNAME $ac_have_decl
6336 _ACEOF
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6339 $as_echo_n "checking for tzname... " >&6; }
6340 if ${ac_cv_var_tzname+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 #include <time.h>
6346 #if !HAVE_DECL_TZNAME
6347 extern char *tzname[];
6348 #endif
6351 main ()
6353 return tzname[0][0];
6355 return 0;
6357 _ACEOF
6358 if ac_fn_c_try_link "$LINENO"; then :
6359 ac_cv_var_tzname=yes
6360 else
6361 ac_cv_var_tzname=no
6363 rm -f core conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6367 $as_echo "$ac_cv_var_tzname" >&6; }
6368 if test $ac_cv_var_tzname = yes; then
6370 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6375 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6376 if test "x$ac_cv_type_off_t" = xyes; then :
6378 else
6380 cat >>confdefs.h <<_ACEOF
6381 #define off_t long int
6382 _ACEOF
6386 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6387 if test "x$ac_cv_type_pid_t" = xyes; then :
6389 else
6391 cat >>confdefs.h <<_ACEOF
6392 #define pid_t int
6393 _ACEOF
6397 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6398 if test "x$ac_cv_type_size_t" = xyes; then :
6400 else
6402 cat >>confdefs.h <<_ACEOF
6403 #define size_t unsigned int
6404 _ACEOF
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6409 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6410 if ${ac_cv_type_uid_t+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 #include <sys/types.h>
6417 _ACEOF
6418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6419 $EGREP "uid_t" >/dev/null 2>&1; then :
6420 ac_cv_type_uid_t=yes
6421 else
6422 ac_cv_type_uid_t=no
6424 rm -f conftest*
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6428 $as_echo "$ac_cv_type_uid_t" >&6; }
6429 if test $ac_cv_type_uid_t = no; then
6431 $as_echo "#define uid_t int" >>confdefs.h
6434 $as_echo "#define gid_t int" >>confdefs.h
6439 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6440 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6442 cat >>confdefs.h <<_ACEOF
6443 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6444 _ACEOF
6450 # Look for some functions
6451 for ac_func in getpagesize kqueue statfs statvfs \
6452 clone kse_create rfork_thread thr_create sa_register \
6453 getcontext makecontext setcontext sigaltstack swapcontext
6454 do :
6455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6456 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6457 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6458 cat >>confdefs.h <<_ACEOF
6459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6460 _ACEOF
6463 done
6469 for ac_header in $ac_header_list
6470 do :
6471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6472 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6475 cat >>confdefs.h <<_ACEOF
6476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6477 _ACEOF
6481 done
6490 for ac_func in getpagesize
6491 do :
6492 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6493 if test "x$ac_cv_func_getpagesize" = xyes; then :
6494 cat >>confdefs.h <<_ACEOF
6495 #define HAVE_GETPAGESIZE 1
6496 _ACEOF
6499 done
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6502 $as_echo_n "checking for working mmap... " >&6; }
6503 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 if test "$cross_compiling" = yes; then :
6507 ac_cv_func_mmap_fixed_mapped=no
6508 else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 $ac_includes_default
6512 /* malloc might have been renamed as rpl_malloc. */
6513 #undef malloc
6515 /* Thanks to Mike Haertel and Jim Avera for this test.
6516 Here is a matrix of mmap possibilities:
6517 mmap private not fixed
6518 mmap private fixed at somewhere currently unmapped
6519 mmap private fixed at somewhere already mapped
6520 mmap shared not fixed
6521 mmap shared fixed at somewhere currently unmapped
6522 mmap shared fixed at somewhere already mapped
6523 For private mappings, we should verify that changes cannot be read()
6524 back from the file, nor mmap's back from the file at a different
6525 address. (There have been systems where private was not correctly
6526 implemented like the infamous i386 svr4.0, and systems where the
6527 VM page cache was not coherent with the file system buffer cache
6528 like early versions of FreeBSD and possibly contemporary NetBSD.)
6529 For shared mappings, we should conversely verify that changes get
6530 propagated back to all the places they're supposed to be.
6532 Grep wants private fixed already mapped.
6533 The main things grep needs to know about mmap are:
6534 * does it exist and is it safe to write into the mmap'd area
6535 * how to use it (BSD variants) */
6537 #include <fcntl.h>
6538 #include <sys/mman.h>
6540 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6541 char *malloc ();
6542 #endif
6544 /* This mess was copied from the GNU getpagesize.h. */
6545 #ifndef HAVE_GETPAGESIZE
6546 # ifdef _SC_PAGESIZE
6547 # define getpagesize() sysconf(_SC_PAGESIZE)
6548 # else /* no _SC_PAGESIZE */
6549 # ifdef HAVE_SYS_PARAM_H
6550 # include <sys/param.h>
6551 # ifdef EXEC_PAGESIZE
6552 # define getpagesize() EXEC_PAGESIZE
6553 # else /* no EXEC_PAGESIZE */
6554 # ifdef NBPG
6555 # define getpagesize() NBPG * CLSIZE
6556 # ifndef CLSIZE
6557 # define CLSIZE 1
6558 # endif /* no CLSIZE */
6559 # else /* no NBPG */
6560 # ifdef NBPC
6561 # define getpagesize() NBPC
6562 # else /* no NBPC */
6563 # ifdef PAGESIZE
6564 # define getpagesize() PAGESIZE
6565 # endif /* PAGESIZE */
6566 # endif /* no NBPC */
6567 # endif /* no NBPG */
6568 # endif /* no EXEC_PAGESIZE */
6569 # else /* no HAVE_SYS_PARAM_H */
6570 # define getpagesize() 8192 /* punt totally */
6571 # endif /* no HAVE_SYS_PARAM_H */
6572 # endif /* no _SC_PAGESIZE */
6574 #endif /* no HAVE_GETPAGESIZE */
6577 main ()
6579 char *data, *data2, *data3;
6580 const char *cdata2;
6581 int i, pagesize;
6582 int fd, fd2;
6584 pagesize = getpagesize ();
6586 /* First, make a file with some known garbage in it. */
6587 data = (char *) malloc (pagesize);
6588 if (!data)
6589 return 1;
6590 for (i = 0; i < pagesize; ++i)
6591 *(data + i) = rand ();
6592 umask (0);
6593 fd = creat ("conftest.mmap", 0600);
6594 if (fd < 0)
6595 return 2;
6596 if (write (fd, data, pagesize) != pagesize)
6597 return 3;
6598 close (fd);
6600 /* Next, check that the tail of a page is zero-filled. File must have
6601 non-zero length, otherwise we risk SIGBUS for entire page. */
6602 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6603 if (fd2 < 0)
6604 return 4;
6605 cdata2 = "";
6606 if (write (fd2, cdata2, 1) != 1)
6607 return 5;
6608 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6609 if (data2 == MAP_FAILED)
6610 return 6;
6611 for (i = 0; i < pagesize; ++i)
6612 if (*(data2 + i))
6613 return 7;
6614 close (fd2);
6615 if (munmap (data2, pagesize))
6616 return 8;
6618 /* Next, try to mmap the file at a fixed address which already has
6619 something else allocated at it. If we can, also make sure that
6620 we see the same garbage. */
6621 fd = open ("conftest.mmap", O_RDWR);
6622 if (fd < 0)
6623 return 9;
6624 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6625 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6626 return 10;
6627 for (i = 0; i < pagesize; ++i)
6628 if (*(data + i) != *(data2 + i))
6629 return 11;
6631 /* Finally, make sure that changes to the mapped area do not
6632 percolate back to the file as seen by read(). (This is a bug on
6633 some variants of i386 svr4.0.) */
6634 for (i = 0; i < pagesize; ++i)
6635 *(data2 + i) = *(data2 + i) + 1;
6636 data3 = (char *) malloc (pagesize);
6637 if (!data3)
6638 return 12;
6639 if (read (fd, data3, pagesize) != pagesize)
6640 return 13;
6641 for (i = 0; i < pagesize; ++i)
6642 if (*(data + i) != *(data3 + i))
6643 return 14;
6644 close (fd);
6645 return 0;
6647 _ACEOF
6648 if ac_fn_c_try_run "$LINENO"; then :
6649 ac_cv_func_mmap_fixed_mapped=yes
6650 else
6651 ac_cv_func_mmap_fixed_mapped=no
6653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6654 conftest.$ac_objext conftest.beam conftest.$ac_ext
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6659 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6660 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6662 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6665 rm -f conftest.mmap conftest.txt
6670 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6671 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6672 aros_config_ldflags=""
6674 aros_shared_default=yes
6676 aros_shared_cflags="-fPIC"
6677 aros_shared_aflags=""
6678 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6679 aros_kernel_ldflags="-Wl,-rpath,./lib"
6681 aros_kernel_ar_flags="cr"
6682 aros_target_ar_flags="cr"
6683 aros_target_nm_flags="-C -ul"
6684 aros_target_strip_flags="--strip-unneeded -R.comment"
6686 aros_compiler_libs=
6687 aros_arch_libs=
6689 aros_target_genmap="-Wl,-Map -Xlinker"
6691 # Native flavour stuff
6692 aros_serial_debug="0"
6694 # Palm native flavour stuff
6695 aros_palm_debug_hack="0"
6697 # Unix flavour stuff
6698 aros_nesting_supervisor="0"
6700 # Collect-aros stuff: "-ius" to ignore undefined symbols
6701 ignore_undefined_symbols=""
6703 # Check for X11 by default
6704 need_x11="auto"
6706 #-----------------------------------------------------------------------------
6709 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6710 # it switched on by default, and we use the host compiler, so it compiles AROS
6711 # code with this enabled resulting in link failures as we don't have support
6712 # for it.
6714 # We use two methods to disable it. For the host compiler (used to compile
6715 # some hosted modules), we test to see if the compiler supports stack
6716 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6717 # work on all platforms.
6719 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6720 # (this is done unconditionally, as it should have no effect on compilers
6721 # without the stack protection feature). This may be specific to the way that
6722 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6723 # strong enough to disable it in a generic way though, so we'll live with it
6724 # until another vendor ships GCC with it enabled in a different way, and deal
6725 # with it then.
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6729 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6730 save_cflags="$CFLAGS"
6731 CFLAGS="$CFLAGS -fno-stack-protector"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6736 main ()
6740 return 0;
6742 _ACEOF
6743 if ac_fn_c_try_compile "$LINENO"; then :
6744 use_no_stack_protector="yes"
6745 else
6746 use_no_stack_protector="no"
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6750 $as_echo "$use_no_stack_protector" >&6; }
6751 if test "x-$use_no_stack_protector" = "x-yes" ; then
6752 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6754 CFLAGS="$save_cflags"
6756 #-----------------------------------------------------------------------------
6758 # Disable pointer-signedness warnings if the compiler recognises the option
6759 # (this only works for the host compiler at the moment)
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6762 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6763 save_cflags="$CFLAGS"
6764 CFLAGS="$CFLAGS -Wno-pointer-sign"
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6769 main ()
6773 return 0;
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 use_no_sign_warning="yes"
6778 else
6779 use_no_sign_warning="no"
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6783 $as_echo "$use_no_sign_warning" >&6; }
6784 if test "x-$use_no_sign_warning" = "x-yes" ; then
6785 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6787 CFLAGS="$save_cflags"
6789 #-----------------------------------------------------------------------------
6791 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6794 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6795 save_cflags="$CFLAGS"
6796 CFLAGS="$CFLAGS -fgnu89-inline"
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6801 main ()
6805 return 0;
6807 _ACEOF
6808 if ac_fn_c_try_compile "$LINENO"; then :
6809 use_gnu89_inline="yes"
6810 else
6811 use_gnu89_inline="no"
6813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6815 $as_echo "$use_gnu89_inline" >&6; }
6816 if test "x-$use_gnu89_inline" = "x-yes" ; then
6817 gnu89_inline="-fgnu89-inline"
6819 CFLAGS="$save_cflags"
6821 #-----------------------------------------------------------------------------
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6824 $as_echo_n "checking for type of build... " >&6; }
6825 # Check whether --enable-build_type was given.
6826 if test "${enable_build_type+set}" = set; then :
6827 enableval=$enable_build_type; build_type=$enableval
6828 else
6829 build_type="personal"
6833 if test "$build_type" = "nightly"; then
6834 build_type_string="NIGHTLY"
6835 elif test "$build_type" = "snapshot"; then
6836 build_type_string="SNAPSHOT"
6837 elif test "$build_type" = "milestone"; then
6838 build_type_string="MILESTONE"
6839 elif test "$build_type" = "release"; then
6840 build_type_string="RELEASE"
6841 else
6842 build_type_string="PERSONAL"
6843 build_type="personal"
6846 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6849 $as_echo "$build_type" >&6; }
6851 #-----------------------------------------------------------------------------
6852 all_debug_types="messages stack modules mungwall symbols"
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6855 $as_echo_n "checking which debug types to enable... " >&6; }
6856 # Check whether --enable-debug was given.
6857 if test "${enable_debug+set}" = set; then :
6858 enableval=$enable_debug; debug="$enableval"
6859 else
6860 debug=""
6864 if test "$debug" = "" -o "$debug" = "no"; then
6865 debug="none"
6866 elif test "$debug" = "yes"; then
6867 debug="all"
6870 if test "$debug" = "all" ; then
6871 debug="messages stack modules symbols"
6872 for d in $all_debug_types; do
6873 export aros_${d}_debug="1"
6874 done
6875 else
6876 for d in $all_debug_types; do
6877 export aros_${d}_debug="0"
6878 done
6881 if test "$debug" != "none"; then
6882 debug=`echo $debug | sed s/,/\ /g`
6883 for d in $debug; do
6884 found="0"
6885 for d2 in $all_debug_types; do
6886 if test "$d2" = "$d"; then
6887 found="1"
6888 break
6890 done
6891 if test "$found" = "0"; then
6892 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6894 export aros_${d}_debug="1"
6895 done
6896 aros_debug="yes"
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6899 $as_echo "$debug" >&6; }
6901 if test "$aros_messages_debug" = "1"; then
6902 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6903 else
6904 aros_messages_debug=""
6906 if test "$aros_symbols_debug" = "1"; then
6907 aros_symbols_debug="-g"
6908 else
6909 aros_symbols_debug=""
6912 # These are the flags to pass when compiling debugged programs
6913 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6914 aros_debug_aflags=""
6915 aros_debug_ldflags="$aros_symbols_debug"
6917 #-----------------------------------------------------------------------------
6918 # Checking if we should build crosstools..
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6920 $as_echo_n "checking whether to build crosstools... " >&6; }
6921 # Check whether --enable-crosstools was given.
6922 if test "${enable_crosstools+set}" = set; then :
6923 enableval=$enable_crosstools; crosstools="$enableval"
6924 else
6925 crosstools="no"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6929 $as_echo "$crosstools" >&6; }
6931 #-----------------------------------------------------------------------------
6932 # Checking for distcc and ccache.
6934 # Always apply the transforms in this particular order. Basically you should
6935 # always run 'ccache distcc compiler' in that order for the best performance.
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6938 $as_echo_n "checking whether to enable distcc... " >&6; }
6939 # Check whether --enable-distcc was given.
6940 if test "${enable_distcc+set}" = set; then :
6941 enableval=$enable_distcc; distcc="$enableval"
6942 else
6943 distcc="no"
6946 if test "$distcc" != "" -a "$distcc" != "no"; then
6947 # AC_CHECK_PROG will print out the result in this case
6948 # Extract the first word of "distcc", so it can be a program name with args.
6949 set dummy distcc; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_path_DISTCC+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 case $DISTCC in
6956 [\\/]* | ?:[\\/]*)
6957 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6971 done
6972 done
6973 IFS=$as_save_IFS
6975 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6977 esac
6979 DISTCC=$ac_cv_path_DISTCC
6980 if test -n "$DISTCC"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6982 $as_echo "$DISTCC" >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6995 $as_echo_n "checking whether to enable ccache... " >&6; }
6996 # Check whether --enable-ccache was given.
6997 if test "${enable_ccache+set}" = set; then :
6998 enableval=$enable_ccache; ccache="$enableval"
6999 else
7000 ccache="no"
7003 if test "$ccache" != "" -a "$ccache" != "no"; then
7004 # AC_CHECK_PROG will print out the result in this case
7005 # Extract the first word of "ccache", so it can be a program name with args.
7006 set dummy ccache; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_CCACHE+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$CCACHE"; then
7013 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_prog_CCACHE="ccache"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7026 done
7027 done
7028 IFS=$as_save_IFS
7032 CCACHE=$ac_cv_prog_CCACHE
7033 if test -n "$CCACHE"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7035 $as_echo "$CCACHE" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7047 #-----------------------------------------------------------------------------
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7049 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7051 # Check whether --with-gcc-version was given.
7052 if test "${with_gcc_version+set}" = set; then :
7053 withval=$with_gcc_version; target_tool_version="$withval"
7054 else
7055 target_tool_version="default"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7059 $as_echo "$target_tool_version" >&6; }
7061 #-----------------------------------------------------------------------------
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7063 $as_echo_n "checking what optimization flags to use... " >&6; }
7065 # Check whether --with-optimization was given.
7066 if test "${with_optimization+set}" = set; then :
7067 withval=$with_optimization; optimization="$withval"
7068 else
7069 optimization="unknown"
7072 if test "$optimization" = "unknown"; then
7073 if test "$debug" != "none"; then
7074 optimization="-O0"
7075 else
7076 optimization="-O2"
7079 aros_config_cflags="$aros_config_cflags $optimization"
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7081 $as_echo "$optimization" >&6; }
7083 #-----------------------------------------------------------------------------
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7085 $as_echo_n "checking what paranoia flags to use... " >&6; }
7087 # Check whether --with-paranoia was given.
7088 if test "${with_paranoia+set}" = set; then :
7089 withval=$with_paranoia; paranoia_flags="$withval"
7090 else
7091 paranoia_flags="default"
7094 if test "$paranoia_flags" = "default"; then
7095 paranoia_flags=""
7096 else if test "$paranoia_flags" = "yes"; then
7097 paranoia_flags="-Wall -Werror"
7098 fi fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7100 $as_echo "$paranoia_flags" >&6; }
7101 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7103 #-----------------------------------------------------------------------------
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7105 $as_echo_n "checking what target variant to enable... " >&6; }
7106 # Check whether --enable-target_variant was given.
7107 if test "${enable_target_variant+set}" = set; then :
7108 enableval=$enable_target_variant; target_variant=$enableval
7109 else
7110 target_variant=""
7113 if test "$target_variant" = ""; then
7114 aros_target_variant=""
7115 aros_target_suffix=""
7116 enableval="none"
7117 else
7118 aros_target_variant="$target_variant"
7119 aros_target_suffix="-$target_variant"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7122 $as_echo "$enableval" >&6; }
7124 #-----------------------------------------------------------------------------
7125 # Target-specific defaults. You can override then on a per-target basis.
7127 # Bootloader name. Currently used by PC target.
7128 target_bootloader="none"
7130 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7131 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7132 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7133 if test "$crosstools" != "yes"; then
7134 target_tool_prefix=${target_cpu}-elf-
7135 else
7136 target_tool_prefix=${target_cpu}-aros-
7139 #-----------------------------------------------------------------------------
7140 # Additional options for some specific targets
7142 case "$aros_target_variant" in
7143 ios)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7145 $as_echo_n "checking XCode path... " >&6; }
7147 # Check whether --with-xcode was given.
7148 if test "${with_xcode+set}" = set; then :
7149 withval=$with_xcode; aros_xcode_path="$withval"
7150 else
7151 aros_xcode_path="/Developer"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7155 $as_echo "$aros_xcode_path" >&6; }
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7158 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7160 # Check whether --with-ios-version was given.
7161 if test "${with_ios_version+set}" = set; then :
7162 withval=$with_ios_version; aros_ios_version="$withval"
7163 else
7164 aros_ios_version="3.0"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7168 $as_echo "$aros_ios_version" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7171 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7173 # Check whether --with-ios-sdk was given.
7174 if test "${with_ios_sdk+set}" = set; then :
7175 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7176 else
7177 aros_ios_sdk="4.1"
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7181 $as_echo "$aros_ios_sdk" >&6; }
7185 "android")
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7187 $as_echo_n "checking Android SDK path... " >&6; }
7189 # Check whether --with-sdk was given.
7190 if test "${with_sdk+set}" = set; then :
7191 withval=$with_sdk; aros_android_sdk="$withval"
7192 else
7193 aros_android_sdk=$default_android_sdk
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7197 $as_echo "$aros_android_sdk" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7200 $as_echo_n "checking Android NDK path... " >&6; }
7202 # Check whether --with-ndk was given.
7203 if test "${with_ndk+set}" = set; then :
7204 withval=$with_ndk; aros_android_ndk="$withval"
7205 else
7206 aros_android_ndk="none"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7210 $as_echo "$aros_android_ndk" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7213 $as_echo_n "checking what Android SDK version to use... " >&6; }
7215 # Check whether --with-sdk-version was given.
7216 if test "${with_sdk_version+set}" = set; then :
7217 withval=$with_sdk_version; aros_sdk_version="$withval"
7218 else
7219 aros_sdk_version="8"
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7223 $as_echo "$aros_sdk_version" >&6; }
7225 if test "$aros_android_ndk" != "none"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7227 $as_echo_n "checking what Android NDK version to use... " >&6; }
7229 # Check whether --with-ndk-version was given.
7230 if test "${with_ndk_version+set}" = set; then :
7231 withval=$with_ndk_version; aros_ndk_version="$withval"
7232 else
7233 aros_ndk_version="9"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7237 $as_echo "$aros_ndk_version" >&6; }
7240 export PATH="$aros_android_sdk/tools:$PATH"
7241 # Extract the first word of "$android_tool", so it can be a program name with args.
7242 set dummy $android_tool; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_path_android_tool+:} false; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 case $android_tool in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7266 IFS=$as_save_IFS
7269 esac
7271 android_tool=$ac_cv_path_android_tool
7272 if test -n "$android_tool"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7274 $as_echo "$android_tool" >&6; }
7275 else
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7281 if test "$android_tool" = ""; then
7282 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7285 aros_android_level=android-$aros_sdk_version
7286 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7287 echo "Platform $aros_android_level is not installed in your SDK"
7288 echo "Use --with-sdk-version=<API level number> to select another platform version"
7289 echo "You can check what plaform versions are installed in your SDK"
7290 echo "by examining contents of $aros_android_sdk/platforms directory"
7291 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7294 # Extract the first word of "ant", so it can be a program name with args.
7295 set dummy ant; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_path_ant+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 case $ant in
7302 [\\/]* | ?:[\\/]*)
7303 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7313 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7317 done
7318 done
7319 IFS=$as_save_IFS
7322 esac
7324 ant=$ac_cv_path_ant
7325 if test -n "$ant"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7327 $as_echo "$ant" >&6; }
7328 else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7334 if test "$ant" = ""; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7336 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7339 if test "$host_os" = "mingw32"; then
7340 android_tool="cmd //c $android_tool"
7344 esac
7346 #-----------------------------------------------------------------------------
7347 # This is the target configuration switch.
7348 case "$target_os" in
7349 linux*)
7350 aros_target_arch="linux"
7351 aros_target_family="unix"
7352 case "$target_cpu" in
7353 *m68k*)
7354 aros_target_cpu="m68k"
7355 aros_object_format="m68kelf"
7356 aros_flavour="emulcompat"
7357 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7358 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7359 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7360 gcc_target_cpu="mc68000"
7362 *i?86*)
7363 aros_target_cpu="i386"
7364 aros_object_format="elf_i386"
7365 aros_flavour="emulation"
7366 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7367 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7368 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7369 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7370 aros_config_ldflags="-m32 -march=i486"
7371 aros_kernel_ldflags="-melf_i386"
7372 aros_default_wbdepth=8
7373 gcc_target_cpu="i386"
7374 pci_hidd_target="hidd-pci-linux"
7375 android_tool_dir_prefix="x86"
7376 android_tool_prefix="i686-android-linux"
7377 android_ndk_arch="x86"
7379 *x86_64*)
7380 aros_target_cpu="x86_64"
7381 aros_object_format="elf_x86_64"
7382 aros_flavour="emulation"
7383 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7384 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7385 aros_default_wbdepth=8
7386 pci_hidd_target="hidd-pci-linux"
7388 *powerpc*)
7389 aros_target_cpu="ppc"
7390 aros_object_format="elf32ppc"
7391 aros_flavour="emulation"
7392 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7393 aros_default_wbdepth=8
7394 gcc_target_cpu="ppc"
7396 # TODO
7397 # Same as powerpc, but I need this for the nightly build to work again.
7398 # Actually, the nightly should be made working with powerpc target.
7399 # That just was too much work for the moment, another week or two.
7400 *ppc*)
7401 aros_target_cpu="ppc"
7402 aros_object_format="elf32ppc"
7403 aros_flavour="emulation"
7404 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7405 aros_default_wbdepth=8
7406 gcc_target_cpu="ppc"
7408 *arm*)
7409 aros_target_cpu="arm"
7410 aros_object_format="armelf_linux_eabi"
7411 aros_flavour="emulation"
7412 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7413 gcc_target_cpu="arm"
7414 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"
7415 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"
7416 aros_arch_libs="-laeabi"
7417 android_tool_dir_prefix="arm-linux-androideabi"
7418 android_tool_prefix="arm-linux-androideabi"
7419 android_ndk_arch="arm"
7422 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7424 esac
7425 case "$aros_target_variant" in
7426 android)
7428 if test "$android_ndk_arch" = ""; then
7429 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7432 aros_default_wbwidth=320
7433 aros_default_wbheight=480
7434 if test "$aros_android_ndk" = "none"; then
7435 aros_kernel_cflags="-mandroid"
7436 aros_kernel_ldflags="-mandroid"
7437 CFLAGS="-mandroid"
7438 else
7439 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7440 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7441 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7442 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7443 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7444 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7446 need_x11=no
7447 x11_hidd_target=kernel-hidd-androidgfx-kobj
7448 target_tool_prefix="$android_tool_prefix-"
7450 esac
7454 aros_target_arch="pc"
7455 aros_shared_default="no"
7456 target_bootloader="grub2"
7457 case "$target_cpu" in
7458 *i?86*)
7459 aros_target_cpu="i386"
7462 if test "$aros_object_format" = "" ; then
7463 aros_object_format="elf_i386"
7465 aros_flavour="standalone"
7466 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7467 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7468 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7469 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7470 aros_config_ldflags="-m32 -march=i486"
7471 aros_kernel_ldflags="-melf_i386"
7472 aros_default_wbwidth=640
7473 aros_default_wbheight=480
7474 gcc_target_cpu="i386"
7476 *x86_64*)
7477 aros_target_cpu="x86_64"
7478 aros_serial_debug=1
7479 if test "$aros_object_format" = "" ; then
7480 aros_object_format="elf_x86_64"
7482 aros_flavour="standalone"
7483 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7484 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7485 aros_kernel_ldflags=""
7486 aros_default_wbwidth=640
7487 aros_default_wbheight=480
7490 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7492 esac
7495 prep)
7496 aros_target_arch="prep"
7497 aros_shared_default="no"
7498 aros_target_cpu="ppc"
7499 aros_object_format="elf32ppc"
7500 aros_flavour="ppcnative"
7501 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7502 aros_kernel_ldflags=""
7503 aros_default_wbwidth=640
7504 aros_default_wbheight=480
7505 gcc_target_cpu="ppc"
7508 freebsd*)
7509 aros_target_arch="freebsd"
7510 aros_target_family="unix"
7511 aros_target_cpu="i386"
7512 aros_flavour="emulation"
7513 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7514 gcc_target_cpu="i386"
7516 aros_target_strip_flags="-x"
7519 darwin*)
7520 aros_target_arch="darwin"
7521 aros_target_family="unix"
7522 aros_flavour="emulation"
7523 case "$target_cpu" in
7524 *i?86*)
7525 aros_ios_platform="iPhoneSimulator"
7526 aros_target_cpu="i386"
7527 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7528 aros_kernel_ldflags=""
7529 aros_macosx_version="10.4"
7530 aros_default_wbdepth=8
7531 gcc_target_cpu="i386"
7532 aros_object_format="elf_i386"
7533 aros_kernel_ar_flags="-cr"
7534 aros_target_strip_flags="-x"
7535 target_tool_prefix="i686-apple-darwin10-"
7536 target_tool_flags="-m32"
7538 *x86_64*)
7539 aros_target_cpu="x86_64"
7540 aros_object_format="elf_x86_64"
7541 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7542 aros_macosx_version="10.6"
7543 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7544 aros_kernel_cflags="-m64"
7545 aros_kernel_ldflags="-m64"
7546 aros_target_cflags="-mcmodel=large"
7547 aros_default_wbdepth=8
7548 aros_kernel_ar="ar"
7549 aros_kernel_ar_flags="-cr"
7550 aros_kernel_ld="ld"
7551 aros_kernel_ranlib="ranlib"
7552 target_tool_prefix="i686-apple-darwin10-"
7554 *ppc*)
7555 aros_target_cpu="ppc"
7556 aros_object_format="elf32ppc"
7557 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7558 aros_kernel_ldflags=""
7559 aros_macosx_version="10.0"
7560 aros_default_wbdepth=8
7561 gcc_target_cpu="ppc"
7562 aros_kernel_ar="ar"
7563 aros_kernel_ar_flags="-cr"
7564 aros_kernel_ld="ld -arch ppc"
7565 aros_kernel_ranlib="ranlib -arch ppc"
7566 target_tool_prefix="powerpc-apple-darwin10-"
7568 *arm*)
7569 aros_ios_platform="iPhoneOS"
7570 aros_target_cpu="arm"
7571 aros_object_format="armelf_linux_eabi"
7572 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7573 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7574 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7575 aros_arch_libs="-laeabi"
7576 aros_default_wbdepth=8
7577 gcc_target_cpu="arm"
7578 aros_kernel_ar="ar"
7579 aros_kernel_ar_flags="-cr"
7580 aros_kernel_ld="ld -arch arm"
7581 aros_kernel_ranlib="ranlib -arch arm"
7582 target_tool_prefix="arm-apple-darwin10-"
7583 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7586 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7588 esac
7589 case "$aros_target_variant" in
7590 ios)
7591 aros_default_wbwidth=320
7592 aros_default_wbheight=480
7593 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7594 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7595 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7596 need_x11=no
7597 # This is here because it may depend on iOS or SDK version
7598 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7599 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7600 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7603 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7604 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7606 esac
7609 dragonfly*)
7610 aros_target_arch="dragonfly"
7611 aros_target_family="unix"
7612 aros_flavour="emulation"
7613 case "$target_cpu" in
7614 *i?86*)
7615 aros_target_cpu="i386"
7616 aros_object_format="elf_i386"
7617 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7619 *x86_64*)
7620 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7621 aros_target_cpu="x86_64"
7622 aros_object_format="elf_x86_64"
7623 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7626 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7628 esac
7631 netbsd*)
7632 aros_target_arch="netbsd"
7633 aros_target_family="unix"
7634 case "$target_cpu" in
7635 *m68k*)
7636 aros_target_cpu="m68k"
7637 aros_object_format="m68kelf"
7638 aros_flavour="emulcompat"
7639 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7640 gcc_target_cpu="mc68000"
7642 *i?86*)
7643 aros_target_cpu="i386"
7644 aros_object_format="elf_i386"
7645 aros_flavour="emulation"
7646 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7647 aros_default_wbdepth=8
7648 gcc_target_cpu="i386"
7651 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7653 esac
7654 aros_target_genmap="-Wl,-M -Xlinker >"
7655 aros_flavour="emulation"
7656 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7659 openbsd*)
7660 aros_target_arch="openbsd"
7661 aros_target_family="unix"
7662 case "$target_cpu" in
7663 *i?86*)
7664 aros_target_cpu="i386"
7665 aros_object_format="elf_i386"
7666 aros_flavour="emulation"
7667 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7668 gcc_target_cpu="i386"
7671 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7673 esac
7674 aros_target_genmap="-Wl,-M -Xlinker >"
7675 aros_target_nm_flags="-u"
7676 aros_flavour="emulation"
7679 solaris*)
7680 aros_target_arch="solaris"
7681 aros_target_family="unix"
7682 case "$target_cpu" in
7683 *i?86*)
7684 aros_target_cpu="i386"
7685 aros_object_format="elf_i386"
7686 aros_flavour="emulation"
7687 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7688 aros_default_wbdepth=8
7689 gcc_target_cpu="i386"
7691 *sparc*)
7692 aros_target_cpu="sparc"
7693 aros_object_format="elf_sparc"
7694 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7695 gcc_target_cpu="sparc"
7698 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7700 esac
7701 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7702 aros_flavour="emulation"
7705 morphos*)
7706 aros_target_arch="morphos"
7707 aros_shared_default="no"
7708 aros_target_cpu="ppc"
7709 aros_object_format="elf_ppc"
7710 aros_flavour="nativecompat"
7711 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7712 gcc_target_cpu="ppc"
7715 sam440)
7716 aros_target_arch="sam440"
7717 aros_shared_default="no"
7718 aros_target_cpu="ppc"
7719 aros_object_format="elf32ppc"
7720 aros_flavour="ppcnative"
7721 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7722 aros_kernel_ldflags=""
7723 aros_default_wbwidth=1024
7724 aros_default_wbheight=768
7725 aros_default_wbdepth=24
7726 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7727 gcc_target_cpu="powerpc"
7730 efika)
7731 aros_target_arch="efika"
7732 aros_shared_default="no"
7733 aros_target_cpu="arm"
7734 aros_object_format="armelf_linux_eabi"
7735 aros_flavour="standalone"
7736 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7737 aros_kernel_ldflags=""
7738 aros_default_wbwidth=1024
7739 aros_default_wbheight=600
7740 aros_arch_libs="-laeabi"
7741 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"
7742 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"
7745 chrp)
7746 aros_target_arch="chrp"
7747 aros_shared_default="no"
7748 aros_target_cpu="ppc"
7749 aros_object_format="elf32ppc"
7750 aros_flavour="ppcnative"
7751 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7752 aros_kernel_ldflags=""
7753 aros_default_wbwidth=640
7754 aros_default_wbheight=480
7755 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7756 gcc_target_cpu="powerpc"
7757 case "$aros_target_variant" in
7758 efika)
7759 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7761 esac
7764 amiga*)
7765 aros_target_arch="amiga"
7766 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7767 aros_shared_default="no"
7769 case "$target_cpu" in
7770 *m68k*)
7771 # Check whether --enable-amigaos_compliance was given.
7772 if test "${enable_amigaos_compliance+set}" = set; then :
7773 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7776 aros_enable_mmu=no
7777 aros_target_cpu="m68k"
7778 aros_object_format="m68kelf"
7779 aros_flavour="standcompat"
7780 gcc_target_cpu="m68000"
7781 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7782 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7783 target_tool_prefix="m68k-elf-"
7784 # Needed to get the correct multilib
7785 aros_config_ldflags="-${gcc_target_cpu}"
7786 aros_shared_ldflags="-${gcc_target_cpu}"
7787 aros_kernel_ldflags="-${gcc_target_cpu}"
7788 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7789 aros_target_strip_flags="-R.comment --strip-debug"
7790 aros_default_wbwidth=640
7791 aros_default_wbheight=256
7792 aros_default_wbdepth=2
7794 *ppc*)
7795 aros_cpu="ppc"
7796 aros_flavour="native"
7797 gcc_target_cpu="ppc"
7800 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7802 esac
7805 mingw*)
7806 aros_target_arch="mingw32"
7807 aros_shared_default="no"
7808 aros_flavour="emulation"
7809 aros_shared_cflags=""
7810 need_dlopen="no"
7811 rescomp="windres"
7812 case "$target_cpu" in
7813 *i?86*)
7814 aros_target_cpu="i386"
7815 aros_object_format="elf_i386"
7816 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7817 aros_default_wbdepth=8
7818 gcc_target_cpu="i386"
7820 aros_target_as="i386-aros-as"
7821 aros_target_ar="i386-aros-ar"
7822 aros_target_ranlib="i386-aros-ranlib"
7823 aros_target_nm="i386-aros-nm"
7824 aros_target_strip="i386-aros-strip"
7825 aros_target_objcopy="i386-aros-objcopy"
7826 aros_target_objdump="i386-aros-objdump"
7828 target_tool_prefix="i386-mingw32-"
7830 *x86_64*)
7831 aros_target_cpu="x86_64"
7832 aros_object_format="elf_x86_64"
7833 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7834 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7835 aros_default_wbdepth=8
7836 target_tool_prefix="x86_64-w64-mingw32-"
7838 *arm*)
7839 aros_target_cpu="arm"
7840 aros_object_format="armelf_linux_eabi"
7841 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7842 aros_arch_libs="-laeabi"
7843 aros_default_wbdepth=8
7844 gcc_target_cpu="arm"
7845 target_tool_prefix="arm-mingw32ce-"
7846 aros_default_wbwidth=160
7847 aros_default_wbheight=160
7850 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7852 esac
7853 if test $host_os = "cygwin"; then
7854 aros_kernel_cflags="-mno-cygwin"
7857 pp*)
7858 aros_target_arch="pp"
7859 aros_shared_default="no"
7860 case "$target_cpu" in
7861 *m68k*)
7862 aros_target_cpu="m68k"
7863 aros_object_format="m68kelf"
7864 aros_flavour="palmnative"
7865 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7866 aros_default_wbwidth=160
7867 aros_default_wbheight=160
7868 aros_default_wbdepth=1
7869 aros_target_ar_flags="cru"
7870 aros_compiler_libs="-lgcc1"
7871 aros_shared_default=no
7872 aros_shared_cflags="-fpic"
7873 aros_shared_aflags=""
7874 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7875 aros_kernel_ldflags="-Wl,-rpath,./lib"
7876 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7877 aros_debug_aflags=""
7878 aros_debug_ldflags="$aros_symbols_debug"
7879 aros_mungwall_debug="0"
7880 aros_modules_debug="0"
7881 gcc_target_cpu="mc68000"
7882 ignore_undefined_symbols="-ius"
7885 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7887 esac
7890 mac*)
7891 aros_target_arch="mac"
7892 aros_shared_default="no"
7893 case "$target_cpu" in
7894 *m68k*)
7895 aros_target_cpu="m68k"
7896 aros_object_format="m68kelf"
7897 aros_flavour="mac68knative"
7898 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7899 aros_default_wbwidth=512
7900 aros_default_wbheight=384
7901 aros_default_wbdepth=8
7902 aros_target_ar_flags="cru"
7903 aros_compiler_libs="-lgcc1"
7904 aros_shared_default=no
7905 aros_shared_cflags="-fpic"
7906 aros_shared_aflags=""
7907 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7908 aros_kernel_ldflags="-Wl,-rpath,./lib"
7909 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7910 aros_debug_aflags=""
7911 aros_debug_ldflags="$aros_symbols_debug"
7912 aros_mungwall_debug="0"
7913 aros_modules_debug="0"
7914 gcc_target_cpu="mc68000"
7915 ignore_undefined_symbols="-ius"
7918 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7920 esac
7924 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7926 esac
7928 # Some formats need custom ELF specs.
7929 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
7930 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
7931 elf_specs_in=config/${aros_object_format}-specs.in
7932 else
7933 elf_specs_in=config/elf-specs.in
7936 #-----------------------------------------------------------------------------
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7938 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7940 # Check whether --with-crosstools was given.
7941 if test "${with_crosstools+set}" = set; then :
7942 withval=$with_crosstools; with_crosstools=$withval
7943 else
7944 with_crosstools="default"
7947 if test "$with_crosstools" = "default"; then
7948 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7949 else
7950 AROS_CROSSTOOLSDIR="$with_crosstools"
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7953 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7955 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
7958 use_aros_gcc=yes
7959 PATH=$AROS_CROSSTOOLSDIR:$PATH
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7963 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7965 # Check whether --with-aros-gcc was given.
7966 if test "${with_aros_gcc+set}" = set; then :
7967 withval=$with_aros_gcc; aros_gcc_version="$withval"
7968 else
7969 aros_gcc_version="$use_aros_gcc"
7972 case "$aros_gcc_version" in
7973 yes)
7974 aros_gcc_version="default"
7977 aros_gcc_version="none"
7979 esac
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7981 $as_echo "$aros_gcc_version" >&6; }
7983 if test "$aros_gcc_version" != "none"; then
7986 if test "$aros_gcc_version" != "default"; then
7987 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7988 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7989 else
7990 aros_target_cc="$aros_target_cpu-aros-gcc"
7991 aros_target_cxx="$aros_target_cpu-aros-g++"
7994 aros_target_ld="$aros_target_cpu-aros-ld"
7995 aros_target_as="$aros_target_cpu-aros-as"
7996 aros_target_ar="$aros_target_cpu-aros-ar"
7997 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7998 aros_target_nm="$aros_target_cpu-aros-nm"
7999 aros_target_strip="$aros_target_cpu-aros-strip"
8000 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
8001 aros_target_objdump="$aros_target_cpu-aros-objdump"
8004 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8005 # Since we override specs, we may need to put these defines there
8006 if test "$gcc_target_cpu" != ""; then
8007 gcc_target_cpu="-D__${gcc_target_cpu}__"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8011 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8013 # Check whether --with-portssources was given.
8014 if test "${with_portssources+set}" = set; then :
8015 withval=$with_portssources; with_portssrcdir=$withval
8016 else
8017 with_portssrcdir="default"
8020 if test "$with_portssrcdir" = "default"; then
8021 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8022 else
8023 AROS_PORTSSRCDIR="$with_portssrcdir"
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8026 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8029 $as_echo_n "checking which bootloader to use... " >&6; }
8031 # Check whether --with-bootloader was given.
8032 if test "${with_bootloader+set}" = set; then :
8033 withval=$with_bootloader; target_bootloader=$withval
8034 else
8035 target_bootloader=$target_bootloader
8038 if test "$target_bootloader" = "none"; then
8039 aros_target_bootloader=""
8040 else
8041 aros_target_bootloader="$target_bootloader"
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8044 $as_echo "$target_bootloader" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8047 $as_echo_n "checking which icon-set to use... " >&6; }
8049 # Check whether --with-iconset was given.
8050 if test "${with_iconset+set}" = set; then :
8051 withval=$with_iconset; target_iconset=$withval
8052 else
8053 target_iconset="default"
8056 if test "$target_iconset" = "default"; then
8057 aros_target_iconset="Gorilla"
8058 target_iconset="default (Gorilla)"
8059 else
8060 aros_target_iconset="$target_iconset"
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8063 $as_echo "$target_iconset" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8066 $as_echo_n "checking which GUI Theme to use... " >&6; }
8068 # Check whether --with-theme was given.
8069 if test "${with_theme+set}" = set; then :
8070 withval=$with_theme; target_guitheme=$withval
8071 else
8072 target_guitheme="default"
8075 if test "$target_guitheme" = "default"; then
8076 aros_target_guitheme="Ice"
8077 else
8078 aros_target_guitheme="$target_guitheme"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8081 $as_echo "$aros_target_guitheme" >&6; }
8083 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8084 # for target code)
8085 cross_compiling=no
8086 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8087 cross_compiling=yes
8090 if test "$aros_host_cpu" == "x86_64" ; then
8091 if test "$aros_target_cpu" == "i386" ; then
8092 if test "$aros_target_arch" != "mingw32"; then
8093 cross_compiling=no
8098 if test "$aros_host_arch" == "darwin" ; then
8099 if test "$aros_target_arch" != "darwin" ; then
8100 cross_compiling=yes
8104 if test "$aros_host_arch" == "mingw32" ; then
8105 if test "$aros_target_arch" != "mingw32" ; then
8106 cross_compiling=yes
8110 # I want to have this information in configure output, although it might be
8111 # misleading, e.g. for darwin hosted you cannot compile target code without a
8112 # cross compiler, but here it says no.
8114 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8115 # Target code is a little bit different thing.
8116 # sonic
8117 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8119 # Set prefix for target compiler etc. if we're cross-compiling
8120 # (should possibly be earlier but needs to be after AC_PROG_CC)
8121 if test "$cross_compiling" = "yes" ; then
8123 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8124 if test "$aros_gcc_version" != "none"; then
8127 target_tool_prefix=${target_cpu}-aros-
8128 target_tool_version=$aros_gcc_version
8129 use_kernel_cc_wrapper=yes
8131 aros_target_cc=
8132 aros_target_ld=
8133 aros_target_as=
8134 aros_target_ar=
8135 aros_target_ranlib=
8136 aros_target_nm=
8137 aros_target_strip=
8138 aros_target_objcopy=
8139 aros_target_objdump=
8143 CC=${target_tool_prefix}gcc
8144 CPP=${target_tool_prefix}cpp
8145 if test "$target_tool_version" != "default"; then
8146 CC="$CC-$target_tool_version"
8147 CPP="$CC-$target_tool_version"
8149 if test "$crosstools" != "yes" ; then
8150 # Extract the first word of "$CC", so it can be a program name with args.
8151 set dummy $CC; ac_word=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if ${ac_cv_path_CC+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 case $CC in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8178 esac
8180 CC=$ac_cv_path_CC
8181 if test -n "$CC"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8183 $as_echo "$CC" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8190 if test "$CC" = ""; then
8191 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8193 else
8194 CC=$AROS_CROSSTOOLSDIR/$CC
8197 CC="$CC $target_tool_flags"
8199 #-----------------------------------------------------------------------------
8201 # Disable pointer-signedness warnings if the compiler recognises the option
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8204 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8205 save_cflags="$CFLAGS"
8206 if test "$crosstools" != "yes" ; then
8207 CFLAGS="$CFLAGS -Wno-pointer-sign"
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8212 main ()
8216 return 0;
8218 _ACEOF
8219 if ac_fn_c_try_compile "$LINENO"; then :
8220 use_no_sign_warning="yes"
8221 else
8222 use_no_sign_warning="no"
8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 else
8226 # we do know it is supported for the smallest version of gcc we are going to build
8227 # we assume it's also supported by later versions
8228 use_no_sign_warning=yes
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8231 $as_echo "$use_no_sign_warning" >&6; }
8232 if test "x-$use_no_sign_warning" = "x-yes" ; then
8233 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8235 CFLAGS="$save_cflags"
8237 #-----------------------------------------------------------------------------
8239 # Find all the tools we need to compile. This could be cross-compiling
8240 # though! If that is the case we use the GNU form of the target and
8241 # simply add this to the front of the binary name. This is rather simple,
8242 # but it should work under most circumstances.
8244 # The default tools are to use the same as the host, but only if the
8245 # host and target CPU are the same. With GCC this is normally enough.
8248 aros_cc_pre=""
8249 aros_shared_ld="$aros_host_ld"
8251 aros_target_mkdep="$aros_host_mkdep"
8252 aros_target_incl_def="$aros_host_incl"
8254 aros_kernel_cc="$CC"
8256 # The default tools executables to be linked to.
8257 if test "$rescomp" != ""; then
8258 if test "$cross_compiling" = "yes" ; then
8259 rescomp=${target_tool_prefix}${rescomp}
8261 # Extract the first word of "$rescomp", so it can be a program name with args.
8262 set dummy $rescomp; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 case $aros_kernel_rescomp in
8269 [\\/]* | ?:[\\/]*)
8270 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8284 done
8285 done
8286 IFS=$as_save_IFS
8289 esac
8291 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8292 if test -n "$aros_kernel_rescomp"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8294 $as_echo "$aros_kernel_rescomp" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8301 if test "$aros_kernel_rescomp" = ""; then
8302 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8306 if test "$crosstools" != "yes"; then
8308 if test "$aros_kernel_ld" = ""; then
8309 if test "$cross_compiling" = "yes" ; then
8310 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8311 set dummy ${target_tool_prefix}ld; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 case $aros_kernel_ld in
8318 [\\/]* | ?:[\\/]*)
8319 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8333 done
8334 done
8335 IFS=$as_save_IFS
8338 esac
8340 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8341 if test -n "$aros_kernel_ld"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8343 $as_echo "$aros_kernel_ld" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8350 else
8351 if test "$GCC" = "yes"; then
8352 aros_gcc_ld=`$CC -print-prog-name=ld`
8353 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8354 set dummy `basename $aros_gcc_ld`; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 case $aros_kernel_ld in
8361 [\\/]* | ?:[\\/]*)
8362 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in `dirname $aros_gcc_ld`
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8376 done
8377 done
8378 IFS=$as_save_IFS
8381 esac
8383 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8384 if test -n "$aros_kernel_ld"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8386 $as_echo "$aros_kernel_ld" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8394 if test "$aros_kernel_ld" = ""; then
8395 # Extract the first word of "ld", so it can be a program name with args.
8396 set dummy ld; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 case $aros_kernel_ld in
8403 [\\/]* | ?:[\\/]*)
8404 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8418 done
8419 done
8420 IFS=$as_save_IFS
8423 esac
8425 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8426 if test -n "$aros_kernel_ld"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8428 $as_echo "$aros_kernel_ld" >&6; }
8429 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8437 else
8438 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8439 set dummy $aros_kernel_ld; ac_word=$2
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441 $as_echo_n "checking for $ac_word... " >&6; }
8442 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 case $aros_kernel_ld in
8446 [\\/]* | ?:[\\/]*)
8447 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8457 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8461 done
8462 done
8463 IFS=$as_save_IFS
8466 esac
8468 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8469 if test -n "$aros_kernel_ld"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8471 $as_echo "$aros_kernel_ld" >&6; }
8472 else
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8480 if test "$aros_kernel_ld" = ""; then
8481 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8484 if test "$aros_kernel_ar" = ""; then
8485 if test "$cross_compiling" = "yes" ; then
8486 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8487 set dummy ${target_tool_prefix}ar; ac_word=$2
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489 $as_echo_n "checking for $ac_word... " >&6; }
8490 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 case $aros_kernel_ar in
8494 [\\/]* | ?:[\\/]*)
8495 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8501 IFS=$as_save_IFS
8502 test -z "$as_dir" && as_dir=.
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8505 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 break 2
8509 done
8510 done
8511 IFS=$as_save_IFS
8514 esac
8516 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8517 if test -n "$aros_kernel_ar"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8519 $as_echo "$aros_kernel_ar" >&6; }
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8526 else
8527 if test "$GCC" = "yes"; then
8528 aros_gcc_ar=`$CC -print-prog-name=ar`
8529 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8530 set dummy `basename $aros_gcc_ar`; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 case $aros_kernel_ar in
8537 [\\/]* | ?:[\\/]*)
8538 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in `dirname $aros_gcc_ar`
8544 IFS=$as_save_IFS
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8548 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 break 2
8552 done
8553 done
8554 IFS=$as_save_IFS
8557 esac
8559 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8560 if test -n "$aros_kernel_ar"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8562 $as_echo "$aros_kernel_ar" >&6; }
8563 else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8570 if test "$aros_kernel_ar" = ""; then
8571 # Extract the first word of "ar", so it can be a program name with args.
8572 set dummy ar; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 case $aros_kernel_ar in
8579 [\\/]* | ?:[\\/]*)
8580 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 for as_dir in $PATH
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8590 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592 break 2
8594 done
8595 done
8596 IFS=$as_save_IFS
8599 esac
8601 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8602 if test -n "$aros_kernel_ar"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8604 $as_echo "$aros_kernel_ar" >&6; }
8605 else
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8613 else
8614 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8615 set dummy $aros_kernel_ar; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 case $aros_kernel_ar in
8622 [\\/]* | ?:[\\/]*)
8623 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 for as_dir in $PATH
8629 IFS=$as_save_IFS
8630 test -z "$as_dir" && as_dir=.
8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8633 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 break 2
8637 done
8638 done
8639 IFS=$as_save_IFS
8642 esac
8644 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8645 if test -n "$aros_kernel_ar"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8647 $as_echo "$aros_kernel_ar" >&6; }
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8656 if test "$aros_kernel_ar" = ""; then
8657 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8660 if test "$aros_kernel_ranlib" = ""; then
8661 if test "$cross_compiling" = "yes" ; then
8662 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8663 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 case $aros_kernel_ranlib in
8670 [\\/]* | ?:[\\/]*)
8671 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8685 done
8686 done
8687 IFS=$as_save_IFS
8690 esac
8692 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8693 if test -n "$aros_kernel_ranlib"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8695 $as_echo "$aros_kernel_ranlib" >&6; }
8696 else
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8702 else
8703 if test "$GCC" = "yes"; then
8704 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8705 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8706 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 case $aros_kernel_ranlib in
8713 [\\/]* | ?:[\\/]*)
8714 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in `dirname $aros_gcc_ranlib`
8720 IFS=$as_save_IFS
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 break 2
8728 done
8729 done
8730 IFS=$as_save_IFS
8733 esac
8735 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8736 if test -n "$aros_kernel_ranlib"; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8738 $as_echo "$aros_kernel_ranlib" >&6; }
8739 else
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8746 if test "$aros_kernel_ranlib" = ""; then
8747 # Extract the first word of "ranlib", so it can be a program name with args.
8748 set dummy ranlib; ac_word=$2
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750 $as_echo_n "checking for $ac_word... " >&6; }
8751 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 case $aros_kernel_ranlib in
8755 [\\/]* | ?:[\\/]*)
8756 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760 for as_dir in $PATH
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8766 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 break 2
8770 done
8771 done
8772 IFS=$as_save_IFS
8775 esac
8777 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8778 if test -n "$aros_kernel_ranlib"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8780 $as_echo "$aros_kernel_ranlib" >&6; }
8781 else
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8789 else
8790 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8791 set dummy $aros_kernel_ranlib; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 case $aros_kernel_ranlib in
8798 [\\/]* | ?:[\\/]*)
8799 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8809 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8813 done
8814 done
8815 IFS=$as_save_IFS
8818 esac
8820 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8821 if test -n "$aros_kernel_ranlib"; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8823 $as_echo "$aros_kernel_ranlib" >&6; }
8824 else
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8832 if test "$aros_kernel_ranlib" = ""; then
8833 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8836 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8837 target_tool_prefix=${target_cpu}-elf-
8838 if test "$aros_target_cc" == ""; then
8839 aros_target_cc="${target_tool_prefix}gcc"
8841 if test "$aros_target_ld" == ""; then
8842 aros_target_ld="${target_tool_prefix}ld"
8846 if test "$aros_target_as" = ""; then
8847 if test "$cross_compiling" = "yes" ; then
8848 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8849 set dummy ${target_tool_prefix}as; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 case $aros_target_as_ln in
8856 [\\/]* | ?:[\\/]*)
8857 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8863 IFS=$as_save_IFS
8864 test -z "$as_dir" && as_dir=.
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 break 2
8871 done
8872 done
8873 IFS=$as_save_IFS
8876 esac
8878 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8879 if test -n "$aros_target_as_ln"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8881 $as_echo "$aros_target_as_ln" >&6; }
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8888 else
8889 if test "$GCC" = "yes"; then
8890 aros_gcc_as=`$CC -print-prog-name=as`
8891 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8892 set dummy `basename $aros_gcc_as`; ac_word=$2
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8894 $as_echo_n "checking for $ac_word... " >&6; }
8895 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 case $aros_target_as_ln in
8899 [\\/]* | ?:[\\/]*)
8900 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in `dirname $aros_gcc_as`
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8910 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8914 done
8915 done
8916 IFS=$as_save_IFS
8919 esac
8921 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8922 if test -n "$aros_target_as_ln"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8924 $as_echo "$aros_target_as_ln" >&6; }
8925 else
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8932 if test "$aros_target_as_ln" = ""; then
8933 # Extract the first word of "as", so it can be a program name with args.
8934 set dummy as; ac_word=$2
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936 $as_echo_n "checking for $ac_word... " >&6; }
8937 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 case $aros_target_as_ln in
8941 [\\/]* | ?:[\\/]*)
8942 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8956 done
8957 done
8958 IFS=$as_save_IFS
8961 esac
8963 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8964 if test -n "$aros_target_as_ln"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8966 $as_echo "$aros_target_as_ln" >&6; }
8967 else
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8975 else
8976 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8977 set dummy $aros_target_as; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 case $aros_target_as_ln in
8984 [\\/]* | ?:[\\/]*)
8985 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 for as_dir in $PATH
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8999 done
9000 done
9001 IFS=$as_save_IFS
9004 esac
9006 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9007 if test -n "$aros_target_as_ln"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9009 $as_echo "$aros_target_as_ln" >&6; }
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9018 if test "$aros_target_as_ln" = ""; then
9019 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9022 if test "$aros_target_ar" = ""; then
9023 if test "$cross_compiling" = "yes" ; then
9024 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9025 set dummy ${target_tool_prefix}ar; ac_word=$2
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027 $as_echo_n "checking for $ac_word... " >&6; }
9028 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 case $aros_target_ar_ln in
9032 [\\/]* | ?:[\\/]*)
9033 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9043 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9047 done
9048 done
9049 IFS=$as_save_IFS
9052 esac
9054 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9055 if test -n "$aros_target_ar_ln"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9057 $as_echo "$aros_target_ar_ln" >&6; }
9058 else
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9064 else
9065 if test "$GCC" = "yes"; then
9066 aros_gcc_ar=`$CC -print-prog-name=ar`
9067 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9068 set dummy `basename $aros_gcc_ar`; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 case $aros_target_ar_ln in
9075 [\\/]* | ?:[\\/]*)
9076 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080 for as_dir in `dirname $aros_gcc_ar`
9082 IFS=$as_save_IFS
9083 test -z "$as_dir" && as_dir=.
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9086 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 break 2
9090 done
9091 done
9092 IFS=$as_save_IFS
9095 esac
9097 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9098 if test -n "$aros_target_ar_ln"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9100 $as_echo "$aros_target_ar_ln" >&6; }
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9108 if test "$aros_target_ar_ln" = ""; then
9109 # Extract the first word of "ar", so it can be a program name with args.
9110 set dummy ar; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 case $aros_target_ar_ln in
9117 [\\/]* | ?:[\\/]*)
9118 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $PATH
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9132 done
9133 done
9134 IFS=$as_save_IFS
9137 esac
9139 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9140 if test -n "$aros_target_ar_ln"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9142 $as_echo "$aros_target_ar_ln" >&6; }
9143 else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9151 else
9152 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9153 set dummy $aros_target_ar; ac_word=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 case $aros_target_ar_ln in
9160 [\\/]* | ?:[\\/]*)
9161 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9171 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9175 done
9176 done
9177 IFS=$as_save_IFS
9180 esac
9182 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9183 if test -n "$aros_target_ar_ln"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9185 $as_echo "$aros_target_ar_ln" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9194 if test "$aros_target_ar_ln" = ""; then
9195 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9198 if test "$aros_target_nm" = ""; then
9199 if test "$cross_compiling" = "yes" ; then
9200 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9201 set dummy ${target_tool_prefix}nm; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 case $aros_target_nm_ln in
9208 [\\/]* | ?:[\\/]*)
9209 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 for as_dir in $PATH
9215 IFS=$as_save_IFS
9216 test -z "$as_dir" && as_dir=.
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9219 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9221 break 2
9223 done
9224 done
9225 IFS=$as_save_IFS
9228 esac
9230 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9231 if test -n "$aros_target_nm_ln"; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9233 $as_echo "$aros_target_nm_ln" >&6; }
9234 else
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9240 else
9241 if test "$GCC" = "yes"; then
9242 aros_gcc_nm=`$CC -print-prog-name=nm`
9243 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9244 set dummy `basename $aros_gcc_nm`; ac_word=$2
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 $as_echo_n "checking for $ac_word... " >&6; }
9247 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 case $aros_target_nm_ln in
9251 [\\/]* | ?:[\\/]*)
9252 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in `dirname $aros_gcc_nm`
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9266 done
9267 done
9268 IFS=$as_save_IFS
9271 esac
9273 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9274 if test -n "$aros_target_nm_ln"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9276 $as_echo "$aros_target_nm_ln" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9284 if test "$aros_target_nm_ln" = ""; then
9285 # Extract the first word of "nm", so it can be a program name with args.
9286 set dummy nm; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 case $aros_target_nm_ln in
9293 [\\/]* | ?:[\\/]*)
9294 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9308 done
9309 done
9310 IFS=$as_save_IFS
9313 esac
9315 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9316 if test -n "$aros_target_nm_ln"; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9318 $as_echo "$aros_target_nm_ln" >&6; }
9319 else
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9327 else
9328 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9329 set dummy $aros_target_nm; ac_word=$2
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331 $as_echo_n "checking for $ac_word... " >&6; }
9332 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 case $aros_target_nm_ln in
9336 [\\/]* | ?:[\\/]*)
9337 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9343 IFS=$as_save_IFS
9344 test -z "$as_dir" && as_dir=.
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9347 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349 break 2
9351 done
9352 done
9353 IFS=$as_save_IFS
9356 esac
9358 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9359 if test -n "$aros_target_nm_ln"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9361 $as_echo "$aros_target_nm_ln" >&6; }
9362 else
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 $as_echo "no" >&6; }
9370 if test "$aros_target_nm_ln" = ""; then
9371 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9374 if test "$aros_target_objcopy" = ""; then
9375 if test "$cross_compiling" = "yes" ; then
9376 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9377 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9379 $as_echo_n "checking for $ac_word... " >&6; }
9380 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 case $aros_target_objcopy_ln in
9384 [\\/]* | ?:[\\/]*)
9385 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9399 done
9400 done
9401 IFS=$as_save_IFS
9404 esac
9406 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9407 if test -n "$aros_target_objcopy_ln"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9409 $as_echo "$aros_target_objcopy_ln" >&6; }
9410 else
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 $as_echo "no" >&6; }
9416 else
9417 if test "$GCC" = "yes"; then
9418 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9419 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9420 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 $as_echo_n "checking for $ac_word... " >&6; }
9423 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 case $aros_target_objcopy_ln in
9427 [\\/]* | ?:[\\/]*)
9428 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in `dirname $aros_gcc_objcopy`
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9438 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9442 done
9443 done
9444 IFS=$as_save_IFS
9447 esac
9449 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9450 if test -n "$aros_target_objcopy_ln"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9452 $as_echo "$aros_target_objcopy_ln" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9460 if test "$aros_target_objcopy_ln" = ""; then
9461 # Extract the first word of "objcopy", so it can be a program name with args.
9462 set dummy objcopy; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 case $aros_target_objcopy_ln in
9469 [\\/]* | ?:[\\/]*)
9470 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 for as_dir in $PATH
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9480 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9484 done
9485 done
9486 IFS=$as_save_IFS
9489 esac
9491 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9492 if test -n "$aros_target_objcopy_ln"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9494 $as_echo "$aros_target_objcopy_ln" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9503 else
9504 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9505 set dummy $aros_target_objcopy; ac_word=$2
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507 $as_echo_n "checking for $ac_word... " >&6; }
9508 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 case $aros_target_objcopy_ln in
9512 [\\/]* | ?:[\\/]*)
9513 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9519 IFS=$as_save_IFS
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9525 break 2
9527 done
9528 done
9529 IFS=$as_save_IFS
9532 esac
9534 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9535 if test -n "$aros_target_objcopy_ln"; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9537 $as_echo "$aros_target_objcopy_ln" >&6; }
9538 else
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540 $as_echo "no" >&6; }
9546 if test "$aros_target_objcopy_ln" = ""; then
9547 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9550 if test "$aros_target_objdump" = ""; then
9551 if test "$cross_compiling" = "yes" ; then
9552 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9553 set dummy ${target_tool_prefix}objdump; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 case $aros_target_objdump_ln in
9560 [\\/]* | ?:[\\/]*)
9561 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9575 done
9576 done
9577 IFS=$as_save_IFS
9580 esac
9582 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9583 if test -n "$aros_target_objdump_ln"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9585 $as_echo "$aros_target_objdump_ln" >&6; }
9586 else
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9592 else
9593 if test "$GCC" = "yes"; then
9594 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9595 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9596 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 case $aros_target_objdump_ln in
9603 [\\/]* | ?:[\\/]*)
9604 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in `dirname $aros_gcc_objdump`
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9614 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9618 done
9619 done
9620 IFS=$as_save_IFS
9623 esac
9625 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9626 if test -n "$aros_target_objdump_ln"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9628 $as_echo "$aros_target_objdump_ln" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9636 if test "$aros_target_objdump_ln" = ""; then
9637 # Extract the first word of "objdump", so it can be a program name with args.
9638 set dummy objdump; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 case $aros_target_objdump_ln in
9645 [\\/]* | ?:[\\/]*)
9646 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9660 done
9661 done
9662 IFS=$as_save_IFS
9665 esac
9667 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9668 if test -n "$aros_target_objdump_ln"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9670 $as_echo "$aros_target_objdump_ln" >&6; }
9671 else
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9679 else
9680 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9681 set dummy $aros_target_objdump; ac_word=$2
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9683 $as_echo_n "checking for $ac_word... " >&6; }
9684 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 case $aros_target_objdump_ln in
9688 [\\/]* | ?:[\\/]*)
9689 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 for as_dir in $PATH
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9699 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 break 2
9703 done
9704 done
9705 IFS=$as_save_IFS
9708 esac
9710 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9711 if test -n "$aros_target_objdump_ln"; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9713 $as_echo "$aros_target_objdump_ln" >&6; }
9714 else
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716 $as_echo "no" >&6; }
9722 if test "$aros_target_objdump_ln" = ""; then
9723 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9726 if test "$aros_target_ranlib" = ""; then
9727 if test "$cross_compiling" = "yes" ; then
9728 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9729 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 case $aros_target_ranlib_ln in
9736 [\\/]* | ?:[\\/]*)
9737 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9751 done
9752 done
9753 IFS=$as_save_IFS
9756 esac
9758 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9759 if test -n "$aros_target_ranlib_ln"; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9761 $as_echo "$aros_target_ranlib_ln" >&6; }
9762 else
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9768 else
9769 if test "$GCC" = "yes"; then
9770 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9771 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9772 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 case $aros_target_ranlib_ln in
9779 [\\/]* | ?:[\\/]*)
9780 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in `dirname $aros_gcc_ranlib`
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9794 done
9795 done
9796 IFS=$as_save_IFS
9799 esac
9801 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9802 if test -n "$aros_target_ranlib_ln"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9804 $as_echo "$aros_target_ranlib_ln" >&6; }
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9812 if test "$aros_target_ranlib_ln" = ""; then
9813 # Extract the first word of "ranlib", so it can be a program name with args.
9814 set dummy ranlib; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 case $aros_target_ranlib_ln in
9821 [\\/]* | ?:[\\/]*)
9822 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9836 done
9837 done
9838 IFS=$as_save_IFS
9841 esac
9843 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9844 if test -n "$aros_target_ranlib_ln"; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9846 $as_echo "$aros_target_ranlib_ln" >&6; }
9847 else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9855 else
9856 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9857 set dummy $aros_target_ranlib; ac_word=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862 else
9863 case $aros_target_ranlib_ln in
9864 [\\/]* | ?:[\\/]*)
9865 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9871 IFS=$as_save_IFS
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9875 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 break 2
9879 done
9880 done
9881 IFS=$as_save_IFS
9884 esac
9886 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9887 if test -n "$aros_target_ranlib_ln"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9889 $as_echo "$aros_target_ranlib_ln" >&6; }
9890 else
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9898 if test "$aros_target_ranlib_ln" = ""; then
9899 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9902 if test "$aros_target_strip" = ""; then
9903 if test "$cross_compiling" = "yes" ; then
9904 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9905 set dummy ${target_tool_prefix}strip; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 case $aros_target_strip_ln in
9912 [\\/]* | ?:[\\/]*)
9913 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9923 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9927 done
9928 done
9929 IFS=$as_save_IFS
9932 esac
9934 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9935 if test -n "$aros_target_strip_ln"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9937 $as_echo "$aros_target_strip_ln" >&6; }
9938 else
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9944 else
9945 if test "$GCC" = "yes"; then
9946 aros_gcc_strip=`$CC -print-prog-name=strip`
9947 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9948 set dummy `basename $aros_gcc_strip`; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 case $aros_target_strip_ln in
9955 [\\/]* | ?:[\\/]*)
9956 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in `dirname $aros_gcc_strip`
9962 IFS=$as_save_IFS
9963 test -z "$as_dir" && as_dir=.
9964 for ac_exec_ext in '' $ac_executable_extensions; do
9965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9966 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 break 2
9970 done
9971 done
9972 IFS=$as_save_IFS
9975 esac
9977 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9978 if test -n "$aros_target_strip_ln"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9980 $as_echo "$aros_target_strip_ln" >&6; }
9981 else
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9988 if test "$aros_target_strip_ln" = ""; then
9989 # Extract the first word of "strip", so it can be a program name with args.
9990 set dummy strip; ac_word=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 case $aros_target_strip_ln in
9997 [\\/]* | ?:[\\/]*)
9998 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10012 done
10013 done
10014 IFS=$as_save_IFS
10017 esac
10019 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10020 if test -n "$aros_target_strip_ln"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10022 $as_echo "$aros_target_strip_ln" >&6; }
10023 else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10031 else
10032 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10033 set dummy $aros_target_strip; ac_word=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 case $aros_target_strip_ln in
10040 [\\/]* | ?:[\\/]*)
10041 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10053 break 2
10055 done
10056 done
10057 IFS=$as_save_IFS
10060 esac
10062 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10063 if test -n "$aros_target_strip_ln"; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10065 $as_echo "$aros_target_strip_ln" >&6; }
10066 else
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 $as_echo "no" >&6; }
10074 if test "$aros_target_strip_ln" = ""; then
10075 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10077 if test "$aros_target_cxx" != ""; then
10078 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10079 set dummy $aros_target_cxx; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_path_aros_target_cxx+:} false; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 case $aros_target_cxx in
10086 [\\/]* | ?:[\\/]*)
10087 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10101 done
10102 done
10103 IFS=$as_save_IFS
10106 esac
10108 aros_target_cxx=$ac_cv_path_aros_target_cxx
10109 if test -n "$aros_target_cxx"; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10111 $as_echo "$aros_target_cxx" >&6; }
10112 else
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10118 if test "$aros_target_cxx" = ""; then
10119 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10122 else
10123 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10124 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10125 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10126 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10127 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10128 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10129 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10130 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10131 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10133 if test "$target_tool_prefix" != "${target_cpu}-aros-" ; then
10135 if test "$aros_kernel_ld" = ""; then
10136 if test "$cross_compiling" = "yes" ; then
10137 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10138 set dummy ${target_tool_prefix}ld; ac_word=$2
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140 $as_echo_n "checking for $ac_word... " >&6; }
10141 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 case $aros_kernel_ld in
10145 [\\/]* | ?:[\\/]*)
10146 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150 for as_dir in $PATH
10152 IFS=$as_save_IFS
10153 test -z "$as_dir" && as_dir=.
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10156 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 break 2
10160 done
10161 done
10162 IFS=$as_save_IFS
10165 esac
10167 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10168 if test -n "$aros_kernel_ld"; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10170 $as_echo "$aros_kernel_ld" >&6; }
10171 else
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173 $as_echo "no" >&6; }
10177 else
10178 if test "$GCC" = "yes"; then
10179 aros_gcc_ld=`$CC -print-prog-name=ld`
10180 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10181 set dummy `basename $aros_gcc_ld`; ac_word=$2
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183 $as_echo_n "checking for $ac_word... " >&6; }
10184 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 case $aros_kernel_ld in
10188 [\\/]* | ?:[\\/]*)
10189 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in `dirname $aros_gcc_ld`
10195 IFS=$as_save_IFS
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10199 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 break 2
10203 done
10204 done
10205 IFS=$as_save_IFS
10208 esac
10210 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10211 if test -n "$aros_kernel_ld"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10213 $as_echo "$aros_kernel_ld" >&6; }
10214 else
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10221 if test "$aros_kernel_ld" = ""; then
10222 # Extract the first word of "ld", so it can be a program name with args.
10223 set dummy ld; ac_word=$2
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10225 $as_echo_n "checking for $ac_word... " >&6; }
10226 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10227 $as_echo_n "(cached) " >&6
10228 else
10229 case $aros_kernel_ld in
10230 [\\/]* | ?:[\\/]*)
10231 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235 for as_dir in $PATH
10237 IFS=$as_save_IFS
10238 test -z "$as_dir" && as_dir=.
10239 for ac_exec_ext in '' $ac_executable_extensions; do
10240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10241 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10243 break 2
10245 done
10246 done
10247 IFS=$as_save_IFS
10250 esac
10252 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10253 if test -n "$aros_kernel_ld"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10255 $as_echo "$aros_kernel_ld" >&6; }
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10264 else
10265 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10266 set dummy $aros_kernel_ld; ac_word=$2
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268 $as_echo_n "checking for $ac_word... " >&6; }
10269 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 case $aros_kernel_ld in
10273 [\\/]* | ?:[\\/]*)
10274 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in $PATH
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10284 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 break 2
10288 done
10289 done
10290 IFS=$as_save_IFS
10293 esac
10295 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10296 if test -n "$aros_kernel_ld"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10298 $as_echo "$aros_kernel_ld" >&6; }
10299 else
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10307 if test "$aros_kernel_ld" = ""; then
10308 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10311 if test "$aros_kernel_ar" = ""; then
10312 if test "$cross_compiling" = "yes" ; then
10313 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10314 set dummy ${target_tool_prefix}ar; ac_word=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 case $aros_kernel_ar in
10321 [\\/]* | ?:[\\/]*)
10322 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326 for as_dir in $PATH
10328 IFS=$as_save_IFS
10329 test -z "$as_dir" && as_dir=.
10330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10332 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 break 2
10336 done
10337 done
10338 IFS=$as_save_IFS
10341 esac
10343 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10344 if test -n "$aros_kernel_ar"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10346 $as_echo "$aros_kernel_ar" >&6; }
10347 else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10353 else
10354 if test "$GCC" = "yes"; then
10355 aros_gcc_ar=`$CC -print-prog-name=ar`
10356 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10357 set dummy `basename $aros_gcc_ar`; ac_word=$2
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359 $as_echo_n "checking for $ac_word... " >&6; }
10360 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10361 $as_echo_n "(cached) " >&6
10362 else
10363 case $aros_kernel_ar in
10364 [\\/]* | ?:[\\/]*)
10365 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in `dirname $aros_gcc_ar`
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10375 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10379 done
10380 done
10381 IFS=$as_save_IFS
10384 esac
10386 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10387 if test -n "$aros_kernel_ar"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10389 $as_echo "$aros_kernel_ar" >&6; }
10390 else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10397 if test "$aros_kernel_ar" = ""; then
10398 # Extract the first word of "ar", so it can be a program name with args.
10399 set dummy ar; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 case $aros_kernel_ar in
10406 [\\/]* | ?:[\\/]*)
10407 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10417 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10421 done
10422 done
10423 IFS=$as_save_IFS
10426 esac
10428 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10429 if test -n "$aros_kernel_ar"; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10431 $as_echo "$aros_kernel_ar" >&6; }
10432 else
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10440 else
10441 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10442 set dummy $aros_kernel_ar; ac_word=$2
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444 $as_echo_n "checking for $ac_word... " >&6; }
10445 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 case $aros_kernel_ar in
10449 [\\/]* | ?:[\\/]*)
10450 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454 for as_dir in $PATH
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10460 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10464 done
10465 done
10466 IFS=$as_save_IFS
10469 esac
10471 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10472 if test -n "$aros_kernel_ar"; then
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10474 $as_echo "$aros_kernel_ar" >&6; }
10475 else
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10483 if test "$aros_kernel_ar" = ""; then
10484 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10487 if test "$aros_kernel_ranlib" = ""; then
10488 if test "$cross_compiling" = "yes" ; then
10489 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10490 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 case $aros_kernel_ranlib in
10497 [\\/]* | ?:[\\/]*)
10498 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502 for as_dir in $PATH
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10508 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10512 done
10513 done
10514 IFS=$as_save_IFS
10517 esac
10519 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10520 if test -n "$aros_kernel_ranlib"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10522 $as_echo "$aros_kernel_ranlib" >&6; }
10523 else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10529 else
10530 if test "$GCC" = "yes"; then
10531 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10532 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10533 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10535 $as_echo_n "checking for $ac_word... " >&6; }
10536 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 case $aros_kernel_ranlib in
10540 [\\/]* | ?:[\\/]*)
10541 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545 for as_dir in `dirname $aros_gcc_ranlib`
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10551 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10555 done
10556 done
10557 IFS=$as_save_IFS
10560 esac
10562 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10563 if test -n "$aros_kernel_ranlib"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10565 $as_echo "$aros_kernel_ranlib" >&6; }
10566 else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10573 if test "$aros_kernel_ranlib" = ""; then
10574 # Extract the first word of "ranlib", so it can be a program name with args.
10575 set dummy ranlib; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 case $aros_kernel_ranlib in
10582 [\\/]* | ?:[\\/]*)
10583 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10593 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10597 done
10598 done
10599 IFS=$as_save_IFS
10602 esac
10604 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10605 if test -n "$aros_kernel_ranlib"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10607 $as_echo "$aros_kernel_ranlib" >&6; }
10608 else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 $as_echo "no" >&6; }
10616 else
10617 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10618 set dummy $aros_kernel_ranlib; ac_word=$2
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10620 $as_echo_n "checking for $ac_word... " >&6; }
10621 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 case $aros_kernel_ranlib in
10625 [\\/]* | ?:[\\/]*)
10626 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10640 done
10641 done
10642 IFS=$as_save_IFS
10645 esac
10647 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10648 if test -n "$aros_kernel_ranlib"; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10650 $as_echo "$aros_kernel_ranlib" >&6; }
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; }
10659 if test "$aros_kernel_ranlib" = ""; then
10660 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10662 else
10663 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10664 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10665 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10668 crosstools_target=tools-crosstools
10671 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10673 orig_target_cc=$aros_kernel_cc
10674 orig_target_ld=$aros_kernel_ld
10676 if test "$crosstools" != "yes"; then
10677 if test "$aros_target_cc" != ""; then
10678 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10679 set dummy $aros_target_cc; ac_word=$2
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681 $as_echo_n "checking for $ac_word... " >&6; }
10682 if ${ac_cv_path_aros_target_cc+:} false; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 case $aros_target_cc in
10686 [\\/]* | ?:[\\/]*)
10687 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691 for as_dir in $PATH
10693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10697 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10701 done
10702 done
10703 IFS=$as_save_IFS
10706 esac
10708 aros_target_cc=$ac_cv_path_aros_target_cc
10709 if test -n "$aros_target_cc"; then
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10711 $as_echo "$aros_target_cc" >&6; }
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; }
10718 if test "$aros_target_cc" = ""; then
10719 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10721 orig_target_cc=$aros_target_cc
10723 if test "$aros_target_ld" != ""; then
10724 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10725 set dummy $aros_target_ld; ac_word=$2
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10727 $as_echo_n "checking for $ac_word... " >&6; }
10728 if ${ac_cv_path_aros_target_ld+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 case $aros_target_ld in
10732 [\\/]* | ?:[\\/]*)
10733 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737 for as_dir in $PATH
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10743 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10747 done
10748 done
10749 IFS=$as_save_IFS
10752 esac
10754 aros_target_ld=$ac_cv_path_aros_target_ld
10755 if test -n "$aros_target_ld"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10757 $as_echo "$aros_target_ld" >&6; }
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10764 if test "$aros_target_ld" = ""; then
10765 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10767 orig_target_ld=$aros_target_ld
10769 else
10770 orig_target_cc=$aros_target_cc
10771 orig_target_ld=$aros_target_ld
10774 # Build crosstools if we have no C++ - temporary thing
10775 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10776 crosstools_cxx_target=tools-crosstools
10779 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10780 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10781 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10782 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10783 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10784 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10785 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10787 # aros_cc_pre is a variable that is added to the front of the compiler name
10788 # in the generated aros-gcc shell script. We need this to enable the cache
10789 # to work across cleaned builds. Also, support DISTCC using the correct
10790 # environment variable.
10793 if test "x${DISTCC}" != "x" ; then
10794 if test "x${CCACHE}" != "x" ; then
10795 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10796 else
10797 aros_cc_pre="${DISTCC} "
10799 else
10800 if test "x${CCACHE}" != "x" ; then
10801 aros_cc_pre="${CCACHE} "
10805 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10807 aros_target_nostdinc_cflags=-nostdinc
10809 aros_target_nostartup_ldflags=-nostartfiles
10811 aros_target_nix_ldflags=-nix
10813 aros_target_detach_ldflags=-detach
10815 aros_target_nostdlib_ldflags=-nostdlib
10818 # Target tools
10819 if test "$crosstools" != "yes"; then
10820 if test "$GCC" = "yes"; then
10821 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10823 else
10824 # We do not know which gcc version we are going to build and what we need to know
10825 # here is different for different versions so this will be set later during the
10826 # build of crosstools.
10827 aros_target_cc_path=@aros_target_cc_path@
10829 aros_target_cc="${prefix}-gcc"
10830 aros_target_as="${prefix}-as"
10831 aros_target_ld="${prefix}-ld"
10832 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10833 aros_target_objcopy=${prefix}-objcopy
10834 aros_target_objdump=${prefix}-objdump
10835 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10836 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10837 aros_target_strip=${prefix}-strip
10838 aros_plain_nm="${prefix}-nm"
10839 aros_plain_ar="${prefix}-ar"
10841 # Find the system include path. We can suggest that an alternative is
10842 # used if we don't get it correct. The default is to use /usr/include.
10843 # Which is set in the aros_target_incl_def variable.
10845 # Check whether --enable-includes was given.
10846 if test "${enable_includes+set}" = set; then :
10847 enableval=$enable_includes; aros_target_incl=$enable_includes
10848 else
10849 aros_target_incl=$aros_target_incl_def
10853 if test "$aros_kernel_includes" = ""; then
10854 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10855 # FIXME: for cross-compiling this should point to another location
10856 aros_kernel_includes="-isystem $aros_target_incl"
10860 if test "$aros_kernel_includes" != "" ; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10862 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10863 if test "$aros_kernel_cc_includes" = "" ; then
10864 # Try to guess where the directory is.
10865 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10866 if test -d $aros_kernel_cc_includes; then
10867 # Check if there is also an include-fixed directory and add it
10868 # to kernel compiler's include path as it may contain some of
10869 # the headers we need.
10870 if test -d "$aros_kernel_cc_includes"-fixed; then
10871 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10873 else
10874 # The directory doesn't exist, we need to do some more work.
10875 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10877 # These are the headers we're looking for.
10878 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10879 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10880 zutil.h"
10882 if test ! -f $aros_target_incl/stdint.h; then
10883 headers="$headers stdint.h"
10886 dirs=
10887 for h in $headers; do
10888 # Which other headers are needed by each of the above?
10889 deps=$(echo "#include <$h>" | \
10890 $aros_kernel_cc -E -M - 2>/dev/null | \
10891 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10893 # Copy all the needed headers to a directory beneath gendir.
10894 for d in $deps; do
10895 h=$(basename $d)
10896 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10897 sed -n "s,^.*/include\(/.*\),\1,p")
10898 ! test -d $dir && mkdir -p $dir
10899 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10900 done
10901 done
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10905 $as_echo "$aros_kernel_cc_includes" >&6; }
10906 # Adding -nostdinc to kernel includes as they are always used together.
10907 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10910 if test "$crosstools" != "yes"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10912 $as_echo_n "checking for the target compiler's include path... " >&6; }
10913 if test "$aros_target_cc_includes" = "" ; then
10914 #try to guess where the directory is
10915 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10916 if ! test -d $aros_target_cc_includes; then
10917 #the directory doesn't exist, we need to do some more work
10918 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10920 #these are the headers we're looking for
10921 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10922 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10923 zutil.h"
10925 dirs=
10926 for h in $headers; do
10927 #which other headers each of the above headers needs?
10928 deps=$(echo "#include <$h>" | \
10929 $orig_target_cc -E -M - 2>/dev/null | \
10930 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10932 #copy all the needed headers to a directory beneath gendir
10933 for d in $deps; do
10934 h=$(basename $d)
10935 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10936 sed -n "s,^.*/include\(/.*\),\1,p")
10937 ! test -d $dir && mkdir -p $dir
10938 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10939 done
10940 done
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10944 $as_echo "$aros_target_cc_includes" >&6; }
10945 else
10946 # We do not know which gcc version we are going to build and what we need to know
10947 # here is different for different versions so this will be set later during the
10948 # build of crosstools.
10949 aros_target_cc_includes=@aros_target_cc_includes@
10953 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10954 # On GCC >= 4.0 -iquote should be used
10957 save_cc="$CC"
10958 save_cflags="$CFLAGS"
10959 CFLAGS="-iquote."
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10961 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10962 if test "x-$crosstools" != "x-yes"; then
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10967 main ()
10971 return 0;
10973 _ACEOF
10974 if ac_fn_c_try_compile "$LINENO"; then :
10975 has_iquote="yes"
10976 else
10977 has_iquote="no"
10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980 else
10981 # we do know it is supported for the smallest version of gcc we are going to build
10982 # we assume it's also supported by later versions
10983 has_iquote=yes
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10986 $as_echo "$has_iquote" >&6; }
10987 if test "x-$has_iquote" = "x-yes" ; then
10988 host_cflags_iquote=-iquote
10989 host_cflags_iquote_end=
10990 else
10991 host_cflags_iquote=-I
10992 host_cflags_iquote_end=-I-
10994 kernel_cflags_iquote=$host_cflags_iquote
10995 kernel_cflags_iquote_end=$host_cflags_iquote_end
10996 if test "x-$cross_compiling" = "x-yes"; then
10997 CC="$aros_kernel_cc"
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
10999 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11000 if test "x-$crosstools" != "x-yes"; then
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11005 main ()
11009 return 0;
11011 _ACEOF
11012 if ac_fn_c_try_compile "$LINENO"; then :
11013 use_no_stack_protector="yes"
11014 else
11015 use_no_stack_protector="no"
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 else
11019 # we do know it is supported for the smallest version of gcc we are going to build
11020 # we assume it's also supported by later versions
11021 use_no_stack_protector=yes
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11024 $as_echo "$use_no_stack_protector" >&6; }
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11026 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11027 if test "x-$crosstools" != "x-yes"; then
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11032 main ()
11036 return 0;
11038 _ACEOF
11039 if ac_fn_c_try_compile "$LINENO"; then :
11040 has_iquote="yes"
11041 else
11042 has_iquote="no"
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 else
11046 # we do know it is supported for the smallest version of gcc we are going to build
11047 # we assume it's also supported by later versions
11048 has_iquote=yes
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11051 $as_echo "$has_iquote" >&6; }
11052 if test "x-$has_iquote" = "x-yes" ; then
11053 kernel_cflags_iquote=-iquote
11054 kernel_cflags_iquote_end=
11055 else
11056 kernel_cflags_iquote=-I
11057 kernel_cflags_iquote_end=-I-
11060 aros_cflags_iquote=$kernel_cflags_iquote
11061 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11062 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11063 CC="$orig_target_cc"
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11065 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11066 if test "x-$crosstools" != "x-yes"; then
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11071 main ()
11075 return 0;
11077 _ACEOF
11078 if ac_fn_c_try_compile "$LINENO"; then :
11079 has_iquote="yes"
11080 else
11081 has_iquote="no"
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 else
11085 # we do know it is supported for the smallest version of gcc we are going to build
11086 # we assume it's also supported by later versions
11087 has_iquote=yes
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11090 $as_echo "$has_iquote" >&6; }
11091 if test "x-$has_iquote" = "x-yes" ; then
11092 aros_cflags_iquote=-iquote
11093 aros_cflags_iquote_end=
11094 else
11095 aros_cflags_iquote=-I
11096 aros_cflags_iquote_end=-I-
11099 if test "x-$use_no_stack_protector" = "x-yes" ; then
11100 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11103 #-----------------------------------------------------------------------------
11105 # Check if we can explicitly choose older version of symbol hashing
11107 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11108 CC="$aros_kernel_cc"
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11110 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11115 main ()
11119 return 0;
11121 _ACEOF
11122 if ac_fn_c_try_link "$LINENO"; then :
11123 use_hash_style="yes"
11124 else
11125 use_hash_style="no"
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11130 $as_echo "$use_hash_style" >&6; }
11131 if test "x-$use_hash_style" = "x-yes" ; then
11132 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11134 CC="$save_cc"
11135 CFLAGS="$save_cflags"
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11146 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11148 # Check whether --with-resolution was given.
11149 if test "${with_resolution+set}" = set; then :
11150 withval=$with_resolution; resolution=$withval
11151 else
11152 resolution=none
11155 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11156 if test "$resolution" = "yes" ; then
11157 resolution="none"
11159 if test "$resolution" = "no" ; then
11160 resolution="none"
11162 if test "$resolution" != "none" ; then
11163 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11164 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11165 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11168 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11169 aros_cv_default_wbwidth=$aros_default_wbwidth
11170 aros_cv_default_wbheight=$aros_default_wbheight
11171 aros_cv_default_wbdepth=$aros_default_wbdepth
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11174 $as_echo_n "checking if serial debug is enabled... " >&6; }
11176 # Check whether --with-serial-debug was given.
11177 if test "${with_serial_debug+set}" = set; then :
11178 withval=$with_serial_debug; serial_debug=$withval
11179 else
11180 serial_debug=none
11183 if test "$aros_serial_debug" = 0 ; then
11184 serial_debug_forced=""
11185 if test "$serial_debug" = "yes" ; then
11186 serial_debug="1"
11188 if test "$serial_debug" = "no" ; then
11189 serial_debug="none"
11191 else
11192 serial_debug_forced="(forced)"
11193 serial_debug=$aros_serial_debug
11195 if test "$serial_debug" != "none" ; then
11196 aros_serial_debug=$serial_debug
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11198 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11205 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11206 # Check whether --enable-palm_debug_hack was given.
11207 if test "${enable_palm_debug_hack+set}" = set; then :
11208 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11209 else
11210 palm_debug_hack="no"
11213 if test "$palm_debug_hack" = "yes" ; then
11214 aros_palm_debug_hack="1"
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11217 $as_echo "$palm_debug_hack" >&6; }
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11220 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11221 # Check whether --enable-usb30_code was given.
11222 if test "${enable_usb30_code+set}" = set; then :
11223 enableval=$enable_usb30_code; usb30_code="yes"
11224 else
11225 usb30_code="no"
11228 if test "$usb30_code" = "yes" ; then
11229 aros_usb30_code="1"
11230 else
11231 aros_usb30_code="0"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11234 $as_echo "$usb30_code" >&6; }
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11237 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11238 # Check whether --enable-nesting_supervisor was given.
11239 if test "${enable_nesting_supervisor+set}" = set; then :
11240 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11241 else
11242 nesting_supervisor="no"
11245 if test "$nesting_supervisor" = "yes" ; then
11246 aros_nesting_supervisor="1"
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11249 $as_echo "$nesting_supervisor" >&6; }
11251 if test "$aros_enable_mmu" = "" ; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11253 $as_echo_n "checking if MMU support is enabled... " >&6; }
11254 # Check whether --enable-mmu was given.
11255 if test "${enable_mmu+set}" = set; then :
11256 enableval=$enable_mmu; aros_enable_mmu=$enableval
11257 else
11258 aros_enable_mmu="yes"
11261 if test "$aros_enable_mmu" = "" ; then
11262 aros_enable_mmu="yes"
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11265 $as_echo "$aros_enable_mmu" >&6; }
11267 if test "$aros_enable_mmu" = "no" ; then
11268 aros_enable_mmu="0"
11269 else
11270 aros_enable_mmu="1"
11274 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11276 if test "x-$need_dlopen" != "x-no" ; then
11277 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11278 if test "x$ac_cv_func_dlopen" = xyes; then :
11279 have_dl="yes"
11280 else
11281 have_dl="no"
11284 if test "x-$have_dl" = "x-no" ; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11286 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11287 if ${ac_cv_lib_dl_dlopen+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 ac_check_lib_save_LIBS=$LIBS
11291 LIBS="-ldl $LIBS"
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11295 /* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 char dlopen ();
11303 main ()
11305 return dlopen ();
11307 return 0;
11309 _ACEOF
11310 if ac_fn_c_try_link "$LINENO"; then :
11311 ac_cv_lib_dl_dlopen=yes
11312 else
11313 ac_cv_lib_dl_dlopen=no
11315 rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317 LIBS=$ac_check_lib_save_LIBS
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11320 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11321 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11322 have_dl="yes"
11323 aros_host_ldflags="$aros_host_ldflags -ldl"
11324 else
11325 have_dl="no"
11329 if test "x-$have_dl" = "x-no" ; then
11330 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11335 # Check whether --enable-x11_hidd was given.
11336 if test "${enable_x11_hidd+set}" = set; then :
11337 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11338 else
11339 x11_hidd="$need_x11"
11342 case "x-$x11_hidd" in
11343 x-yes|x-no|x-auto) ;;
11344 *) x11_hidd="$need_x11" ;;
11345 esac
11347 ENABLE_X11=0
11349 if test "x-$x11_hidd" != "x-no" ; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11352 $as_echo_n "checking for X... " >&6; }
11355 # Check whether --with-x was given.
11356 if test "${with_x+set}" = set; then :
11357 withval=$with_x;
11360 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11361 if test "x$with_x" = xno; then
11362 # The user explicitly disabled X.
11363 have_x=disabled
11364 else
11365 case $x_includes,$x_libraries in #(
11366 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11367 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 # One or both of the vars are not set, and there is no cached value.
11371 ac_x_includes=no ac_x_libraries=no
11372 rm -f -r conftest.dir
11373 if mkdir conftest.dir; then
11374 cd conftest.dir
11375 cat >Imakefile <<'_ACEOF'
11376 incroot:
11377 @echo incroot='${INCROOT}'
11378 usrlibdir:
11379 @echo usrlibdir='${USRLIBDIR}'
11380 libdir:
11381 @echo libdir='${LIBDIR}'
11382 _ACEOF
11383 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11384 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11385 for ac_var in incroot usrlibdir libdir; do
11386 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11387 done
11388 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11389 for ac_extension in a so sl dylib la dll; do
11390 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11391 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11392 ac_im_usrlibdir=$ac_im_libdir; break
11394 done
11395 # Screen out bogus values from the imake configuration. They are
11396 # bogus both because they are the default anyway, and because
11397 # using them would break gcc on systems where it needs fixed includes.
11398 case $ac_im_incroot in
11399 /usr/include) ac_x_includes= ;;
11400 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11401 esac
11402 case $ac_im_usrlibdir in
11403 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11404 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11405 esac
11407 cd ..
11408 rm -f -r conftest.dir
11411 # Standard set of common directories for X headers.
11412 # Check X11 before X11Rn because it is often a symlink to the current release.
11413 ac_x_header_dirs='
11414 /usr/X11/include
11415 /usr/X11R7/include
11416 /usr/X11R6/include
11417 /usr/X11R5/include
11418 /usr/X11R4/include
11420 /usr/include/X11
11421 /usr/include/X11R7
11422 /usr/include/X11R6
11423 /usr/include/X11R5
11424 /usr/include/X11R4
11426 /usr/local/X11/include
11427 /usr/local/X11R7/include
11428 /usr/local/X11R6/include
11429 /usr/local/X11R5/include
11430 /usr/local/X11R4/include
11432 /usr/local/include/X11
11433 /usr/local/include/X11R7
11434 /usr/local/include/X11R6
11435 /usr/local/include/X11R5
11436 /usr/local/include/X11R4
11438 /usr/X386/include
11439 /usr/x386/include
11440 /usr/XFree86/include/X11
11442 /usr/include
11443 /usr/local/include
11444 /usr/unsupported/include
11445 /usr/athena/include
11446 /usr/local/x11r5/include
11447 /usr/lpp/Xamples/include
11449 /usr/openwin/include
11450 /usr/openwin/share/include'
11452 if test "$ac_x_includes" = no; then
11453 # Guess where to find include files, by looking for Xlib.h.
11454 # First, try using that file with no special directory specified.
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11457 #include <X11/Xlib.h>
11458 _ACEOF
11459 if ac_fn_c_try_cpp "$LINENO"; then :
11460 # We can compile using X headers with no special include directory.
11461 ac_x_includes=
11462 else
11463 for ac_dir in $ac_x_header_dirs; do
11464 if test -r "$ac_dir/X11/Xlib.h"; then
11465 ac_x_includes=$ac_dir
11466 break
11468 done
11470 rm -f conftest.err conftest.i conftest.$ac_ext
11471 fi # $ac_x_includes = no
11473 if test "$ac_x_libraries" = no; then
11474 # Check for the libraries.
11475 # See if we find them without any special options.
11476 # Don't add to $LIBS permanently.
11477 ac_save_LIBS=$LIBS
11478 LIBS="-lX11 $LIBS"
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h. */
11481 #include <X11/Xlib.h>
11483 main ()
11485 XrmInitialize ()
11487 return 0;
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 LIBS=$ac_save_LIBS
11492 # We can link X programs with no special library path.
11493 ac_x_libraries=
11494 else
11495 LIBS=$ac_save_LIBS
11496 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11498 # Don't even attempt the hair of trying to link an X program!
11499 for ac_extension in a so sl dylib la dll; do
11500 if test -r "$ac_dir/libX11.$ac_extension"; then
11501 ac_x_libraries=$ac_dir
11502 break 2
11504 done
11505 done
11507 rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509 fi # $ac_x_libraries = no
11511 case $ac_x_includes,$ac_x_libraries in #(
11512 no,* | *,no | *\'*)
11513 # Didn't find X, or a directory has "'" in its name.
11514 ac_cv_have_x="have_x=no";; #(
11516 # Record where we found X for the cache.
11517 ac_cv_have_x="have_x=yes\
11518 ac_x_includes='$ac_x_includes'\
11519 ac_x_libraries='$ac_x_libraries'"
11520 esac
11522 ;; #(
11523 *) have_x=yes;;
11524 esac
11525 eval "$ac_cv_have_x"
11526 fi # $with_x != no
11528 if test "$have_x" != yes; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11530 $as_echo "$have_x" >&6; }
11531 no_x=yes
11532 else
11533 # If each of the values was on the command line, it overrides each guess.
11534 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11535 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11536 # Update the cache value to reflect the command line values.
11537 ac_cv_have_x="have_x=yes\
11538 ac_x_includes='$x_includes'\
11539 ac_x_libraries='$x_libraries'"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11541 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11545 x_cflags=
11546 for path in $x_libraries
11548 x_cflags="$x_cflags -L$path"
11549 done
11551 for path in $x_includes
11553 x_cflags="$x_cflags -I$path"
11554 done
11556 if test "x-$no_x" = "x-yes" ; then
11558 if test "x-$x11_hidd" != "x-auto" ; then
11559 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11562 else
11563 x11_hidd_target=kernel-x11gfx-kobj
11564 ENABLE_X11=1
11566 # Check whether --enable-x11_shm was given.
11567 if test "${enable_x11_shm+set}" = set; then :
11568 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11569 else
11570 x11_hidd_shm="auto"
11573 case "x-$x11_hidd_shm" in
11574 x-yes|x-no|x-auto) ;;
11575 *) x11_hidd_shm="auto" ;;
11576 esac
11578 have_xshm=no
11580 if test "x-$x11_hidd_shm" != "x-no" ; then
11582 for ac_header in sys/ipc.h
11583 do :
11584 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11585 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_SYS_IPC_H 1
11588 _ACEOF
11592 done
11594 for ac_header in sys/shm.h
11595 do :
11596 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11597 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_SYS_SHM_H 1
11600 _ACEOF
11604 done
11607 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11609 save_cflags="$CFLAGS"
11610 CFLAGS="$CFLAGS $x_cflags"
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11612 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11613 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 ac_check_lib_save_LIBS=$LIBS
11617 LIBS="-lXext $LIBS"
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 char XShmQueryExtension ();
11629 main ()
11631 return XShmQueryExtension ();
11633 return 0;
11635 _ACEOF
11636 if ac_fn_c_try_link "$LINENO"; then :
11637 ac_cv_lib_Xext_XShmQueryExtension=yes
11638 else
11639 ac_cv_lib_Xext_XShmQueryExtension=no
11641 rm -f core conftest.err conftest.$ac_objext \
11642 conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11646 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11647 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11648 have_xshm=yes
11651 CFLAGS="$save_cflags"
11655 if test "x-$have_xshm" = "x-yes" ; then
11656 DO_XSHM_SUPPORT="1"
11657 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11658 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11659 else
11660 DO_XSHM_SUPPORT="0"
11664 # Check whether --enable-x11_vidmode was given.
11665 if test "${enable_x11_vidmode+set}" = set; then :
11666 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11667 else
11668 x11_hidd_vidmode="auto"
11671 case "x-$x11_hidd_vidmode" in
11672 x-yes|x-no|x-auto) ;;
11673 *) x11_hidd_vidmode="auto" ;;
11674 esac
11676 have_vidmode=no
11678 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11680 save_cflags="$CFLAGS"
11681 CFLAGS="$CFLAGS $x_cflags"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11683 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11684 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 ac_check_lib_save_LIBS=$LIBS
11688 LIBS="-lXxf86vm $LIBS"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char XF86VidModeQueryExtension ();
11700 main ()
11702 return XF86VidModeQueryExtension ();
11704 return 0;
11706 _ACEOF
11707 if ac_fn_c_try_link "$LINENO"; then :
11708 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11709 else
11710 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11712 rm -f core conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11717 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11718 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11719 have_vidmode=yes
11722 CFLAGS="$save_cflags"
11725 if test "x-$have_vidmode" = "x-yes" ; then
11726 DO_VIDMODE_SUPPORT="1"
11727 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11728 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11729 else
11730 DO_VIDMODE_SUPPORT="0"
11734 aros_host_x11_includes=$x_includes
11735 aros_host_x11_libdirs=$x_libraries
11739 # Check whether --enable-sdl_hidd was given.
11740 if test "${enable_sdl_hidd+set}" = set; then :
11741 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11742 else
11743 sdl_hidd="auto"
11746 case "x-$sdl_hidd" in
11747 x-yes|x-no|x-auto) ;;
11748 *) sdl_hidd="auto" ;;
11749 esac
11751 if test "x-$sdl_hidd" != "x-no" ; then
11754 # Check whether --with-sdl-prefix was given.
11755 if test "${with_sdl_prefix+set}" = set; then :
11756 withval=$with_sdl_prefix; sdl_prefix="$withval"
11757 else
11758 sdl_prefix=""
11762 # Check whether --with-sdl-exec-prefix was given.
11763 if test "${with_sdl_exec_prefix+set}" = set; then :
11764 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11765 else
11766 sdl_exec_prefix=""
11769 # Check whether --enable-sdltest was given.
11770 if test "${enable_sdltest+set}" = set; then :
11771 enableval=$enable_sdltest;
11772 else
11773 enable_sdltest=yes
11777 if test x$sdl_exec_prefix != x ; then
11778 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11779 if test x${SDL_CONFIG+set} != xset ; then
11780 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11783 if test x$sdl_prefix != x ; then
11784 sdl_args="$sdl_args --prefix=$sdl_prefix"
11785 if test x${SDL_CONFIG+set} != xset ; then
11786 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11790 if test "x$prefix" != xNONE; then
11791 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11793 # Extract the first word of "sdl-config", so it can be a program name with args.
11794 set dummy sdl-config; ac_word=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 case $SDL_CONFIG in
11801 [\\/]* | ?:[\\/]*)
11802 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11816 done
11817 done
11818 IFS=$as_save_IFS
11820 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11822 esac
11824 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11825 if test -n "$SDL_CONFIG"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11827 $as_echo "$SDL_CONFIG" >&6; }
11828 else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11834 min_sdl_version=1.2.10
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11836 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11837 no_sdl=""
11838 if test "$SDL_CONFIG" = "no" ; then
11839 no_sdl=yes
11840 else
11841 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11842 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11844 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11845 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11846 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11847 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11848 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11849 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11850 if test "x$enable_sdltest" = "xyes" ; then
11851 ac_save_CFLAGS="$CFLAGS"
11852 ac_save_CXXFLAGS="$CXXFLAGS"
11853 ac_save_LIBS="$LIBS"
11854 CFLAGS="$CFLAGS $SDL_CFLAGS"
11855 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11856 LIBS="$LIBS $SDL_LIBS"
11857 rm -f conf.sdltest
11858 if test "$cross_compiling" = yes; then :
11859 echo $ac_n "cross compiling; assumed OK... $ac_c"
11860 else
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11864 #include <stdio.h>
11865 #include <stdlib.h>
11866 #include <string.h>
11867 #include "SDL.h"
11869 char*
11870 my_strdup (char *str)
11872 char *new_str;
11874 if (str)
11876 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11877 strcpy (new_str, str);
11879 else
11880 new_str = NULL;
11882 return new_str;
11885 int main (int argc, char *argv[])
11887 int major, minor, micro;
11888 char *tmp_version;
11890 /* This hangs on some systems (?)
11891 system ("touch conf.sdltest");
11893 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11895 /* HP/UX 9 (%@#!) writes to sscanf strings */
11896 tmp_version = my_strdup("$min_sdl_version");
11897 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11898 printf("%s, bad version string\n", "$min_sdl_version");
11899 exit(1);
11902 if (($sdl_major_version > major) ||
11903 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11904 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11906 return 0;
11908 else
11910 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11911 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11912 printf("*** best to upgrade to the required version.\n");
11913 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11914 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11915 printf("*** config.cache before re-running configure\n");
11916 return 1;
11921 _ACEOF
11922 if ac_fn_c_try_run "$LINENO"; then :
11924 else
11925 no_sdl=yes
11927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11928 conftest.$ac_objext conftest.beam conftest.$ac_ext
11931 CFLAGS="$ac_save_CFLAGS"
11932 CXXFLAGS="$ac_save_CXXFLAGS"
11933 LIBS="$ac_save_LIBS"
11936 if test "x$no_sdl" = x ; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938 $as_echo "yes" >&6; }
11939 have_sdl="yes"
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11943 if test "$SDL_CONFIG" = "no" ; then
11944 echo "*** The sdl-config script installed by SDL could not be found"
11945 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11946 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11947 echo "*** full path to sdl-config."
11948 else
11949 if test -f conf.sdltest ; then
11951 else
11952 echo "*** Could not run SDL test program, checking why..."
11953 CFLAGS="$CFLAGS $SDL_CFLAGS"
11954 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11955 LIBS="$LIBS $SDL_LIBS"
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11959 #include <stdio.h>
11960 #include "SDL.h"
11962 int main(int argc, char *argv[])
11963 { return 0; }
11964 #undef main
11965 #define main K_and_R_C_main
11968 main ()
11970 return 0;
11972 return 0;
11974 _ACEOF
11975 if ac_fn_c_try_link "$LINENO"; then :
11976 echo "*** The test program compiled, but did not run. This usually means"
11977 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11978 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11979 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11980 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11981 echo "*** is required on your system"
11982 echo "***"
11983 echo "*** If you have an old version installed, it is best to remove it, although"
11984 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11985 else
11986 echo "*** The test program failed to compile or link. See the file config.log for the"
11987 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11988 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11989 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11991 rm -f core conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11993 CFLAGS="$ac_save_CFLAGS"
11994 CXXFLAGS="$ac_save_CXXFLAGS"
11995 LIBS="$ac_save_LIBS"
11998 SDL_CFLAGS=""
11999 SDL_LIBS=""
12000 have_sdl="no"
12004 rm -f conf.sdltest
12007 if test "x-$have_sdl" != "x-yes" ; then
12009 if test "x-$sdl_hidd" != "x-auto" ; then
12010 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12013 else
12014 sdl_hidd_target=kernel-hidd-sdl
12015 aros_host_sdl_cflags=SDL_CFLAGS
12016 aros_host_sdl_libs=SDL_LIBS
12020 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12021 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12026 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12027 oss_library_target=workbench-libs-oss-unix
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12033 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12034 # Check whether --enable-dbus was given.
12035 if test "${enable_dbus+set}" = set; then :
12036 enableval=$enable_dbus; dbus="yes"
12037 else
12038 dbus="no"
12041 if test "$dbus" = "yes" ; then
12042 ENABLE_DBUS=1
12043 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12044 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12045 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12046 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12047 else
12048 ENABLE_DBUS=0
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12051 $as_echo "$dbus" >&6; }
12053 if test "$use_kernel_cc_wrapper" = "yes" ; then
12054 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12058 # Generic
12069 # Compatability with other Amiga-like operation systems
12072 # Host related
12097 # Target Related
12155 # Graphics Related
12172 # Native version related
12175 # Palm native version related
12178 # USB3.0 code
12181 # Unix/Hosted version related
12184 # MMU related
12187 # Apple iOS related
12192 # Android related
12196 # DBUS related
12203 #X11 related
12206 # Debug related
12212 # Collect-aros stuff: "-ius" to ignore undefined symbols
12215 # C compiler related
12218 case "$aros_flavour" in
12219 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12220 aros_flavour="emulation" ;;
12221 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12222 aros_flavour="emulation" ;;
12223 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12224 aros_flavour="standalone";;
12225 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12226 aros_flavour="standalone";;
12227 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12228 aros_flavour="native" ;;
12229 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12230 aros_flavour="native" ;;
12231 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12232 aros_flavour="linklib" ;;
12233 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12234 aros_flavour="palmnative" ;;
12235 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12236 aros_flavour="mac68knative" ;;
12237 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12238 aros_flavour="ppcnative" ;;
12239 esac
12241 if test ! -d ${aros_inc_dir} ; then
12242 ${MKDIR} ${aros_inc_dir}
12244 if test ! -d ${aros_geninc_dir} ; then
12245 ${MKDIR} ${aros_geninc_dir}
12247 if test ! -d ${aros_hostcfg_dir} ; then
12248 ${MKDIR} ${aros_hostcfg_dir}
12250 if test ! -d ${aros_targetcfg_dir} ; then
12251 ${MKDIR} ${aros_targetcfg_dir}
12253 if test ! -d ${aros_tools_dir} ; then
12254 ${MKDIR} ${aros_tools_dir}
12256 if test ! -d ${aros_scripts_dir} ; then
12257 ${MKDIR} ${aros_scripts_dir}
12260 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12263 ac_config_commands="$ac_config_commands compiler_executable"
12265 ac_config_commands="$ac_config_commands genmf_executable"
12268 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"
12271 cat >confcache <<\_ACEOF
12272 # This file is a shell script that caches the results of configure
12273 # tests run on this system so they can be shared between configure
12274 # scripts and configure runs, see configure's option --config-cache.
12275 # It is not useful on other systems. If it contains results you don't
12276 # want to keep, you may remove or edit it.
12278 # config.status only pays attention to the cache file if you give it
12279 # the --recheck option to rerun configure.
12281 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12282 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12283 # following values.
12285 _ACEOF
12287 # The following way of writing the cache mishandles newlines in values,
12288 # but we know of no workaround that is simple, portable, and efficient.
12289 # So, we kill variables containing newlines.
12290 # Ultrix sh set writes to stderr and can't be redirected directly,
12291 # and sets the high bit in the cache file unless we assign to the vars.
12293 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12294 eval ac_val=\$$ac_var
12295 case $ac_val in #(
12296 *${as_nl}*)
12297 case $ac_var in #(
12298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12299 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12300 esac
12301 case $ac_var in #(
12302 _ | IFS | as_nl) ;; #(
12303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12304 *) { eval $ac_var=; unset $ac_var;} ;;
12305 esac ;;
12306 esac
12307 done
12309 (set) 2>&1 |
12310 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12311 *${as_nl}ac_space=\ *)
12312 # `set' does not quote correctly, so add quotes: double-quote
12313 # substitution turns \\\\ into \\, and sed turns \\ into \.
12314 sed -n \
12315 "s/'/'\\\\''/g;
12316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12317 ;; #(
12319 # `set' quotes correctly as required by POSIX, so do not add quotes.
12320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12322 esac |
12323 sort
12325 sed '
12326 /^ac_cv_env_/b end
12327 t clear
12328 :clear
12329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12330 t end
12331 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12332 :end' >>confcache
12333 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12334 if test -w "$cache_file"; then
12335 if test "x$cache_file" != "x/dev/null"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12337 $as_echo "$as_me: updating cache $cache_file" >&6;}
12338 if test ! -f "$cache_file" || test -h "$cache_file"; then
12339 cat confcache >"$cache_file"
12340 else
12341 case $cache_file in #(
12342 */* | ?:*)
12343 mv -f confcache "$cache_file"$$ &&
12344 mv -f "$cache_file"$$ "$cache_file" ;; #(
12346 mv -f confcache "$cache_file" ;;
12347 esac
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12352 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12355 rm -f confcache
12357 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12358 # Let make expand exec_prefix.
12359 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12361 DEFS=-DHAVE_CONFIG_H
12363 ac_libobjs=
12364 ac_ltlibobjs=
12366 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12367 # 1. Remove the extension, and $U if already installed.
12368 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12369 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12370 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12371 # will be set to the directory where LIBOBJS objects are built.
12372 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12373 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12374 done
12375 LIBOBJS=$ac_libobjs
12377 LTLIBOBJS=$ac_ltlibobjs
12381 : "${CONFIG_STATUS=./config.status}"
12382 ac_write_fail=0
12383 ac_clean_files_save=$ac_clean_files
12384 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12386 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12387 as_write_fail=0
12388 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12389 #! $SHELL
12390 # Generated by $as_me.
12391 # Run this file to recreate the current configuration.
12392 # Compiler output produced by configure, useful for debugging
12393 # configure, is in config.log if it exists.
12395 debug=false
12396 ac_cs_recheck=false
12397 ac_cs_silent=false
12399 SHELL=\${CONFIG_SHELL-$SHELL}
12400 export SHELL
12401 _ASEOF
12402 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12403 ## -------------------- ##
12404 ## M4sh Initialization. ##
12405 ## -------------------- ##
12407 # Be more Bourne compatible
12408 DUALCASE=1; export DUALCASE # for MKS sh
12409 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12410 emulate sh
12411 NULLCMD=:
12412 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12413 # is contrary to our usage. Disable this feature.
12414 alias -g '${1+"$@"}'='"$@"'
12415 setopt NO_GLOB_SUBST
12416 else
12417 case `(set -o) 2>/dev/null` in #(
12418 *posix*) :
12419 set -o posix ;; #(
12420 *) :
12422 esac
12426 as_nl='
12428 export as_nl
12429 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12430 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12432 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12433 # Prefer a ksh shell builtin over an external printf program on Solaris,
12434 # but without wasting forks for bash or zsh.
12435 if test -z "$BASH_VERSION$ZSH_VERSION" \
12436 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12437 as_echo='print -r --'
12438 as_echo_n='print -rn --'
12439 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12440 as_echo='printf %s\n'
12441 as_echo_n='printf %s'
12442 else
12443 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12444 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12445 as_echo_n='/usr/ucb/echo -n'
12446 else
12447 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12448 as_echo_n_body='eval
12449 arg=$1;
12450 case $arg in #(
12451 *"$as_nl"*)
12452 expr "X$arg" : "X\\(.*\\)$as_nl";
12453 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12454 esac;
12455 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12457 export as_echo_n_body
12458 as_echo_n='sh -c $as_echo_n_body as_echo'
12460 export as_echo_body
12461 as_echo='sh -c $as_echo_body as_echo'
12464 # The user is always right.
12465 if test "${PATH_SEPARATOR+set}" != set; then
12466 PATH_SEPARATOR=:
12467 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12468 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12469 PATH_SEPARATOR=';'
12474 # IFS
12475 # We need space, tab and new line, in precisely that order. Quoting is
12476 # there to prevent editors from complaining about space-tab.
12477 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12478 # splitting by setting IFS to empty value.)
12479 IFS=" "" $as_nl"
12481 # Find who we are. Look in the path if we contain no directory separator.
12482 as_myself=
12483 case $0 in #((
12484 *[\\/]* ) as_myself=$0 ;;
12485 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486 for as_dir in $PATH
12488 IFS=$as_save_IFS
12489 test -z "$as_dir" && as_dir=.
12490 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12491 done
12492 IFS=$as_save_IFS
12495 esac
12496 # We did not find ourselves, most probably we were run as `sh COMMAND'
12497 # in which case we are not to be found in the path.
12498 if test "x$as_myself" = x; then
12499 as_myself=$0
12501 if test ! -f "$as_myself"; then
12502 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12503 exit 1
12506 # Unset variables that we do not need and which cause bugs (e.g. in
12507 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12508 # suppresses any "Segmentation fault" message there. '((' could
12509 # trigger a bug in pdksh 5.2.14.
12510 for as_var in BASH_ENV ENV MAIL MAILPATH
12511 do eval test x\${$as_var+set} = xset \
12512 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12513 done
12514 PS1='$ '
12515 PS2='> '
12516 PS4='+ '
12518 # NLS nuisances.
12519 LC_ALL=C
12520 export LC_ALL
12521 LANGUAGE=C
12522 export LANGUAGE
12524 # CDPATH.
12525 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12528 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12529 # ----------------------------------------
12530 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12531 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12532 # script with STATUS, using 1 if that was 0.
12533 as_fn_error ()
12535 as_status=$1; test $as_status -eq 0 && as_status=1
12536 if test "$4"; then
12537 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12538 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12540 $as_echo "$as_me: error: $2" >&2
12541 as_fn_exit $as_status
12542 } # as_fn_error
12545 # as_fn_set_status STATUS
12546 # -----------------------
12547 # Set $? to STATUS, without forking.
12548 as_fn_set_status ()
12550 return $1
12551 } # as_fn_set_status
12553 # as_fn_exit STATUS
12554 # -----------------
12555 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12556 as_fn_exit ()
12558 set +e
12559 as_fn_set_status $1
12560 exit $1
12561 } # as_fn_exit
12563 # as_fn_unset VAR
12564 # ---------------
12565 # Portably unset VAR.
12566 as_fn_unset ()
12568 { eval $1=; unset $1;}
12570 as_unset=as_fn_unset
12571 # as_fn_append VAR VALUE
12572 # ----------------------
12573 # Append the text in VALUE to the end of the definition contained in VAR. Take
12574 # advantage of any shell optimizations that allow amortized linear growth over
12575 # repeated appends, instead of the typical quadratic growth present in naive
12576 # implementations.
12577 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12578 eval 'as_fn_append ()
12580 eval $1+=\$2
12582 else
12583 as_fn_append ()
12585 eval $1=\$$1\$2
12587 fi # as_fn_append
12589 # as_fn_arith ARG...
12590 # ------------------
12591 # Perform arithmetic evaluation on the ARGs, and store the result in the
12592 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12593 # must be portable across $(()) and expr.
12594 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12595 eval 'as_fn_arith ()
12597 as_val=$(( $* ))
12599 else
12600 as_fn_arith ()
12602 as_val=`expr "$@" || test $? -eq 1`
12604 fi # as_fn_arith
12607 if expr a : '\(a\)' >/dev/null 2>&1 &&
12608 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12609 as_expr=expr
12610 else
12611 as_expr=false
12614 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12615 as_basename=basename
12616 else
12617 as_basename=false
12620 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12621 as_dirname=dirname
12622 else
12623 as_dirname=false
12626 as_me=`$as_basename -- "$0" ||
12627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12628 X"$0" : 'X\(//\)$' \| \
12629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12630 $as_echo X/"$0" |
12631 sed '/^.*\/\([^/][^/]*\)\/*$/{
12632 s//\1/
12635 /^X\/\(\/\/\)$/{
12636 s//\1/
12639 /^X\/\(\/\).*/{
12640 s//\1/
12643 s/.*/./; q'`
12645 # Avoid depending upon Character Ranges.
12646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12649 as_cr_digits='0123456789'
12650 as_cr_alnum=$as_cr_Letters$as_cr_digits
12652 ECHO_C= ECHO_N= ECHO_T=
12653 case `echo -n x` in #(((((
12654 -n*)
12655 case `echo 'xy\c'` in
12656 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12657 xy) ECHO_C='\c';;
12658 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12659 ECHO_T=' ';;
12660 esac;;
12662 ECHO_N='-n';;
12663 esac
12665 rm -f conf$$ conf$$.exe conf$$.file
12666 if test -d conf$$.dir; then
12667 rm -f conf$$.dir/conf$$.file
12668 else
12669 rm -f conf$$.dir
12670 mkdir conf$$.dir 2>/dev/null
12672 if (echo >conf$$.file) 2>/dev/null; then
12673 if ln -s conf$$.file conf$$ 2>/dev/null; then
12674 as_ln_s='ln -s'
12675 # ... but there are two gotchas:
12676 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12677 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12678 # In both cases, we have to default to `cp -p'.
12679 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12680 as_ln_s='cp -p'
12681 elif ln conf$$.file conf$$ 2>/dev/null; then
12682 as_ln_s=ln
12683 else
12684 as_ln_s='cp -p'
12686 else
12687 as_ln_s='cp -p'
12689 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12690 rmdir conf$$.dir 2>/dev/null
12693 # as_fn_mkdir_p
12694 # -------------
12695 # Create "$as_dir" as a directory, including parents if necessary.
12696 as_fn_mkdir_p ()
12699 case $as_dir in #(
12700 -*) as_dir=./$as_dir;;
12701 esac
12702 test -d "$as_dir" || eval $as_mkdir_p || {
12703 as_dirs=
12704 while :; do
12705 case $as_dir in #(
12706 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12707 *) as_qdir=$as_dir;;
12708 esac
12709 as_dirs="'$as_qdir' $as_dirs"
12710 as_dir=`$as_dirname -- "$as_dir" ||
12711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12712 X"$as_dir" : 'X\(//\)[^/]' \| \
12713 X"$as_dir" : 'X\(//\)$' \| \
12714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12715 $as_echo X"$as_dir" |
12716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12717 s//\1/
12720 /^X\(\/\/\)[^/].*/{
12721 s//\1/
12724 /^X\(\/\/\)$/{
12725 s//\1/
12728 /^X\(\/\).*/{
12729 s//\1/
12732 s/.*/./; q'`
12733 test -d "$as_dir" && break
12734 done
12735 test -z "$as_dirs" || eval "mkdir $as_dirs"
12736 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12739 } # as_fn_mkdir_p
12740 if mkdir -p . 2>/dev/null; then
12741 as_mkdir_p='mkdir -p "$as_dir"'
12742 else
12743 test -d ./-p && rmdir ./-p
12744 as_mkdir_p=false
12747 if test -x / >/dev/null 2>&1; then
12748 as_test_x='test -x'
12749 else
12750 if ls -dL / >/dev/null 2>&1; then
12751 as_ls_L_option=L
12752 else
12753 as_ls_L_option=
12755 as_test_x='
12756 eval sh -c '\''
12757 if test -d "$1"; then
12758 test -d "$1/.";
12759 else
12760 case $1 in #(
12761 -*)set "./$1";;
12762 esac;
12763 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12764 ???[sx]*):;;*)false;;esac;fi
12765 '\'' sh
12768 as_executable_p=$as_test_x
12770 # Sed expression to map a string onto a valid CPP name.
12771 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12773 # Sed expression to map a string onto a valid variable name.
12774 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12777 exec 6>&1
12778 ## ----------------------------------- ##
12779 ## Main body of $CONFIG_STATUS script. ##
12780 ## ----------------------------------- ##
12781 _ASEOF
12782 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12785 # Save the log message, to keep $0 and so on meaningful, and to
12786 # report actual input values of CONFIG_FILES etc. instead of their
12787 # values after options handling.
12788 ac_log="
12789 This file was extended by $as_me, which was
12790 generated by GNU Autoconf 2.68. Invocation command line was
12792 CONFIG_FILES = $CONFIG_FILES
12793 CONFIG_HEADERS = $CONFIG_HEADERS
12794 CONFIG_LINKS = $CONFIG_LINKS
12795 CONFIG_COMMANDS = $CONFIG_COMMANDS
12796 $ $0 $@
12798 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12801 _ACEOF
12803 case $ac_config_files in *"
12804 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12805 esac
12807 case $ac_config_headers in *"
12808 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12809 esac
12812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12813 # Files that config.status was made for.
12814 config_files="$ac_config_files"
12815 config_headers="$ac_config_headers"
12816 config_commands="$ac_config_commands"
12818 _ACEOF
12820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12821 ac_cs_usage="\
12822 \`$as_me' instantiates files and other configuration actions
12823 from templates according to the current configuration. Unless the files
12824 and actions are specified as TAGs, all are instantiated by default.
12826 Usage: $0 [OPTION]... [TAG]...
12828 -h, --help print this help, then exit
12829 -V, --version print version number and configuration settings, then exit
12830 --config print configuration, then exit
12831 -q, --quiet, --silent
12832 do not print progress messages
12833 -d, --debug don't remove temporary files
12834 --recheck update $as_me by reconfiguring in the same conditions
12835 --file=FILE[:TEMPLATE]
12836 instantiate the configuration file FILE
12837 --header=FILE[:TEMPLATE]
12838 instantiate the configuration header FILE
12840 Configuration files:
12841 $config_files
12843 Configuration headers:
12844 $config_headers
12846 Configuration commands:
12847 $config_commands
12849 Report bugs to the package provider."
12851 _ACEOF
12852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12853 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12854 ac_cs_version="\\
12855 config.status
12856 configured by $0, generated by GNU Autoconf 2.68,
12857 with options \\"\$ac_cs_config\\"
12859 Copyright (C) 2010 Free Software Foundation, Inc.
12860 This config.status script is free software; the Free Software Foundation
12861 gives unlimited permission to copy, distribute and modify it."
12863 ac_pwd='$ac_pwd'
12864 srcdir='$srcdir'
12865 test -n "\$AWK" || AWK=awk
12866 _ACEOF
12868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12869 # The default lists apply if the user does not specify any file.
12870 ac_need_defaults=:
12871 while test $# != 0
12873 case $1 in
12874 --*=?*)
12875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12877 ac_shift=:
12879 --*=)
12880 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12881 ac_optarg=
12882 ac_shift=:
12885 ac_option=$1
12886 ac_optarg=$2
12887 ac_shift=shift
12889 esac
12891 case $ac_option in
12892 # Handling of the options.
12893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12894 ac_cs_recheck=: ;;
12895 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12896 $as_echo "$ac_cs_version"; exit ;;
12897 --config | --confi | --conf | --con | --co | --c )
12898 $as_echo "$ac_cs_config"; exit ;;
12899 --debug | --debu | --deb | --de | --d | -d )
12900 debug=: ;;
12901 --file | --fil | --fi | --f )
12902 $ac_shift
12903 case $ac_optarg in
12904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12905 '') as_fn_error $? "missing file argument" ;;
12906 esac
12907 as_fn_append CONFIG_FILES " '$ac_optarg'"
12908 ac_need_defaults=false;;
12909 --header | --heade | --head | --hea )
12910 $ac_shift
12911 case $ac_optarg in
12912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12913 esac
12914 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12915 ac_need_defaults=false;;
12916 --he | --h)
12917 # Conflict between --help and --header
12918 as_fn_error $? "ambiguous option: \`$1'
12919 Try \`$0 --help' for more information.";;
12920 --help | --hel | -h )
12921 $as_echo "$ac_cs_usage"; exit ;;
12922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12924 ac_cs_silent=: ;;
12926 # This is an error.
12927 -*) as_fn_error $? "unrecognized option: \`$1'
12928 Try \`$0 --help' for more information." ;;
12930 *) as_fn_append ac_config_targets " $1"
12931 ac_need_defaults=false ;;
12933 esac
12934 shift
12935 done
12937 ac_configure_extra_args=
12939 if $ac_cs_silent; then
12940 exec 6>/dev/null
12941 ac_configure_extra_args="$ac_configure_extra_args --silent"
12944 _ACEOF
12945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12946 if \$ac_cs_recheck; then
12947 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12948 shift
12949 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12950 CONFIG_SHELL='$SHELL'
12951 export CONFIG_SHELL
12952 exec "\$@"
12955 _ACEOF
12956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12957 exec 5>>config.log
12959 echo
12960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12961 ## Running $as_me. ##
12962 _ASBOX
12963 $as_echo "$ac_log"
12964 } >&5
12966 _ACEOF
12967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12969 # INIT-COMMANDS
12972 aros_host_exe_suffix=${aros_host_exe_suffix}
12973 aros_tools_dir=${aros_tools_dir}
12974 aros_target_cpu=${aros_target_cpu}
12975 aros_target_arch=${aros_target_arch}
12976 aros_target_suffix=${aros_target_suffix}
12977 aros_target_nm_ln=${aros_target_nm_ln}
12978 aros_target_as_ln=${aros_target_as_ln}
12979 aros_target_ar_ln=${aros_target_ar_ln}
12980 aros_target_ranlib_ln=${aros_target_ranlib_ln}
12981 aros_target_objdump_ln=${aros_target_objdump_ln}
12982 aros_target_objcopy_ln=${aros_target_objcopy_ln}
12983 aros_target_strip_ln=${aros_target_strip_ln}
12984 aros_kernel_ld=${aros_kernel_ld}
12987 aros_tools_dir=${aros_tools_dir}
12990 _ACEOF
12992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12994 # Handling of arguments.
12995 for ac_config_target in $ac_config_targets
12997 case $ac_config_target in
12998 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12999 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13000 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13001 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13002 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13003 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13004 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13005 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13006 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13007 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13008 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13009 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13010 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13011 "${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" ;;
13012 "${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" ;;
13013 "${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" ;;
13014 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13015 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13016 "${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" ;;
13018 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13019 esac
13020 done
13023 # If the user did not use the arguments to specify the items to instantiate,
13024 # then the envvar interface is used. Set only those that are not.
13025 # We use the long form for the default assignment because of an extremely
13026 # bizarre bug on SunOS 4.1.3.
13027 if $ac_need_defaults; then
13028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13033 # Have a temporary directory for convenience. Make it in the build tree
13034 # simply because there is no reason against having it here, and in addition,
13035 # creating and moving files from /tmp can sometimes cause problems.
13036 # Hook for its removal unless debugging.
13037 # Note that there is a small window in which the directory will not be cleaned:
13038 # after its creation but before its name has been assigned to `$tmp'.
13039 $debug ||
13041 tmp= ac_tmp=
13042 trap 'exit_status=$?
13043 : "${ac_tmp:=$tmp}"
13044 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13046 trap 'as_fn_exit 1' 1 2 13 15
13048 # Create a (secure) tmp directory for tmp files.
13051 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13052 test -d "$tmp"
13053 } ||
13055 tmp=./conf$$-$RANDOM
13056 (umask 077 && mkdir "$tmp")
13057 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13058 ac_tmp=$tmp
13060 # Set up the scripts for CONFIG_FILES section.
13061 # No need to generate them if there are no CONFIG_FILES.
13062 # This happens for instance with `./config.status config.h'.
13063 if test -n "$CONFIG_FILES"; then
13066 ac_cr=`echo X | tr X '\015'`
13067 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13068 # But we know of no other shell where ac_cr would be empty at this
13069 # point, so we can use a bashism as a fallback.
13070 if test "x$ac_cr" = x; then
13071 eval ac_cr=\$\'\\r\'
13073 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13074 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13075 ac_cs_awk_cr='\\r'
13076 else
13077 ac_cs_awk_cr=$ac_cr
13080 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13081 _ACEOF
13085 echo "cat >conf$$subs.awk <<_ACEOF" &&
13086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13087 echo "_ACEOF"
13088 } >conf$$subs.sh ||
13089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13090 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13091 ac_delim='%!_!# '
13092 for ac_last_try in false false false false false :; do
13093 . ./conf$$subs.sh ||
13094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13096 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13097 if test $ac_delim_n = $ac_delim_num; then
13098 break
13099 elif $ac_last_try; then
13100 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13101 else
13102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13104 done
13105 rm -f conf$$subs.sh
13107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13108 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13109 _ACEOF
13110 sed -n '
13112 s/^/S["/; s/!.*/"]=/
13115 s/^[^!]*!//
13116 :repl
13117 t repl
13118 s/'"$ac_delim"'$//
13119 t delim
13122 s/\(.\{148\}\)..*/\1/
13123 t more1
13124 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13127 b repl
13128 :more1
13129 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13132 s/.\{148\}//
13133 t nl
13134 :delim
13136 s/\(.\{148\}\)..*/\1/
13137 t more2
13138 s/["\\]/\\&/g; s/^/"/; s/$/"/
13141 :more2
13142 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13145 s/.\{148\}//
13146 t delim
13147 ' <conf$$subs.awk | sed '
13148 /^[^""]/{
13150 s/\n//
13152 ' >>$CONFIG_STATUS || ac_write_fail=1
13153 rm -f conf$$subs.awk
13154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13155 _ACAWK
13156 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13157 for (key in S) S_is_set[key] = 1
13158 FS = "\a"
13162 line = $ 0
13163 nfields = split(line, field, "@")
13164 substed = 0
13165 len = length(field[1])
13166 for (i = 2; i < nfields; i++) {
13167 key = field[i]
13168 keylen = length(key)
13169 if (S_is_set[key]) {
13170 value = S[key]
13171 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13172 len += length(value) + length(field[++i])
13173 substed = 1
13174 } else
13175 len += 1 + keylen
13178 print line
13181 _ACAWK
13182 _ACEOF
13183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13184 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13185 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13186 else
13188 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13189 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13190 _ACEOF
13192 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13193 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13194 # trailing colons and then remove the whole line if VPATH becomes empty
13195 # (actually we leave an empty line to preserve line numbers).
13196 if test "x$srcdir" = x.; then
13197 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13199 s///
13200 s/^/:/
13201 s/[ ]*$/:/
13202 s/:\$(srcdir):/:/g
13203 s/:\${srcdir}:/:/g
13204 s/:@srcdir@:/:/g
13205 s/^:*//
13206 s/:*$//
13208 s/\(=[ ]*\).*/\1/
13210 s/\n//
13211 s/^[^=]*=[ ]*$//
13215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13216 fi # test -n "$CONFIG_FILES"
13218 # Set up the scripts for CONFIG_HEADERS section.
13219 # No need to generate them if there are no CONFIG_HEADERS.
13220 # This happens for instance with `./config.status Makefile'.
13221 if test -n "$CONFIG_HEADERS"; then
13222 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13223 BEGIN {
13224 _ACEOF
13226 # Transform confdefs.h into an awk script `defines.awk', embedded as
13227 # here-document in config.status, that substitutes the proper values into
13228 # config.h.in to produce config.h.
13230 # Create a delimiter string that does not exist in confdefs.h, to ease
13231 # handling of long lines.
13232 ac_delim='%!_!# '
13233 for ac_last_try in false false :; do
13234 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13235 if test -z "$ac_tt"; then
13236 break
13237 elif $ac_last_try; then
13238 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13239 else
13240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13242 done
13244 # For the awk script, D is an array of macro values keyed by name,
13245 # likewise P contains macro parameters if any. Preserve backslash
13246 # newline sequences.
13248 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13249 sed -n '
13250 s/.\{148\}/&'"$ac_delim"'/g
13251 t rset
13252 :rset
13253 s/^[ ]*#[ ]*define[ ][ ]*/ /
13254 t def
13256 :def
13257 s/\\$//
13258 t bsnl
13259 s/["\\]/\\&/g
13260 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13261 D["\1"]=" \3"/p
13262 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13264 :bsnl
13265 s/["\\]/\\&/g
13266 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13267 D["\1"]=" \3\\\\\\n"\\/p
13268 t cont
13269 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13270 t cont
13272 :cont
13274 s/.\{148\}/&'"$ac_delim"'/g
13275 t clear
13276 :clear
13277 s/\\$//
13278 t bsnlc
13279 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13281 :bsnlc
13282 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13283 b cont
13284 ' <confdefs.h | sed '
13285 s/'"$ac_delim"'/"\\\
13286 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13289 for (key in D) D_is_set[key] = 1
13290 FS = "\a"
13292 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13293 line = \$ 0
13294 split(line, arg, " ")
13295 if (arg[1] == "#") {
13296 defundef = arg[2]
13297 mac1 = arg[3]
13298 } else {
13299 defundef = substr(arg[1], 2)
13300 mac1 = arg[2]
13302 split(mac1, mac2, "(") #)
13303 macro = mac2[1]
13304 prefix = substr(line, 1, index(line, defundef) - 1)
13305 if (D_is_set[macro]) {
13306 # Preserve the white space surrounding the "#".
13307 print prefix "define", macro P[macro] D[macro]
13308 next
13309 } else {
13310 # Replace #undef with comments. This is necessary, for example,
13311 # in the case of _POSIX_SOURCE, which is predefined and required
13312 # on some systems where configure will not decide to define it.
13313 if (defundef == "undef") {
13314 print "/*", prefix defundef, macro, "*/"
13315 next
13319 { print }
13320 _ACAWK
13321 _ACEOF
13322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13323 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13324 fi # test -n "$CONFIG_HEADERS"
13327 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13328 shift
13329 for ac_tag
13331 case $ac_tag in
13332 :[FHLC]) ac_mode=$ac_tag; continue;;
13333 esac
13334 case $ac_mode$ac_tag in
13335 :[FHL]*:*);;
13336 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13337 :[FH]-) ac_tag=-:-;;
13338 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13339 esac
13340 ac_save_IFS=$IFS
13341 IFS=:
13342 set x $ac_tag
13343 IFS=$ac_save_IFS
13344 shift
13345 ac_file=$1
13346 shift
13348 case $ac_mode in
13349 :L) ac_source=$1;;
13350 :[FH])
13351 ac_file_inputs=
13352 for ac_f
13354 case $ac_f in
13355 -) ac_f="$ac_tmp/stdin";;
13356 *) # Look for the file first in the build tree, then in the source tree
13357 # (if the path is not absolute). The absolute path cannot be DOS-style,
13358 # because $ac_f cannot contain `:'.
13359 test -f "$ac_f" ||
13360 case $ac_f in
13361 [\\/$]*) false;;
13362 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13363 esac ||
13364 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13365 esac
13366 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13367 as_fn_append ac_file_inputs " '$ac_f'"
13368 done
13370 # Let's still pretend it is `configure' which instantiates (i.e., don't
13371 # use $as_me), people would be surprised to read:
13372 # /* config.h. Generated by config.status. */
13373 configure_input='Generated from '`
13374 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13375 `' by configure.'
13376 if test x"$ac_file" != x-; then
13377 configure_input="$ac_file. $configure_input"
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13379 $as_echo "$as_me: creating $ac_file" >&6;}
13381 # Neutralize special characters interpreted by sed in replacement strings.
13382 case $configure_input in #(
13383 *\&* | *\|* | *\\* )
13384 ac_sed_conf_input=`$as_echo "$configure_input" |
13385 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13386 *) ac_sed_conf_input=$configure_input;;
13387 esac
13389 case $ac_tag in
13390 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13392 esac
13394 esac
13396 ac_dir=`$as_dirname -- "$ac_file" ||
13397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13398 X"$ac_file" : 'X\(//\)[^/]' \| \
13399 X"$ac_file" : 'X\(//\)$' \| \
13400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13401 $as_echo X"$ac_file" |
13402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13403 s//\1/
13406 /^X\(\/\/\)[^/].*/{
13407 s//\1/
13410 /^X\(\/\/\)$/{
13411 s//\1/
13414 /^X\(\/\).*/{
13415 s//\1/
13418 s/.*/./; q'`
13419 as_dir="$ac_dir"; as_fn_mkdir_p
13420 ac_builddir=.
13422 case "$ac_dir" in
13423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13426 # A ".." for each directory in $ac_dir_suffix.
13427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13428 case $ac_top_builddir_sub in
13429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13431 esac ;;
13432 esac
13433 ac_abs_top_builddir=$ac_pwd
13434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13435 # for backward compatibility:
13436 ac_top_builddir=$ac_top_build_prefix
13438 case $srcdir in
13439 .) # We are building in place.
13440 ac_srcdir=.
13441 ac_top_srcdir=$ac_top_builddir_sub
13442 ac_abs_top_srcdir=$ac_pwd ;;
13443 [\\/]* | ?:[\\/]* ) # Absolute name.
13444 ac_srcdir=$srcdir$ac_dir_suffix;
13445 ac_top_srcdir=$srcdir
13446 ac_abs_top_srcdir=$srcdir ;;
13447 *) # Relative name.
13448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13449 ac_top_srcdir=$ac_top_build_prefix$srcdir
13450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13451 esac
13452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13455 case $ac_mode in
13458 # CONFIG_FILE
13461 _ACEOF
13463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13464 # If the template does not know about datarootdir, expand it.
13465 # FIXME: This hack should be removed a few years after 2.60.
13466 ac_datarootdir_hack=; ac_datarootdir_seen=
13467 ac_sed_dataroot='
13468 /datarootdir/ {
13472 /@datadir@/p
13473 /@docdir@/p
13474 /@infodir@/p
13475 /@localedir@/p
13476 /@mandir@/p'
13477 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13478 *datarootdir*) ac_datarootdir_seen=yes;;
13479 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13481 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13482 _ACEOF
13483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13484 ac_datarootdir_hack='
13485 s&@datadir@&$datadir&g
13486 s&@docdir@&$docdir&g
13487 s&@infodir@&$infodir&g
13488 s&@localedir@&$localedir&g
13489 s&@mandir@&$mandir&g
13490 s&\\\${datarootdir}&$datarootdir&g' ;;
13491 esac
13492 _ACEOF
13494 # Neutralize VPATH when `$srcdir' = `.'.
13495 # Shell code in configure.ac might set extrasub.
13496 # FIXME: do we really want to maintain this feature?
13497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13498 ac_sed_extra="$ac_vpsub
13499 $extrasub
13500 _ACEOF
13501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13503 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13504 s|@configure_input@|$ac_sed_conf_input|;t t
13505 s&@top_builddir@&$ac_top_builddir_sub&;t t
13506 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13507 s&@srcdir@&$ac_srcdir&;t t
13508 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13509 s&@top_srcdir@&$ac_top_srcdir&;t t
13510 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13511 s&@builddir@&$ac_builddir&;t t
13512 s&@abs_builddir@&$ac_abs_builddir&;t t
13513 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13514 $ac_datarootdir_hack
13516 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13517 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13519 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13520 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13521 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13522 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13524 which seems to be undefined. Please make sure it is defined" >&5
13525 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13526 which seems to be undefined. Please make sure it is defined" >&2;}
13528 rm -f "$ac_tmp/stdin"
13529 case $ac_file in
13530 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13531 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13532 esac \
13533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13537 # CONFIG_HEADER
13539 if test x"$ac_file" != x-; then
13541 $as_echo "/* $configure_input */" \
13542 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13543 } >"$ac_tmp/config.h" \
13544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13545 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13547 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13548 else
13549 rm -f "$ac_file"
13550 mv "$ac_tmp/config.h" "$ac_file" \
13551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13553 else
13554 $as_echo "/* $configure_input */" \
13555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13556 || as_fn_error $? "could not create -" "$LINENO" 5
13560 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13561 $as_echo "$as_me: executing $ac_file commands" >&6;}
13563 esac
13566 case $ac_file$ac_mode in
13567 "compiler_executable":C)
13568 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13569 mkdir -p $prefix
13570 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13571 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13573 echo ${prefix2}
13574 echo ${prefix3}
13575 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
13577 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13578 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13579 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13580 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13581 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13582 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13583 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13585 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13587 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13589 esac
13590 done # for ac_tag
13593 as_fn_exit 0
13594 _ACEOF
13595 ac_clean_files=$ac_clean_files_save
13597 test $ac_write_fail = 0 ||
13598 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13601 # configure is writing to config.log, and then calls config.status.
13602 # config.status does its own redirection, appending to config.log.
13603 # Unfortunately, on DOS this fails, as config.log is still kept open
13604 # by configure, so config.status won't be able to write to it; its
13605 # output is simply discarded. So we exec the FD to /dev/null,
13606 # effectively closing config.log, so it can be properly (re)opened and
13607 # appended to by config.status. When coming back to configure, we
13608 # need to make the FD available again.
13609 if test "$no_create" != yes; then
13610 ac_cs_success=:
13611 ac_config_status_args=
13612 test "$silent" = yes &&
13613 ac_config_status_args="$ac_config_status_args --quiet"
13614 exec 5>/dev/null
13615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13616 exec 5>>config.log
13617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13618 # would make configure fail if this is the last instruction.
13619 $ac_cs_success || as_fn_exit 1
13621 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13623 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13628 #XXX compatability...
13629 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13631 if test -n "$aros_shared_cflags" ; then
13632 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13633 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg