arch/m68k-*: clean up relocations
[AROS.git] / configure
blob074347f153f536665643ffcbbdc4745b0c0b9d5b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_usb30_code
623 aros_palm_debug_hack
624 aros_serial_debug
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_libdirs
628 aros_host_x11_includes
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 aros_default_wbdepth
632 aros_default_wbheight
633 aros_default_wbwidth
634 oss_library_target
635 pci_hidd_target
636 sdl_hidd_target
637 x11_hidd_target
638 crosstools_cxx_target
639 crosstools_target
640 aros_target_strip_flags
641 aros_target_genmap
642 aros_debug_ldflags
643 aros_debug_aflags
644 aros_debug_cflags
645 aros_target_cflags
646 aros_kernel_ldflags
647 aros_kernel_objcflags
648 aros_kernel_includes
649 aros_kernel_cflags
650 aros_shared_ldflags
651 aros_shared_aflags
652 aros_shared_cflags
653 aros_config_ldflags
654 aros_config_aflags
655 aros_config_cflags
656 aros_arch_libs
657 aros_compiler_libs
658 aros_object_format
659 aros_shared_ld
660 aros_shared_default
661 aros_target_nm
662 aros_target_strip
663 aros_target_objcopy
664 aros_target_objdump
665 aros_target_cc_path
666 aros_target_cc_includes
667 orig_target_ld
668 aros_target_as
669 aros_kernel_cc
670 orig_target_cc
671 aros_plain_ar
672 aros_plain_nm
673 aros_target_ranlib
674 aros_target_ar
675 aros_target_incl
676 aros_target_suffix
677 aros_target_variant
678 aros_target_cpu
679 aros_target_family
680 aros_target_arch
681 aros_target_bootloader
682 aros_target_iconset
683 aros_target_guitheme
684 aros_tools_dir
685 aros_host_lib_suffix
686 aros_host_exe_suffix
687 aros_host_mkargs
688 aros_host_mkdep
689 aros_host_debug
690 aros_host_ldflags
691 gnu89_inline
692 aros_host_cflags
693 aros_host_make
694 aros_host_cc
695 aros_host_cpu
696 aros_host_arch
697 aros_cc_pre
698 aros_amigaos_compliance
699 AROS_PORTSSRCDIR
700 AROS_CROSSTOOLSDIR
701 SRCDIR
702 AROS_BUILDDIR_UNIX
703 AROS_BUILDDIR
704 aros_flavour_uc
705 aros_flavour
706 aros_cpu
707 aros_arch
708 SDL_LIBS
709 SDL_CFLAGS
710 SDL_CONFIG
711 XMKMF
712 aros_cflags_iquote_end
713 aros_cflags_iquote
714 kernel_cflags_iquote_end
715 kernel_cflags_iquote
716 host_cflags_iquote_end
717 host_cflags_iquote
718 aros_target_nostdlib_ldflags
719 aros_target_detach_ldflags
720 aros_target_nix_ldflags
721 aros_target_nostartup_ldflags
722 aros_target_nostdinc_cflags
723 aros_target_ld
724 aros_target_cc
725 aros_target_cxx
726 aros_target_strip_ln
727 aros_target_ranlib_ln
728 aros_target_objdump_ln
729 aros_target_objcopy_ln
730 aros_target_nm_ln
731 aros_target_ar_ln
732 aros_target_as_ln
733 aros_kernel_ranlib
734 aros_kernel_ar
735 aros_kernel_ld
736 aros_kernel_rescomp
738 android_tool
739 CCACHE
740 DISTCC
741 LIBOBJS
742 EGREP
743 GREP
745 TEST
748 pkgpyexecdir
749 pyexecdir
750 pkgpythondir
751 pythondir
752 PYTHON_PLATFORM
753 PYTHON_EXEC_PREFIX
754 PYTHON_PREFIX
755 PYTHON_VERSION
756 PYTHON
757 PATCH
758 CHMOD
760 PPMTOILBM
761 PNGTOPNM
762 FLEX
763 BISON
766 UNIQ
767 SORT
768 TOUCH
769 MKDIR
770 ECHO
774 aros_host_strip
775 aros_host_ranlib
776 aros_host_ar
777 aros_host_automake
778 aros_host_autoheader
779 aros_host_autoconf
780 aros_host_aclocal
781 aros_host_ld
782 MMAKE
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 target_alias
801 host_alias
802 build_alias
803 LIBS
804 ECHO_T
805 ECHO_N
806 ECHO_C
807 DEFS
808 mandir
809 localedir
810 libdir
811 psdir
812 pdfdir
813 dvidir
814 htmldir
815 infodir
816 docdir
817 oldincludedir
818 includedir
819 localstatedir
820 sharedstatedir
821 sysconfdir
822 datadir
823 datarootdir
824 libexecdir
825 sbindir
826 bindir
827 program_transform_name
828 prefix
829 exec_prefix
830 PACKAGE_URL
831 PACKAGE_BUGREPORT
832 PACKAGE_STRING
833 PACKAGE_VERSION
834 PACKAGE_TARNAME
835 PACKAGE_NAME
836 PATH_SEPARATOR
837 SHELL'
838 ac_subst_files=''
839 ac_user_opts='
840 enable_option_checking
841 enable_build_type
842 enable_debug
843 enable_crosstools
844 enable_distcc
845 enable_ccache
846 with_gcc_version
847 with_optimization
848 with_paranoia
849 enable_target_variant
850 with_xcode
851 with_sdk_version
852 with_sdk
853 with_ndk
854 with_ndk_version
855 enable_amigaos_compliance
856 with_crosstools
857 with_aros_gcc
858 with_portssources
859 with_bootloader
860 with_iconset
861 with_theme
862 enable_includes
863 with_resolution
864 with_serial_debug
865 enable_palm_debug_hack
866 enable_usb30_code
867 enable_nesting_supervisor
868 enable_mmu
869 enable_x11_hidd
870 with_x
871 enable_x11_shm
872 enable_x11_vidmode
873 enable_sdl_hidd
874 with_sdl_prefix
875 with_sdl_exec_prefix
876 enable_sdltest
877 enable_dbus
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
888 CPPFLAGS
889 XMKMF'
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
940 ac_prev=
941 ac_dashdash=
942 for ac_option
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
951 case $ac_option in
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *=) ac_optarg= ;;
954 *) ac_optarg=yes ;;
955 esac
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
961 ac_dashdash=yes ;;
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
980 --config-cache | -C)
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1225 -with-* | --with-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=\$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=no ;;
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1275 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285 esac
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297 esac
1298 done
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 as_fn_error $? "missing argument to $ac_option"
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
1327 case $ac_val in
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 esac
1331 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 done
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used" >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1384 /^X\(\/\/\)$/{
1385 s//\1/
1388 /^X\(\/\).*/{
1389 s//\1/
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1397 else
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407 pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432 \`configure' configures this package to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1441 Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 [PREFIX]
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1485 _ACEOF
1487 cat <<\_ACEOF
1489 X features:
1490 --x-includes=DIR X include files are in DIR
1491 --x-libraries=DIR X library files are in DIR
1493 System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 _ACEOF
1499 if test -n "$ac_init_help"; then
1501 cat <<\_ACEOF
1503 Optional Features:
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --enable-build-type=TYPE
1508 Select the build type. Available types are:
1509 personal, nightly, snapshot, milestone, release. Do
1510 NOT use this option unless you know what you are
1511 doing! (default=personal)
1512 --enable-debug=list Enable different types of debug. Commas or
1513 whitespaces can be used to separate the items in the
1514 list. Available types of debug are: all, none,
1515 messages, stack, mungwall, modules, symbols. If no
1516 list is provided then "all" is assumed.
1517 (default=none)
1518 --enable-crosstools Build cross-compiler toolchains if necessary
1519 (default=no).
1520 --enable-distcc Use distcc as a front end to the compiler
1521 (default=no).
1522 --enable-ccache Use ccache as a front end to the compiler
1523 (default=no).
1524 --enable-target-variant=NAME
1525 Enable a specific target variant(default=none)
1526 --enable-amigaos-compliance=VERSION
1527 Enforce userspace AmigaOS compliance to a specific
1528 KickStart version (default=none).
1529 --enable-includes=dir Alternative system include directory
1530 --enable-palm-debug-hack
1531 Enable palm debug output hack in palm native
1532 (default=no)
1533 --enable-usb30-code Enable usb3.0 code (default=no)
1534 --enable-nesting-supervisor
1535 Enable nesting supervisor support in unix
1536 (default=no)
1537 --disable-mmu Disable MMU support (default=enabled)
1538 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1539 --enable-x11-shm use X11 shared memory (default=auto)
1540 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1541 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1542 --disable-sdltest Do not try to compile and run a test SDL program
1543 --enable-dbus Enable DBUS support via dbus.library (default=no)
1545 Optional Packages:
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-gcc-version=VERSION
1549 Use host gcc-VERSION for building AROS
1550 --with-optimization=FLAGS
1551 Use optimization flags FLAGS (default=-O2).
1552 --with-paranoia=FLAGS CC flags to enable paranoia
1553 --with-xcode=PATH Specify XCode path for iOS targets
1554 (default=/Developer).
1555 --with-sdk-version=VERSION
1556 Use iOS SDK version VERSION (default=4.1).
1557 --with-sdk=PATH Specify Android SDK path
1558 (default=$default_android_sdk).
1559 --with-ndk=PATH Specify Android NDK path (default=none).
1560 --with-sdk-version=LEVEL
1561 Use Android SDK for API LEVEL (default=12).
1562 --with-ndk-version=LEVEL
1563 Use Android NDK for API LEVEL (default=9).
1564 --with-crosstools=DIR Where to install or search for cross tools binaries
1565 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1566 --with-portssources=DIR Where to download sourcecode for external ports
1567 --with-bootloader=NAME Use a specific bootloader
1568 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1569 --with-theme=NAME Use a specific GUI Theme
1570 --with-resolution=XRESxYRESxDEPTH
1571 Default resolution of the initial WorkbenchScreen
1572 --with-serial-debug Enable serial debug output in native (default=no)
1573 --with-x use the X Window System
1574 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1575 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1577 Some influential environment variables:
1578 CC C compiler command
1579 CFLAGS C compiler flags
1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1581 nonstandard directory <lib dir>
1582 LIBS libraries to pass to the linker, e.g. -l<library>
1583 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1584 you have headers in a nonstandard directory <include dir>
1585 CPP C preprocessor
1586 XMKMF Path to xmkmf, Makefile generator for X Window System
1588 Use these variables to override the choices made by `configure' or to help
1589 it to find libraries and programs with nonstandard names/locations.
1591 Report bugs to the package provider.
1592 _ACEOF
1593 ac_status=$?
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 continue
1602 ac_builddir=.
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1620 case $srcdir in
1621 .) # We are building in place.
1622 ac_srcdir=.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1629 *) # Relative name.
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1644 else
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1648 done
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653 cat <<\_ACEOF
1654 configure
1655 generated by GNU Autoconf 2.68
1657 Copyright (C) 2010 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1660 _ACEOF
1661 exit
1664 ## ------------------------ ##
1665 ## Autoconf initialization. ##
1666 ## ------------------------ ##
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=1
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_compile
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_cpp ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1736 ac_retval=1
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1741 } # ac_fn_c_try_cpp
1743 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1744 # -------------------------------------------------------
1745 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1746 # the include files in INCLUDES and setting the cache variable VAR
1747 # accordingly.
1748 ac_fn_c_check_header_mongrel ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if eval \${$3+:} false; then :
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 else
1761 # Is the header compilable?
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1763 $as_echo_n "checking $2 usability... " >&6; }
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 ac_header_compiler=yes
1771 else
1772 ac_header_compiler=no
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1776 $as_echo "$ac_header_compiler" >&6; }
1778 # Is the header present?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1780 $as_echo_n "checking $2 presence... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_cpp "$LINENO"; then :
1786 ac_header_preproc=yes
1787 else
1788 ac_header_preproc=no
1790 rm -f conftest.err conftest.i conftest.$ac_ext
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1792 $as_echo "$ac_header_preproc" >&6; }
1794 # So? What about this header?
1795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1796 yes:no: )
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1798 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 no:yes:* )
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1804 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1806 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1808 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1810 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 esac
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 eval "$3=\$ac_header_compiler"
1822 eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 } # ac_fn_c_check_header_mongrel
1830 # ac_fn_c_try_run LINENO
1831 # ----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1833 # that executables *can* be run.
1834 ac_fn_c_try_run ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>&5
1845 ac_status=$?
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1848 { { case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_try") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; }; }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: program exited with status $ac_status" >&5
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=$ac_status
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_run
1872 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1873 # -------------------------------------------------------
1874 # Tests whether HEADER exists and can be compiled using the include files in
1875 # INCLUDES, setting the cache variable VAR accordingly.
1876 ac_fn_c_check_header_compile ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1883 else
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1887 #include <$2>
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 eval "$3=yes"
1891 else
1892 eval "$3=no"
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 } # ac_fn_c_check_header_compile
1903 # ac_fn_c_try_link LINENO
1904 # -----------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_c_try_link ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 rm -f conftest.$ac_objext conftest$ac_exeext
1910 if { { ac_try="$ac_link"
1911 case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>conftest.err
1918 ac_status=$?
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && {
1926 test -z "$ac_c_werror_flag" ||
1927 test ! -s conftest.err
1928 } && test -s conftest$ac_exeext && {
1929 test "$cross_compiling" = yes ||
1930 $as_test_x conftest$ac_exeext
1931 }; then :
1932 ac_retval=0
1933 else
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1937 ac_retval=1
1939 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1940 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1941 # interfere with the next link command; also delete a directory that is
1942 # left behind by Apple's compiler. We do this before executing the actions.
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1947 } # ac_fn_c_try_link
1949 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1950 # ----------------------------------------------------
1951 # Tries to find if the field MEMBER exists in type AGGR, after including
1952 # INCLUDES, setting cache variable VAR accordingly.
1953 ac_fn_c_check_member ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1957 $as_echo_n "checking for $2.$3... " >&6; }
1958 if eval \${$4+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960 else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1965 main ()
1967 static $2 ac_aggr;
1968 if (ac_aggr.$3)
1969 return 0;
1971 return 0;
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 eval "$4=yes"
1976 else
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1981 main ()
1983 static $2 ac_aggr;
1984 if (sizeof ac_aggr.$3)
1985 return 0;
1987 return 0;
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991 eval "$4=yes"
1992 else
1993 eval "$4=no"
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 eval ac_res=\$$4
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_member
2006 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2007 # ---------------------------------------------
2008 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2009 # accordingly.
2010 ac_fn_c_check_decl ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 as_decl_name=`echo $2|sed 's/ *(.*//'`
2014 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2016 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2024 main ()
2026 #ifndef $as_decl_name
2027 #ifdef __cplusplus
2028 (void) $as_decl_use;
2029 #else
2030 (void) $as_decl_name;
2031 #endif
2032 #endif
2035 return 0;
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 eval "$3=yes"
2040 else
2041 eval "$3=no"
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 eval ac_res=\$$3
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 } # ac_fn_c_check_decl
2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053 # -------------------------------------------
2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
2055 # variable VAR accordingly.
2056 ac_fn_c_check_type ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 if (sizeof ($2))
2072 return 0;
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 if (sizeof (($2)))
2085 return 0;
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2092 else
2093 eval "$3=yes"
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_type
2106 # ac_fn_c_check_func LINENO FUNC VAR
2107 # ----------------------------------
2108 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2109 ac_fn_c_check_func ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2119 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2121 #define $2 innocuous_$2
2123 /* System header to define __stub macros and hopefully few prototypes,
2124 which can conflict with char $2 (); below.
2125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2126 <limits.h> exists even on freestanding compilers. */
2128 #ifdef __STDC__
2129 # include <limits.h>
2130 #else
2131 # include <assert.h>
2132 #endif
2134 #undef $2
2136 /* Override any GCC internal prototype to avoid an error.
2137 Use char because int might match the return type of a GCC
2138 builtin and then its argument prototype would still apply. */
2139 #ifdef __cplusplus
2140 extern "C"
2141 #endif
2142 char $2 ();
2143 /* The GNU C library defines this for functions which it implements
2144 to always fail with ENOSYS. Some functions are actually named
2145 something starting with __ and the normal name is an alias. */
2146 #if defined __stub_$2 || defined __stub___$2
2147 choke me
2148 #endif
2151 main ()
2153 return $2 ();
2155 return 0;
2157 _ACEOF
2158 if ac_fn_c_try_link "$LINENO"; then :
2159 eval "$3=yes"
2160 else
2161 eval "$3=no"
2163 rm -f core conftest.err conftest.$ac_objext \
2164 conftest$ac_exeext conftest.$ac_ext
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 } # ac_fn_c_check_func
2172 cat >config.log <<_ACEOF
2173 This file contains any messages produced by compilers while
2174 running configure, to aid debugging if configure makes a mistake.
2176 It was created by $as_me, which was
2177 generated by GNU Autoconf 2.68. Invocation command line was
2179 $ $0 $@
2181 _ACEOF
2182 exec 5>>config.log
2184 cat <<_ASUNAME
2185 ## --------- ##
2186 ## Platform. ##
2187 ## --------- ##
2189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2196 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2198 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2199 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2201 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2202 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2203 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2204 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2206 _ASUNAME
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 $as_echo "PATH: $as_dir"
2214 done
2215 IFS=$as_save_IFS
2217 } >&5
2219 cat >&5 <<_ACEOF
2222 ## ----------- ##
2223 ## Core tests. ##
2224 ## ----------- ##
2226 _ACEOF
2229 # Keep a trace of the command line.
2230 # Strip out --no-create and --no-recursion so they do not pile up.
2231 # Strip out --silent because we don't want to record it for future runs.
2232 # Also quote any args containing shell meta-characters.
2233 # Make two passes to allow for proper duplicate-argument suppression.
2234 ac_configure_args=
2235 ac_configure_args0=
2236 ac_configure_args1=
2237 ac_must_keep_next=false
2238 for ac_pass in 1 2
2240 for ac_arg
2242 case $ac_arg in
2243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2245 | -silent | --silent | --silen | --sile | --sil)
2246 continue ;;
2247 *\'*)
2248 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2249 esac
2250 case $ac_pass in
2251 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2253 as_fn_append ac_configure_args1 " '$ac_arg'"
2254 if test $ac_must_keep_next = true; then
2255 ac_must_keep_next=false # Got value, back to normal.
2256 else
2257 case $ac_arg in
2258 *=* | --config-cache | -C | -disable-* | --disable-* \
2259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2261 | -with-* | --with-* | -without-* | --without-* | --x)
2262 case "$ac_configure_args0 " in
2263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2264 esac
2266 -* ) ac_must_keep_next=true ;;
2267 esac
2269 as_fn_append ac_configure_args " '$ac_arg'"
2271 esac
2272 done
2273 done
2274 { ac_configure_args0=; unset ac_configure_args0;}
2275 { ac_configure_args1=; unset ac_configure_args1;}
2277 # When interrupted or exit'd, cleanup temporary files, and complete
2278 # config.log. We remove comments because anyway the quotes in there
2279 # would cause problems or look ugly.
2280 # WARNING: Use '\'' to represent an apostrophe within the trap.
2281 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2282 trap 'exit_status=$?
2283 # Save into config.log some information that might help in debugging.
2285 echo
2287 $as_echo "## ---------------- ##
2288 ## Cache variables. ##
2289 ## ---------------- ##"
2290 echo
2291 # The following way of writing the cache mishandles newlines in values,
2293 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2294 eval ac_val=\$$ac_var
2295 case $ac_val in #(
2296 *${as_nl}*)
2297 case $ac_var in #(
2298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2299 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2300 esac
2301 case $ac_var in #(
2302 _ | IFS | as_nl) ;; #(
2303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2304 *) { eval $ac_var=; unset $ac_var;} ;;
2305 esac ;;
2306 esac
2307 done
2308 (set) 2>&1 |
2309 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2310 *${as_nl}ac_space=\ *)
2311 sed -n \
2312 "s/'\''/'\''\\\\'\'''\''/g;
2313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2314 ;; #(
2316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2318 esac |
2319 sort
2321 echo
2323 $as_echo "## ----------------- ##
2324 ## Output variables. ##
2325 ## ----------------- ##"
2326 echo
2327 for ac_var in $ac_subst_vars
2329 eval ac_val=\$$ac_var
2330 case $ac_val in
2331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 esac
2333 $as_echo "$ac_var='\''$ac_val'\''"
2334 done | sort
2335 echo
2337 if test -n "$ac_subst_files"; then
2338 $as_echo "## ------------------- ##
2339 ## File substitutions. ##
2340 ## ------------------- ##"
2341 echo
2342 for ac_var in $ac_subst_files
2344 eval ac_val=\$$ac_var
2345 case $ac_val in
2346 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2347 esac
2348 $as_echo "$ac_var='\''$ac_val'\''"
2349 done | sort
2350 echo
2353 if test -s confdefs.h; then
2354 $as_echo "## ----------- ##
2355 ## confdefs.h. ##
2356 ## ----------- ##"
2357 echo
2358 cat confdefs.h
2359 echo
2361 test "$ac_signal" != 0 &&
2362 $as_echo "$as_me: caught signal $ac_signal"
2363 $as_echo "$as_me: exit $exit_status"
2364 } >&5
2365 rm -f core *.core core.conftest.* &&
2366 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2367 exit $exit_status
2369 for ac_signal in 1 2 13 15; do
2370 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2371 done
2372 ac_signal=0
2374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2375 rm -f -r conftest* confdefs.h
2377 $as_echo "/* confdefs.h */" > confdefs.h
2379 # Predefined preprocessor variables.
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_NAME "$PACKAGE_NAME"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2391 _ACEOF
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_STRING "$PACKAGE_STRING"
2395 _ACEOF
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2399 _ACEOF
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_URL "$PACKAGE_URL"
2403 _ACEOF
2406 # Let the site file select an alternate cache file if it wants to.
2407 # Prefer an explicitly selected file to automatically selected ones.
2408 ac_site_file1=NONE
2409 ac_site_file2=NONE
2410 if test -n "$CONFIG_SITE"; then
2411 # We do not want a PATH search for config.site.
2412 case $CONFIG_SITE in #((
2413 -*) ac_site_file1=./$CONFIG_SITE;;
2414 */*) ac_site_file1=$CONFIG_SITE;;
2415 *) ac_site_file1=./$CONFIG_SITE;;
2416 esac
2417 elif test "x$prefix" != xNONE; then
2418 ac_site_file1=$prefix/share/config.site
2419 ac_site_file2=$prefix/etc/config.site
2420 else
2421 ac_site_file1=$ac_default_prefix/share/config.site
2422 ac_site_file2=$ac_default_prefix/etc/config.site
2424 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426 test "x$ac_site_file" = xNONE && continue
2427 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2429 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2430 sed 's/^/| /' "$ac_site_file" >&5
2431 . "$ac_site_file" \
2432 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 as_fn_error $? "failed to load site script $ac_site_file
2435 See \`config.log' for more details" "$LINENO" 5; }
2437 done
2439 if test -r "$cache_file"; then
2440 # Some versions of bash will fail to source /dev/null (special files
2441 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2442 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2444 $as_echo "$as_me: loading cache $cache_file" >&6;}
2445 case $cache_file in
2446 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2447 *) . "./$cache_file";;
2448 esac
2450 else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2452 $as_echo "$as_me: creating cache $cache_file" >&6;}
2453 >$cache_file
2456 as_fn_append ac_header_list " stdlib.h"
2457 as_fn_append ac_header_list " unistd.h"
2458 as_fn_append ac_header_list " sys/param.h"
2459 # Check that the precious variables saved in the cache have kept the same
2460 # value.
2461 ac_cache_corrupted=false
2462 for ac_var in $ac_precious_vars; do
2463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2464 eval ac_new_set=\$ac_env_${ac_var}_set
2465 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2466 eval ac_new_val=\$ac_env_${ac_var}_value
2467 case $ac_old_set,$ac_new_set in
2468 set,)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,set)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,);;
2478 if test "x$ac_old_val" != "x$ac_new_val"; then
2479 # differences in whitespace do not lead to failure.
2480 ac_old_val_w=`echo x $ac_old_val`
2481 ac_new_val_w=`echo x $ac_new_val`
2482 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2484 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2485 ac_cache_corrupted=:
2486 else
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2488 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2489 eval $ac_var=\$ac_old_val
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2492 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2494 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2495 fi;;
2496 esac
2497 # Pass precious variables to config.status.
2498 if test "$ac_new_set" = set; then
2499 case $ac_new_val in
2500 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 *) ac_arg=$ac_var=$ac_new_val ;;
2502 esac
2503 case " $ac_configure_args " in
2504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2505 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2506 esac
2508 done
2509 if $ac_cache_corrupted; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2513 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2514 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2516 ## -------------------- ##
2517 ## Main body of script. ##
2518 ## -------------------- ##
2520 ac_ext=c
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 ac_aux_dir=
2529 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2530 if test -f "$ac_dir/install-sh"; then
2531 ac_aux_dir=$ac_dir
2532 ac_install_sh="$ac_aux_dir/install-sh -c"
2533 break
2534 elif test -f "$ac_dir/install.sh"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/install.sh -c"
2537 break
2538 elif test -f "$ac_dir/shtool"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/shtool install -c"
2541 break
2543 done
2544 if test -z "$ac_aux_dir"; then
2545 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2548 # These three variables are undocumented and unsupported,
2549 # and are intended to be withdrawn in a future Autoconf release.
2550 # They can cause serious problems if a builder's source tree is in a directory
2551 # whose full name contains unusual characters.
2552 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2553 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2554 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2558 # Check what host we are running on.
2559 # If a target is not suggested, we use this one.
2560 # Note that what we call a target, Autoconf calls a host.
2561 # Make sure we can run config.sub.
2562 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2563 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2566 $as_echo_n "checking build system type... " >&6; }
2567 if ${ac_cv_build+:} false; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 ac_build_alias=$build_alias
2571 test "x$ac_build_alias" = x &&
2572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2573 test "x$ac_build_alias" = x &&
2574 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2575 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2580 $as_echo "$ac_cv_build" >&6; }
2581 case $ac_cv_build in
2582 *-*-*) ;;
2583 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2584 esac
2585 build=$ac_cv_build
2586 ac_save_IFS=$IFS; IFS='-'
2587 set x $ac_cv_build
2588 shift
2589 build_cpu=$1
2590 build_vendor=$2
2591 shift; shift
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2594 build_os=$*
2595 IFS=$ac_save_IFS
2596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2600 $as_echo_n "checking host system type... " >&6; }
2601 if ${ac_cv_host+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test "x$host_alias" = x; then
2605 ac_cv_host=$ac_cv_build
2606 else
2607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2608 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2613 $as_echo "$ac_cv_host" >&6; }
2614 case $ac_cv_host in
2615 *-*-*) ;;
2616 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2617 esac
2618 host=$ac_cv_host
2619 ac_save_IFS=$IFS; IFS='-'
2620 set x $ac_cv_host
2621 shift
2622 host_cpu=$1
2623 host_vendor=$2
2624 shift; shift
2625 # Remember, the first character of IFS is used to create $*,
2626 # except with old shells:
2627 host_os=$*
2628 IFS=$ac_save_IFS
2629 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2633 # The AROS target is slightly different to the normal GNU style
2634 # format. We don't have the middle part, and we reverse the order
2635 # of the $(CPU) and $(OS) bits.
2637 # Don't strip the version of the target yet, it might be
2638 # useful on some systems.
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2641 $as_echo_n "checking for AROS style target... " >&6; }
2643 if test "$target" = "NONE" ; then
2644 target=$host_os-$host_cpu
2645 else
2646 if test "$target" = "" ; then
2647 target=$host_os-$host_cpu
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2651 $as_echo "$target" >&6; }
2653 if test "$host_os" = "mingw32" ; then
2654 PWDCMD="pwd -W"
2657 #don't know where else to put this...
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2659 $as_echo_n "checking building AROS in... " >&6; }
2660 AROS_BUILDDIR=`${PWDCMD-pwd}`
2661 AROS_BUILDDIR_UNIX=${PWD}
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2663 $as_echo "$AROS_BUILDDIR" >&6; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2666 $as_echo_n "checking AROS source in... " >&6; }
2667 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2668 SRCDIR=${srcpwd}
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2670 $as_echo "$SRCDIR" >&6; }
2672 # Parse the target field into something useful.
2674 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2675 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2678 aros_default_wbwidth=800
2679 aros_default_wbheight=600
2680 aros_default_wbdepth=4
2683 # The first step is to find the host binaries.
2684 # Check for a compiler.
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_CC+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2714 IFS=$as_save_IFS
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721 $as_echo "$CC" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2729 if test -z "$ac_cv_prog_CC"; then
2730 ac_ct_CC=$CC
2731 # Extract the first word of "gcc", so it can be a program name with args.
2732 set dummy gcc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_ac_ct_CC="gcc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2754 IFS=$as_save_IFS
2758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2761 $as_echo "$ac_ct_CC" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2767 if test "x$ac_ct_CC" = x; then
2768 CC=""
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771 yes:)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774 ac_tool_warned=yes ;;
2775 esac
2776 CC=$ac_ct_CC
2778 else
2779 CC="$ac_cv_prog_CC"
2782 if test -z "$CC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}cc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="${ac_tool_prefix}cc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2805 done
2806 done
2807 IFS=$as_save_IFS
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2823 if test -z "$CC"; then
2824 # Extract the first word of "cc", so it can be a program name with args.
2825 set dummy cc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 ac_prog_rejected=no
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2843 ac_prog_rejected=yes
2844 continue
2846 ac_cv_prog_CC="cc"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2850 done
2851 done
2852 IFS=$as_save_IFS
2854 if test $ac_prog_rejected = yes; then
2855 # We found a bogon in the path, so make sure we never use it.
2856 set dummy $ac_cv_prog_CC
2857 shift
2858 if test $# != 0; then
2859 # We chose a different compiler from the bogus one.
2860 # However, it has the same basename, so the bogon will be chosen
2861 # first if we set CC to just the basename; use the full file name.
2862 shift
2863 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2868 CC=$ac_cv_prog_CC
2869 if test -n "$CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2879 if test -z "$CC"; then
2880 if test -n "$ac_tool_prefix"; then
2881 for ac_prog in cl.exe
2883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2904 done
2905 done
2906 IFS=$as_save_IFS
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2914 else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2920 test -n "$CC" && break
2921 done
2923 if test -z "$CC"; then
2924 ac_ct_CC=$CC
2925 for ac_prog in cl.exe
2927 # Extract the first word of "$ac_prog", so it can be a program name with args.
2928 set dummy $ac_prog; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$ac_ct_CC"; then
2935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_ac_ct_CC="$ac_prog"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2948 done
2949 done
2950 IFS=$as_save_IFS
2954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2955 if test -n "$ac_ct_CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2957 $as_echo "$ac_ct_CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2964 test -n "$ac_ct_CC" && break
2965 done
2967 if test "x$ac_ct_CC" = x; then
2968 CC=""
2969 else
2970 case $cross_compiling:$ac_tool_warned in
2971 yes:)
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974 ac_tool_warned=yes ;;
2975 esac
2976 CC=$ac_ct_CC
2983 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 as_fn_error $? "no acceptable C compiler found in \$PATH
2986 See \`config.log' for more details" "$LINENO" 5; }
2988 # Provide some information about the compiler.
2989 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2990 set X $ac_compile
2991 ac_compiler=$2
2992 for ac_option in --version -v -V -qversion; do
2993 { { ac_try="$ac_compiler $ac_option >&5"
2994 case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999 $as_echo "$ac_try_echo"; } >&5
3000 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3001 ac_status=$?
3002 if test -s conftest.err; then
3003 sed '10a\
3004 ... rest of stderr output deleted ...
3005 10q' conftest.err >conftest.er1
3006 cat conftest.er1 >&5
3008 rm -f conftest.er1 conftest.err
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }
3011 done
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014 /* end confdefs.h. */
3017 main ()
3021 return 0;
3023 _ACEOF
3024 ac_clean_files_save=$ac_clean_files
3025 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3026 # Try to create an executable without -o first, disregard a.out.
3027 # It will help us diagnose broken compilers, and finding out an intuition
3028 # of exeext.
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3030 $as_echo_n "checking whether the C compiler works... " >&6; }
3031 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3033 # The possible output files:
3034 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3036 ac_rmfiles=
3037 for ac_file in $ac_files
3039 case $ac_file in
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3041 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3042 esac
3043 done
3044 rm -f $ac_rmfiles
3046 if { { ac_try="$ac_link_default"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052 $as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_link_default") 2>&5
3054 ac_status=$?
3055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056 test $ac_status = 0; }; then :
3057 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3058 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3059 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3060 # so that the user can short-circuit this test for compilers unknown to
3061 # Autoconf.
3062 for ac_file in $ac_files ''
3064 test -f "$ac_file" || continue
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3068 [ab].out )
3069 # We found the default executable, but exeext='' is most
3070 # certainly right.
3071 break;;
3072 *.* )
3073 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3074 then :; else
3075 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077 # We set ac_cv_exeext here because the later test for it is not
3078 # safe: cross compilers may not add the suffix if given an `-o'
3079 # argument, so we may need to know it at that point already.
3080 # Even if this section looks crufty: it has the advantage of
3081 # actually working.
3082 break;;
3084 break;;
3085 esac
3086 done
3087 test "$ac_cv_exeext" = no && ac_cv_exeext=
3089 else
3090 ac_file=''
3092 if test -z "$ac_file"; then :
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 $as_echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 as_fn_error 77 "C compiler cannot create executables
3101 See \`config.log' for more details" "$LINENO" 5; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3104 $as_echo "yes" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3107 $as_echo_n "checking for C compiler default output file name... " >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3109 $as_echo "$ac_file" >&6; }
3110 ac_exeext=$ac_cv_exeext
3112 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3113 ac_clean_files=$ac_clean_files_save
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3115 $as_echo_n "checking for suffix of executables... " >&6; }
3116 if { { ac_try="$ac_link"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_link") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; then :
3127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3129 # work properly (i.e., refer to `conftest.exe'), while it won't with
3130 # `rm'.
3131 for ac_file in conftest.exe conftest conftest.*; do
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 break;;
3137 * ) break;;
3138 esac
3139 done
3140 else
3141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3144 See \`config.log' for more details" "$LINENO" 5; }
3146 rm -f conftest conftest$ac_cv_exeext
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3148 $as_echo "$ac_cv_exeext" >&6; }
3150 rm -f conftest.$ac_ext
3151 EXEEXT=$ac_cv_exeext
3152 ac_exeext=$EXEEXT
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3155 #include <stdio.h>
3157 main ()
3159 FILE *f = fopen ("conftest.out", "w");
3160 return ferror (f) || fclose (f) != 0;
3163 return 0;
3165 _ACEOF
3166 ac_clean_files="$ac_clean_files conftest.out"
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3170 $as_echo_n "checking whether we are cross compiling... " >&6; }
3171 if test "$cross_compiling" != yes; then
3172 { { ac_try="$ac_link"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_link") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3183 if { ac_try='./conftest$ac_cv_exeext'
3184 { { case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_try") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; }; then
3194 cross_compiling=no
3195 else
3196 if test "$cross_compiling" = maybe; then
3197 cross_compiling=yes
3198 else
3199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error $? "cannot run C compiled programs.
3202 If you meant to cross compile, use \`--host'.
3203 See \`config.log' for more details" "$LINENO" 5; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3208 $as_echo "$cross_compiling" >&6; }
3210 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3211 ac_clean_files=$ac_clean_files_save
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3213 $as_echo_n "checking for suffix of object files... " >&6; }
3214 if ${ac_cv_objext+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.o conftest.obj
3229 if { { ac_try="$ac_compile"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_compile") 2>&5
3237 ac_status=$?
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; then :
3240 for ac_file in conftest.o conftest.obj conftest.*; do
3241 test -f "$ac_file" || continue;
3242 case $ac_file in
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3244 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3245 break;;
3246 esac
3247 done
3248 else
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "cannot compute suffix of object files: cannot compile
3255 See \`config.log' for more details" "$LINENO" 5; }
3257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3260 $as_echo "$ac_cv_objext" >&6; }
3261 OBJEXT=$ac_cv_objext
3262 ac_objext=$OBJEXT
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3264 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3265 if ${ac_cv_c_compiler_gnu+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3272 main ()
3274 #ifndef __GNUC__
3275 choke me
3276 #endif
3279 return 0;
3281 _ACEOF
3282 if ac_fn_c_try_compile "$LINENO"; then :
3283 ac_compiler_gnu=yes
3284 else
3285 ac_compiler_gnu=no
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3292 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3293 if test $ac_compiler_gnu = yes; then
3294 GCC=yes
3295 else
3296 GCC=
3298 ac_test_CFLAGS=${CFLAGS+set}
3299 ac_save_CFLAGS=$CFLAGS
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3301 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3302 if ${ac_cv_prog_cc_g+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 ac_save_c_werror_flag=$ac_c_werror_flag
3306 ac_c_werror_flag=yes
3307 ac_cv_prog_cc_g=no
3308 CFLAGS="-g"
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3313 main ()
3317 return 0;
3319 _ACEOF
3320 if ac_fn_c_try_compile "$LINENO"; then :
3321 ac_cv_prog_cc_g=yes
3322 else
3323 CFLAGS=""
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3328 main ()
3332 return 0;
3334 _ACEOF
3335 if ac_fn_c_try_compile "$LINENO"; then :
3337 else
3338 ac_c_werror_flag=$ac_save_c_werror_flag
3339 CFLAGS="-g"
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3344 main ()
3348 return 0;
3350 _ACEOF
3351 if ac_fn_c_try_compile "$LINENO"; then :
3352 ac_cv_prog_cc_g=yes
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 ac_c_werror_flag=$ac_save_c_werror_flag
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3362 $as_echo "$ac_cv_prog_cc_g" >&6; }
3363 if test "$ac_test_CFLAGS" = set; then
3364 CFLAGS=$ac_save_CFLAGS
3365 elif test $ac_cv_prog_cc_g = yes; then
3366 if test "$GCC" = yes; then
3367 CFLAGS="-g -O2"
3368 else
3369 CFLAGS="-g"
3371 else
3372 if test "$GCC" = yes; then
3373 CFLAGS="-O2"
3374 else
3375 CFLAGS=
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3379 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3380 if ${ac_cv_prog_cc_c89+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 ac_cv_prog_cc_c89=no
3384 ac_save_CC=$CC
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3387 #include <stdarg.h>
3388 #include <stdio.h>
3389 #include <sys/types.h>
3390 #include <sys/stat.h>
3391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3392 struct buf { int x; };
3393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3394 static char *e (p, i)
3395 char **p;
3396 int i;
3398 return p[i];
3400 static char *f (char * (*g) (char **, int), char **p, ...)
3402 char *s;
3403 va_list v;
3404 va_start (v,p);
3405 s = g (p, va_arg (v,int));
3406 va_end (v);
3407 return s;
3410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3411 function prototypes and stuff, but not '\xHH' hex character constants.
3412 These don't provoke an error unfortunately, instead are silently treated
3413 as 'x'. The following induces an error, until -std is added to get
3414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3415 array size at least. It's necessary to write '\x00'==0 to get something
3416 that's true only with -std. */
3417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3420 inside strings and character constants. */
3421 #define FOO(x) 'x'
3422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424 int test (int i, double x);
3425 struct s1 {int (*f) (int a);};
3426 struct s2 {int (*f) (double a);};
3427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3428 int argc;
3429 char **argv;
3431 main ()
3433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3435 return 0;
3437 _ACEOF
3438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 CC="$ac_save_CC $ac_arg"
3442 if ac_fn_c_try_compile "$LINENO"; then :
3443 ac_cv_prog_cc_c89=$ac_arg
3445 rm -f core conftest.err conftest.$ac_objext
3446 test "x$ac_cv_prog_cc_c89" != "xno" && break
3447 done
3448 rm -f conftest.$ac_ext
3449 CC=$ac_save_CC
3452 # AC_CACHE_VAL
3453 case "x$ac_cv_prog_cc_c89" in
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3456 $as_echo "none needed" >&6; } ;;
3457 xno)
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3459 $as_echo "unsupported" >&6; } ;;
3461 CC="$CC $ac_cv_prog_cc_c89"
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3463 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3464 esac
3465 if test "x$ac_cv_prog_cc_c89" != xno; then :
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475 case $ac_cv_prog_cc_stdc in #(
3476 no) :
3477 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3478 *) :
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3480 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3481 if ${ac_cv_prog_cc_c99+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 ac_cv_prog_cc_c99=no
3485 ac_save_CC=$CC
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488 #include <stdarg.h>
3489 #include <stdbool.h>
3490 #include <stdlib.h>
3491 #include <wchar.h>
3492 #include <stdio.h>
3494 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3495 #define debug(...) fprintf (stderr, __VA_ARGS__)
3496 #define showlist(...) puts (#__VA_ARGS__)
3497 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3498 static void
3499 test_varargs_macros (void)
3501 int x = 1234;
3502 int y = 5678;
3503 debug ("Flag");
3504 debug ("X = %d\n", x);
3505 showlist (The first, second, and third items.);
3506 report (x>y, "x is %d but y is %d", x, y);
3509 // Check long long types.
3510 #define BIG64 18446744073709551615ull
3511 #define BIG32 4294967295ul
3512 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3513 #if !BIG_OK
3514 your preprocessor is broken;
3515 #endif
3516 #if BIG_OK
3517 #else
3518 your preprocessor is broken;
3519 #endif
3520 static long long int bignum = -9223372036854775807LL;
3521 static unsigned long long int ubignum = BIG64;
3523 struct incomplete_array
3525 int datasize;
3526 double data[];
3529 struct named_init {
3530 int number;
3531 const wchar_t *name;
3532 double average;
3535 typedef const char *ccp;
3537 static inline int
3538 test_restrict (ccp restrict text)
3540 // See if C++-style comments work.
3541 // Iterate through items via the restricted pointer.
3542 // Also check for declarations in for loops.
3543 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3544 continue;
3545 return 0;
3548 // Check varargs and va_copy.
3549 static void
3550 test_varargs (const char *format, ...)
3552 va_list args;
3553 va_start (args, format);
3554 va_list args_copy;
3555 va_copy (args_copy, args);
3557 const char *str;
3558 int number;
3559 float fnumber;
3561 while (*format)
3563 switch (*format++)
3565 case 's': // string
3566 str = va_arg (args_copy, const char *);
3567 break;
3568 case 'd': // int
3569 number = va_arg (args_copy, int);
3570 break;
3571 case 'f': // float
3572 fnumber = va_arg (args_copy, double);
3573 break;
3574 default:
3575 break;
3578 va_end (args_copy);
3579 va_end (args);
3583 main ()
3586 // Check bool.
3587 _Bool success = false;
3589 // Check restrict.
3590 if (test_restrict ("String literal") == 0)
3591 success = true;
3592 char *restrict newvar = "Another string";
3594 // Check varargs.
3595 test_varargs ("s, d' f .", "string", 65, 34.234);
3596 test_varargs_macros ();
3598 // Check flexible array members.
3599 struct incomplete_array *ia =
3600 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3601 ia->datasize = 10;
3602 for (int i = 0; i < ia->datasize; ++i)
3603 ia->data[i] = i * 1.234;
3605 // Check named initializers.
3606 struct named_init ni = {
3607 .number = 34,
3608 .name = L"Test wide string",
3609 .average = 543.34343,
3612 ni.number = 58;
3614 int dynamic_array[ni.number];
3615 dynamic_array[ni.number - 1] = 543;
3617 // work around unused variable warnings
3618 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3619 || dynamic_array[ni.number - 1] != 543);
3622 return 0;
3624 _ACEOF
3625 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3627 CC="$ac_save_CC $ac_arg"
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629 ac_cv_prog_cc_c99=$ac_arg
3631 rm -f core conftest.err conftest.$ac_objext
3632 test "x$ac_cv_prog_cc_c99" != "xno" && break
3633 done
3634 rm -f conftest.$ac_ext
3635 CC=$ac_save_CC
3638 # AC_CACHE_VAL
3639 case "x$ac_cv_prog_cc_c99" in
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3642 $as_echo "none needed" >&6; } ;;
3643 xno)
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3645 $as_echo "unsupported" >&6; } ;;
3647 CC="$CC $ac_cv_prog_cc_c99"
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3649 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3650 esac
3651 if test "x$ac_cv_prog_cc_c99" != xno; then :
3652 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3655 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3656 if ${ac_cv_prog_cc_c89+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 ac_cv_prog_cc_c89=no
3660 ac_save_CC=$CC
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3663 #include <stdarg.h>
3664 #include <stdio.h>
3665 #include <sys/types.h>
3666 #include <sys/stat.h>
3667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3668 struct buf { int x; };
3669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670 static char *e (p, i)
3671 char **p;
3672 int i;
3674 return p[i];
3676 static char *f (char * (*g) (char **, int), char **p, ...)
3678 char *s;
3679 va_list v;
3680 va_start (v,p);
3681 s = g (p, va_arg (v,int));
3682 va_end (v);
3683 return s;
3686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3687 function prototypes and stuff, but not '\xHH' hex character constants.
3688 These don't provoke an error unfortunately, instead are silently treated
3689 as 'x'. The following induces an error, until -std is added to get
3690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3691 array size at least. It's necessary to write '\x00'==0 to get something
3692 that's true only with -std. */
3693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3697 #define FOO(x) 'x'
3698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704 int argc;
3705 char **argv;
3707 main ()
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3711 return 0;
3713 _ACEOF
3714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_c89=$ac_arg
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
3723 done
3724 rm -f conftest.$ac_ext
3725 CC=$ac_save_CC
3728 # AC_CACHE_VAL
3729 case "x$ac_cv_prog_cc_c89" in
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732 $as_echo "none needed" >&6; } ;;
3733 xno)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735 $as_echo "unsupported" >&6; } ;;
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3740 esac
3741 if test "x$ac_cv_prog_cc_c89" != xno; then :
3742 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3743 else
3744 ac_cv_prog_cc_stdc=no
3749 esac
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3751 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3752 if ${ac_cv_prog_cc_stdc+:} false; then :
3753 $as_echo_n "(cached) " >&6
3756 case $ac_cv_prog_cc_stdc in #(
3757 no) :
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3759 $as_echo "unsupported" >&6; } ;; #(
3760 '') :
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3762 $as_echo "none needed" >&6; } ;; #(
3763 *) :
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3765 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3766 esac
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3774 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3775 # On Suns, sometimes $CPP names a directory.
3776 if test -n "$CPP" && test -d "$CPP"; then
3777 CPP=
3779 if test -z "$CPP"; then
3780 if ${ac_cv_prog_CPP+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 # Double quotes because CPP needs to be expanded
3784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3786 ac_preproc_ok=false
3787 for ac_c_preproc_warn_flag in '' yes
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 #ifdef __STDC__
3798 # include <limits.h>
3799 #else
3800 # include <assert.h>
3801 #endif
3802 Syntax error
3803 _ACEOF
3804 if ac_fn_c_try_cpp "$LINENO"; then :
3806 else
3807 # Broken: fails on valid input.
3808 continue
3810 rm -f conftest.err conftest.i conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816 #include <ac_nonexistent.h>
3817 _ACEOF
3818 if ac_fn_c_try_cpp "$LINENO"; then :
3819 # Broken: success on invalid input.
3820 continue
3821 else
3822 # Passes both tests.
3823 ac_preproc_ok=:
3824 break
3826 rm -f conftest.err conftest.i conftest.$ac_ext
3828 done
3829 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3830 rm -f conftest.i conftest.err conftest.$ac_ext
3831 if $ac_preproc_ok; then :
3832 break
3835 done
3836 ac_cv_prog_CPP=$CPP
3839 CPP=$ac_cv_prog_CPP
3840 else
3841 ac_cv_prog_CPP=$CPP
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3844 $as_echo "$CPP" >&6; }
3845 ac_preproc_ok=false
3846 for ac_c_preproc_warn_flag in '' yes
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #ifdef __STDC__
3857 # include <limits.h>
3858 #else
3859 # include <assert.h>
3860 #endif
3861 Syntax error
3862 _ACEOF
3863 if ac_fn_c_try_cpp "$LINENO"; then :
3865 else
3866 # Broken: fails on valid input.
3867 continue
3869 rm -f conftest.err conftest.i conftest.$ac_ext
3871 # OK, works on sane cases. Now check whether nonexistent headers
3872 # can be detected and how.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #include <ac_nonexistent.h>
3876 _ACEOF
3877 if ac_fn_c_try_cpp "$LINENO"; then :
3878 # Broken: success on invalid input.
3879 continue
3880 else
3881 # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3885 rm -f conftest.err conftest.i conftest.$ac_ext
3887 done
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.i conftest.err conftest.$ac_ext
3890 if $ac_preproc_ok; then :
3892 else
3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3896 See \`config.log' for more details" "$LINENO" 5; }
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 # Check for a compatible awk
3907 for ac_prog in gawk nawk
3909 # Extract the first word of "$ac_prog", so it can be a program name with args.
3910 set dummy $ac_prog; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_AWK+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 if test -n "$AWK"; then
3917 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3926 ac_cv_prog_AWK="$ac_prog"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3930 done
3931 done
3932 IFS=$as_save_IFS
3936 AWK=$ac_cv_prog_AWK
3937 if test -n "$AWK"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3939 $as_echo "$AWK" >&6; }
3940 else
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3946 test -n "$AWK" && break
3947 done
3949 if test "$AWK" = ""; then
3950 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3952 # Extract the first word of "mmake", so it can be a program name with args.
3953 set dummy mmake; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_MMAKE+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if test -n "$MMAKE"; then
3960 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3969 ac_cv_prog_MMAKE="mmake "
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3973 done
3974 done
3975 IFS=$as_save_IFS
3979 MMAKE=$ac_cv_prog_MMAKE
3980 if test -n "$MMAKE"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3982 $as_echo "$MMAKE" >&6; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3990 # Perform some default variable assignments. Note all of these will be
3991 # Regenerated from the script, so there is no need to cache them.
3993 aros_host_cc="$CC"
3994 if test "$GCC" = "yes"; then
3995 aros_gcc_ld=`$CC -print-prog-name=ld`
3996 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3997 set dummy `basename $aros_gcc_ld`; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_path_aros_host_ld+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 case $aros_host_ld in
4004 [\\/]* | ?:[\\/]*)
4005 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in `dirname $aros_gcc_ld`
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4019 done
4020 done
4021 IFS=$as_save_IFS
4024 esac
4026 aros_host_ld=$ac_cv_path_aros_host_ld
4027 if test -n "$aros_host_ld"; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4029 $as_echo "$aros_host_ld" >&6; }
4030 else
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4037 if test "$aros_host_ld" = ""; then
4038 # Extract the first word of "ld", so it can be a program name with args.
4039 set dummy ld; ac_word=$2
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041 $as_echo_n "checking for $ac_word... " >&6; }
4042 if ${ac_cv_path_aros_host_ld+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 case $aros_host_ld in
4046 [\\/]* | ?:[\\/]*)
4047 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4057 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4061 done
4062 done
4063 IFS=$as_save_IFS
4066 esac
4068 aros_host_ld=$ac_cv_path_aros_host_ld
4069 if test -n "$aros_host_ld"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4071 $as_echo "$aros_host_ld" >&6; }
4072 else
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4079 if test "$aros_host_ld" = ""; then
4080 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4082 aros_host_make="make"
4083 aros_host_cflags=$CFLAGS
4084 aros_host_ldflags=$LDFLAGS
4085 aros_host_debug="-g -O0"
4086 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4087 aros_host_mkargs="--no-print-directory"
4088 aros_host_incl="/usr/include"
4089 aros_host_exe_suffix="$EXEEXT"
4090 aros_host_lib_suffix=""
4092 # Ignore all compliance, AROS ROMs = 0
4093 # KickStart v1.0 = 30
4094 # KickStart v1.3 = 34
4095 # KickStart v2.0 = 37
4096 # KickStart v3.0 = 39
4097 # KickStart v3.1 = 40
4098 # AmigaOS v3.5 = 44
4099 aros_amigaos_compliance=0
4101 for ac_prog in aclocal aclocal19 aclocal-1.9
4103 # Extract the first word of "$ac_prog", so it can be a program name with args.
4104 set dummy $ac_prog; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 if test -n "$aros_host_aclocal"; then
4111 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_aros_host_aclocal="$ac_prog"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4124 done
4125 done
4126 IFS=$as_save_IFS
4130 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4131 if test -n "$aros_host_aclocal"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4133 $as_echo "$aros_host_aclocal" >&6; }
4134 else
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4140 test -n "$aros_host_aclocal" && break
4141 done
4143 for ac_prog in autoconf autoconf259 autoconf253
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$aros_host_autoconf"; then
4153 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_aros_host_autoconf="$ac_prog"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4168 IFS=$as_save_IFS
4172 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4173 if test -n "$aros_host_autoconf"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4175 $as_echo "$aros_host_autoconf" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4182 test -n "$aros_host_autoconf" && break
4183 done
4185 for ac_prog in autoheader autoheader259 autoheader253
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$aros_host_autoheader"; then
4195 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_aros_host_autoheader="$ac_prog"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4208 done
4209 done
4210 IFS=$as_save_IFS
4214 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4215 if test -n "$aros_host_autoheader"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4217 $as_echo "$aros_host_autoheader" >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4224 test -n "$aros_host_autoheader" && break
4225 done
4227 for ac_prog in automake automake19 automake-1.9
4229 # Extract the first word of "$ac_prog", so it can be a program name with args.
4230 set dummy $ac_prog; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_aros_host_automake+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -n "$aros_host_automake"; then
4237 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_aros_host_automake="$ac_prog"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4250 done
4251 done
4252 IFS=$as_save_IFS
4256 aros_host_automake=$ac_cv_prog_aros_host_automake
4257 if test -n "$aros_host_automake"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4259 $as_echo "$aros_host_automake" >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4266 test -n "$aros_host_automake" && break
4267 done
4270 if test "$aros_host_aclocal" = ""; then
4271 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4273 if test "$aros_host_automake" = ""; then
4274 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4277 case "$aros_host_cc" in
4278 *gcc*)
4279 aros_host_cc_pipe="-pipe"
4281 icc)
4282 aros_host_cc_pipe=""
4285 aros_host_cc_pipe=""
4287 esac
4289 aros_kernel_cc_includes=""
4290 aros_target_cc_includes=""
4292 # ----------------------------------------------------------------------------------------
4293 # Host-specific defaults
4295 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4296 # instead of a wrapper script.
4297 # Useful for non-ELF hosts (like Windows and Darwin).
4298 # Can also be overriden in target section below
4299 use_aros_gcc="no"
4301 # This is the main host configuration section. It is where the host
4302 # can change the values of any variables it needs to change. We do
4303 # not look at anything that compiles to the target yet, we'll get
4304 # to that later.
4306 case "$host_os" in
4307 aros*)
4308 aros_host_arch="aros"
4309 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4310 case "$host_cpu" in
4311 *i?86*)
4312 aros_host_cpu="i386"
4314 *x86_64*)
4315 aros_host_cpu="x86_64"
4317 *powerpc*)
4318 aros_host_cpu="ppc"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4322 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4323 aros_host_cpu="$host_cpu"
4325 esac
4328 linux*)
4329 aros_host_arch="linux"
4330 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4331 android_build_os="linux-x86"
4332 android_tool="android"
4333 default_android_sdk="/opt/android-sdk-linux_x86"
4334 case "$host_cpu" in
4335 *i?86*)
4336 aros_host_cpu="i386"
4338 *x86_64*)
4339 aros_host_cpu="x86_64"
4341 *m68k*)
4342 aros_host_cpu="m68k"
4344 *powerpc*)
4345 aros_host_cpu="ppc"
4347 *arm*)
4348 aros_host_cpu="arm"
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4352 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4353 aros_host_cpu="$host_cpu"
4355 esac
4358 freebsd*)
4359 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4360 aros_host_make="gmake"
4361 aros_host_arch="freebsd"
4362 aros_host_cpu="i386"
4364 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4366 case $host_os in
4367 freebsd[234]*)
4368 aros_object_format="elf_i386"
4372 aros_object_format="elf_i386_fbsd"
4374 esac
4378 darwin*)
4379 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4380 aros_host_arch="darwin"
4381 use_aros_gcc="yes"
4382 android_build_os="darwin-x86"
4383 android_tool="android"
4384 default_android_sdk="/android-sdk-mac_x86"
4385 case "$host_cpu" in
4386 *i?86*)
4387 aros_host_cpu="i386"
4389 *x86_64*)
4390 aros_host_cpu="x86_64"
4392 *powerpc*)
4393 aros_host_cpu="ppc"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4397 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4398 aros_host_cpu="$host_cpu"
4400 esac
4402 aros_host_ldflags="$aros_host_ldflags -liconv"
4406 dragonfly*)
4407 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4408 aros_host_make="gmake"
4409 aros_host_arch="dragonfly"
4410 case $host_cpu in
4411 *i?86*)
4412 aros_host_cpu="i386"
4414 *amd64*)
4415 aros_host_cpu="x86_64"
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4419 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4420 aros_host_cpu="$host_cpu"
4422 esac
4425 netbsd*)
4426 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4427 aros_host_make="gmake"
4428 aros_host_arch="netbsd"
4429 case "$host_cpu" in
4430 *i?86*)
4431 aros_host_cpu="i386"
4433 *m68k*)
4434 aros_host_cpu="m68k"
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4438 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4439 aros_host_cpu="$host_cpu"
4441 esac
4442 aros_host_lib_suffix=".0.0"
4445 openbsd*)
4446 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4447 aros_host_make="gmake"
4448 aros_host_arch="openbsd"
4449 case "$host_cpu" in
4450 *i?86*)
4451 aros_host_cpu="i386"
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4455 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4456 aros_host_cpu="$host_cpu"
4458 esac
4461 solaris*)
4462 aros_host_arch="solaris"
4463 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4464 case "$host_cpu" in
4465 *i?86*)
4466 aros_host_cpu="i386"
4468 *sparc*)
4469 aros_host_cpu="sparc"
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4473 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4474 aros_host_cpu="$host_cpu"
4476 esac
4479 morphos*)
4480 aros_host_arch="morphos"
4481 aros_host_cpu="ppc"
4484 amiga*)
4485 aros_host_arch="amiga"
4486 SORT="/gg/bin/sort"
4487 TEST="/gg/bin/test"
4488 UNIQ="/gg/bin/uniq"
4489 FOR="for"
4490 TOUCH="/gg/bin/touch"
4491 case "$host_cpu" in
4492 *m68k*)
4493 aros_host_cpu="m68k"
4495 *powerpc*)
4496 aros_host_cpu="ppc"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4500 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4501 aros_host_cpu="$host_cpu"
4503 esac
4506 cygwin*)
4507 aros_host_arch="cygwin"
4508 use_aros_gcc="yes"
4509 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4510 android_build_os="windows"
4511 android_tool="android.bat"
4512 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4514 case "$host_cpu" in
4515 *i?86*)
4516 aros_host_cpu="i386"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4520 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4521 aros_host_cpu="$host_cpu"
4523 esac
4526 mingw32*)
4527 aros_host_arch="mingw32"
4528 use_aros_gcc="yes"
4529 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4530 android_build_os="windows"
4531 android_tool="android.bat"
4532 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4534 case "$host_cpu" in
4535 *i?86*)
4536 aros_host_cpu="i386"
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4540 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4541 aros_host_cpu="$host_cpu"
4543 esac
4546 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4548 esac
4550 # Extract the first word of "ar", so it can be a program name with args.
4551 set dummy ar; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if ${ac_cv_prog_aros_host_ar+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if test -n "$aros_host_ar"; then
4558 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_aros_host_ar="ar cr"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4571 done
4572 done
4573 IFS=$as_save_IFS
4577 aros_host_ar=$ac_cv_prog_aros_host_ar
4578 if test -n "$aros_host_ar"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4580 $as_echo "$aros_host_ar" >&6; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4587 if test "$aros_host_ar" = ""; then
4588 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4590 # Extract the first word of "ranlib", so it can be a program name with args.
4591 set dummy ranlib; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$aros_host_ranlib"; then
4598 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_aros_host_ranlib="ranlib "
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4611 done
4612 done
4613 IFS=$as_save_IFS
4617 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4618 if test -n "$aros_host_ranlib"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4620 $as_echo "$aros_host_ranlib" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4627 if test "$aros_host_ranlib" = ""; then
4628 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4630 # Extract the first word of "strip", so it can be a program name with args.
4631 set dummy strip; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_prog_aros_host_strip+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$aros_host_strip"; then
4638 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_aros_host_strip="strip "
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4651 done
4652 done
4653 IFS=$as_save_IFS
4657 aros_host_strip=$ac_cv_prog_aros_host_strip
4658 if test -n "$aros_host_strip"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4660 $as_echo "$aros_host_strip" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4667 if test "$aros_host_strip" = ""; then
4668 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4671 # Extract the first word of "rm", so it can be a program name with args.
4672 set dummy rm; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_RM+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$RM"; then
4679 ac_cv_prog_RM="$RM" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_RM="rm -rf"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 RM=$ac_cv_prog_RM
4699 if test -n "$RM"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4701 $as_echo "$RM" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4708 if test "$RM" = ""; then
4709 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4711 # Extract the first word of "cp", so it can be a program name with args.
4712 set dummy cp; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_CP+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$CP"; then
4719 ac_cv_prog_CP="$CP" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_CP="cp "
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4732 done
4733 done
4734 IFS=$as_save_IFS
4738 CP=$ac_cv_prog_CP
4739 if test -n "$CP"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4741 $as_echo "$CP" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4748 if test "$CP" = ""; then
4749 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4751 # Extract the first word of "mv", so it can be a program name with args.
4752 set dummy mv; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_prog_MV+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$MV"; then
4759 ac_cv_prog_MV="$MV" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_MV="mv "
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4772 done
4773 done
4774 IFS=$as_save_IFS
4778 MV=$ac_cv_prog_MV
4779 if test -n "$MV"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4781 $as_echo "$MV" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4788 if test "$MV" = ""; then
4789 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4791 # Extract the first word of "echo", so it can be a program name with args.
4792 set dummy echo; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if ${ac_cv_prog_ECHO+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$ECHO"; then
4799 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ECHO="echo "
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4814 IFS=$as_save_IFS
4818 ECHO=$ac_cv_prog_ECHO
4819 if test -n "$ECHO"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4821 $as_echo "$ECHO" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4828 if test "$ECHO" = ""; then
4829 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4831 # Extract the first word of "mkdir", so it can be a program name with args.
4832 set dummy mkdir; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if ${ac_cv_prog_MKDIR+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 if test -n "$MKDIR"; then
4839 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_MKDIR="mkdir -p"
4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4852 done
4853 done
4854 IFS=$as_save_IFS
4858 MKDIR=$ac_cv_prog_MKDIR
4859 if test -n "$MKDIR"; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4861 $as_echo "$MKDIR" >&6; }
4862 else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4868 if test "$MKDIR" = ""; then
4869 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4871 # Extract the first word of "touch", so it can be a program name with args.
4872 set dummy touch; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if ${ac_cv_prog_TOUCH+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$TOUCH"; then
4879 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_TOUCH="touch "
4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4892 done
4893 done
4894 IFS=$as_save_IFS
4898 TOUCH=$ac_cv_prog_TOUCH
4899 if test -n "$TOUCH"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4901 $as_echo "$TOUCH" >&6; }
4902 else
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4908 if test "$TOUCH" = ""; then
4909 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4911 # Extract the first word of "sort", so it can be a program name with args.
4912 set dummy sort; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_prog_SORT+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -n "$SORT"; then
4919 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_prog_SORT="sort "
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4932 done
4933 done
4934 IFS=$as_save_IFS
4938 SORT=$ac_cv_prog_SORT
4939 if test -n "$SORT"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4941 $as_echo "$SORT" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4948 if test "$SORT" = ""; then
4949 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4951 # Extract the first word of "uniq", so it can be a program name with args.
4952 set dummy uniq; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_UNIQ+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$UNIQ"; then
4959 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_UNIQ="uniq "
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 UNIQ=$ac_cv_prog_UNIQ
4979 if test -n "$UNIQ"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4981 $as_echo "$UNIQ" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 if test "$UNIQ" = ""; then
4989 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4991 # Extract the first word of "true", so it can be a program name with args.
4992 set dummy true; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_prog_NOP+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$NOP"; then
4999 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_NOP="true "
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5018 NOP=$ac_cv_prog_NOP
5019 if test -n "$NOP"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5021 $as_echo "$NOP" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5028 if test "$NOP" = ""; then
5029 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5031 # Extract the first word of "cat", so it can be a program name with args.
5032 set dummy cat; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_CAT+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$CAT"; then
5039 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_CAT="cat "
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 CAT=$ac_cv_prog_CAT
5059 if test -n "$CAT"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5061 $as_echo "$CAT" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 if test "$CAT" = ""; then
5069 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5071 # Extract the first word of "bison", so it can be a program name with args.
5072 set dummy bison; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_BISON+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$BISON"; then
5079 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_BISON="bison "
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5092 done
5093 done
5094 IFS=$as_save_IFS
5098 BISON=$ac_cv_prog_BISON
5099 if test -n "$BISON"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5101 $as_echo "$BISON" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 if test "$BISON" = ""; then
5109 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5111 # Extract the first word of "flex", so it can be a program name with args.
5112 set dummy flex; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_FLEX+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$FLEX"; then
5119 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_FLEX="flex "
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5134 IFS=$as_save_IFS
5138 FLEX=$ac_cv_prog_FLEX
5139 if test -n "$FLEX"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5141 $as_echo "$FLEX" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 if test "$FLEX" = ""; then
5149 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5151 # Extract the first word of "pngtopnm", so it can be a program name with args.
5152 set dummy pngtopnm; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$PNGTOPNM"; then
5159 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_PNGTOPNM="pngtopnm "
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5178 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5179 if test -n "$PNGTOPNM"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5181 $as_echo "$PNGTOPNM" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 if test "$PNGTOPNM" = ""; then
5189 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5191 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5192 set dummy ppmtoilbm; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$PPMTOILBM"; then
5199 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5212 done
5213 done
5214 IFS=$as_save_IFS
5218 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5219 if test -n "$PPMTOILBM"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5221 $as_echo "$PPMTOILBM" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5228 if test "$PPMTOILBM" = ""; then
5229 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5231 # Extract the first word of "sed", so it can be a program name with args.
5232 set dummy sed; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_SED+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 if test -n "$SED"; then
5239 ac_cv_prog_SED="$SED" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_prog_SED="sed "
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5252 done
5253 done
5254 IFS=$as_save_IFS
5258 SED=$ac_cv_prog_SED
5259 if test -n "$SED"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5261 $as_echo "$SED" >&6; }
5262 else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5268 if test "$SED" = ""; then
5269 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5271 # Extract the first word of "chmod", so it can be a program name with args.
5272 set dummy chmod; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_prog_CHMOD+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -n "$CHMOD"; then
5279 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_CHMOD="chmod "
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5298 CHMOD=$ac_cv_prog_CHMOD
5299 if test -n "$CHMOD"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5301 $as_echo "$CHMOD" >&6; }
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5308 if test "$CHMOD" = ""; then
5309 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5311 # Extract the first word of "patch", so it can be a program name with args.
5312 set dummy patch; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_PATCH+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$PATCH"; then
5319 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_PATCH="patch "
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 PATCH=$ac_cv_prog_PATCH
5339 if test -n "$PATCH"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5341 $as_echo "$PATCH" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5348 if test "$PATCH" = ""; then
5349 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5356 if test -n "$PYTHON"; then
5357 # If the user set $PYTHON, use it and don't search something else.
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5359 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5360 prog="import sys, string
5361 # split strings by '.' and convert to numeric. Append some zeros
5362 # because we need at least 4 digits for the hex conversion.
5363 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5364 minverhex = 0
5365 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5366 sys.exit(sys.hexversion < minverhex)"
5367 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5368 ($PYTHON -c "$prog") >&5 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; then :
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 $as_echo "yes" >&6; }
5374 else
5375 as_fn_error $? "too old" "$LINENO" 5
5377 am_display_PYTHON=$PYTHON
5378 else
5379 # Otherwise, try each interpreter until we find one that satisfies
5380 # VERSION.
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5382 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5383 if ${am_cv_pathless_PYTHON+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5387 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
5388 test "$am_cv_pathless_PYTHON" = none && break
5389 prog="import sys, string
5390 # split strings by '.' and convert to numeric. Append some zeros
5391 # because we need at least 4 digits for the hex conversion.
5392 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5393 minverhex = 0
5394 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5395 sys.exit(sys.hexversion < minverhex)"
5396 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5397 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; then :
5401 break
5403 done
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5406 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5407 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5408 if test "$am_cv_pathless_PYTHON" = none; then
5409 PYTHON=:
5410 else
5411 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5412 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if ${ac_cv_path_PYTHON+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 case $PYTHON in
5419 [\\/]* | ?:[\\/]*)
5420 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5434 done
5435 done
5436 IFS=$as_save_IFS
5439 esac
5441 PYTHON=$ac_cv_path_PYTHON
5442 if test -n "$PYTHON"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5444 $as_echo "$PYTHON" >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5452 am_display_PYTHON=$am_cv_pathless_PYTHON
5456 if test "$PYTHON" = :; then
5457 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5458 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5462 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5463 if ${am_cv_python_version+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5469 $as_echo "$am_cv_python_version" >&6; }
5470 PYTHON_VERSION=$am_cv_python_version
5474 PYTHON_PREFIX='${prefix}'
5476 PYTHON_EXEC_PREFIX='${exec_prefix}'
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5481 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5482 if ${am_cv_python_platform+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5488 $as_echo "$am_cv_python_platform" >&6; }
5489 PYTHON_PLATFORM=$am_cv_python_platform
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5495 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5496 if ${am_cv_python_pythondir+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5500 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5503 $as_echo "$am_cv_python_pythondir" >&6; }
5504 pythondir=$am_cv_python_pythondir
5508 pkgpythondir=\${pythondir}/$PACKAGE
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5512 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5513 if ${am_cv_python_pyexecdir+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5517 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5520 $as_echo "$am_cv_python_pyexecdir" >&6; }
5521 pyexecdir=$am_cv_python_pyexecdir
5525 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5533 FOR=for
5535 IF=if
5537 TEST=test
5539 CMP=cmp
5543 # Check for some includes for the X11 HIDD and the kernel
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5547 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5548 if ${ac_cv_path_GREP+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -z "$GREP"; then
5552 ac_path_GREP_found=false
5553 # Loop through the user's path and test for each of PROGNAME-LIST
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_prog in grep ggrep; do
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5562 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5563 # Check for GNU ac_path_GREP and select it if it is found.
5564 # Check for GNU $ac_path_GREP
5565 case `"$ac_path_GREP" --version 2>&1` in
5566 *GNU*)
5567 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5569 ac_count=0
5570 $as_echo_n 0123456789 >"conftest.in"
5571 while :
5573 cat "conftest.in" "conftest.in" >"conftest.tmp"
5574 mv "conftest.tmp" "conftest.in"
5575 cp "conftest.in" "conftest.nl"
5576 $as_echo 'GREP' >> "conftest.nl"
5577 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5579 as_fn_arith $ac_count + 1 && ac_count=$as_val
5580 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5581 # Best one so far, save it but keep looking for a better one
5582 ac_cv_path_GREP="$ac_path_GREP"
5583 ac_path_GREP_max=$ac_count
5585 # 10*(2^10) chars as input seems more than enough
5586 test $ac_count -gt 10 && break
5587 done
5588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5589 esac
5591 $ac_path_GREP_found && break 3
5592 done
5593 done
5594 done
5595 IFS=$as_save_IFS
5596 if test -z "$ac_cv_path_GREP"; then
5597 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5599 else
5600 ac_cv_path_GREP=$GREP
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5605 $as_echo "$ac_cv_path_GREP" >&6; }
5606 GREP="$ac_cv_path_GREP"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5610 $as_echo_n "checking for egrep... " >&6; }
5611 if ${ac_cv_path_EGREP+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5615 then ac_cv_path_EGREP="$GREP -E"
5616 else
5617 if test -z "$EGREP"; then
5618 ac_path_EGREP_found=false
5619 # Loop through the user's path and test for each of PROGNAME-LIST
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_prog in egrep; do
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5628 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5629 # Check for GNU ac_path_EGREP and select it if it is found.
5630 # Check for GNU $ac_path_EGREP
5631 case `"$ac_path_EGREP" --version 2>&1` in
5632 *GNU*)
5633 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5635 ac_count=0
5636 $as_echo_n 0123456789 >"conftest.in"
5637 while :
5639 cat "conftest.in" "conftest.in" >"conftest.tmp"
5640 mv "conftest.tmp" "conftest.in"
5641 cp "conftest.in" "conftest.nl"
5642 $as_echo 'EGREP' >> "conftest.nl"
5643 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645 as_fn_arith $ac_count + 1 && ac_count=$as_val
5646 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5647 # Best one so far, save it but keep looking for a better one
5648 ac_cv_path_EGREP="$ac_path_EGREP"
5649 ac_path_EGREP_max=$ac_count
5651 # 10*(2^10) chars as input seems more than enough
5652 test $ac_count -gt 10 && break
5653 done
5654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 esac
5657 $ac_path_EGREP_found && break 3
5658 done
5659 done
5660 done
5661 IFS=$as_save_IFS
5662 if test -z "$ac_cv_path_EGREP"; then
5663 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5665 else
5666 ac_cv_path_EGREP=$EGREP
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5672 $as_echo "$ac_cv_path_EGREP" >&6; }
5673 EGREP="$ac_cv_path_EGREP"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5677 $as_echo_n "checking for ANSI C header files... " >&6; }
5678 if ${ac_cv_header_stdc+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 #include <stdlib.h>
5684 #include <stdarg.h>
5685 #include <string.h>
5686 #include <float.h>
5689 main ()
5693 return 0;
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 ac_cv_header_stdc=yes
5698 else
5699 ac_cv_header_stdc=no
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 if test $ac_cv_header_stdc = yes; then
5704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include <string.h>
5709 _ACEOF
5710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5711 $EGREP "memchr" >/dev/null 2>&1; then :
5713 else
5714 ac_cv_header_stdc=no
5716 rm -f conftest*
5720 if test $ac_cv_header_stdc = yes; then
5721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include <stdlib.h>
5726 _ACEOF
5727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5728 $EGREP "free" >/dev/null 2>&1; then :
5730 else
5731 ac_cv_header_stdc=no
5733 rm -f conftest*
5737 if test $ac_cv_header_stdc = yes; then
5738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5739 if test "$cross_compiling" = yes; then :
5741 else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 #include <ctype.h>
5745 #include <stdlib.h>
5746 #if ((' ' & 0x0FF) == 0x020)
5747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5749 #else
5750 # define ISLOWER(c) \
5751 (('a' <= (c) && (c) <= 'i') \
5752 || ('j' <= (c) && (c) <= 'r') \
5753 || ('s' <= (c) && (c) <= 'z'))
5754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5755 #endif
5757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5759 main ()
5761 int i;
5762 for (i = 0; i < 256; i++)
5763 if (XOR (islower (i), ISLOWER (i))
5764 || toupper (i) != TOUPPER (i))
5765 return 2;
5766 return 0;
5768 _ACEOF
5769 if ac_fn_c_try_run "$LINENO"; then :
5771 else
5772 ac_cv_header_stdc=no
5774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5775 conftest.$ac_objext conftest.beam conftest.$ac_ext
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5781 $as_echo "$ac_cv_header_stdc" >&6; }
5782 if test $ac_cv_header_stdc = yes; then
5784 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5790 inttypes.h stdint.h unistd.h
5791 do :
5792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5796 cat >>confdefs.h <<_ACEOF
5797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5798 _ACEOF
5802 done
5805 for ac_header in sys/ipc.h sys/shm.h \
5806 sys/mmap.h sys/mman.h sysexits.h \
5807 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5809 do :
5810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5811 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5812 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5813 cat >>confdefs.h <<_ACEOF
5814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5815 _ACEOF
5819 done
5822 for ac_header in sys/mount.h
5823 do :
5824 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5826 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5827 cat >>confdefs.h <<_ACEOF
5828 #define HAVE_SYS_MOUNT_H 1
5829 _ACEOF
5833 done
5836 ac_header_dirent=no
5837 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5838 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5840 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5841 if eval \${$as_ac_Header+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 #include <sys/types.h>
5847 #include <$ac_hdr>
5850 main ()
5852 if ((DIR *) 0)
5853 return 0;
5855 return 0;
5857 _ACEOF
5858 if ac_fn_c_try_compile "$LINENO"; then :
5859 eval "$as_ac_Header=yes"
5860 else
5861 eval "$as_ac_Header=no"
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 eval ac_res=\$$as_ac_Header
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5867 $as_echo "$ac_res" >&6; }
5868 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5869 cat >>confdefs.h <<_ACEOF
5870 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5871 _ACEOF
5873 ac_header_dirent=$ac_hdr; break
5876 done
5877 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5878 if test $ac_header_dirent = dirent.h; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5880 $as_echo_n "checking for library containing opendir... " >&6; }
5881 if ${ac_cv_search_opendir+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 ac_func_search_save_LIBS=$LIBS
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5888 /* Override any GCC internal prototype to avoid an error.
5889 Use char because int might match the return type of a GCC
5890 builtin and then its argument prototype would still apply. */
5891 #ifdef __cplusplus
5892 extern "C"
5893 #endif
5894 char opendir ();
5896 main ()
5898 return opendir ();
5900 return 0;
5902 _ACEOF
5903 for ac_lib in '' dir; do
5904 if test -z "$ac_lib"; then
5905 ac_res="none required"
5906 else
5907 ac_res=-l$ac_lib
5908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5910 if ac_fn_c_try_link "$LINENO"; then :
5911 ac_cv_search_opendir=$ac_res
5913 rm -f core conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext
5915 if ${ac_cv_search_opendir+:} false; then :
5916 break
5918 done
5919 if ${ac_cv_search_opendir+:} false; then :
5921 else
5922 ac_cv_search_opendir=no
5924 rm conftest.$ac_ext
5925 LIBS=$ac_func_search_save_LIBS
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5928 $as_echo "$ac_cv_search_opendir" >&6; }
5929 ac_res=$ac_cv_search_opendir
5930 if test "$ac_res" != no; then :
5931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5937 $as_echo_n "checking for library containing opendir... " >&6; }
5938 if ${ac_cv_search_opendir+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 ac_func_search_save_LIBS=$LIBS
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5945 /* Override any GCC internal prototype to avoid an error.
5946 Use char because int might match the return type of a GCC
5947 builtin and then its argument prototype would still apply. */
5948 #ifdef __cplusplus
5949 extern "C"
5950 #endif
5951 char opendir ();
5953 main ()
5955 return opendir ();
5957 return 0;
5959 _ACEOF
5960 for ac_lib in '' x; do
5961 if test -z "$ac_lib"; then
5962 ac_res="none required"
5963 else
5964 ac_res=-l$ac_lib
5965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5967 if ac_fn_c_try_link "$LINENO"; then :
5968 ac_cv_search_opendir=$ac_res
5970 rm -f core conftest.err conftest.$ac_objext \
5971 conftest$ac_exeext
5972 if ${ac_cv_search_opendir+:} false; then :
5973 break
5975 done
5976 if ${ac_cv_search_opendir+:} false; then :
5978 else
5979 ac_cv_search_opendir=no
5981 rm conftest.$ac_ext
5982 LIBS=$ac_func_search_save_LIBS
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5985 $as_echo "$ac_cv_search_opendir" >&6; }
5986 ac_res=$ac_cv_search_opendir
5987 if test "$ac_res" != no; then :
5988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5995 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5996 if ${ac_cv_header_stat_broken+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 #include <sys/types.h>
6002 #include <sys/stat.h>
6004 #if defined S_ISBLK && defined S_IFDIR
6005 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6006 #endif
6008 #if defined S_ISBLK && defined S_IFCHR
6009 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6010 #endif
6012 #if defined S_ISLNK && defined S_IFREG
6013 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6014 #endif
6016 #if defined S_ISSOCK && defined S_IFREG
6017 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6018 #endif
6020 _ACEOF
6021 if ac_fn_c_try_compile "$LINENO"; then :
6022 ac_cv_header_stat_broken=no
6023 else
6024 ac_cv_header_stat_broken=yes
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6029 $as_echo "$ac_cv_header_stat_broken" >&6; }
6030 if test $ac_cv_header_stat_broken = yes; then
6032 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6037 $as_echo_n "checking for ANSI C header files... " >&6; }
6038 if ${ac_cv_header_stdc+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 #include <stdlib.h>
6044 #include <stdarg.h>
6045 #include <string.h>
6046 #include <float.h>
6049 main ()
6053 return 0;
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057 ac_cv_header_stdc=yes
6058 else
6059 ac_cv_header_stdc=no
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 if test $ac_cv_header_stdc = yes; then
6064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <string.h>
6069 _ACEOF
6070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6071 $EGREP "memchr" >/dev/null 2>&1; then :
6073 else
6074 ac_cv_header_stdc=no
6076 rm -f conftest*
6080 if test $ac_cv_header_stdc = yes; then
6081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <stdlib.h>
6086 _ACEOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "free" >/dev/null 2>&1; then :
6090 else
6091 ac_cv_header_stdc=no
6093 rm -f conftest*
6097 if test $ac_cv_header_stdc = yes; then
6098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6099 if test "$cross_compiling" = yes; then :
6101 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <ctype.h>
6105 #include <stdlib.h>
6106 #if ((' ' & 0x0FF) == 0x020)
6107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6109 #else
6110 # define ISLOWER(c) \
6111 (('a' <= (c) && (c) <= 'i') \
6112 || ('j' <= (c) && (c) <= 'r') \
6113 || ('s' <= (c) && (c) <= 'z'))
6114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6115 #endif
6117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6119 main ()
6121 int i;
6122 for (i = 0; i < 256; i++)
6123 if (XOR (islower (i), ISLOWER (i))
6124 || toupper (i) != TOUPPER (i))
6125 return 2;
6126 return 0;
6128 _ACEOF
6129 if ac_fn_c_try_run "$LINENO"; then :
6131 else
6132 ac_cv_header_stdc=no
6134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6135 conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6141 $as_echo "$ac_cv_header_stdc" >&6; }
6142 if test $ac_cv_header_stdc = yes; then
6144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6149 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6150 if ${ac_cv_header_sys_wait_h+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 #include <sys/types.h>
6156 #include <sys/wait.h>
6157 #ifndef WEXITSTATUS
6158 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6159 #endif
6160 #ifndef WIFEXITED
6161 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6162 #endif
6165 main ()
6167 int s;
6168 wait (&s);
6169 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6171 return 0;
6173 _ACEOF
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175 ac_cv_header_sys_wait_h=yes
6176 else
6177 ac_cv_header_sys_wait_h=no
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6182 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6183 if test $ac_cv_header_sys_wait_h = yes; then
6185 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6190 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6191 if ${ac_cv_header_time+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 #include <sys/types.h>
6197 #include <sys/time.h>
6198 #include <time.h>
6201 main ()
6203 if ((struct tm *) 0)
6204 return 0;
6206 return 0;
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 ac_cv_header_time=yes
6211 else
6212 ac_cv_header_time=no
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6217 $as_echo "$ac_cv_header_time" >&6; }
6218 if test $ac_cv_header_time = yes; then
6220 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6224 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6225 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6227 cat >>confdefs.h <<_ACEOF
6228 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6229 _ACEOF
6232 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6237 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6238 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6240 cat >>confdefs.h <<_ACEOF
6241 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6242 _ACEOF
6245 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6247 else
6248 case " $LIBOBJS " in
6249 *" fileblocks.$ac_objext "* ) ;;
6250 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6252 esac
6257 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6258 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6260 cat >>confdefs.h <<_ACEOF
6261 #define HAVE_STRUCT_STAT_ST_RDEV 1
6262 _ACEOF
6265 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6271 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6272 if ${ac_cv_struct_tm+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <sys/types.h>
6278 #include <time.h>
6281 main ()
6283 struct tm tm;
6284 int *p = &tm.tm_sec;
6285 return !p;
6287 return 0;
6289 _ACEOF
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291 ac_cv_struct_tm=time.h
6292 else
6293 ac_cv_struct_tm=sys/time.h
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6298 $as_echo "$ac_cv_struct_tm" >&6; }
6299 if test $ac_cv_struct_tm = sys/time.h; then
6301 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6305 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6306 #include <$ac_cv_struct_tm>
6309 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6311 cat >>confdefs.h <<_ACEOF
6312 #define HAVE_STRUCT_TM_TM_ZONE 1
6313 _ACEOF
6318 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6320 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6322 else
6323 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6325 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6326 ac_have_decl=1
6327 else
6328 ac_have_decl=0
6331 cat >>confdefs.h <<_ACEOF
6332 #define HAVE_DECL_TZNAME $ac_have_decl
6333 _ACEOF
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6336 $as_echo_n "checking for tzname... " >&6; }
6337 if ${ac_cv_var_tzname+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 #include <time.h>
6343 #if !HAVE_DECL_TZNAME
6344 extern char *tzname[];
6345 #endif
6348 main ()
6350 return tzname[0][0];
6352 return 0;
6354 _ACEOF
6355 if ac_fn_c_try_link "$LINENO"; then :
6356 ac_cv_var_tzname=yes
6357 else
6358 ac_cv_var_tzname=no
6360 rm -f core conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6364 $as_echo "$ac_cv_var_tzname" >&6; }
6365 if test $ac_cv_var_tzname = yes; then
6367 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6372 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6373 if test "x$ac_cv_type_off_t" = xyes; then :
6375 else
6377 cat >>confdefs.h <<_ACEOF
6378 #define off_t long int
6379 _ACEOF
6383 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6384 if test "x$ac_cv_type_pid_t" = xyes; then :
6386 else
6388 cat >>confdefs.h <<_ACEOF
6389 #define pid_t int
6390 _ACEOF
6394 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6395 if test "x$ac_cv_type_size_t" = xyes; then :
6397 else
6399 cat >>confdefs.h <<_ACEOF
6400 #define size_t unsigned int
6401 _ACEOF
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6406 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6407 if ${ac_cv_type_uid_t+:} false; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412 #include <sys/types.h>
6414 _ACEOF
6415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416 $EGREP "uid_t" >/dev/null 2>&1; then :
6417 ac_cv_type_uid_t=yes
6418 else
6419 ac_cv_type_uid_t=no
6421 rm -f conftest*
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6425 $as_echo "$ac_cv_type_uid_t" >&6; }
6426 if test $ac_cv_type_uid_t = no; then
6428 $as_echo "#define uid_t int" >>confdefs.h
6431 $as_echo "#define gid_t int" >>confdefs.h
6436 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6437 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6439 cat >>confdefs.h <<_ACEOF
6440 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6441 _ACEOF
6447 # Look for some functions
6448 for ac_func in getpagesize kqueue statfs statvfs \
6449 clone kse_create rfork_thread thr_create sa_register \
6450 getcontext makecontext setcontext sigaltstack swapcontext
6451 do :
6452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6453 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6454 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6455 cat >>confdefs.h <<_ACEOF
6456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6457 _ACEOF
6460 done
6466 for ac_header in $ac_header_list
6467 do :
6468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6469 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6472 cat >>confdefs.h <<_ACEOF
6473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474 _ACEOF
6478 done
6487 for ac_func in getpagesize
6488 do :
6489 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6490 if test "x$ac_cv_func_getpagesize" = xyes; then :
6491 cat >>confdefs.h <<_ACEOF
6492 #define HAVE_GETPAGESIZE 1
6493 _ACEOF
6496 done
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6499 $as_echo_n "checking for working mmap... " >&6; }
6500 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if test "$cross_compiling" = yes; then :
6504 ac_cv_func_mmap_fixed_mapped=no
6505 else
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 $ac_includes_default
6509 /* malloc might have been renamed as rpl_malloc. */
6510 #undef malloc
6512 /* Thanks to Mike Haertel and Jim Avera for this test.
6513 Here is a matrix of mmap possibilities:
6514 mmap private not fixed
6515 mmap private fixed at somewhere currently unmapped
6516 mmap private fixed at somewhere already mapped
6517 mmap shared not fixed
6518 mmap shared fixed at somewhere currently unmapped
6519 mmap shared fixed at somewhere already mapped
6520 For private mappings, we should verify that changes cannot be read()
6521 back from the file, nor mmap's back from the file at a different
6522 address. (There have been systems where private was not correctly
6523 implemented like the infamous i386 svr4.0, and systems where the
6524 VM page cache was not coherent with the file system buffer cache
6525 like early versions of FreeBSD and possibly contemporary NetBSD.)
6526 For shared mappings, we should conversely verify that changes get
6527 propagated back to all the places they're supposed to be.
6529 Grep wants private fixed already mapped.
6530 The main things grep needs to know about mmap are:
6531 * does it exist and is it safe to write into the mmap'd area
6532 * how to use it (BSD variants) */
6534 #include <fcntl.h>
6535 #include <sys/mman.h>
6537 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6538 char *malloc ();
6539 #endif
6541 /* This mess was copied from the GNU getpagesize.h. */
6542 #ifndef HAVE_GETPAGESIZE
6543 # ifdef _SC_PAGESIZE
6544 # define getpagesize() sysconf(_SC_PAGESIZE)
6545 # else /* no _SC_PAGESIZE */
6546 # ifdef HAVE_SYS_PARAM_H
6547 # include <sys/param.h>
6548 # ifdef EXEC_PAGESIZE
6549 # define getpagesize() EXEC_PAGESIZE
6550 # else /* no EXEC_PAGESIZE */
6551 # ifdef NBPG
6552 # define getpagesize() NBPG * CLSIZE
6553 # ifndef CLSIZE
6554 # define CLSIZE 1
6555 # endif /* no CLSIZE */
6556 # else /* no NBPG */
6557 # ifdef NBPC
6558 # define getpagesize() NBPC
6559 # else /* no NBPC */
6560 # ifdef PAGESIZE
6561 # define getpagesize() PAGESIZE
6562 # endif /* PAGESIZE */
6563 # endif /* no NBPC */
6564 # endif /* no NBPG */
6565 # endif /* no EXEC_PAGESIZE */
6566 # else /* no HAVE_SYS_PARAM_H */
6567 # define getpagesize() 8192 /* punt totally */
6568 # endif /* no HAVE_SYS_PARAM_H */
6569 # endif /* no _SC_PAGESIZE */
6571 #endif /* no HAVE_GETPAGESIZE */
6574 main ()
6576 char *data, *data2, *data3;
6577 const char *cdata2;
6578 int i, pagesize;
6579 int fd, fd2;
6581 pagesize = getpagesize ();
6583 /* First, make a file with some known garbage in it. */
6584 data = (char *) malloc (pagesize);
6585 if (!data)
6586 return 1;
6587 for (i = 0; i < pagesize; ++i)
6588 *(data + i) = rand ();
6589 umask (0);
6590 fd = creat ("conftest.mmap", 0600);
6591 if (fd < 0)
6592 return 2;
6593 if (write (fd, data, pagesize) != pagesize)
6594 return 3;
6595 close (fd);
6597 /* Next, check that the tail of a page is zero-filled. File must have
6598 non-zero length, otherwise we risk SIGBUS for entire page. */
6599 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6600 if (fd2 < 0)
6601 return 4;
6602 cdata2 = "";
6603 if (write (fd2, cdata2, 1) != 1)
6604 return 5;
6605 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6606 if (data2 == MAP_FAILED)
6607 return 6;
6608 for (i = 0; i < pagesize; ++i)
6609 if (*(data2 + i))
6610 return 7;
6611 close (fd2);
6612 if (munmap (data2, pagesize))
6613 return 8;
6615 /* Next, try to mmap the file at a fixed address which already has
6616 something else allocated at it. If we can, also make sure that
6617 we see the same garbage. */
6618 fd = open ("conftest.mmap", O_RDWR);
6619 if (fd < 0)
6620 return 9;
6621 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6622 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6623 return 10;
6624 for (i = 0; i < pagesize; ++i)
6625 if (*(data + i) != *(data2 + i))
6626 return 11;
6628 /* Finally, make sure that changes to the mapped area do not
6629 percolate back to the file as seen by read(). (This is a bug on
6630 some variants of i386 svr4.0.) */
6631 for (i = 0; i < pagesize; ++i)
6632 *(data2 + i) = *(data2 + i) + 1;
6633 data3 = (char *) malloc (pagesize);
6634 if (!data3)
6635 return 12;
6636 if (read (fd, data3, pagesize) != pagesize)
6637 return 13;
6638 for (i = 0; i < pagesize; ++i)
6639 if (*(data + i) != *(data3 + i))
6640 return 14;
6641 close (fd);
6642 return 0;
6644 _ACEOF
6645 if ac_fn_c_try_run "$LINENO"; then :
6646 ac_cv_func_mmap_fixed_mapped=yes
6647 else
6648 ac_cv_func_mmap_fixed_mapped=no
6650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6651 conftest.$ac_objext conftest.beam conftest.$ac_ext
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6656 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6657 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6659 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6662 rm -f conftest.mmap conftest.txt
6667 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6668 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6669 aros_config_ldflags=""
6671 aros_shared_default=yes
6673 aros_shared_cflags="-fPIC"
6674 aros_shared_aflags=""
6675 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6676 aros_kernel_ldflags="-Wl,-rpath,./lib"
6678 aros_kernel_ar_flags="cr"
6679 aros_target_ar_flags="cr"
6680 aros_target_nm_flags="-C -ul"
6681 aros_target_strip_flags="--strip-unneeded -R.comment"
6683 aros_compiler_libs=
6684 aros_arch_libs=
6686 aros_target_genmap="-Wl,-Map -Xlinker"
6688 # Native flavour stuff
6689 aros_serial_debug="0"
6691 # Palm native flavour stuff
6692 aros_palm_debug_hack="0"
6694 # Unix flavour stuff
6695 aros_nesting_supervisor="0"
6697 # Collect-aros stuff: "-ius" to ignore undefined symbols
6698 ignore_undefined_symbols=""
6700 # Check for X11 by default
6701 need_x11="auto"
6703 #-----------------------------------------------------------------------------
6706 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6707 # it switched on by default, and we use the host compiler, so it compiles AROS
6708 # code with this enabled resulting in link failures as we don't have support
6709 # for it.
6711 # We use two methods to disable it. For the host compiler (used to compile
6712 # some hosted modules), we test to see if the compiler supports stack
6713 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6714 # work on all platforms.
6716 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6717 # (this is done unconditionally, as it should have no effect on compilers
6718 # without the stack protection feature). This may be specific to the way that
6719 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6720 # strong enough to disable it in a generic way though, so we'll live with it
6721 # until another vendor ships GCC with it enabled in a different way, and deal
6722 # with it then.
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6726 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6727 save_cflags="$CFLAGS"
6728 CFLAGS="$CFLAGS -fno-stack-protector"
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6733 main ()
6737 return 0;
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"; then :
6741 use_no_stack_protector="yes"
6742 else
6743 use_no_stack_protector="no"
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6747 $as_echo "$use_no_stack_protector" >&6; }
6748 if test "x-$use_no_stack_protector" = "x-yes" ; then
6749 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6751 CFLAGS="$save_cflags"
6753 #-----------------------------------------------------------------------------
6755 # Disable pointer-signedness warnings if the compiler recognises the option
6756 # (this only works for the host compiler at the moment)
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6759 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6760 save_cflags="$CFLAGS"
6761 CFLAGS="$CFLAGS -Wno-pointer-sign"
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6766 main ()
6770 return 0;
6772 _ACEOF
6773 if ac_fn_c_try_compile "$LINENO"; then :
6774 use_no_sign_warning="yes"
6775 else
6776 use_no_sign_warning="no"
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6780 $as_echo "$use_no_sign_warning" >&6; }
6781 if test "x-$use_no_sign_warning" = "x-yes" ; then
6782 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6784 CFLAGS="$save_cflags"
6786 #-----------------------------------------------------------------------------
6788 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6791 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6792 save_cflags="$CFLAGS"
6793 CFLAGS="$CFLAGS -fgnu89-inline"
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6798 main ()
6802 return 0;
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806 use_gnu89_inline="yes"
6807 else
6808 use_gnu89_inline="no"
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6812 $as_echo "$use_gnu89_inline" >&6; }
6813 if test "x-$use_gnu89_inline" = "x-yes" ; then
6814 gnu89_inline="-fgnu89-inline"
6816 CFLAGS="$save_cflags"
6818 #-----------------------------------------------------------------------------
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6821 $as_echo_n "checking for type of build... " >&6; }
6822 # Check whether --enable-build_type was given.
6823 if test "${enable_build_type+set}" = set; then :
6824 enableval=$enable_build_type; build_type=$enableval
6825 else
6826 build_type="personal"
6830 if test "$build_type" = "nightly"; then
6831 build_type_string="NIGHTLY"
6832 elif test "$build_type" = "snapshot"; then
6833 build_type_string="SNAPSHOT"
6834 elif test "$build_type" = "milestone"; then
6835 build_type_string="MILESTONE"
6836 elif test "$build_type" = "release"; then
6837 build_type_string="RELEASE"
6838 else
6839 build_type_string="PERSONAL"
6840 build_type="personal"
6843 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6846 $as_echo "$build_type" >&6; }
6848 #-----------------------------------------------------------------------------
6849 all_debug_types="messages stack modules mungwall symbols"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6852 $as_echo_n "checking which debug types to enable... " >&6; }
6853 # Check whether --enable-debug was given.
6854 if test "${enable_debug+set}" = set; then :
6855 enableval=$enable_debug; debug="$enableval"
6856 else
6857 debug=""
6861 if test "$debug" = "" -o "$debug" = "no"; then
6862 debug="none"
6863 elif test "$debug" = "yes"; then
6864 debug="all"
6867 if test "$debug" = "all" ; then
6868 debug="messages stack modules symbols"
6869 for d in $all_debug_types; do
6870 export aros_${d}_debug="1"
6871 done
6872 else
6873 for d in $all_debug_types; do
6874 export aros_${d}_debug="0"
6875 done
6878 if test "$debug" != "none"; then
6879 debug=`echo $debug | sed s/,/\ /g`
6880 for d in $debug; do
6881 found="0"
6882 for d2 in $all_debug_types; do
6883 if test "$d2" = "$d"; then
6884 found="1"
6885 break
6887 done
6888 if test "$found" = "0"; then
6889 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6891 export aros_${d}_debug="1"
6892 done
6893 aros_debug="yes"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6896 $as_echo "$debug" >&6; }
6898 if test "$aros_messages_debug" = "1"; then
6899 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6900 else
6901 aros_messages_debug=""
6903 if test "$aros_symbols_debug" = "1"; then
6904 aros_symbols_debug="-g"
6905 else
6906 aros_symbols_debug=""
6909 # These are the flags to pass when compiling debugged programs
6910 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6911 aros_debug_aflags=""
6912 aros_debug_ldflags="$aros_symbols_debug"
6914 #-----------------------------------------------------------------------------
6915 # Checking if we should build crosstools..
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6917 $as_echo_n "checking whether to build crosstools... " >&6; }
6918 # Check whether --enable-crosstools was given.
6919 if test "${enable_crosstools+set}" = set; then :
6920 enableval=$enable_crosstools; crosstools="$enableval"
6921 else
6922 crosstools="no"
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6926 $as_echo "$crosstools" >&6; }
6928 #-----------------------------------------------------------------------------
6929 # Checking for distcc and ccache.
6931 # Always apply the transforms in this particular order. Basically you should
6932 # always run 'ccache distcc compiler' in that order for the best performance.
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6935 $as_echo_n "checking whether to enable distcc... " >&6; }
6936 # Check whether --enable-distcc was given.
6937 if test "${enable_distcc+set}" = set; then :
6938 enableval=$enable_distcc; distcc="$enableval"
6939 else
6940 distcc="no"
6943 if test "$distcc" != "" -a "$distcc" != "no"; then
6944 # AC_CHECK_PROG will print out the result in this case
6945 # Extract the first word of "distcc", so it can be a program name with args.
6946 set dummy distcc; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if ${ac_cv_path_DISTCC+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 case $DISTCC in
6953 [\\/]* | ?:[\\/]*)
6954 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6968 done
6969 done
6970 IFS=$as_save_IFS
6972 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6974 esac
6976 DISTCC=$ac_cv_path_DISTCC
6977 if test -n "$DISTCC"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6979 $as_echo "$DISTCC" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6992 $as_echo_n "checking whether to enable ccache... " >&6; }
6993 # Check whether --enable-ccache was given.
6994 if test "${enable_ccache+set}" = set; then :
6995 enableval=$enable_ccache; ccache="$enableval"
6996 else
6997 ccache="no"
7000 if test "$ccache" != "" -a "$ccache" != "no"; then
7001 # AC_CHECK_PROG will print out the result in this case
7002 # Extract the first word of "ccache", so it can be a program name with args.
7003 set dummy ccache; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_prog_CCACHE+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$CCACHE"; then
7010 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_CCACHE="ccache"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7025 IFS=$as_save_IFS
7029 CCACHE=$ac_cv_prog_CCACHE
7030 if test -n "$CCACHE"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7032 $as_echo "$CCACHE" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7044 #-----------------------------------------------------------------------------
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7046 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7048 # Check whether --with-gcc-version was given.
7049 if test "${with_gcc_version+set}" = set; then :
7050 withval=$with_gcc_version; target_tool_version="$withval"
7051 else
7052 target_tool_version="default"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7056 $as_echo "$target_tool_version" >&6; }
7058 #-----------------------------------------------------------------------------
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7060 $as_echo_n "checking what optimization flags to use... " >&6; }
7062 # Check whether --with-optimization was given.
7063 if test "${with_optimization+set}" = set; then :
7064 withval=$with_optimization; optimization="$withval"
7065 else
7066 optimization="unknown"
7069 if test "$optimization" = "unknown"; then
7070 if test "$debug" != "none"; then
7071 optimization="-O0"
7072 else
7073 optimization="-O2"
7076 aros_config_cflags="$aros_config_cflags $optimization"
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7078 $as_echo "$optimization" >&6; }
7080 #-----------------------------------------------------------------------------
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7082 $as_echo_n "checking what paranoia flags to use... " >&6; }
7084 # Check whether --with-paranoia was given.
7085 if test "${with_paranoia+set}" = set; then :
7086 withval=$with_paranoia; paranoia_flags="$withval"
7087 else
7088 paranoia_flags="default"
7091 if test "$paranoia_flags" = "default"; then
7092 paranoia_flags=""
7093 else if test "$paranoia_flags" = "yes"; then
7094 paranoia_flags="-Wall -Werror"
7095 fi fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7097 $as_echo "$paranoia_flags" >&6; }
7098 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7100 #-----------------------------------------------------------------------------
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7102 $as_echo_n "checking what target variant to enable... " >&6; }
7103 # Check whether --enable-target_variant was given.
7104 if test "${enable_target_variant+set}" = set; then :
7105 enableval=$enable_target_variant; target_variant=$enableval
7106 else
7107 target_variant=""
7110 if test "$target_variant" = ""; then
7111 aros_target_variant=""
7112 aros_target_suffix=""
7113 enableval="none"
7114 else
7115 aros_target_variant="$target_variant"
7116 aros_target_suffix="-$target_variant"
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7119 $as_echo "$enableval" >&6; }
7121 #-----------------------------------------------------------------------------
7122 # Target-specific defaults. You can override then on a per-target basis.
7124 # Bootloader name. Currently used by PC target.
7125 target_bootloader="none"
7127 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7128 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7129 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7130 if test "$crosstools" != "yes"; then
7131 target_tool_prefix=${target_cpu}-elf-
7132 else
7133 target_tool_prefix=${target_cpu}-aros-
7136 #-----------------------------------------------------------------------------
7137 # Additional options for some specific targets
7139 case "$aros_target_variant" in
7140 ios)
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7142 $as_echo_n "checking XCode path... " >&6; }
7144 # Check whether --with-xcode was given.
7145 if test "${with_xcode+set}" = set; then :
7146 withval=$with_xcode; aros_xcode_path="$withval"
7147 else
7148 aros_xcode_path="/Developer"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7152 $as_echo "$aros_xcode_path" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7155 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7157 # Check whether --with-sdk-version was given.
7158 if test "${with_sdk_version+set}" = set; then :
7159 withval=$with_sdk_version; aros_sdk_version="$withval"
7160 else
7161 aros_sdk_version="4.1"
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7165 $as_echo "$aros_sdk_version" >&6; }
7169 "android")
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7171 $as_echo_n "checking Android SDK path... " >&6; }
7173 # Check whether --with-sdk was given.
7174 if test "${with_sdk+set}" = set; then :
7175 withval=$with_sdk; aros_android_sdk="$withval"
7176 else
7177 aros_android_sdk=$default_android_sdk
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7181 $as_echo "$aros_android_sdk" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7184 $as_echo_n "checking Android NDK path... " >&6; }
7186 # Check whether --with-ndk was given.
7187 if test "${with_ndk+set}" = set; then :
7188 withval=$with_ndk; aros_android_ndk="$withval"
7189 else
7190 aros_android_ndk="none"
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7194 $as_echo "$aros_android_ndk" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7197 $as_echo_n "checking what Android SDK version to use... " >&6; }
7199 # Check whether --with-sdk-version was given.
7200 if test "${with_sdk_version+set}" = set; then :
7201 withval=$with_sdk_version; aros_sdk_version="$withval"
7202 else
7203 aros_sdk_version="12"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7207 $as_echo "$aros_sdk_version" >&6; }
7209 if test "$aros_android_ndk" != "none"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7211 $as_echo_n "checking what Android NDK version to use... " >&6; }
7213 # Check whether --with-ndk-version was given.
7214 if test "${with_ndk_version+set}" = set; then :
7215 withval=$with_ndk_version; aros_ndk_version="$withval"
7216 else
7217 aros_ndk_version="9"
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7221 $as_echo "$aros_ndk_version" >&6; }
7224 export PATH="$aros_android_sdk/tools:$PATH"
7225 # Extract the first word of "$android_tool", so it can be a program name with args.
7226 set dummy $android_tool; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_path_android_tool+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 case $android_tool in
7233 [\\/]* | ?:[\\/]*)
7234 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7248 done
7249 done
7250 IFS=$as_save_IFS
7253 esac
7255 android_tool=$ac_cv_path_android_tool
7256 if test -n "$android_tool"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7258 $as_echo "$android_tool" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7265 if test "$android_tool" = ""; then
7266 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7269 aros_android_level=android-$aros_sdk_version
7270 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7271 echo "Platform $aros_android_level is not installed in your SDK"
7272 echo "Use --with-sdk-version=<API level number> to select another platform version"
7273 echo "You can check what plaform versions are installed in your SDK"
7274 echo "by examining contents of $aros_android_sdk/platforms directory"
7275 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7278 # Extract the first word of "ant", so it can be a program name with args.
7279 set dummy ant; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_path_ant+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 case $ant in
7286 [\\/]* | ?:[\\/]*)
7287 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7301 done
7302 done
7303 IFS=$as_save_IFS
7306 esac
7308 ant=$ac_cv_path_ant
7309 if test -n "$ant"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7311 $as_echo "$ant" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7318 if test "$ant" = ""; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7320 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7323 if test "$host_os" = "mingw32"; then
7324 android_tool="cmd //c $android_tool"
7328 esac
7330 #-----------------------------------------------------------------------------
7331 # This is the target configuration switch.
7332 case "$target_os" in
7333 linux*)
7334 aros_target_arch="linux"
7335 aros_target_family="unix"
7336 case "$target_cpu" in
7337 *m68k*)
7338 aros_target_cpu="m68k"
7339 aros_object_format="m68kelf"
7340 aros_flavour="emulcompat"
7341 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7342 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7343 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7344 gcc_target_cpu="mc68000"
7346 *i?86*)
7347 aros_target_cpu="i386"
7348 aros_object_format="elf_i386"
7349 aros_flavour="emulation"
7350 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7351 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7352 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7353 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7354 aros_config_ldflags="-m32 -march=i486"
7355 aros_kernel_ldflags="-melf_i386"
7356 aros_default_wbdepth=8
7357 gcc_target_cpu="i386"
7358 pci_hidd_target="hidd-pci-linux"
7359 android_tool_dir_prefix="x86"
7360 android_tool_prefix="i686-android-linux"
7361 android_ndk_arch="x86"
7363 *x86_64*)
7364 aros_target_cpu="x86_64"
7365 aros_object_format="elf_x86_64"
7366 aros_flavour="emulation"
7367 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7368 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7369 aros_default_wbdepth=8
7370 pci_hidd_target="hidd-pci-linux"
7372 *powerpc*)
7373 aros_target_cpu="ppc"
7374 aros_object_format="elf32ppc"
7375 aros_flavour="emulation"
7376 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7377 aros_default_wbdepth=8
7378 gcc_target_cpu="ppc"
7380 # TODO
7381 # Same as powerpc, but I need this for the nightly build to work again.
7382 # Actually, the nightly should be made working with powerpc target.
7383 # That just was too much work for the moment, another week or two.
7384 *ppc*)
7385 aros_target_cpu="ppc"
7386 aros_object_format="elf32ppc"
7387 aros_flavour="emulation"
7388 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7389 aros_default_wbdepth=8
7390 gcc_target_cpu="ppc"
7392 *arm*)
7393 aros_target_cpu="arm"
7394 aros_object_format="armelf_linux_eabi"
7395 aros_flavour="emulation"
7396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7397 gcc_target_cpu="arm"
7398 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"
7399 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"
7400 aros_arch_libs="-laeabi"
7401 android_tool_dir_prefix="arm-linux-androideabi"
7402 android_tool_prefix="arm-linux-androideabi"
7403 android_ndk_arch="arm"
7406 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7408 esac
7409 case "$aros_target_variant" in
7410 android)
7412 if test "$android_ndk_arch" = ""; then
7413 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7416 aros_default_wbwidth=320
7417 aros_default_wbheight=480
7418 if test "$aros_android_ndk" = "none"; then
7419 aros_kernel_cflags="-mandroid"
7420 aros_kernel_ldflags="-mandroid"
7421 CFLAGS="-mandroid"
7422 else
7423 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7424 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7425 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7426 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7427 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7428 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7430 need_x11=no
7431 x11_hidd_target=kernel-hidd-androidgfx-kobj
7432 target_tool_prefix="$android_tool_prefix-"
7434 esac
7438 aros_target_arch="pc"
7439 aros_shared_default="no"
7440 target_bootloader="grub2"
7441 case "$target_cpu" in
7442 *i?86*)
7443 aros_target_cpu="i386"
7446 if test "$aros_object_format" = "" ; then
7447 aros_object_format="elf_i386"
7449 aros_flavour="standalone"
7450 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7451 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7452 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7453 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7454 aros_config_ldflags="-m32 -march=i486"
7455 aros_kernel_ldflags="-melf_i386"
7456 aros_default_wbwidth=640
7457 aros_default_wbheight=480
7458 gcc_target_cpu="i386"
7460 *x86_64*)
7461 aros_target_cpu="x86_64"
7462 aros_serial_debug=1
7463 if test "$aros_object_format" = "" ; then
7464 aros_object_format="elf_x86_64"
7466 aros_flavour="standalone"
7467 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7468 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7469 aros_kernel_ldflags=""
7470 aros_default_wbwidth=640
7471 aros_default_wbheight=480
7474 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7476 esac
7479 prep)
7480 aros_target_arch="prep"
7481 aros_shared_default="no"
7482 aros_target_cpu="ppc"
7483 aros_object_format="elf32ppc"
7484 aros_flavour="ppcnative"
7485 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7486 aros_kernel_ldflags=""
7487 aros_default_wbwidth=640
7488 aros_default_wbheight=480
7489 gcc_target_cpu="ppc"
7492 freebsd*)
7493 aros_target_arch="freebsd"
7494 aros_target_family="unix"
7495 aros_target_cpu="i386"
7496 aros_flavour="emulation"
7497 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7498 gcc_target_cpu="i386"
7500 aros_target_strip_flags="-x"
7503 darwin*)
7504 aros_target_arch="darwin"
7505 aros_target_family="unix"
7506 aros_flavour="emulation"
7507 case "$target_cpu" in
7508 *i?86*)
7509 aros_ios_platform="iPhoneSimulator"
7510 aros_target_cpu="i386"
7511 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7512 aros_kernel_ldflags=""
7513 aros_macosx_version="10.4"
7514 aros_default_wbdepth=8
7515 gcc_target_cpu="i386"
7516 aros_object_format="elf_i386"
7517 aros_kernel_ar_flags="-cr"
7518 aros_target_strip_flags="-x"
7519 target_tool_prefix="i686-apple-darwin10-"
7520 target_tool_flags="-m32"
7522 *x86_64*)
7523 aros_target_cpu="x86_64"
7524 aros_object_format="elf_x86_64"
7525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7526 aros_macosx_version="10.6"
7527 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7528 aros_kernel_cflags="-m64"
7529 aros_kernel_ldflags="-m64"
7530 aros_target_cflags="-mcmodel=large"
7531 aros_default_wbdepth=8
7532 aros_kernel_ar="ar"
7533 aros_kernel_ar_flags="-cr"
7534 aros_kernel_ld="ld"
7535 aros_kernel_ranlib="ranlib"
7536 target_tool_prefix="i686-apple-darwin10-"
7538 *ppc*)
7539 aros_target_cpu="ppc"
7540 aros_object_format="elf32ppc"
7541 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7542 aros_kernel_ldflags=""
7543 aros_macosx_version="10.0"
7544 aros_default_wbdepth=8
7545 gcc_target_cpu="ppc"
7546 aros_kernel_ar="ar"
7547 aros_kernel_ar_flags="-cr"
7548 aros_kernel_ld="ld -arch ppc"
7549 aros_kernel_ranlib="ranlib -arch ppc"
7550 target_tool_prefix="powerpc-apple-darwin10-"
7552 *arm*)
7553 aros_ios_platform="iPhoneOS"
7554 aros_target_cpu="arm"
7555 aros_object_format="armelf_linux_eabi"
7556 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7557 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7558 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7559 aros_arch_libs="-laeabi"
7560 aros_default_wbdepth=8
7561 gcc_target_cpu="arm"
7562 aros_kernel_ar="ar"
7563 aros_kernel_ar_flags="-cr"
7564 aros_kernel_ld="ld -arch arm"
7565 aros_kernel_ranlib="ranlib -arch arm"
7566 target_tool_prefix="arm-apple-darwin10-"
7567 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7570 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7572 esac
7573 case "$aros_target_variant" in
7574 ios)
7575 aros_ios_version="3.0"
7576 aros_default_wbwidth=320
7577 aros_default_wbheight=480
7578 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7579 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7580 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7581 need_x11=no
7582 # This is here because it may depend on iOS or SDK version
7583 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7584 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7585 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7588 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7589 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7591 esac
7594 dragonfly*)
7595 aros_target_arch="dragonfly"
7596 aros_target_family="unix"
7597 aros_flavour="emulation"
7598 case "$target_cpu" in
7599 *i?86*)
7600 aros_target_cpu="i386"
7601 aros_object_format="elf_i386"
7602 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7604 *x86_64*)
7605 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7606 aros_target_cpu="x86_64"
7607 aros_object_format="elf_x86_64"
7608 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7611 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7613 esac
7616 netbsd*)
7617 aros_target_arch="netbsd"
7618 aros_target_family="unix"
7619 case "$target_cpu" in
7620 *m68k*)
7621 aros_target_cpu="m68k"
7622 aros_object_format="m68kelf"
7623 aros_flavour="emulcompat"
7624 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7625 gcc_target_cpu="mc68000"
7627 *i?86*)
7628 aros_target_cpu="i386"
7629 aros_object_format="elf_i386"
7630 aros_flavour="emulation"
7631 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7632 aros_default_wbdepth=8
7633 gcc_target_cpu="i386"
7636 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7638 esac
7639 aros_target_genmap="-Wl,-M -Xlinker >"
7640 aros_flavour="emulation"
7641 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7644 openbsd*)
7645 aros_target_arch="openbsd"
7646 aros_target_family="unix"
7647 case "$target_cpu" in
7648 *i?86*)
7649 aros_target_cpu="i386"
7650 aros_object_format="elf_i386"
7651 aros_flavour="emulation"
7652 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7653 gcc_target_cpu="i386"
7656 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7658 esac
7659 aros_target_genmap="-Wl,-M -Xlinker >"
7660 aros_target_nm_flags="-u"
7661 aros_flavour="emulation"
7664 solaris*)
7665 aros_target_arch="solaris"
7666 aros_target_family="unix"
7667 case "$target_cpu" in
7668 *i?86*)
7669 aros_target_cpu="i386"
7670 aros_object_format="elf_i386"
7671 aros_flavour="emulation"
7672 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7673 aros_default_wbdepth=8
7674 gcc_target_cpu="i386"
7676 *sparc*)
7677 aros_target_cpu="sparc"
7678 aros_object_format="elf_sparc"
7679 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7680 gcc_target_cpu="sparc"
7683 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7685 esac
7686 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7687 aros_flavour="emulation"
7690 morphos*)
7691 aros_target_arch="morphos"
7692 aros_shared_default="no"
7693 aros_target_cpu="ppc"
7694 aros_object_format="elf_ppc"
7695 aros_flavour="nativecompat"
7696 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7697 gcc_target_cpu="ppc"
7700 sam440)
7701 aros_target_arch="sam440"
7702 aros_shared_default="no"
7703 aros_target_cpu="ppc"
7704 aros_object_format="elf32ppc"
7705 aros_flavour="ppcnative"
7706 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7707 aros_kernel_ldflags=""
7708 aros_default_wbwidth=1024
7709 aros_default_wbheight=768
7710 aros_default_wbdepth=24
7711 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7712 gcc_target_cpu="powerpc"
7715 efika)
7716 aros_target_arch="efika"
7717 aros_shared_default="no"
7718 aros_target_cpu="arm"
7719 aros_object_format="armelf_linux_eabi"
7720 aros_flavour="standalone"
7721 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7722 aros_kernel_ldflags=""
7723 aros_default_wbwidth=1024
7724 aros_default_wbheight=600
7725 aros_arch_libs="-laeabi"
7726 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"
7727 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"
7730 chrp)
7731 aros_target_arch="chrp"
7732 aros_shared_default="no"
7733 aros_target_cpu="ppc"
7734 aros_object_format="elf32ppc"
7735 aros_flavour="ppcnative"
7736 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7737 aros_kernel_ldflags=""
7738 aros_default_wbwidth=640
7739 aros_default_wbheight=480
7740 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7741 gcc_target_cpu="powerpc"
7742 case "$aros_target_variant" in
7743 efika)
7744 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7746 esac
7749 amiga*)
7750 aros_target_arch="amiga"
7751 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7752 aros_shared_default="no"
7754 case "$target_cpu" in
7755 *m68k*)
7756 # Check whether --enable-amigaos_compliance was given.
7757 if test "${enable_amigaos_compliance+set}" = set; then :
7758 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7761 aros_enable_mmu=no
7762 aros_target_cpu="m68k"
7763 aros_object_format="m68kelf"
7764 aros_flavour="standcompat"
7765 gcc_target_cpu="m68000"
7766 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7767 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7768 target_tool_prefix="m68k-elf-"
7769 # Needed to get the correct multilib
7770 aros_config_ldflags="-${gcc_target_cpu}"
7771 aros_shared_ldflags="-${gcc_target_cpu}"
7772 aros_kernel_ldflags="-${gcc_target_cpu}"
7773 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7774 aros_target_strip_flags="-R.comment --strip-debug"
7775 aros_default_wbwidth=640
7776 aros_default_wbheight=256
7777 aros_default_wbdepth=2
7779 *ppc*)
7780 aros_cpu="ppc"
7781 aros_flavour="native"
7782 gcc_target_cpu="ppc"
7785 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7787 esac
7790 mingw*)
7791 aros_target_arch="mingw32"
7792 aros_shared_default="no"
7793 aros_flavour="emulation"
7794 aros_shared_cflags=""
7795 need_dlopen="no"
7796 rescomp="windres"
7797 case "$target_cpu" in
7798 *i?86*)
7799 aros_target_cpu="i386"
7800 aros_object_format="elf_i386"
7801 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7802 aros_default_wbdepth=8
7803 gcc_target_cpu="i386"
7805 aros_target_as="i386-aros-as"
7806 aros_target_ar="i386-aros-ar"
7807 aros_target_ranlib="i386-aros-ranlib"
7808 aros_target_nm="i386-aros-nm"
7809 aros_target_strip="i386-aros-strip"
7810 aros_target_objcopy="i386-aros-objcopy"
7811 aros_target_objdump="i386-aros-objdump"
7813 target_tool_prefix="i386-mingw32-"
7815 *x86_64*)
7816 aros_target_cpu="x86_64"
7817 aros_object_format="elf_x86_64"
7818 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7819 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7820 aros_default_wbdepth=8
7821 target_tool_prefix="x86_64-w64-mingw32-"
7823 *arm*)
7824 aros_target_cpu="arm"
7825 aros_object_format="armelf_linux_eabi"
7826 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7827 aros_arch_libs="-laeabi"
7828 aros_default_wbdepth=8
7829 gcc_target_cpu="arm"
7830 target_tool_prefix="arm-mingw32ce-"
7831 aros_default_wbwidth=160
7832 aros_default_wbheight=160
7835 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7837 esac
7838 if test $host_os = "cygwin"; then
7839 aros_kernel_cflags="-mno-cygwin"
7842 pp*)
7843 aros_target_arch="pp"
7844 aros_shared_default="no"
7845 case "$target_cpu" in
7846 *m68k*)
7847 aros_target_cpu="m68k"
7848 aros_object_format="m68kelf"
7849 aros_flavour="palmnative"
7850 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7851 aros_default_wbwidth=160
7852 aros_default_wbheight=160
7853 aros_default_wbdepth=1
7854 aros_target_ar_flags="cru"
7855 aros_compiler_libs="-lgcc1"
7856 aros_shared_default=no
7857 aros_shared_cflags="-fpic"
7858 aros_shared_aflags=""
7859 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7860 aros_kernel_ldflags="-Wl,-rpath,./lib"
7861 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7862 aros_debug_aflags=""
7863 aros_debug_ldflags="$aros_symbols_debug"
7864 aros_mungwall_debug="0"
7865 aros_modules_debug="0"
7866 gcc_target_cpu="mc68000"
7867 ignore_undefined_symbols="-ius"
7870 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7872 esac
7875 mac*)
7876 aros_target_arch="mac"
7877 aros_shared_default="no"
7878 case "$target_cpu" in
7879 *m68k*)
7880 aros_target_cpu="m68k"
7881 aros_object_format="m68kelf"
7882 aros_flavour="mac68knative"
7883 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7884 aros_default_wbwidth=512
7885 aros_default_wbheight=384
7886 aros_default_wbdepth=8
7887 aros_target_ar_flags="cru"
7888 aros_compiler_libs="-lgcc1"
7889 aros_shared_default=no
7890 aros_shared_cflags="-fpic"
7891 aros_shared_aflags=""
7892 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7893 aros_kernel_ldflags="-Wl,-rpath,./lib"
7894 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7895 aros_debug_aflags=""
7896 aros_debug_ldflags="$aros_symbols_debug"
7897 aros_mungwall_debug="0"
7898 aros_modules_debug="0"
7899 gcc_target_cpu="mc68000"
7900 ignore_undefined_symbols="-ius"
7903 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7905 esac
7909 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7911 esac
7913 # Some formats need custom ELF specs.
7914 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
7915 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
7916 elf_specs_in=config/${aros_object_format}-specs.in
7917 else
7918 elf_specs_in=config/elf-specs.in
7921 #-----------------------------------------------------------------------------
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7923 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7925 # Check whether --with-crosstools was given.
7926 if test "${with_crosstools+set}" = set; then :
7927 withval=$with_crosstools; with_crosstools=$withval
7928 else
7929 with_crosstools="default"
7932 if test "$with_crosstools" = "default"; then
7933 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7934 else
7935 AROS_CROSSTOOLSDIR="$with_crosstools"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7938 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7940 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
7943 use_aros_gcc=yes
7944 PATH=$AROS_CROSSTOOLSDIR:$PATH
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7948 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7950 # Check whether --with-aros-gcc was given.
7951 if test "${with_aros_gcc+set}" = set; then :
7952 withval=$with_aros_gcc; aros_gcc_version="$withval"
7953 else
7954 aros_gcc_version="$use_aros_gcc"
7957 case "$aros_gcc_version" in
7958 yes)
7959 aros_gcc_version="default"
7962 aros_gcc_version="none"
7964 esac
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7966 $as_echo "$aros_gcc_version" >&6; }
7968 if test "$aros_gcc_version" != "none"; then
7971 if test "$aros_gcc_version" != "default"; then
7972 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7973 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7974 else
7975 aros_target_cc="$aros_target_cpu-aros-gcc"
7976 aros_target_cxx="$aros_target_cpu-aros-g++"
7979 aros_target_ld="$aros_target_cpu-aros-ld"
7980 aros_target_as="$aros_target_cpu-aros-as"
7981 aros_target_ar="$aros_target_cpu-aros-ar"
7982 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7983 aros_target_nm="$aros_target_cpu-aros-nm"
7984 aros_target_strip="$aros_target_cpu-aros-strip"
7985 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7986 aros_target_objdump="$aros_target_cpu-aros-objdump"
7989 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7990 # Since we override specs, we may need to put these defines there
7991 if test "$gcc_target_cpu" != ""; then
7992 gcc_target_cpu="-D__${gcc_target_cpu}__"
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7996 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7998 # Check whether --with-portssources was given.
7999 if test "${with_portssources+set}" = set; then :
8000 withval=$with_portssources; with_portssrcdir=$withval
8001 else
8002 with_portssrcdir="default"
8005 if test "$with_portssrcdir" = "default"; then
8006 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8007 else
8008 AROS_PORTSSRCDIR="$with_portssrcdir"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8011 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8014 $as_echo_n "checking which bootloader to use... " >&6; }
8016 # Check whether --with-bootloader was given.
8017 if test "${with_bootloader+set}" = set; then :
8018 withval=$with_bootloader; target_bootloader=$withval
8019 else
8020 target_bootloader=$target_bootloader
8023 if test "$target_bootloader" = "none"; then
8024 aros_target_bootloader=""
8025 else
8026 aros_target_bootloader="$target_bootloader"
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8029 $as_echo "$target_bootloader" >&6; }
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8032 $as_echo_n "checking which icon-set to use... " >&6; }
8034 # Check whether --with-iconset was given.
8035 if test "${with_iconset+set}" = set; then :
8036 withval=$with_iconset; target_iconset=$withval
8037 else
8038 target_iconset="default"
8041 if test "$target_iconset" = "default"; then
8042 aros_target_iconset="Gorilla"
8043 target_iconset="default (Gorilla)"
8044 else
8045 aros_target_iconset="$target_iconset"
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8048 $as_echo "$target_iconset" >&6; }
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8051 $as_echo_n "checking which GUI Theme to use... " >&6; }
8053 # Check whether --with-theme was given.
8054 if test "${with_theme+set}" = set; then :
8055 withval=$with_theme; target_guitheme=$withval
8056 else
8057 target_guitheme="default"
8060 if test "$target_guitheme" = "default"; then
8061 aros_target_guitheme="Ice"
8062 else
8063 aros_target_guitheme="$target_guitheme"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8066 $as_echo "$aros_target_guitheme" >&6; }
8068 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8069 # for target code)
8070 cross_compiling=no
8071 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8072 cross_compiling=yes
8075 if test "$aros_host_cpu" == "x86_64" ; then
8076 if test "$aros_target_cpu" == "i386" ; then
8077 if test "$aros_target_arch" != "mingw32"; then
8078 cross_compiling=no
8083 if test "$aros_host_arch" == "darwin" ; then
8084 if test "$aros_target_arch" != "darwin" ; then
8085 cross_compiling=yes
8089 if test "$aros_host_arch" == "mingw32" ; then
8090 if test "$aros_target_arch" != "mingw32" ; then
8091 cross_compiling=yes
8095 # I want to have this information in configure output, although it might be
8096 # misleading, e.g. for darwin hosted you cannot compile target code without a
8097 # cross compiler, but here it says no.
8099 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8100 # Target code is a little bit different thing.
8101 # sonic
8102 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8104 # Set prefix for target compiler etc. if we're cross-compiling
8105 # (should possibly be earlier but needs to be after AC_PROG_CC)
8106 if test "$cross_compiling" = "yes" ; then
8108 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8109 if test "$aros_gcc_version" != "none"; then
8112 target_tool_prefix=${target_cpu}-aros-
8113 target_tool_version=$aros_gcc_version
8114 use_kernel_cc_wrapper=yes
8116 aros_target_cc=
8117 aros_target_ld=
8118 aros_target_as=
8119 aros_target_ar=
8120 aros_target_ranlib=
8121 aros_target_nm=
8122 aros_target_strip=
8123 aros_target_objcopy=
8124 aros_target_objdump=
8128 CC=${target_tool_prefix}gcc
8129 CPP=${target_tool_prefix}cpp
8130 if test "$target_tool_version" != "default"; then
8131 CC="$CC-$target_tool_version"
8132 CPP="$CC-$target_tool_version"
8134 if test "$crosstools" != "yes" ; then
8135 # Extract the first word of "$CC", so it can be a program name with args.
8136 set dummy $CC; ac_word=$2
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138 $as_echo_n "checking for $ac_word... " >&6; }
8139 if ${ac_cv_path_CC+:} false; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 case $CC in
8143 [\\/]* | ?:[\\/]*)
8144 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8158 done
8159 done
8160 IFS=$as_save_IFS
8163 esac
8165 CC=$ac_cv_path_CC
8166 if test -n "$CC"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8168 $as_echo "$CC" >&6; }
8169 else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8175 if test "$CC" = ""; then
8176 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8178 else
8179 CC=$AROS_CROSSTOOLSDIR/$CC
8182 CC="$CC $target_tool_flags"
8184 #-----------------------------------------------------------------------------
8186 # Disable pointer-signedness warnings if the compiler recognises the option
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8189 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8190 save_cflags="$CFLAGS"
8191 if test "$crosstools" != "yes" ; then
8192 CFLAGS="$CFLAGS -Wno-pointer-sign"
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8197 main ()
8201 return 0;
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205 use_no_sign_warning="yes"
8206 else
8207 use_no_sign_warning="no"
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 else
8211 # we do know it is supported for the smallest version of gcc we are going to build
8212 # we assume it's also supported by later versions
8213 use_no_sign_warning=yes
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8216 $as_echo "$use_no_sign_warning" >&6; }
8217 if test "x-$use_no_sign_warning" = "x-yes" ; then
8218 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8220 CFLAGS="$save_cflags"
8222 #-----------------------------------------------------------------------------
8224 # Find all the tools we need to compile. This could be cross-compiling
8225 # though! If that is the case we use the GNU form of the target and
8226 # simply add this to the front of the binary name. This is rather simple,
8227 # but it should work under most circumstances.
8229 # The default tools are to use the same as the host, but only if the
8230 # host and target CPU are the same. With GCC this is normally enough.
8233 aros_cc_pre=""
8234 aros_shared_ld="$aros_host_ld"
8236 aros_target_mkdep="$aros_host_mkdep"
8237 aros_target_incl_def="$aros_host_incl"
8239 aros_kernel_cc="$CC"
8241 # The default tools executables to be linked to.
8242 if test "$rescomp" != ""; then
8243 if test "$cross_compiling" = "yes" ; then
8244 rescomp=${target_tool_prefix}${rescomp}
8246 # Extract the first word of "$rescomp", so it can be a program name with args.
8247 set dummy $rescomp; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 case $aros_kernel_rescomp in
8254 [\\/]* | ?:[\\/]*)
8255 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 for as_dir in $PATH
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8265 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 break 2
8269 done
8270 done
8271 IFS=$as_save_IFS
8274 esac
8276 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8277 if test -n "$aros_kernel_rescomp"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8279 $as_echo "$aros_kernel_rescomp" >&6; }
8280 else
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8286 if test "$aros_kernel_rescomp" = ""; then
8287 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8291 if test "$crosstools" != "yes"; then
8293 if test "$aros_kernel_ld" = ""; then
8294 if test "$cross_compiling" = "yes" ; then
8295 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8296 set dummy ${target_tool_prefix}ld; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 case $aros_kernel_ld in
8303 [\\/]* | ?:[\\/]*)
8304 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8318 done
8319 done
8320 IFS=$as_save_IFS
8323 esac
8325 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8326 if test -n "$aros_kernel_ld"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8328 $as_echo "$aros_kernel_ld" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8335 else
8336 if test "$GCC" = "yes"; then
8337 aros_gcc_ld=`$CC -print-prog-name=ld`
8338 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8339 set dummy `basename $aros_gcc_ld`; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 case $aros_kernel_ld in
8346 [\\/]* | ?:[\\/]*)
8347 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in `dirname $aros_gcc_ld`
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8357 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8361 done
8362 done
8363 IFS=$as_save_IFS
8366 esac
8368 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8369 if test -n "$aros_kernel_ld"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8371 $as_echo "$aros_kernel_ld" >&6; }
8372 else
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8379 if test "$aros_kernel_ld" = ""; then
8380 # Extract the first word of "ld", so it can be a program name with args.
8381 set dummy ld; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 case $aros_kernel_ld in
8388 [\\/]* | ?:[\\/]*)
8389 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8403 done
8404 done
8405 IFS=$as_save_IFS
8408 esac
8410 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8411 if test -n "$aros_kernel_ld"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8413 $as_echo "$aros_kernel_ld" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8422 else
8423 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8424 set dummy $aros_kernel_ld; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 case $aros_kernel_ld in
8431 [\\/]* | ?:[\\/]*)
8432 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8442 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 break 2
8446 done
8447 done
8448 IFS=$as_save_IFS
8451 esac
8453 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8454 if test -n "$aros_kernel_ld"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8456 $as_echo "$aros_kernel_ld" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8465 if test "$aros_kernel_ld" = ""; then
8466 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8469 if test "$aros_kernel_ar" = ""; then
8470 if test "$cross_compiling" = "yes" ; then
8471 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8472 set dummy ${target_tool_prefix}ar; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 case $aros_kernel_ar in
8479 [\\/]* | ?:[\\/]*)
8480 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 for as_dir in $PATH
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8490 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 break 2
8494 done
8495 done
8496 IFS=$as_save_IFS
8499 esac
8501 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8502 if test -n "$aros_kernel_ar"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8504 $as_echo "$aros_kernel_ar" >&6; }
8505 else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8511 else
8512 if test "$GCC" = "yes"; then
8513 aros_gcc_ar=`$CC -print-prog-name=ar`
8514 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8515 set dummy `basename $aros_gcc_ar`; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 case $aros_kernel_ar in
8522 [\\/]* | ?:[\\/]*)
8523 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 for as_dir in `dirname $aros_gcc_ar`
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8533 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8537 done
8538 done
8539 IFS=$as_save_IFS
8542 esac
8544 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8545 if test -n "$aros_kernel_ar"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8547 $as_echo "$aros_kernel_ar" >&6; }
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8555 if test "$aros_kernel_ar" = ""; then
8556 # Extract the first word of "ar", so it can be a program name with args.
8557 set dummy ar; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 case $aros_kernel_ar in
8564 [\\/]* | ?:[\\/]*)
8565 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8575 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8579 done
8580 done
8581 IFS=$as_save_IFS
8584 esac
8586 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8587 if test -n "$aros_kernel_ar"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8589 $as_echo "$aros_kernel_ar" >&6; }
8590 else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8598 else
8599 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8600 set dummy $aros_kernel_ar; ac_word=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 case $aros_kernel_ar in
8607 [\\/]* | ?:[\\/]*)
8608 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8622 done
8623 done
8624 IFS=$as_save_IFS
8627 esac
8629 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8630 if test -n "$aros_kernel_ar"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8632 $as_echo "$aros_kernel_ar" >&6; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8641 if test "$aros_kernel_ar" = ""; then
8642 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8645 if test "$aros_kernel_ranlib" = ""; then
8646 if test "$cross_compiling" = "yes" ; then
8647 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8648 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 case $aros_kernel_ranlib in
8655 [\\/]* | ?:[\\/]*)
8656 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8670 done
8671 done
8672 IFS=$as_save_IFS
8675 esac
8677 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8678 if test -n "$aros_kernel_ranlib"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8680 $as_echo "$aros_kernel_ranlib" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8687 else
8688 if test "$GCC" = "yes"; then
8689 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8690 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8691 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 case $aros_kernel_ranlib in
8698 [\\/]* | ?:[\\/]*)
8699 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in `dirname $aros_gcc_ranlib`
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8709 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8713 done
8714 done
8715 IFS=$as_save_IFS
8718 esac
8720 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8721 if test -n "$aros_kernel_ranlib"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8723 $as_echo "$aros_kernel_ranlib" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8731 if test "$aros_kernel_ranlib" = ""; then
8732 # Extract the first word of "ranlib", so it can be a program name with args.
8733 set dummy ranlib; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 case $aros_kernel_ranlib in
8740 [\\/]* | ?:[\\/]*)
8741 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8755 done
8756 done
8757 IFS=$as_save_IFS
8760 esac
8762 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8763 if test -n "$aros_kernel_ranlib"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8765 $as_echo "$aros_kernel_ranlib" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8774 else
8775 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8776 set dummy $aros_kernel_ranlib; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 case $aros_kernel_ranlib in
8783 [\\/]* | ?:[\\/]*)
8784 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8794 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8798 done
8799 done
8800 IFS=$as_save_IFS
8803 esac
8805 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8806 if test -n "$aros_kernel_ranlib"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8808 $as_echo "$aros_kernel_ranlib" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8817 if test "$aros_kernel_ranlib" = ""; then
8818 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8821 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8822 target_tool_prefix=${target_cpu}-elf-
8823 if test "$aros_target_cc" == ""; then
8824 aros_target_cc="${target_tool_prefix}gcc"
8826 if test "$aros_target_ld" == ""; then
8827 aros_target_ld="${target_tool_prefix}ld"
8831 if test "$aros_target_as" = ""; then
8832 if test "$cross_compiling" = "yes" ; then
8833 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8834 set dummy ${target_tool_prefix}as; ac_word=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 case $aros_target_as_ln in
8841 [\\/]* | ?:[\\/]*)
8842 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8856 done
8857 done
8858 IFS=$as_save_IFS
8861 esac
8863 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8864 if test -n "$aros_target_as_ln"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8866 $as_echo "$aros_target_as_ln" >&6; }
8867 else
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 $as_echo "no" >&6; }
8873 else
8874 if test "$GCC" = "yes"; then
8875 aros_gcc_as=`$CC -print-prog-name=as`
8876 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8877 set dummy `basename $aros_gcc_as`; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 case $aros_target_as_ln in
8884 [\\/]* | ?:[\\/]*)
8885 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in `dirname $aros_gcc_as`
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8899 done
8900 done
8901 IFS=$as_save_IFS
8904 esac
8906 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8907 if test -n "$aros_target_as_ln"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8909 $as_echo "$aros_target_as_ln" >&6; }
8910 else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8917 if test "$aros_target_as_ln" = ""; then
8918 # Extract the first word of "as", so it can be a program name with args.
8919 set dummy as; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 case $aros_target_as_ln in
8926 [\\/]* | ?:[\\/]*)
8927 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939 break 2
8941 done
8942 done
8943 IFS=$as_save_IFS
8946 esac
8948 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8949 if test -n "$aros_target_as_ln"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8951 $as_echo "$aros_target_as_ln" >&6; }
8952 else
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8960 else
8961 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8962 set dummy $aros_target_as; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 case $aros_target_as_ln in
8969 [\\/]* | ?:[\\/]*)
8970 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 for as_dir in $PATH
8976 IFS=$as_save_IFS
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8980 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982 break 2
8984 done
8985 done
8986 IFS=$as_save_IFS
8989 esac
8991 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8992 if test -n "$aros_target_as_ln"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8994 $as_echo "$aros_target_as_ln" >&6; }
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
9003 if test "$aros_target_as_ln" = ""; then
9004 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9007 if test "$aros_target_ar" = ""; then
9008 if test "$cross_compiling" = "yes" ; then
9009 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9010 set dummy ${target_tool_prefix}ar; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 case $aros_target_ar_ln in
9017 [\\/]* | ?:[\\/]*)
9018 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9028 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9032 done
9033 done
9034 IFS=$as_save_IFS
9037 esac
9039 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9040 if test -n "$aros_target_ar_ln"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9042 $as_echo "$aros_target_ar_ln" >&6; }
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9049 else
9050 if test "$GCC" = "yes"; then
9051 aros_gcc_ar=`$CC -print-prog-name=ar`
9052 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9053 set dummy `basename $aros_gcc_ar`; ac_word=$2
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9055 $as_echo_n "checking for $ac_word... " >&6; }
9056 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 case $aros_target_ar_ln in
9060 [\\/]* | ?:[\\/]*)
9061 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in `dirname $aros_gcc_ar`
9067 IFS=$as_save_IFS
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9071 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 break 2
9075 done
9076 done
9077 IFS=$as_save_IFS
9080 esac
9082 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9083 if test -n "$aros_target_ar_ln"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9085 $as_echo "$aros_target_ar_ln" >&6; }
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9093 if test "$aros_target_ar_ln" = ""; then
9094 # Extract the first word of "ar", so it can be a program name with args.
9095 set dummy ar; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 case $aros_target_ar_ln in
9102 [\\/]* | ?:[\\/]*)
9103 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9117 done
9118 done
9119 IFS=$as_save_IFS
9122 esac
9124 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9125 if test -n "$aros_target_ar_ln"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9127 $as_echo "$aros_target_ar_ln" >&6; }
9128 else
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9136 else
9137 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9138 set dummy $aros_target_ar; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 case $aros_target_ar_ln in
9145 [\\/]* | ?:[\\/]*)
9146 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9156 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 break 2
9160 done
9161 done
9162 IFS=$as_save_IFS
9165 esac
9167 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9168 if test -n "$aros_target_ar_ln"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9170 $as_echo "$aros_target_ar_ln" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9179 if test "$aros_target_ar_ln" = ""; then
9180 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9183 if test "$aros_target_nm" = ""; then
9184 if test "$cross_compiling" = "yes" ; then
9185 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9186 set dummy ${target_tool_prefix}nm; ac_word=$2
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 $as_echo_n "checking for $ac_word... " >&6; }
9189 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 case $aros_target_nm_ln in
9193 [\\/]* | ?:[\\/]*)
9194 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 for as_dir in $PATH
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 break 2
9208 done
9209 done
9210 IFS=$as_save_IFS
9213 esac
9215 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9216 if test -n "$aros_target_nm_ln"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9218 $as_echo "$aros_target_nm_ln" >&6; }
9219 else
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9225 else
9226 if test "$GCC" = "yes"; then
9227 aros_gcc_nm=`$CC -print-prog-name=nm`
9228 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9229 set dummy `basename $aros_gcc_nm`; ac_word=$2
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9231 $as_echo_n "checking for $ac_word... " >&6; }
9232 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 case $aros_target_nm_ln in
9236 [\\/]* | ?:[\\/]*)
9237 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241 for as_dir in `dirname $aros_gcc_nm`
9243 IFS=$as_save_IFS
9244 test -z "$as_dir" && as_dir=.
9245 for ac_exec_ext in '' $ac_executable_extensions; do
9246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9247 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9249 break 2
9251 done
9252 done
9253 IFS=$as_save_IFS
9256 esac
9258 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9259 if test -n "$aros_target_nm_ln"; then
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9261 $as_echo "$aros_target_nm_ln" >&6; }
9262 else
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264 $as_echo "no" >&6; }
9269 if test "$aros_target_nm_ln" = ""; then
9270 # Extract the first word of "nm", so it can be a program name with args.
9271 set dummy nm; ac_word=$2
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9273 $as_echo_n "checking for $ac_word... " >&6; }
9274 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 case $aros_target_nm_ln in
9278 [\\/]* | ?:[\\/]*)
9279 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 for as_dir in $PATH
9285 IFS=$as_save_IFS
9286 test -z "$as_dir" && as_dir=.
9287 for ac_exec_ext in '' $ac_executable_extensions; do
9288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9289 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291 break 2
9293 done
9294 done
9295 IFS=$as_save_IFS
9298 esac
9300 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9301 if test -n "$aros_target_nm_ln"; then
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9303 $as_echo "$aros_target_nm_ln" >&6; }
9304 else
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9312 else
9313 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9314 set dummy $aros_target_nm; ac_word=$2
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316 $as_echo_n "checking for $ac_word... " >&6; }
9317 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 case $aros_target_nm_ln in
9321 [\\/]* | ?:[\\/]*)
9322 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9332 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9336 done
9337 done
9338 IFS=$as_save_IFS
9341 esac
9343 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9344 if test -n "$aros_target_nm_ln"; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9346 $as_echo "$aros_target_nm_ln" >&6; }
9347 else
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9355 if test "$aros_target_nm_ln" = ""; then
9356 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9359 if test "$aros_target_objcopy" = ""; then
9360 if test "$cross_compiling" = "yes" ; then
9361 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9362 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 case $aros_target_objcopy_ln in
9369 [\\/]* | ?:[\\/]*)
9370 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 break 2
9384 done
9385 done
9386 IFS=$as_save_IFS
9389 esac
9391 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9392 if test -n "$aros_target_objcopy_ln"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9394 $as_echo "$aros_target_objcopy_ln" >&6; }
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9401 else
9402 if test "$GCC" = "yes"; then
9403 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9404 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9405 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 case $aros_target_objcopy_ln in
9412 [\\/]* | ?:[\\/]*)
9413 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417 for as_dir in `dirname $aros_gcc_objcopy`
9419 IFS=$as_save_IFS
9420 test -z "$as_dir" && as_dir=.
9421 for ac_exec_ext in '' $ac_executable_extensions; do
9422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9423 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9425 break 2
9427 done
9428 done
9429 IFS=$as_save_IFS
9432 esac
9434 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9435 if test -n "$aros_target_objcopy_ln"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9437 $as_echo "$aros_target_objcopy_ln" >&6; }
9438 else
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9445 if test "$aros_target_objcopy_ln" = ""; then
9446 # Extract the first word of "objcopy", so it can be a program name with args.
9447 set dummy objcopy; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 case $aros_target_objcopy_ln in
9454 [\\/]* | ?:[\\/]*)
9455 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9469 done
9470 done
9471 IFS=$as_save_IFS
9474 esac
9476 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9477 if test -n "$aros_target_objcopy_ln"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9479 $as_echo "$aros_target_objcopy_ln" >&6; }
9480 else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9488 else
9489 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9490 set dummy $aros_target_objcopy; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 case $aros_target_objcopy_ln in
9497 [\\/]* | ?:[\\/]*)
9498 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9512 done
9513 done
9514 IFS=$as_save_IFS
9517 esac
9519 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9520 if test -n "$aros_target_objcopy_ln"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9522 $as_echo "$aros_target_objcopy_ln" >&6; }
9523 else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9531 if test "$aros_target_objcopy_ln" = ""; then
9532 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9535 if test "$aros_target_objdump" = ""; then
9536 if test "$cross_compiling" = "yes" ; then
9537 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9538 set dummy ${target_tool_prefix}objdump; ac_word=$2
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540 $as_echo_n "checking for $ac_word... " >&6; }
9541 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 case $aros_target_objdump_ln in
9545 [\\/]* | ?:[\\/]*)
9546 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 for as_dir in $PATH
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 break 2
9560 done
9561 done
9562 IFS=$as_save_IFS
9565 esac
9567 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9568 if test -n "$aros_target_objdump_ln"; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9570 $as_echo "$aros_target_objdump_ln" >&6; }
9571 else
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 $as_echo "no" >&6; }
9577 else
9578 if test "$GCC" = "yes"; then
9579 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9580 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9581 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583 $as_echo_n "checking for $ac_word... " >&6; }
9584 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 case $aros_target_objdump_ln in
9588 [\\/]* | ?:[\\/]*)
9589 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in `dirname $aros_gcc_objdump`
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9599 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 break 2
9603 done
9604 done
9605 IFS=$as_save_IFS
9608 esac
9610 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9611 if test -n "$aros_target_objdump_ln"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9613 $as_echo "$aros_target_objdump_ln" >&6; }
9614 else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 $as_echo "no" >&6; }
9621 if test "$aros_target_objdump_ln" = ""; then
9622 # Extract the first word of "objdump", so it can be a program name with args.
9623 set dummy objdump; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 case $aros_target_objdump_ln in
9630 [\\/]* | ?:[\\/]*)
9631 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635 for as_dir in $PATH
9637 IFS=$as_save_IFS
9638 test -z "$as_dir" && as_dir=.
9639 for ac_exec_ext in '' $ac_executable_extensions; do
9640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9641 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 break 2
9645 done
9646 done
9647 IFS=$as_save_IFS
9650 esac
9652 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9653 if test -n "$aros_target_objdump_ln"; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9655 $as_echo "$aros_target_objdump_ln" >&6; }
9656 else
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9664 else
9665 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9666 set dummy $aros_target_objdump; ac_word=$2
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 case $aros_target_objdump_ln in
9673 [\\/]* | ?:[\\/]*)
9674 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $PATH
9680 IFS=$as_save_IFS
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9684 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686 break 2
9688 done
9689 done
9690 IFS=$as_save_IFS
9693 esac
9695 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9696 if test -n "$aros_target_objdump_ln"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9698 $as_echo "$aros_target_objdump_ln" >&6; }
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9707 if test "$aros_target_objdump_ln" = ""; then
9708 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9711 if test "$aros_target_ranlib" = ""; then
9712 if test "$cross_compiling" = "yes" ; then
9713 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9714 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 case $aros_target_ranlib_ln in
9721 [\\/]* | ?:[\\/]*)
9722 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 for as_dir in $PATH
9728 IFS=$as_save_IFS
9729 test -z "$as_dir" && as_dir=.
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9732 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9734 break 2
9736 done
9737 done
9738 IFS=$as_save_IFS
9741 esac
9743 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9744 if test -n "$aros_target_ranlib_ln"; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9746 $as_echo "$aros_target_ranlib_ln" >&6; }
9747 else
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749 $as_echo "no" >&6; }
9753 else
9754 if test "$GCC" = "yes"; then
9755 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9756 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9757 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 case $aros_target_ranlib_ln in
9764 [\\/]* | ?:[\\/]*)
9765 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in `dirname $aros_gcc_ranlib`
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9779 done
9780 done
9781 IFS=$as_save_IFS
9784 esac
9786 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9787 if test -n "$aros_target_ranlib_ln"; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9789 $as_echo "$aros_target_ranlib_ln" >&6; }
9790 else
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; }
9797 if test "$aros_target_ranlib_ln" = ""; then
9798 # Extract the first word of "ranlib", so it can be a program name with args.
9799 set dummy ranlib; ac_word=$2
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801 $as_echo_n "checking for $ac_word... " >&6; }
9802 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 case $aros_target_ranlib_ln in
9806 [\\/]* | ?:[\\/]*)
9807 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 for as_dir in $PATH
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9817 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9821 done
9822 done
9823 IFS=$as_save_IFS
9826 esac
9828 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9829 if test -n "$aros_target_ranlib_ln"; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9831 $as_echo "$aros_target_ranlib_ln" >&6; }
9832 else
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9840 else
9841 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9842 set dummy $aros_target_ranlib; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 case $aros_target_ranlib_ln in
9849 [\\/]* | ?:[\\/]*)
9850 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9864 done
9865 done
9866 IFS=$as_save_IFS
9869 esac
9871 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9872 if test -n "$aros_target_ranlib_ln"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9874 $as_echo "$aros_target_ranlib_ln" >&6; }
9875 else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9883 if test "$aros_target_ranlib_ln" = ""; then
9884 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9887 if test "$aros_target_strip" = ""; then
9888 if test "$cross_compiling" = "yes" ; then
9889 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9890 set dummy ${target_tool_prefix}strip; ac_word=$2
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892 $as_echo_n "checking for $ac_word... " >&6; }
9893 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 case $aros_target_strip_ln in
9897 [\\/]* | ?:[\\/]*)
9898 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9908 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9914 IFS=$as_save_IFS
9917 esac
9919 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9920 if test -n "$aros_target_strip_ln"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9922 $as_echo "$aros_target_strip_ln" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9929 else
9930 if test "$GCC" = "yes"; then
9931 aros_gcc_strip=`$CC -print-prog-name=strip`
9932 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9933 set dummy `basename $aros_gcc_strip`; ac_word=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 case $aros_target_strip_ln in
9940 [\\/]* | ?:[\\/]*)
9941 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945 for as_dir in `dirname $aros_gcc_strip`
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9951 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 break 2
9955 done
9956 done
9957 IFS=$as_save_IFS
9960 esac
9962 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9963 if test -n "$aros_target_strip_ln"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9965 $as_echo "$aros_target_strip_ln" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9973 if test "$aros_target_strip_ln" = ""; then
9974 # Extract the first word of "strip", so it can be a program name with args.
9975 set dummy strip; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 case $aros_target_strip_ln in
9982 [\\/]* | ?:[\\/]*)
9983 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987 for as_dir in $PATH
9989 IFS=$as_save_IFS
9990 test -z "$as_dir" && as_dir=.
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9993 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995 break 2
9997 done
9998 done
9999 IFS=$as_save_IFS
10002 esac
10004 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10005 if test -n "$aros_target_strip_ln"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10007 $as_echo "$aros_target_strip_ln" >&6; }
10008 else
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10016 else
10017 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10018 set dummy $aros_target_strip; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 case $aros_target_strip_ln in
10025 [\\/]* | ?:[\\/]*)
10026 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10036 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10040 done
10041 done
10042 IFS=$as_save_IFS
10045 esac
10047 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10048 if test -n "$aros_target_strip_ln"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10050 $as_echo "$aros_target_strip_ln" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10059 if test "$aros_target_strip_ln" = ""; then
10060 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10062 if test "$aros_target_cxx" != ""; then
10063 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10064 set dummy $aros_target_cxx; ac_word=$2
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10066 $as_echo_n "checking for $ac_word... " >&6; }
10067 if ${ac_cv_path_aros_target_cxx+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 case $aros_target_cxx in
10071 [\\/]* | ?:[\\/]*)
10072 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076 for as_dir in $PATH
10078 IFS=$as_save_IFS
10079 test -z "$as_dir" && as_dir=.
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10082 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10084 break 2
10086 done
10087 done
10088 IFS=$as_save_IFS
10091 esac
10093 aros_target_cxx=$ac_cv_path_aros_target_cxx
10094 if test -n "$aros_target_cxx"; then
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10096 $as_echo "$aros_target_cxx" >&6; }
10097 else
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099 $as_echo "no" >&6; }
10103 if test "$aros_target_cxx" = ""; then
10104 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10107 else
10108 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10109 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10110 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10111 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10112 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10113 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10114 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10115 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10116 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10118 if test "$target_tool_prefix" != "${target_cpu}-aros-" ; then
10120 if test "$aros_kernel_ld" = ""; then
10121 if test "$cross_compiling" = "yes" ; then
10122 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10123 set dummy ${target_tool_prefix}ld; ac_word=$2
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10125 $as_echo_n "checking for $ac_word... " >&6; }
10126 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129 case $aros_kernel_ld in
10130 [\\/]* | ?:[\\/]*)
10131 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10141 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 break 2
10145 done
10146 done
10147 IFS=$as_save_IFS
10150 esac
10152 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10153 if test -n "$aros_kernel_ld"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10155 $as_echo "$aros_kernel_ld" >&6; }
10156 else
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10162 else
10163 if test "$GCC" = "yes"; then
10164 aros_gcc_ld=`$CC -print-prog-name=ld`
10165 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10166 set dummy `basename $aros_gcc_ld`; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 case $aros_kernel_ld in
10173 [\\/]* | ?:[\\/]*)
10174 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in `dirname $aros_gcc_ld`
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10184 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 break 2
10188 done
10189 done
10190 IFS=$as_save_IFS
10193 esac
10195 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10196 if test -n "$aros_kernel_ld"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10198 $as_echo "$aros_kernel_ld" >&6; }
10199 else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10206 if test "$aros_kernel_ld" = ""; then
10207 # Extract the first word of "ld", so it can be a program name with args.
10208 set dummy ld; ac_word=$2
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210 $as_echo_n "checking for $ac_word... " >&6; }
10211 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 case $aros_kernel_ld in
10215 [\\/]* | ?:[\\/]*)
10216 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in $PATH
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10226 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 break 2
10230 done
10231 done
10232 IFS=$as_save_IFS
10235 esac
10237 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10238 if test -n "$aros_kernel_ld"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10240 $as_echo "$aros_kernel_ld" >&6; }
10241 else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10249 else
10250 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10251 set dummy $aros_kernel_ld; ac_word=$2
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10253 $as_echo_n "checking for $ac_word... " >&6; }
10254 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 case $aros_kernel_ld in
10258 [\\/]* | ?:[\\/]*)
10259 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in $PATH
10265 IFS=$as_save_IFS
10266 test -z "$as_dir" && as_dir=.
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10269 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271 break 2
10273 done
10274 done
10275 IFS=$as_save_IFS
10278 esac
10280 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10281 if test -n "$aros_kernel_ld"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10283 $as_echo "$aros_kernel_ld" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10292 if test "$aros_kernel_ld" = ""; then
10293 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10296 if test "$aros_kernel_ar" = ""; then
10297 if test "$cross_compiling" = "yes" ; then
10298 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10299 set dummy ${target_tool_prefix}ar; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 case $aros_kernel_ar in
10306 [\\/]* | ?:[\\/]*)
10307 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10317 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319 break 2
10321 done
10322 done
10323 IFS=$as_save_IFS
10326 esac
10328 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10329 if test -n "$aros_kernel_ar"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10331 $as_echo "$aros_kernel_ar" >&6; }
10332 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10338 else
10339 if test "$GCC" = "yes"; then
10340 aros_gcc_ar=`$CC -print-prog-name=ar`
10341 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10342 set dummy `basename $aros_gcc_ar`; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 case $aros_kernel_ar in
10349 [\\/]* | ?:[\\/]*)
10350 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354 for as_dir in `dirname $aros_gcc_ar`
10356 IFS=$as_save_IFS
10357 test -z "$as_dir" && as_dir=.
10358 for ac_exec_ext in '' $ac_executable_extensions; do
10359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10360 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10362 break 2
10364 done
10365 done
10366 IFS=$as_save_IFS
10369 esac
10371 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10372 if test -n "$aros_kernel_ar"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10374 $as_echo "$aros_kernel_ar" >&6; }
10375 else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; }
10382 if test "$aros_kernel_ar" = ""; then
10383 # Extract the first word of "ar", so it can be a program name with args.
10384 set dummy ar; ac_word=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 case $aros_kernel_ar in
10391 [\\/]* | ?:[\\/]*)
10392 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10406 done
10407 done
10408 IFS=$as_save_IFS
10411 esac
10413 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10414 if test -n "$aros_kernel_ar"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10416 $as_echo "$aros_kernel_ar" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10425 else
10426 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10427 set dummy $aros_kernel_ar; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 case $aros_kernel_ar in
10434 [\\/]* | ?:[\\/]*)
10435 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10445 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447 break 2
10449 done
10450 done
10451 IFS=$as_save_IFS
10454 esac
10456 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10457 if test -n "$aros_kernel_ar"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10459 $as_echo "$aros_kernel_ar" >&6; }
10460 else
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10468 if test "$aros_kernel_ar" = ""; then
10469 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10472 if test "$aros_kernel_ranlib" = ""; then
10473 if test "$cross_compiling" = "yes" ; then
10474 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10475 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10477 $as_echo_n "checking for $ac_word... " >&6; }
10478 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10479 $as_echo_n "(cached) " >&6
10480 else
10481 case $aros_kernel_ranlib in
10482 [\\/]* | ?:[\\/]*)
10483 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10489 IFS=$as_save_IFS
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10493 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 break 2
10497 done
10498 done
10499 IFS=$as_save_IFS
10502 esac
10504 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10505 if test -n "$aros_kernel_ranlib"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10507 $as_echo "$aros_kernel_ranlib" >&6; }
10508 else
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 $as_echo "no" >&6; }
10514 else
10515 if test "$GCC" = "yes"; then
10516 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10517 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10518 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 $as_echo_n "checking for $ac_word... " >&6; }
10521 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 case $aros_kernel_ranlib in
10525 [\\/]* | ?:[\\/]*)
10526 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530 for as_dir in `dirname $aros_gcc_ranlib`
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10536 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10540 done
10541 done
10542 IFS=$as_save_IFS
10545 esac
10547 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10548 if test -n "$aros_kernel_ranlib"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10550 $as_echo "$aros_kernel_ranlib" >&6; }
10551 else
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10558 if test "$aros_kernel_ranlib" = ""; then
10559 # Extract the first word of "ranlib", so it can be a program name with args.
10560 set dummy ranlib; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 case $aros_kernel_ranlib in
10567 [\\/]* | ?:[\\/]*)
10568 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10582 done
10583 done
10584 IFS=$as_save_IFS
10587 esac
10589 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10590 if test -n "$aros_kernel_ranlib"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10592 $as_echo "$aros_kernel_ranlib" >&6; }
10593 else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10601 else
10602 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10603 set dummy $aros_kernel_ranlib; ac_word=$2
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605 $as_echo_n "checking for $ac_word... " >&6; }
10606 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 case $aros_kernel_ranlib in
10610 [\\/]* | ?:[\\/]*)
10611 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10621 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10625 done
10626 done
10627 IFS=$as_save_IFS
10630 esac
10632 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10633 if test -n "$aros_kernel_ranlib"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10635 $as_echo "$aros_kernel_ranlib" >&6; }
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10644 if test "$aros_kernel_ranlib" = ""; then
10645 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10647 else
10648 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10649 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10650 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10653 crosstools_target=tools-crosstools
10656 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10658 orig_target_cc=$aros_kernel_cc
10659 orig_target_ld=$aros_kernel_ld
10661 if test "$crosstools" != "yes"; then
10662 if test "$aros_target_cc" != ""; then
10663 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10664 set dummy $aros_target_cc; ac_word=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if ${ac_cv_path_aros_target_cc+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 case $aros_target_cc in
10671 [\\/]* | ?:[\\/]*)
10672 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10678 IFS=$as_save_IFS
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10682 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10684 break 2
10686 done
10687 done
10688 IFS=$as_save_IFS
10691 esac
10693 aros_target_cc=$ac_cv_path_aros_target_cc
10694 if test -n "$aros_target_cc"; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10696 $as_echo "$aros_target_cc" >&6; }
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10703 if test "$aros_target_cc" = ""; then
10704 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10706 orig_target_cc=$aros_target_cc
10708 if test "$aros_target_ld" != ""; then
10709 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10710 set dummy $aros_target_ld; ac_word=$2
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712 $as_echo_n "checking for $ac_word... " >&6; }
10713 if ${ac_cv_path_aros_target_ld+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 case $aros_target_ld in
10717 [\\/]* | ?:[\\/]*)
10718 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10728 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10732 done
10733 done
10734 IFS=$as_save_IFS
10737 esac
10739 aros_target_ld=$ac_cv_path_aros_target_ld
10740 if test -n "$aros_target_ld"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10742 $as_echo "$aros_target_ld" >&6; }
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10749 if test "$aros_target_ld" = ""; then
10750 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10752 orig_target_ld=$aros_target_ld
10754 else
10755 orig_target_cc=$aros_target_cc
10756 orig_target_ld=$aros_target_ld
10759 # Build crosstools if we have no C++ - temporary thing
10760 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10761 crosstools_cxx_target=tools-crosstools
10764 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10765 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10766 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10767 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10768 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10769 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10770 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10772 # aros_cc_pre is a variable that is added to the front of the compiler name
10773 # in the generated aros-gcc shell script. We need this to enable the cache
10774 # to work across cleaned builds. Also, support DISTCC using the correct
10775 # environment variable.
10778 if test "x${DISTCC}" != "x" ; then
10779 if test "x${CCACHE}" != "x" ; then
10780 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10781 else
10782 aros_cc_pre="${DISTCC} "
10784 else
10785 if test "x${CCACHE}" != "x" ; then
10786 aros_cc_pre="${CCACHE} "
10790 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10792 aros_target_nostdinc_cflags=-nostdinc
10794 aros_target_nostartup_ldflags=-nostartfiles
10796 aros_target_nix_ldflags=-nix
10798 aros_target_detach_ldflags=-detach
10800 aros_target_nostdlib_ldflags=-nostdlib
10803 # Target tools
10804 if test "$crosstools" != "yes"; then
10805 if test "$GCC" = "yes"; then
10806 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10808 else
10809 # We do not know which gcc version we are going to build and what we need to know
10810 # here is different for different versions so this will be set later during the
10811 # build of crosstools.
10812 aros_target_cc_path=@aros_target_cc_path@
10814 aros_target_cc="${prefix}-gcc"
10815 aros_target_as="${prefix}-as"
10816 aros_target_ld="${prefix}-ld"
10817 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10818 aros_target_objcopy=${prefix}-objcopy
10819 aros_target_objdump=${prefix}-objdump
10820 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10821 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10822 aros_target_strip=${prefix}-strip
10823 aros_plain_nm="${prefix}-nm"
10824 aros_plain_ar="${prefix}-ar"
10826 # Find the system include path. We can suggest that an alternative is
10827 # used if we don't get it correct. The default is to use /usr/include.
10828 # Which is set in the aros_target_incl_def variable.
10830 # Check whether --enable-includes was given.
10831 if test "${enable_includes+set}" = set; then :
10832 enableval=$enable_includes; aros_target_incl=$enable_includes
10833 else
10834 aros_target_incl=$aros_target_incl_def
10838 if test "$aros_kernel_includes" = ""; then
10839 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10840 # FIXME: for cross-compiling this should point to another location
10841 aros_kernel_includes="-isystem $aros_target_incl"
10845 if test "$aros_kernel_includes" != "" ; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10847 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10848 if test "$aros_kernel_cc_includes" = "" ; then
10849 # Try to guess where the directory is.
10850 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10851 if test -d $aros_kernel_cc_includes; then
10852 # Check if there is also an include-fixed directory and add it
10853 # to kernel compiler's include path as it may contain some of
10854 # the headers we need.
10855 if test -d "$aros_kernel_cc_includes"-fixed; then
10856 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10858 else
10859 # The directory doesn't exist, we need to do some more work.
10860 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10862 # These are the headers we're looking for.
10863 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10864 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10865 zutil.h"
10867 if test ! -f $aros_target_incl/stdint.h; then
10868 headers="$headers stdint.h"
10871 dirs=
10872 for h in $headers; do
10873 # Which other headers are needed by each of the above?
10874 deps=$(echo "#include <$h>" | \
10875 $aros_kernel_cc -E -M - 2>/dev/null | \
10876 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10878 # Copy all the needed headers to a directory beneath gendir.
10879 for d in $deps; do
10880 h=$(basename $d)
10881 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10882 sed -n "s,^.*/include\(/.*\),\1,p")
10883 ! test -d $dir && mkdir -p $dir
10884 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10885 done
10886 done
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10890 $as_echo "$aros_kernel_cc_includes" >&6; }
10891 # Adding -nostdinc to kernel includes as they are always used together.
10892 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10895 if test "$crosstools" != "yes"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10897 $as_echo_n "checking for the target compiler's include path... " >&6; }
10898 if test "$aros_target_cc_includes" = "" ; then
10899 #try to guess where the directory is
10900 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10901 if ! test -d $aros_target_cc_includes; then
10902 #the directory doesn't exist, we need to do some more work
10903 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10905 #these are the headers we're looking for
10906 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10907 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10908 zutil.h"
10910 dirs=
10911 for h in $headers; do
10912 #which other headers each of the above headers needs?
10913 deps=$(echo "#include <$h>" | \
10914 $orig_target_cc -E -M - 2>/dev/null | \
10915 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10917 #copy all the needed headers to a directory beneath gendir
10918 for d in $deps; do
10919 h=$(basename $d)
10920 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10921 sed -n "s,^.*/include\(/.*\),\1,p")
10922 ! test -d $dir && mkdir -p $dir
10923 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10924 done
10925 done
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10929 $as_echo "$aros_target_cc_includes" >&6; }
10930 else
10931 # We do not know which gcc version we are going to build and what we need to know
10932 # here is different for different versions so this will be set later during the
10933 # build of crosstools.
10934 aros_target_cc_includes=@aros_target_cc_includes@
10938 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10939 # On GCC >= 4.0 -iquote should be used
10942 save_cc="$CC"
10943 save_cflags="$CFLAGS"
10944 CFLAGS="-iquote."
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10946 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10947 if test "x-$crosstools" != "x-yes"; then
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10952 main ()
10956 return 0;
10958 _ACEOF
10959 if ac_fn_c_try_compile "$LINENO"; then :
10960 has_iquote="yes"
10961 else
10962 has_iquote="no"
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965 else
10966 # we do know it is supported for the smallest version of gcc we are going to build
10967 # we assume it's also supported by later versions
10968 has_iquote=yes
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10971 $as_echo "$has_iquote" >&6; }
10972 if test "x-$has_iquote" = "x-yes" ; then
10973 host_cflags_iquote=-iquote
10974 host_cflags_iquote_end=
10975 else
10976 host_cflags_iquote=-I
10977 host_cflags_iquote_end=-I-
10979 kernel_cflags_iquote=$host_cflags_iquote
10980 kernel_cflags_iquote_end=$host_cflags_iquote_end
10981 if test "x-$cross_compiling" = "x-yes"; then
10982 CC="$aros_kernel_cc"
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
10984 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
10985 if test "x-$crosstools" != "x-yes"; then
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10990 main ()
10994 return 0;
10996 _ACEOF
10997 if ac_fn_c_try_compile "$LINENO"; then :
10998 use_no_stack_protector="yes"
10999 else
11000 use_no_stack_protector="no"
11002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 else
11004 # we do know it is supported for the smallest version of gcc we are going to build
11005 # we assume it's also supported by later versions
11006 use_no_stack_protector=yes
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11009 $as_echo "$use_no_stack_protector" >&6; }
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11011 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11012 if test "x-$crosstools" != "x-yes"; then
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11017 main ()
11021 return 0;
11023 _ACEOF
11024 if ac_fn_c_try_compile "$LINENO"; then :
11025 has_iquote="yes"
11026 else
11027 has_iquote="no"
11029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030 else
11031 # we do know it is supported for the smallest version of gcc we are going to build
11032 # we assume it's also supported by later versions
11033 has_iquote=yes
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11036 $as_echo "$has_iquote" >&6; }
11037 if test "x-$has_iquote" = "x-yes" ; then
11038 kernel_cflags_iquote=-iquote
11039 kernel_cflags_iquote_end=
11040 else
11041 kernel_cflags_iquote=-I
11042 kernel_cflags_iquote_end=-I-
11045 aros_cflags_iquote=$kernel_cflags_iquote
11046 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11047 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11048 CC="$orig_target_cc"
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11050 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11051 if test "x-$crosstools" != "x-yes"; then
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11056 main ()
11060 return 0;
11062 _ACEOF
11063 if ac_fn_c_try_compile "$LINENO"; then :
11064 has_iquote="yes"
11065 else
11066 has_iquote="no"
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 else
11070 # we do know it is supported for the smallest version of gcc we are going to build
11071 # we assume it's also supported by later versions
11072 has_iquote=yes
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11075 $as_echo "$has_iquote" >&6; }
11076 if test "x-$has_iquote" = "x-yes" ; then
11077 aros_cflags_iquote=-iquote
11078 aros_cflags_iquote_end=
11079 else
11080 aros_cflags_iquote=-I
11081 aros_cflags_iquote_end=-I-
11084 if test "x-$use_no_stack_protector" = "x-yes" ; then
11085 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11088 #-----------------------------------------------------------------------------
11090 # Check if we can explicitly choose older version of symbol hashing
11092 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11093 CC="$aros_kernel_cc"
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11095 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11100 main ()
11104 return 0;
11106 _ACEOF
11107 if ac_fn_c_try_link "$LINENO"; then :
11108 use_hash_style="yes"
11109 else
11110 use_hash_style="no"
11112 rm -f core conftest.err conftest.$ac_objext \
11113 conftest$ac_exeext conftest.$ac_ext
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11115 $as_echo "$use_hash_style" >&6; }
11116 if test "x-$use_hash_style" = "x-yes" ; then
11117 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11119 CC="$save_cc"
11120 CFLAGS="$save_cflags"
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11131 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11133 # Check whether --with-resolution was given.
11134 if test "${with_resolution+set}" = set; then :
11135 withval=$with_resolution; resolution=$withval
11136 else
11137 resolution=none
11140 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11141 if test "$resolution" = "yes" ; then
11142 resolution="none"
11144 if test "$resolution" = "no" ; then
11145 resolution="none"
11147 if test "$resolution" != "none" ; then
11148 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11149 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11150 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11153 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11154 aros_cv_default_wbwidth=$aros_default_wbwidth
11155 aros_cv_default_wbheight=$aros_default_wbheight
11156 aros_cv_default_wbdepth=$aros_default_wbdepth
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11159 $as_echo_n "checking if serial debug is enabled... " >&6; }
11161 # Check whether --with-serial-debug was given.
11162 if test "${with_serial_debug+set}" = set; then :
11163 withval=$with_serial_debug; serial_debug=$withval
11164 else
11165 serial_debug=none
11168 if test "$aros_serial_debug" = 0 ; then
11169 serial_debug_forced=""
11170 if test "$serial_debug" = "yes" ; then
11171 serial_debug="1"
11173 if test "$serial_debug" = "no" ; then
11174 serial_debug="none"
11176 else
11177 serial_debug_forced="(forced)"
11178 serial_debug=$aros_serial_debug
11180 if test "$serial_debug" != "none" ; then
11181 aros_serial_debug=$serial_debug
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11183 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11190 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11191 # Check whether --enable-palm_debug_hack was given.
11192 if test "${enable_palm_debug_hack+set}" = set; then :
11193 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11194 else
11195 palm_debug_hack="no"
11198 if test "$palm_debug_hack" = "yes" ; then
11199 aros_palm_debug_hack="1"
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11202 $as_echo "$palm_debug_hack" >&6; }
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11205 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11206 # Check whether --enable-usb30_code was given.
11207 if test "${enable_usb30_code+set}" = set; then :
11208 enableval=$enable_usb30_code; usb30_code="yes"
11209 else
11210 usb30_code="no"
11213 if test "$usb30_code" = "yes" ; then
11214 aros_usb30_code="1"
11215 else
11216 aros_usb30_code="0"
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11219 $as_echo "$usb30_code" >&6; }
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11222 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11223 # Check whether --enable-nesting_supervisor was given.
11224 if test "${enable_nesting_supervisor+set}" = set; then :
11225 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11226 else
11227 nesting_supervisor="no"
11230 if test "$nesting_supervisor" = "yes" ; then
11231 aros_nesting_supervisor="1"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11234 $as_echo "$nesting_supervisor" >&6; }
11236 if test "$aros_enable_mmu" = "" ; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11238 $as_echo_n "checking if MMU support is enabled... " >&6; }
11239 # Check whether --enable-mmu was given.
11240 if test "${enable_mmu+set}" = set; then :
11241 enableval=$enable_mmu; aros_enable_mmu=$enableval
11242 else
11243 aros_enable_mmu="yes"
11246 if test "$aros_enable_mmu" = "" ; then
11247 aros_enable_mmu="yes"
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11250 $as_echo "$aros_enable_mmu" >&6; }
11252 if test "$aros_enable_mmu" = "no" ; then
11253 aros_enable_mmu="0"
11254 else
11255 aros_enable_mmu="1"
11259 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11261 if test "x-$need_dlopen" != "x-no" ; then
11262 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11263 if test "x$ac_cv_func_dlopen" = xyes; then :
11264 have_dl="yes"
11265 else
11266 have_dl="no"
11269 if test "x-$have_dl" = "x-no" ; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11271 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11272 if ${ac_cv_lib_dl_dlopen+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-ldl $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char dlopen ();
11288 main ()
11290 return dlopen ();
11292 return 0;
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11296 ac_cv_lib_dl_dlopen=yes
11297 else
11298 ac_cv_lib_dl_dlopen=no
11300 rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11306 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11307 have_dl="yes"
11308 aros_host_ldflags="$aros_host_ldflags -ldl"
11309 else
11310 have_dl="no"
11314 if test "x-$have_dl" = "x-no" ; then
11315 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11320 # Check whether --enable-x11_hidd was given.
11321 if test "${enable_x11_hidd+set}" = set; then :
11322 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11323 else
11324 x11_hidd="$need_x11"
11327 case "x-$x11_hidd" in
11328 x-yes|x-no|x-auto) ;;
11329 *) x11_hidd="$need_x11" ;;
11330 esac
11332 ENABLE_X11=0
11334 if test "x-$x11_hidd" != "x-no" ; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11337 $as_echo_n "checking for X... " >&6; }
11340 # Check whether --with-x was given.
11341 if test "${with_x+set}" = set; then :
11342 withval=$with_x;
11345 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11346 if test "x$with_x" = xno; then
11347 # The user explicitly disabled X.
11348 have_x=disabled
11349 else
11350 case $x_includes,$x_libraries in #(
11351 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11352 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 # One or both of the vars are not set, and there is no cached value.
11356 ac_x_includes=no ac_x_libraries=no
11357 rm -f -r conftest.dir
11358 if mkdir conftest.dir; then
11359 cd conftest.dir
11360 cat >Imakefile <<'_ACEOF'
11361 incroot:
11362 @echo incroot='${INCROOT}'
11363 usrlibdir:
11364 @echo usrlibdir='${USRLIBDIR}'
11365 libdir:
11366 @echo libdir='${LIBDIR}'
11367 _ACEOF
11368 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11369 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11370 for ac_var in incroot usrlibdir libdir; do
11371 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11372 done
11373 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11374 for ac_extension in a so sl dylib la dll; do
11375 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11376 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11377 ac_im_usrlibdir=$ac_im_libdir; break
11379 done
11380 # Screen out bogus values from the imake configuration. They are
11381 # bogus both because they are the default anyway, and because
11382 # using them would break gcc on systems where it needs fixed includes.
11383 case $ac_im_incroot in
11384 /usr/include) ac_x_includes= ;;
11385 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11386 esac
11387 case $ac_im_usrlibdir in
11388 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11389 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11390 esac
11392 cd ..
11393 rm -f -r conftest.dir
11396 # Standard set of common directories for X headers.
11397 # Check X11 before X11Rn because it is often a symlink to the current release.
11398 ac_x_header_dirs='
11399 /usr/X11/include
11400 /usr/X11R7/include
11401 /usr/X11R6/include
11402 /usr/X11R5/include
11403 /usr/X11R4/include
11405 /usr/include/X11
11406 /usr/include/X11R7
11407 /usr/include/X11R6
11408 /usr/include/X11R5
11409 /usr/include/X11R4
11411 /usr/local/X11/include
11412 /usr/local/X11R7/include
11413 /usr/local/X11R6/include
11414 /usr/local/X11R5/include
11415 /usr/local/X11R4/include
11417 /usr/local/include/X11
11418 /usr/local/include/X11R7
11419 /usr/local/include/X11R6
11420 /usr/local/include/X11R5
11421 /usr/local/include/X11R4
11423 /usr/X386/include
11424 /usr/x386/include
11425 /usr/XFree86/include/X11
11427 /usr/include
11428 /usr/local/include
11429 /usr/unsupported/include
11430 /usr/athena/include
11431 /usr/local/x11r5/include
11432 /usr/lpp/Xamples/include
11434 /usr/openwin/include
11435 /usr/openwin/share/include'
11437 if test "$ac_x_includes" = no; then
11438 # Guess where to find include files, by looking for Xlib.h.
11439 # First, try using that file with no special directory specified.
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11442 #include <X11/Xlib.h>
11443 _ACEOF
11444 if ac_fn_c_try_cpp "$LINENO"; then :
11445 # We can compile using X headers with no special include directory.
11446 ac_x_includes=
11447 else
11448 for ac_dir in $ac_x_header_dirs; do
11449 if test -r "$ac_dir/X11/Xlib.h"; then
11450 ac_x_includes=$ac_dir
11451 break
11453 done
11455 rm -f conftest.err conftest.i conftest.$ac_ext
11456 fi # $ac_x_includes = no
11458 if test "$ac_x_libraries" = no; then
11459 # Check for the libraries.
11460 # See if we find them without any special options.
11461 # Don't add to $LIBS permanently.
11462 ac_save_LIBS=$LIBS
11463 LIBS="-lX11 $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466 #include <X11/Xlib.h>
11468 main ()
11470 XrmInitialize ()
11472 return 0;
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 LIBS=$ac_save_LIBS
11477 # We can link X programs with no special library path.
11478 ac_x_libraries=
11479 else
11480 LIBS=$ac_save_LIBS
11481 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11483 # Don't even attempt the hair of trying to link an X program!
11484 for ac_extension in a so sl dylib la dll; do
11485 if test -r "$ac_dir/libX11.$ac_extension"; then
11486 ac_x_libraries=$ac_dir
11487 break 2
11489 done
11490 done
11492 rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494 fi # $ac_x_libraries = no
11496 case $ac_x_includes,$ac_x_libraries in #(
11497 no,* | *,no | *\'*)
11498 # Didn't find X, or a directory has "'" in its name.
11499 ac_cv_have_x="have_x=no";; #(
11501 # Record where we found X for the cache.
11502 ac_cv_have_x="have_x=yes\
11503 ac_x_includes='$ac_x_includes'\
11504 ac_x_libraries='$ac_x_libraries'"
11505 esac
11507 ;; #(
11508 *) have_x=yes;;
11509 esac
11510 eval "$ac_cv_have_x"
11511 fi # $with_x != no
11513 if test "$have_x" != yes; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11515 $as_echo "$have_x" >&6; }
11516 no_x=yes
11517 else
11518 # If each of the values was on the command line, it overrides each guess.
11519 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11520 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11521 # Update the cache value to reflect the command line values.
11522 ac_cv_have_x="have_x=yes\
11523 ac_x_includes='$x_includes'\
11524 ac_x_libraries='$x_libraries'"
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11526 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11530 x_cflags=
11531 for path in $x_libraries
11533 x_cflags="$x_cflags -L$path"
11534 done
11536 for path in $x_includes
11538 x_cflags="$x_cflags -I$path"
11539 done
11541 if test "x-$no_x" = "x-yes" ; then
11543 if test "x-$x11_hidd" != "x-auto" ; then
11544 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11547 else
11548 x11_hidd_target=kernel-x11gfx-kobj
11549 ENABLE_X11=1
11551 # Check whether --enable-x11_shm was given.
11552 if test "${enable_x11_shm+set}" = set; then :
11553 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11554 else
11555 x11_hidd_shm="auto"
11558 case "x-$x11_hidd_shm" in
11559 x-yes|x-no|x-auto) ;;
11560 *) x11_hidd_shm="auto" ;;
11561 esac
11563 have_xshm=no
11565 if test "x-$x11_hidd_shm" != "x-no" ; then
11567 for ac_header in sys/ipc.h
11568 do :
11569 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11570 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11571 cat >>confdefs.h <<_ACEOF
11572 #define HAVE_SYS_IPC_H 1
11573 _ACEOF
11577 done
11579 for ac_header in sys/shm.h
11580 do :
11581 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11582 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11583 cat >>confdefs.h <<_ACEOF
11584 #define HAVE_SYS_SHM_H 1
11585 _ACEOF
11589 done
11592 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11594 save_cflags="$CFLAGS"
11595 CFLAGS="$CFLAGS $x_cflags"
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11597 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11598 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 ac_check_lib_save_LIBS=$LIBS
11602 LIBS="-lXext $LIBS"
11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h. */
11606 /* Override any GCC internal prototype to avoid an error.
11607 Use char because int might match the return type of a GCC
11608 builtin and then its argument prototype would still apply. */
11609 #ifdef __cplusplus
11610 extern "C"
11611 #endif
11612 char XShmQueryExtension ();
11614 main ()
11616 return XShmQueryExtension ();
11618 return 0;
11620 _ACEOF
11621 if ac_fn_c_try_link "$LINENO"; then :
11622 ac_cv_lib_Xext_XShmQueryExtension=yes
11623 else
11624 ac_cv_lib_Xext_XShmQueryExtension=no
11626 rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11631 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11632 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11633 have_xshm=yes
11636 CFLAGS="$save_cflags"
11640 if test "x-$have_xshm" = "x-yes" ; then
11641 DO_XSHM_SUPPORT="1"
11642 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11643 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11644 else
11645 DO_XSHM_SUPPORT="0"
11649 # Check whether --enable-x11_vidmode was given.
11650 if test "${enable_x11_vidmode+set}" = set; then :
11651 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11652 else
11653 x11_hidd_vidmode="auto"
11656 case "x-$x11_hidd_vidmode" in
11657 x-yes|x-no|x-auto) ;;
11658 *) x11_hidd_vidmode="auto" ;;
11659 esac
11661 have_vidmode=no
11663 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11665 save_cflags="$CFLAGS"
11666 CFLAGS="$CFLAGS $x_cflags"
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11668 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11669 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11670 $as_echo_n "(cached) " >&6
11671 else
11672 ac_check_lib_save_LIBS=$LIBS
11673 LIBS="-lXxf86vm $LIBS"
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11677 /* Override any GCC internal prototype to avoid an error.
11678 Use char because int might match the return type of a GCC
11679 builtin and then its argument prototype would still apply. */
11680 #ifdef __cplusplus
11681 extern "C"
11682 #endif
11683 char XF86VidModeQueryExtension ();
11685 main ()
11687 return XF86VidModeQueryExtension ();
11689 return 0;
11691 _ACEOF
11692 if ac_fn_c_try_link "$LINENO"; then :
11693 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11694 else
11695 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11697 rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
11699 LIBS=$ac_check_lib_save_LIBS
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11702 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11703 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11704 have_vidmode=yes
11707 CFLAGS="$save_cflags"
11710 if test "x-$have_vidmode" = "x-yes" ; then
11711 DO_VIDMODE_SUPPORT="1"
11712 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11713 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11714 else
11715 DO_VIDMODE_SUPPORT="0"
11719 aros_host_x11_includes=$x_includes
11720 aros_host_x11_libdirs=$x_libraries
11724 # Check whether --enable-sdl_hidd was given.
11725 if test "${enable_sdl_hidd+set}" = set; then :
11726 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11727 else
11728 sdl_hidd="auto"
11731 case "x-$sdl_hidd" in
11732 x-yes|x-no|x-auto) ;;
11733 *) sdl_hidd="auto" ;;
11734 esac
11736 if test "x-$sdl_hidd" != "x-no" ; then
11739 # Check whether --with-sdl-prefix was given.
11740 if test "${with_sdl_prefix+set}" = set; then :
11741 withval=$with_sdl_prefix; sdl_prefix="$withval"
11742 else
11743 sdl_prefix=""
11747 # Check whether --with-sdl-exec-prefix was given.
11748 if test "${with_sdl_exec_prefix+set}" = set; then :
11749 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11750 else
11751 sdl_exec_prefix=""
11754 # Check whether --enable-sdltest was given.
11755 if test "${enable_sdltest+set}" = set; then :
11756 enableval=$enable_sdltest;
11757 else
11758 enable_sdltest=yes
11762 if test x$sdl_exec_prefix != x ; then
11763 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11764 if test x${SDL_CONFIG+set} != xset ; then
11765 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11768 if test x$sdl_prefix != x ; then
11769 sdl_args="$sdl_args --prefix=$sdl_prefix"
11770 if test x${SDL_CONFIG+set} != xset ; then
11771 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11775 if test "x$prefix" != xNONE; then
11776 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11778 # Extract the first word of "sdl-config", so it can be a program name with args.
11779 set dummy sdl-config; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 case $SDL_CONFIG in
11786 [\\/]* | ?:[\\/]*)
11787 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 break 2
11801 done
11802 done
11803 IFS=$as_save_IFS
11805 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11807 esac
11809 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11810 if test -n "$SDL_CONFIG"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11812 $as_echo "$SDL_CONFIG" >&6; }
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11819 min_sdl_version=1.2.10
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11821 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11822 no_sdl=""
11823 if test "$SDL_CONFIG" = "no" ; then
11824 no_sdl=yes
11825 else
11826 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11827 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11829 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11830 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11831 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11832 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11833 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11834 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11835 if test "x$enable_sdltest" = "xyes" ; then
11836 ac_save_CFLAGS="$CFLAGS"
11837 ac_save_CXXFLAGS="$CXXFLAGS"
11838 ac_save_LIBS="$LIBS"
11839 CFLAGS="$CFLAGS $SDL_CFLAGS"
11840 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11841 LIBS="$LIBS $SDL_LIBS"
11842 rm -f conf.sdltest
11843 if test "$cross_compiling" = yes; then :
11844 echo $ac_n "cross compiling; assumed OK... $ac_c"
11845 else
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11849 #include <stdio.h>
11850 #include <stdlib.h>
11851 #include <string.h>
11852 #include "SDL.h"
11854 char*
11855 my_strdup (char *str)
11857 char *new_str;
11859 if (str)
11861 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11862 strcpy (new_str, str);
11864 else
11865 new_str = NULL;
11867 return new_str;
11870 int main (int argc, char *argv[])
11872 int major, minor, micro;
11873 char *tmp_version;
11875 /* This hangs on some systems (?)
11876 system ("touch conf.sdltest");
11878 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11880 /* HP/UX 9 (%@#!) writes to sscanf strings */
11881 tmp_version = my_strdup("$min_sdl_version");
11882 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11883 printf("%s, bad version string\n", "$min_sdl_version");
11884 exit(1);
11887 if (($sdl_major_version > major) ||
11888 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11889 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11891 return 0;
11893 else
11895 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11896 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11897 printf("*** best to upgrade to the required version.\n");
11898 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11899 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11900 printf("*** config.cache before re-running configure\n");
11901 return 1;
11906 _ACEOF
11907 if ac_fn_c_try_run "$LINENO"; then :
11909 else
11910 no_sdl=yes
11912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11913 conftest.$ac_objext conftest.beam conftest.$ac_ext
11916 CFLAGS="$ac_save_CFLAGS"
11917 CXXFLAGS="$ac_save_CXXFLAGS"
11918 LIBS="$ac_save_LIBS"
11921 if test "x$no_sdl" = x ; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11923 $as_echo "yes" >&6; }
11924 have_sdl="yes"
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11928 if test "$SDL_CONFIG" = "no" ; then
11929 echo "*** The sdl-config script installed by SDL could not be found"
11930 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11931 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11932 echo "*** full path to sdl-config."
11933 else
11934 if test -f conf.sdltest ; then
11936 else
11937 echo "*** Could not run SDL test program, checking why..."
11938 CFLAGS="$CFLAGS $SDL_CFLAGS"
11939 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11940 LIBS="$LIBS $SDL_LIBS"
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11944 #include <stdio.h>
11945 #include "SDL.h"
11947 int main(int argc, char *argv[])
11948 { return 0; }
11949 #undef main
11950 #define main K_and_R_C_main
11953 main ()
11955 return 0;
11957 return 0;
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961 echo "*** The test program compiled, but did not run. This usually means"
11962 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11963 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11964 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11965 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11966 echo "*** is required on your system"
11967 echo "***"
11968 echo "*** If you have an old version installed, it is best to remove it, although"
11969 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11970 else
11971 echo "*** The test program failed to compile or link. See the file config.log for the"
11972 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11973 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11974 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978 CFLAGS="$ac_save_CFLAGS"
11979 CXXFLAGS="$ac_save_CXXFLAGS"
11980 LIBS="$ac_save_LIBS"
11983 SDL_CFLAGS=""
11984 SDL_LIBS=""
11985 have_sdl="no"
11989 rm -f conf.sdltest
11992 if test "x-$have_sdl" != "x-yes" ; then
11994 if test "x-$sdl_hidd" != "x-auto" ; then
11995 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
11998 else
11999 sdl_hidd_target=kernel-hidd-sdl
12000 aros_host_sdl_cflags=SDL_CFLAGS
12001 aros_host_sdl_libs=SDL_LIBS
12005 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12006 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12011 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12012 oss_library_target=workbench-libs-oss-unix
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12018 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12019 # Check whether --enable-dbus was given.
12020 if test "${enable_dbus+set}" = set; then :
12021 enableval=$enable_dbus; dbus="yes"
12022 else
12023 dbus="no"
12026 if test "$dbus" = "yes" ; then
12027 ENABLE_DBUS=1
12028 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12029 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12030 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12031 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12032 else
12033 ENABLE_DBUS=0
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12036 $as_echo "$dbus" >&6; }
12038 if test "$use_kernel_cc_wrapper" = "yes" ; then
12039 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12043 # Generic
12054 # Compatability with other Amiga-like operation systems
12057 # Host related
12082 # Target Related
12140 # Graphics Related
12157 # Native version related
12160 # Palm native version related
12163 # USB3.0 code
12166 # Unix/Hosted version related
12169 # MMU related
12172 # Apple iOS related
12177 # Android related
12181 # DBUS related
12188 #X11 related
12191 # Debug related
12197 # Collect-aros stuff: "-ius" to ignore undefined symbols
12200 # C compiler related
12203 case "$aros_flavour" in
12204 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12205 aros_flavour="emulation" ;;
12206 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12207 aros_flavour="emulation" ;;
12208 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12209 aros_flavour="standalone";;
12210 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12211 aros_flavour="standalone";;
12212 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12213 aros_flavour="native" ;;
12214 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12215 aros_flavour="native" ;;
12216 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12217 aros_flavour="linklib" ;;
12218 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12219 aros_flavour="palmnative" ;;
12220 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12221 aros_flavour="mac68knative" ;;
12222 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12223 aros_flavour="ppcnative" ;;
12224 esac
12226 if test ! -d ${aros_inc_dir} ; then
12227 ${MKDIR} ${aros_inc_dir}
12229 if test ! -d ${aros_geninc_dir} ; then
12230 ${MKDIR} ${aros_geninc_dir}
12232 if test ! -d ${aros_hostcfg_dir} ; then
12233 ${MKDIR} ${aros_hostcfg_dir}
12235 if test ! -d ${aros_targetcfg_dir} ; then
12236 ${MKDIR} ${aros_targetcfg_dir}
12238 if test ! -d ${aros_tools_dir} ; then
12239 ${MKDIR} ${aros_tools_dir}
12241 if test ! -d ${aros_scripts_dir} ; then
12242 ${MKDIR} ${aros_scripts_dir}
12245 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12248 ac_config_commands="$ac_config_commands compiler_executable"
12250 ac_config_commands="$ac_config_commands genmf_executable"
12253 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"
12256 cat >confcache <<\_ACEOF
12257 # This file is a shell script that caches the results of configure
12258 # tests run on this system so they can be shared between configure
12259 # scripts and configure runs, see configure's option --config-cache.
12260 # It is not useful on other systems. If it contains results you don't
12261 # want to keep, you may remove or edit it.
12263 # config.status only pays attention to the cache file if you give it
12264 # the --recheck option to rerun configure.
12266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12268 # following values.
12270 _ACEOF
12272 # The following way of writing the cache mishandles newlines in values,
12273 # but we know of no workaround that is simple, portable, and efficient.
12274 # So, we kill variables containing newlines.
12275 # Ultrix sh set writes to stderr and can't be redirected directly,
12276 # and sets the high bit in the cache file unless we assign to the vars.
12278 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12279 eval ac_val=\$$ac_var
12280 case $ac_val in #(
12281 *${as_nl}*)
12282 case $ac_var in #(
12283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12285 esac
12286 case $ac_var in #(
12287 _ | IFS | as_nl) ;; #(
12288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12289 *) { eval $ac_var=; unset $ac_var;} ;;
12290 esac ;;
12291 esac
12292 done
12294 (set) 2>&1 |
12295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12296 *${as_nl}ac_space=\ *)
12297 # `set' does not quote correctly, so add quotes: double-quote
12298 # substitution turns \\\\ into \\, and sed turns \\ into \.
12299 sed -n \
12300 "s/'/'\\\\''/g;
12301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12302 ;; #(
12304 # `set' quotes correctly as required by POSIX, so do not add quotes.
12305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12307 esac |
12308 sort
12310 sed '
12311 /^ac_cv_env_/b end
12312 t clear
12313 :clear
12314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12315 t end
12316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12317 :end' >>confcache
12318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12319 if test -w "$cache_file"; then
12320 if test "x$cache_file" != "x/dev/null"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12322 $as_echo "$as_me: updating cache $cache_file" >&6;}
12323 if test ! -f "$cache_file" || test -h "$cache_file"; then
12324 cat confcache >"$cache_file"
12325 else
12326 case $cache_file in #(
12327 */* | ?:*)
12328 mv -f confcache "$cache_file"$$ &&
12329 mv -f "$cache_file"$$ "$cache_file" ;; #(
12331 mv -f confcache "$cache_file" ;;
12332 esac
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12340 rm -f confcache
12342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12343 # Let make expand exec_prefix.
12344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12346 DEFS=-DHAVE_CONFIG_H
12348 ac_libobjs=
12349 ac_ltlibobjs=
12351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12352 # 1. Remove the extension, and $U if already installed.
12353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12354 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12356 # will be set to the directory where LIBOBJS objects are built.
12357 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12358 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12359 done
12360 LIBOBJS=$ac_libobjs
12362 LTLIBOBJS=$ac_ltlibobjs
12366 : "${CONFIG_STATUS=./config.status}"
12367 ac_write_fail=0
12368 ac_clean_files_save=$ac_clean_files
12369 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12371 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12372 as_write_fail=0
12373 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12374 #! $SHELL
12375 # Generated by $as_me.
12376 # Run this file to recreate the current configuration.
12377 # Compiler output produced by configure, useful for debugging
12378 # configure, is in config.log if it exists.
12380 debug=false
12381 ac_cs_recheck=false
12382 ac_cs_silent=false
12384 SHELL=\${CONFIG_SHELL-$SHELL}
12385 export SHELL
12386 _ASEOF
12387 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12388 ## -------------------- ##
12389 ## M4sh Initialization. ##
12390 ## -------------------- ##
12392 # Be more Bourne compatible
12393 DUALCASE=1; export DUALCASE # for MKS sh
12394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12395 emulate sh
12396 NULLCMD=:
12397 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12398 # is contrary to our usage. Disable this feature.
12399 alias -g '${1+"$@"}'='"$@"'
12400 setopt NO_GLOB_SUBST
12401 else
12402 case `(set -o) 2>/dev/null` in #(
12403 *posix*) :
12404 set -o posix ;; #(
12405 *) :
12407 esac
12411 as_nl='
12413 export as_nl
12414 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12415 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12417 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12418 # Prefer a ksh shell builtin over an external printf program on Solaris,
12419 # but without wasting forks for bash or zsh.
12420 if test -z "$BASH_VERSION$ZSH_VERSION" \
12421 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12422 as_echo='print -r --'
12423 as_echo_n='print -rn --'
12424 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12425 as_echo='printf %s\n'
12426 as_echo_n='printf %s'
12427 else
12428 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12429 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12430 as_echo_n='/usr/ucb/echo -n'
12431 else
12432 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12433 as_echo_n_body='eval
12434 arg=$1;
12435 case $arg in #(
12436 *"$as_nl"*)
12437 expr "X$arg" : "X\\(.*\\)$as_nl";
12438 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12439 esac;
12440 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12442 export as_echo_n_body
12443 as_echo_n='sh -c $as_echo_n_body as_echo'
12445 export as_echo_body
12446 as_echo='sh -c $as_echo_body as_echo'
12449 # The user is always right.
12450 if test "${PATH_SEPARATOR+set}" != set; then
12451 PATH_SEPARATOR=:
12452 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12453 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12454 PATH_SEPARATOR=';'
12459 # IFS
12460 # We need space, tab and new line, in precisely that order. Quoting is
12461 # there to prevent editors from complaining about space-tab.
12462 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12463 # splitting by setting IFS to empty value.)
12464 IFS=" "" $as_nl"
12466 # Find who we are. Look in the path if we contain no directory separator.
12467 as_myself=
12468 case $0 in #((
12469 *[\\/]* ) as_myself=$0 ;;
12470 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12476 done
12477 IFS=$as_save_IFS
12480 esac
12481 # We did not find ourselves, most probably we were run as `sh COMMAND'
12482 # in which case we are not to be found in the path.
12483 if test "x$as_myself" = x; then
12484 as_myself=$0
12486 if test ! -f "$as_myself"; then
12487 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12488 exit 1
12491 # Unset variables that we do not need and which cause bugs (e.g. in
12492 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12493 # suppresses any "Segmentation fault" message there. '((' could
12494 # trigger a bug in pdksh 5.2.14.
12495 for as_var in BASH_ENV ENV MAIL MAILPATH
12496 do eval test x\${$as_var+set} = xset \
12497 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12498 done
12499 PS1='$ '
12500 PS2='> '
12501 PS4='+ '
12503 # NLS nuisances.
12504 LC_ALL=C
12505 export LC_ALL
12506 LANGUAGE=C
12507 export LANGUAGE
12509 # CDPATH.
12510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12513 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12514 # ----------------------------------------
12515 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12516 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12517 # script with STATUS, using 1 if that was 0.
12518 as_fn_error ()
12520 as_status=$1; test $as_status -eq 0 && as_status=1
12521 if test "$4"; then
12522 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12523 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12525 $as_echo "$as_me: error: $2" >&2
12526 as_fn_exit $as_status
12527 } # as_fn_error
12530 # as_fn_set_status STATUS
12531 # -----------------------
12532 # Set $? to STATUS, without forking.
12533 as_fn_set_status ()
12535 return $1
12536 } # as_fn_set_status
12538 # as_fn_exit STATUS
12539 # -----------------
12540 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12541 as_fn_exit ()
12543 set +e
12544 as_fn_set_status $1
12545 exit $1
12546 } # as_fn_exit
12548 # as_fn_unset VAR
12549 # ---------------
12550 # Portably unset VAR.
12551 as_fn_unset ()
12553 { eval $1=; unset $1;}
12555 as_unset=as_fn_unset
12556 # as_fn_append VAR VALUE
12557 # ----------------------
12558 # Append the text in VALUE to the end of the definition contained in VAR. Take
12559 # advantage of any shell optimizations that allow amortized linear growth over
12560 # repeated appends, instead of the typical quadratic growth present in naive
12561 # implementations.
12562 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12563 eval 'as_fn_append ()
12565 eval $1+=\$2
12567 else
12568 as_fn_append ()
12570 eval $1=\$$1\$2
12572 fi # as_fn_append
12574 # as_fn_arith ARG...
12575 # ------------------
12576 # Perform arithmetic evaluation on the ARGs, and store the result in the
12577 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12578 # must be portable across $(()) and expr.
12579 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12580 eval 'as_fn_arith ()
12582 as_val=$(( $* ))
12584 else
12585 as_fn_arith ()
12587 as_val=`expr "$@" || test $? -eq 1`
12589 fi # as_fn_arith
12592 if expr a : '\(a\)' >/dev/null 2>&1 &&
12593 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12594 as_expr=expr
12595 else
12596 as_expr=false
12599 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12600 as_basename=basename
12601 else
12602 as_basename=false
12605 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12606 as_dirname=dirname
12607 else
12608 as_dirname=false
12611 as_me=`$as_basename -- "$0" ||
12612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12613 X"$0" : 'X\(//\)$' \| \
12614 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12615 $as_echo X/"$0" |
12616 sed '/^.*\/\([^/][^/]*\)\/*$/{
12617 s//\1/
12620 /^X\/\(\/\/\)$/{
12621 s//\1/
12624 /^X\/\(\/\).*/{
12625 s//\1/
12628 s/.*/./; q'`
12630 # Avoid depending upon Character Ranges.
12631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12634 as_cr_digits='0123456789'
12635 as_cr_alnum=$as_cr_Letters$as_cr_digits
12637 ECHO_C= ECHO_N= ECHO_T=
12638 case `echo -n x` in #(((((
12639 -n*)
12640 case `echo 'xy\c'` in
12641 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12642 xy) ECHO_C='\c';;
12643 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12644 ECHO_T=' ';;
12645 esac;;
12647 ECHO_N='-n';;
12648 esac
12650 rm -f conf$$ conf$$.exe conf$$.file
12651 if test -d conf$$.dir; then
12652 rm -f conf$$.dir/conf$$.file
12653 else
12654 rm -f conf$$.dir
12655 mkdir conf$$.dir 2>/dev/null
12657 if (echo >conf$$.file) 2>/dev/null; then
12658 if ln -s conf$$.file conf$$ 2>/dev/null; then
12659 as_ln_s='ln -s'
12660 # ... but there are two gotchas:
12661 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12662 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12663 # In both cases, we have to default to `cp -p'.
12664 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12665 as_ln_s='cp -p'
12666 elif ln conf$$.file conf$$ 2>/dev/null; then
12667 as_ln_s=ln
12668 else
12669 as_ln_s='cp -p'
12671 else
12672 as_ln_s='cp -p'
12674 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12675 rmdir conf$$.dir 2>/dev/null
12678 # as_fn_mkdir_p
12679 # -------------
12680 # Create "$as_dir" as a directory, including parents if necessary.
12681 as_fn_mkdir_p ()
12684 case $as_dir in #(
12685 -*) as_dir=./$as_dir;;
12686 esac
12687 test -d "$as_dir" || eval $as_mkdir_p || {
12688 as_dirs=
12689 while :; do
12690 case $as_dir in #(
12691 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12692 *) as_qdir=$as_dir;;
12693 esac
12694 as_dirs="'$as_qdir' $as_dirs"
12695 as_dir=`$as_dirname -- "$as_dir" ||
12696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12697 X"$as_dir" : 'X\(//\)[^/]' \| \
12698 X"$as_dir" : 'X\(//\)$' \| \
12699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12700 $as_echo X"$as_dir" |
12701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12702 s//\1/
12705 /^X\(\/\/\)[^/].*/{
12706 s//\1/
12709 /^X\(\/\/\)$/{
12710 s//\1/
12713 /^X\(\/\).*/{
12714 s//\1/
12717 s/.*/./; q'`
12718 test -d "$as_dir" && break
12719 done
12720 test -z "$as_dirs" || eval "mkdir $as_dirs"
12721 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12724 } # as_fn_mkdir_p
12725 if mkdir -p . 2>/dev/null; then
12726 as_mkdir_p='mkdir -p "$as_dir"'
12727 else
12728 test -d ./-p && rmdir ./-p
12729 as_mkdir_p=false
12732 if test -x / >/dev/null 2>&1; then
12733 as_test_x='test -x'
12734 else
12735 if ls -dL / >/dev/null 2>&1; then
12736 as_ls_L_option=L
12737 else
12738 as_ls_L_option=
12740 as_test_x='
12741 eval sh -c '\''
12742 if test -d "$1"; then
12743 test -d "$1/.";
12744 else
12745 case $1 in #(
12746 -*)set "./$1";;
12747 esac;
12748 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12749 ???[sx]*):;;*)false;;esac;fi
12750 '\'' sh
12753 as_executable_p=$as_test_x
12755 # Sed expression to map a string onto a valid CPP name.
12756 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12758 # Sed expression to map a string onto a valid variable name.
12759 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12762 exec 6>&1
12763 ## ----------------------------------- ##
12764 ## Main body of $CONFIG_STATUS script. ##
12765 ## ----------------------------------- ##
12766 _ASEOF
12767 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12770 # Save the log message, to keep $0 and so on meaningful, and to
12771 # report actual input values of CONFIG_FILES etc. instead of their
12772 # values after options handling.
12773 ac_log="
12774 This file was extended by $as_me, which was
12775 generated by GNU Autoconf 2.68. Invocation command line was
12777 CONFIG_FILES = $CONFIG_FILES
12778 CONFIG_HEADERS = $CONFIG_HEADERS
12779 CONFIG_LINKS = $CONFIG_LINKS
12780 CONFIG_COMMANDS = $CONFIG_COMMANDS
12781 $ $0 $@
12783 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12786 _ACEOF
12788 case $ac_config_files in *"
12789 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12790 esac
12792 case $ac_config_headers in *"
12793 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12794 esac
12797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12798 # Files that config.status was made for.
12799 config_files="$ac_config_files"
12800 config_headers="$ac_config_headers"
12801 config_commands="$ac_config_commands"
12803 _ACEOF
12805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12806 ac_cs_usage="\
12807 \`$as_me' instantiates files and other configuration actions
12808 from templates according to the current configuration. Unless the files
12809 and actions are specified as TAGs, all are instantiated by default.
12811 Usage: $0 [OPTION]... [TAG]...
12813 -h, --help print this help, then exit
12814 -V, --version print version number and configuration settings, then exit
12815 --config print configuration, then exit
12816 -q, --quiet, --silent
12817 do not print progress messages
12818 -d, --debug don't remove temporary files
12819 --recheck update $as_me by reconfiguring in the same conditions
12820 --file=FILE[:TEMPLATE]
12821 instantiate the configuration file FILE
12822 --header=FILE[:TEMPLATE]
12823 instantiate the configuration header FILE
12825 Configuration files:
12826 $config_files
12828 Configuration headers:
12829 $config_headers
12831 Configuration commands:
12832 $config_commands
12834 Report bugs to the package provider."
12836 _ACEOF
12837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12838 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12839 ac_cs_version="\\
12840 config.status
12841 configured by $0, generated by GNU Autoconf 2.68,
12842 with options \\"\$ac_cs_config\\"
12844 Copyright (C) 2010 Free Software Foundation, Inc.
12845 This config.status script is free software; the Free Software Foundation
12846 gives unlimited permission to copy, distribute and modify it."
12848 ac_pwd='$ac_pwd'
12849 srcdir='$srcdir'
12850 test -n "\$AWK" || AWK=awk
12851 _ACEOF
12853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12854 # The default lists apply if the user does not specify any file.
12855 ac_need_defaults=:
12856 while test $# != 0
12858 case $1 in
12859 --*=?*)
12860 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12861 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12862 ac_shift=:
12864 --*=)
12865 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12866 ac_optarg=
12867 ac_shift=:
12870 ac_option=$1
12871 ac_optarg=$2
12872 ac_shift=shift
12874 esac
12876 case $ac_option in
12877 # Handling of the options.
12878 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12879 ac_cs_recheck=: ;;
12880 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12881 $as_echo "$ac_cs_version"; exit ;;
12882 --config | --confi | --conf | --con | --co | --c )
12883 $as_echo "$ac_cs_config"; exit ;;
12884 --debug | --debu | --deb | --de | --d | -d )
12885 debug=: ;;
12886 --file | --fil | --fi | --f )
12887 $ac_shift
12888 case $ac_optarg in
12889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12890 '') as_fn_error $? "missing file argument" ;;
12891 esac
12892 as_fn_append CONFIG_FILES " '$ac_optarg'"
12893 ac_need_defaults=false;;
12894 --header | --heade | --head | --hea )
12895 $ac_shift
12896 case $ac_optarg in
12897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12898 esac
12899 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12900 ac_need_defaults=false;;
12901 --he | --h)
12902 # Conflict between --help and --header
12903 as_fn_error $? "ambiguous option: \`$1'
12904 Try \`$0 --help' for more information.";;
12905 --help | --hel | -h )
12906 $as_echo "$ac_cs_usage"; exit ;;
12907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12908 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12909 ac_cs_silent=: ;;
12911 # This is an error.
12912 -*) as_fn_error $? "unrecognized option: \`$1'
12913 Try \`$0 --help' for more information." ;;
12915 *) as_fn_append ac_config_targets " $1"
12916 ac_need_defaults=false ;;
12918 esac
12919 shift
12920 done
12922 ac_configure_extra_args=
12924 if $ac_cs_silent; then
12925 exec 6>/dev/null
12926 ac_configure_extra_args="$ac_configure_extra_args --silent"
12929 _ACEOF
12930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12931 if \$ac_cs_recheck; then
12932 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12933 shift
12934 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12935 CONFIG_SHELL='$SHELL'
12936 export CONFIG_SHELL
12937 exec "\$@"
12940 _ACEOF
12941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12942 exec 5>>config.log
12944 echo
12945 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12946 ## Running $as_me. ##
12947 _ASBOX
12948 $as_echo "$ac_log"
12949 } >&5
12951 _ACEOF
12952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12954 # INIT-COMMANDS
12957 aros_host_exe_suffix=${aros_host_exe_suffix}
12958 aros_tools_dir=${aros_tools_dir}
12959 aros_target_cpu=${aros_target_cpu}
12960 aros_target_arch=${aros_target_arch}
12961 aros_target_suffix=${aros_target_suffix}
12962 aros_target_nm_ln=${aros_target_nm_ln}
12963 aros_target_as_ln=${aros_target_as_ln}
12964 aros_target_ar_ln=${aros_target_ar_ln}
12965 aros_target_ranlib_ln=${aros_target_ranlib_ln}
12966 aros_target_objdump_ln=${aros_target_objdump_ln}
12967 aros_target_objcopy_ln=${aros_target_objcopy_ln}
12968 aros_target_strip_ln=${aros_target_strip_ln}
12969 aros_kernel_ld=${aros_kernel_ld}
12972 aros_tools_dir=${aros_tools_dir}
12975 _ACEOF
12977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12979 # Handling of arguments.
12980 for ac_config_target in $ac_config_targets
12982 case $ac_config_target in
12983 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12984 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
12985 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
12986 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12987 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
12988 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
12989 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
12990 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
12991 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
12992 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
12993 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
12994 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
12995 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
12996 "${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" ;;
12997 "${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" ;;
12998 "${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" ;;
12999 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13000 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13001 "${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" ;;
13003 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13004 esac
13005 done
13008 # If the user did not use the arguments to specify the items to instantiate,
13009 # then the envvar interface is used. Set only those that are not.
13010 # We use the long form for the default assignment because of an extremely
13011 # bizarre bug on SunOS 4.1.3.
13012 if $ac_need_defaults; then
13013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13018 # Have a temporary directory for convenience. Make it in the build tree
13019 # simply because there is no reason against having it here, and in addition,
13020 # creating and moving files from /tmp can sometimes cause problems.
13021 # Hook for its removal unless debugging.
13022 # Note that there is a small window in which the directory will not be cleaned:
13023 # after its creation but before its name has been assigned to `$tmp'.
13024 $debug ||
13026 tmp= ac_tmp=
13027 trap 'exit_status=$?
13028 : "${ac_tmp:=$tmp}"
13029 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13031 trap 'as_fn_exit 1' 1 2 13 15
13033 # Create a (secure) tmp directory for tmp files.
13036 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13037 test -d "$tmp"
13038 } ||
13040 tmp=./conf$$-$RANDOM
13041 (umask 077 && mkdir "$tmp")
13042 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13043 ac_tmp=$tmp
13045 # Set up the scripts for CONFIG_FILES section.
13046 # No need to generate them if there are no CONFIG_FILES.
13047 # This happens for instance with `./config.status config.h'.
13048 if test -n "$CONFIG_FILES"; then
13051 ac_cr=`echo X | tr X '\015'`
13052 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13053 # But we know of no other shell where ac_cr would be empty at this
13054 # point, so we can use a bashism as a fallback.
13055 if test "x$ac_cr" = x; then
13056 eval ac_cr=\$\'\\r\'
13058 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13059 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13060 ac_cs_awk_cr='\\r'
13061 else
13062 ac_cs_awk_cr=$ac_cr
13065 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13066 _ACEOF
13070 echo "cat >conf$$subs.awk <<_ACEOF" &&
13071 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13072 echo "_ACEOF"
13073 } >conf$$subs.sh ||
13074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13075 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13076 ac_delim='%!_!# '
13077 for ac_last_try in false false false false false :; do
13078 . ./conf$$subs.sh ||
13079 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13081 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13082 if test $ac_delim_n = $ac_delim_num; then
13083 break
13084 elif $ac_last_try; then
13085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13086 else
13087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13089 done
13090 rm -f conf$$subs.sh
13092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13093 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13094 _ACEOF
13095 sed -n '
13097 s/^/S["/; s/!.*/"]=/
13100 s/^[^!]*!//
13101 :repl
13102 t repl
13103 s/'"$ac_delim"'$//
13104 t delim
13107 s/\(.\{148\}\)..*/\1/
13108 t more1
13109 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13112 b repl
13113 :more1
13114 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13117 s/.\{148\}//
13118 t nl
13119 :delim
13121 s/\(.\{148\}\)..*/\1/
13122 t more2
13123 s/["\\]/\\&/g; s/^/"/; s/$/"/
13126 :more2
13127 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13130 s/.\{148\}//
13131 t delim
13132 ' <conf$$subs.awk | sed '
13133 /^[^""]/{
13135 s/\n//
13137 ' >>$CONFIG_STATUS || ac_write_fail=1
13138 rm -f conf$$subs.awk
13139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13140 _ACAWK
13141 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13142 for (key in S) S_is_set[key] = 1
13143 FS = "\a"
13147 line = $ 0
13148 nfields = split(line, field, "@")
13149 substed = 0
13150 len = length(field[1])
13151 for (i = 2; i < nfields; i++) {
13152 key = field[i]
13153 keylen = length(key)
13154 if (S_is_set[key]) {
13155 value = S[key]
13156 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13157 len += length(value) + length(field[++i])
13158 substed = 1
13159 } else
13160 len += 1 + keylen
13163 print line
13166 _ACAWK
13167 _ACEOF
13168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13169 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13170 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13171 else
13173 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13174 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13175 _ACEOF
13177 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13178 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13179 # trailing colons and then remove the whole line if VPATH becomes empty
13180 # (actually we leave an empty line to preserve line numbers).
13181 if test "x$srcdir" = x.; then
13182 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13184 s///
13185 s/^/:/
13186 s/[ ]*$/:/
13187 s/:\$(srcdir):/:/g
13188 s/:\${srcdir}:/:/g
13189 s/:@srcdir@:/:/g
13190 s/^:*//
13191 s/:*$//
13193 s/\(=[ ]*\).*/\1/
13195 s/\n//
13196 s/^[^=]*=[ ]*$//
13200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13201 fi # test -n "$CONFIG_FILES"
13203 # Set up the scripts for CONFIG_HEADERS section.
13204 # No need to generate them if there are no CONFIG_HEADERS.
13205 # This happens for instance with `./config.status Makefile'.
13206 if test -n "$CONFIG_HEADERS"; then
13207 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13208 BEGIN {
13209 _ACEOF
13211 # Transform confdefs.h into an awk script `defines.awk', embedded as
13212 # here-document in config.status, that substitutes the proper values into
13213 # config.h.in to produce config.h.
13215 # Create a delimiter string that does not exist in confdefs.h, to ease
13216 # handling of long lines.
13217 ac_delim='%!_!# '
13218 for ac_last_try in false false :; do
13219 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13220 if test -z "$ac_tt"; then
13221 break
13222 elif $ac_last_try; then
13223 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13224 else
13225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13227 done
13229 # For the awk script, D is an array of macro values keyed by name,
13230 # likewise P contains macro parameters if any. Preserve backslash
13231 # newline sequences.
13233 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13234 sed -n '
13235 s/.\{148\}/&'"$ac_delim"'/g
13236 t rset
13237 :rset
13238 s/^[ ]*#[ ]*define[ ][ ]*/ /
13239 t def
13241 :def
13242 s/\\$//
13243 t bsnl
13244 s/["\\]/\\&/g
13245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13246 D["\1"]=" \3"/p
13247 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13249 :bsnl
13250 s/["\\]/\\&/g
13251 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13252 D["\1"]=" \3\\\\\\n"\\/p
13253 t cont
13254 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13255 t cont
13257 :cont
13259 s/.\{148\}/&'"$ac_delim"'/g
13260 t clear
13261 :clear
13262 s/\\$//
13263 t bsnlc
13264 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13266 :bsnlc
13267 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13268 b cont
13269 ' <confdefs.h | sed '
13270 s/'"$ac_delim"'/"\\\
13271 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13274 for (key in D) D_is_set[key] = 1
13275 FS = "\a"
13277 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13278 line = \$ 0
13279 split(line, arg, " ")
13280 if (arg[1] == "#") {
13281 defundef = arg[2]
13282 mac1 = arg[3]
13283 } else {
13284 defundef = substr(arg[1], 2)
13285 mac1 = arg[2]
13287 split(mac1, mac2, "(") #)
13288 macro = mac2[1]
13289 prefix = substr(line, 1, index(line, defundef) - 1)
13290 if (D_is_set[macro]) {
13291 # Preserve the white space surrounding the "#".
13292 print prefix "define", macro P[macro] D[macro]
13293 next
13294 } else {
13295 # Replace #undef with comments. This is necessary, for example,
13296 # in the case of _POSIX_SOURCE, which is predefined and required
13297 # on some systems where configure will not decide to define it.
13298 if (defundef == "undef") {
13299 print "/*", prefix defundef, macro, "*/"
13300 next
13304 { print }
13305 _ACAWK
13306 _ACEOF
13307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13308 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13309 fi # test -n "$CONFIG_HEADERS"
13312 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13313 shift
13314 for ac_tag
13316 case $ac_tag in
13317 :[FHLC]) ac_mode=$ac_tag; continue;;
13318 esac
13319 case $ac_mode$ac_tag in
13320 :[FHL]*:*);;
13321 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13322 :[FH]-) ac_tag=-:-;;
13323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13324 esac
13325 ac_save_IFS=$IFS
13326 IFS=:
13327 set x $ac_tag
13328 IFS=$ac_save_IFS
13329 shift
13330 ac_file=$1
13331 shift
13333 case $ac_mode in
13334 :L) ac_source=$1;;
13335 :[FH])
13336 ac_file_inputs=
13337 for ac_f
13339 case $ac_f in
13340 -) ac_f="$ac_tmp/stdin";;
13341 *) # Look for the file first in the build tree, then in the source tree
13342 # (if the path is not absolute). The absolute path cannot be DOS-style,
13343 # because $ac_f cannot contain `:'.
13344 test -f "$ac_f" ||
13345 case $ac_f in
13346 [\\/$]*) false;;
13347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13348 esac ||
13349 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13350 esac
13351 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13352 as_fn_append ac_file_inputs " '$ac_f'"
13353 done
13355 # Let's still pretend it is `configure' which instantiates (i.e., don't
13356 # use $as_me), people would be surprised to read:
13357 # /* config.h. Generated by config.status. */
13358 configure_input='Generated from '`
13359 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13360 `' by configure.'
13361 if test x"$ac_file" != x-; then
13362 configure_input="$ac_file. $configure_input"
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13364 $as_echo "$as_me: creating $ac_file" >&6;}
13366 # Neutralize special characters interpreted by sed in replacement strings.
13367 case $configure_input in #(
13368 *\&* | *\|* | *\\* )
13369 ac_sed_conf_input=`$as_echo "$configure_input" |
13370 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13371 *) ac_sed_conf_input=$configure_input;;
13372 esac
13374 case $ac_tag in
13375 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13377 esac
13379 esac
13381 ac_dir=`$as_dirname -- "$ac_file" ||
13382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13383 X"$ac_file" : 'X\(//\)[^/]' \| \
13384 X"$ac_file" : 'X\(//\)$' \| \
13385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13386 $as_echo X"$ac_file" |
13387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13388 s//\1/
13391 /^X\(\/\/\)[^/].*/{
13392 s//\1/
13395 /^X\(\/\/\)$/{
13396 s//\1/
13399 /^X\(\/\).*/{
13400 s//\1/
13403 s/.*/./; q'`
13404 as_dir="$ac_dir"; as_fn_mkdir_p
13405 ac_builddir=.
13407 case "$ac_dir" in
13408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13411 # A ".." for each directory in $ac_dir_suffix.
13412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13413 case $ac_top_builddir_sub in
13414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13416 esac ;;
13417 esac
13418 ac_abs_top_builddir=$ac_pwd
13419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13420 # for backward compatibility:
13421 ac_top_builddir=$ac_top_build_prefix
13423 case $srcdir in
13424 .) # We are building in place.
13425 ac_srcdir=.
13426 ac_top_srcdir=$ac_top_builddir_sub
13427 ac_abs_top_srcdir=$ac_pwd ;;
13428 [\\/]* | ?:[\\/]* ) # Absolute name.
13429 ac_srcdir=$srcdir$ac_dir_suffix;
13430 ac_top_srcdir=$srcdir
13431 ac_abs_top_srcdir=$srcdir ;;
13432 *) # Relative name.
13433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13434 ac_top_srcdir=$ac_top_build_prefix$srcdir
13435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13436 esac
13437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13440 case $ac_mode in
13443 # CONFIG_FILE
13446 _ACEOF
13448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13449 # If the template does not know about datarootdir, expand it.
13450 # FIXME: This hack should be removed a few years after 2.60.
13451 ac_datarootdir_hack=; ac_datarootdir_seen=
13452 ac_sed_dataroot='
13453 /datarootdir/ {
13457 /@datadir@/p
13458 /@docdir@/p
13459 /@infodir@/p
13460 /@localedir@/p
13461 /@mandir@/p'
13462 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13463 *datarootdir*) ac_datarootdir_seen=yes;;
13464 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13466 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13467 _ACEOF
13468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13469 ac_datarootdir_hack='
13470 s&@datadir@&$datadir&g
13471 s&@docdir@&$docdir&g
13472 s&@infodir@&$infodir&g
13473 s&@localedir@&$localedir&g
13474 s&@mandir@&$mandir&g
13475 s&\\\${datarootdir}&$datarootdir&g' ;;
13476 esac
13477 _ACEOF
13479 # Neutralize VPATH when `$srcdir' = `.'.
13480 # Shell code in configure.ac might set extrasub.
13481 # FIXME: do we really want to maintain this feature?
13482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13483 ac_sed_extra="$ac_vpsub
13484 $extrasub
13485 _ACEOF
13486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13489 s|@configure_input@|$ac_sed_conf_input|;t t
13490 s&@top_builddir@&$ac_top_builddir_sub&;t t
13491 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13492 s&@srcdir@&$ac_srcdir&;t t
13493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13494 s&@top_srcdir@&$ac_top_srcdir&;t t
13495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13496 s&@builddir@&$ac_builddir&;t t
13497 s&@abs_builddir@&$ac_abs_builddir&;t t
13498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13499 $ac_datarootdir_hack
13501 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13502 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13504 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13505 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13506 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13507 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13509 which seems to be undefined. Please make sure it is defined" >&5
13510 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13511 which seems to be undefined. Please make sure it is defined" >&2;}
13513 rm -f "$ac_tmp/stdin"
13514 case $ac_file in
13515 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13516 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13517 esac \
13518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13522 # CONFIG_HEADER
13524 if test x"$ac_file" != x-; then
13526 $as_echo "/* $configure_input */" \
13527 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13528 } >"$ac_tmp/config.h" \
13529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13530 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13532 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13533 else
13534 rm -f "$ac_file"
13535 mv "$ac_tmp/config.h" "$ac_file" \
13536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13538 else
13539 $as_echo "/* $configure_input */" \
13540 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13541 || as_fn_error $? "could not create -" "$LINENO" 5
13545 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13546 $as_echo "$as_me: executing $ac_file commands" >&6;}
13548 esac
13551 case $ac_file$ac_mode in
13552 "compiler_executable":C)
13553 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13554 mkdir -p $prefix
13555 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13556 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13558 echo ${prefix2}
13559 echo ${prefix3}
13560 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
13562 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13563 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13564 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13565 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13566 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13567 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13568 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13570 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13572 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13574 esac
13575 done # for ac_tag
13578 as_fn_exit 0
13579 _ACEOF
13580 ac_clean_files=$ac_clean_files_save
13582 test $ac_write_fail = 0 ||
13583 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13586 # configure is writing to config.log, and then calls config.status.
13587 # config.status does its own redirection, appending to config.log.
13588 # Unfortunately, on DOS this fails, as config.log is still kept open
13589 # by configure, so config.status won't be able to write to it; its
13590 # output is simply discarded. So we exec the FD to /dev/null,
13591 # effectively closing config.log, so it can be properly (re)opened and
13592 # appended to by config.status. When coming back to configure, we
13593 # need to make the FD available again.
13594 if test "$no_create" != yes; then
13595 ac_cs_success=:
13596 ac_config_status_args=
13597 test "$silent" = yes &&
13598 ac_config_status_args="$ac_config_status_args --quiet"
13599 exec 5>/dev/null
13600 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13601 exec 5>>config.log
13602 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13603 # would make configure fail if this is the last instruction.
13604 $ac_cs_success || as_fn_exit 1
13606 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13608 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13613 #XXX compatability...
13614 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13616 if test -n "$aros_shared_cflags" ; then
13617 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13618 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg