Regenerated configure, fixes problem introduced with r44420.
[AROS.git] / configure
blobad293934e097d8e7346469d984faa15895b38113
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 aros_cflags_format_security
639 aros_cflags_strict_overflow
640 aros_cflags_enum_compare
641 aros_cflags_array_bounds
642 aros_cflags_unused_but_set_variable
643 crosstools_cxx_target
644 crosstools_target
645 aros_target_strip_flags
646 aros_target_genmap
647 aros_debug_ldflags
648 aros_debug_aflags
649 aros_debug_cflags
650 aros_target_cflags
651 aros_kernel_ldflags
652 aros_kernel_objcflags
653 aros_kernel_includes
654 aros_kernel_cflags
655 aros_shared_ldflags
656 aros_shared_aflags
657 aros_shared_cflags
658 aros_config_ldflags
659 aros_config_aflags
660 aros_config_cflags
661 aros_arch_libs
662 aros_compiler_libs
663 aros_object_format
664 aros_shared_ld
665 aros_shared_default
666 aros_target_nm
667 aros_target_strip
668 aros_target_objcopy
669 aros_target_objdump
670 aros_target_cc_path
671 aros_target_cc_includes
672 aros_target_ld
673 orig_target_ld
674 aros_target_as
675 orig_target_as
676 aros_target_cpp
677 orig_target_cpp
678 aros_target_cxx
679 orig_target_cxx
680 aros_target_cc
681 orig_target_cc
682 aros_plain_ar
683 aros_plain_nm
684 aros_target_ranlib
685 aros_target_ar
686 aros_target_suffix
687 aros_target_variant
688 aros_target_cpu
689 aros_target_family
690 aros_target_arch
691 aros_target_bootloader
692 aros_target_iconset
693 aros_target_guitheme
694 aros_tools_dir
695 aros_host_lib_suffix
696 aros_host_exe_suffix
697 aros_host_mkargs
698 aros_host_mkdep
699 aros_host_debug
700 aros_host_ldflags
701 gnu89_inline
702 aros_host_cxxflags
703 aros_host_cflags
704 aros_host_make
705 aros_host_cxx
706 aros_host_cc
707 aros_host_cpp
708 aros_host_cpu
709 aros_host_arch
710 aros_cc_pre
711 aros_amigaos_compliance
712 AROS_PORTSSRCDIR
713 AROS_CROSSTOOLSDIR
714 SRCDIR
715 AROS_BUILDDIR_UNIX
716 AROS_BUILDDIR
717 aros_target_toolchain
718 aros_flavour_uc
719 aros_flavour
720 aros_cpu
721 aros_arch
722 SDL_LIBS
723 SDL_CFLAGS
724 SDL_CONFIG
725 XMKMF
726 aros_cflags_iquote_end
727 aros_cflags_iquote
728 kernel_cflags_iquote_end
729 kernel_cflags_iquote
730 host_cflags_iquote_end
731 host_cflags_iquote
732 aros_target_nostdlib_ldflags
733 aros_target_detach_ldflags
734 aros_target_nix_ldflags
735 aros_target_nostartup_ldflags
736 aros_target_nostdinc_cflags
737 aros_kernel_rescomp
738 aros_kernel_objdump
739 aros_kernel_objcopy
740 aros_kernel_strip
741 aros_kernel_nm
742 aros_kernel_ranlib
743 aros_kernel_ar
744 aros_kernel_as
745 aros_kernel_ld
746 aros_kernel_cxx
747 aros_kernel_cc
748 aros_kernel_cpp
750 android_tool
751 CCACHE
752 DISTCC
753 LIBOBJS
754 EGREP
755 GREP
757 TEST
760 pkgpyexecdir
761 pyexecdir
762 pkgpythondir
763 pythondir
764 PYTHON_PLATFORM
765 PYTHON_EXEC_PREFIX
766 PYTHON_PREFIX
767 PYTHON_VERSION
768 PYTHON
769 PATCH
770 CHMOD
772 PPMTOILBM
773 PNGTOPNM
774 FLEX
775 BISON
778 UNIQ
779 SORT
780 TOUCH
781 MKDIR
782 ECHO
786 aros_host_strip
787 aros_host_ranlib
788 aros_host_ar
789 aros_host_automake
790 aros_host_autoheader
791 aros_host_autoconf
792 aros_host_aclocal
793 aros_host_ld
794 MMAKE
797 ac_ct_CXX
798 CXXFLAGS
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
807 host_os
808 host_vendor
809 host_cpu
810 host
811 build_os
812 build_vendor
813 build_cpu
814 build
815 target_alias
816 host_alias
817 build_alias
818 LIBS
819 ECHO_T
820 ECHO_N
821 ECHO_C
822 DEFS
823 mandir
824 localedir
825 libdir
826 psdir
827 pdfdir
828 dvidir
829 htmldir
830 infodir
831 docdir
832 oldincludedir
833 includedir
834 localstatedir
835 sharedstatedir
836 sysconfdir
837 datadir
838 datarootdir
839 libexecdir
840 sbindir
841 bindir
842 program_transform_name
843 prefix
844 exec_prefix
845 PACKAGE_URL
846 PACKAGE_BUGREPORT
847 PACKAGE_STRING
848 PACKAGE_VERSION
849 PACKAGE_TARNAME
850 PACKAGE_NAME
851 PATH_SEPARATOR
852 SHELL'
853 ac_subst_files=''
854 ac_user_opts='
855 enable_option_checking
856 enable_build_type
857 enable_debug
858 enable_crosstools
859 enable_distcc
860 enable_ccache
861 with_gcc_version
862 with_optimization
863 with_paranoia
864 enable_target_variant
865 with_xcode
866 with_sdk_version
867 with_sdk
868 with_ndk
869 with_ndk_version
870 enable_amigaos_compliance
871 with_crosstools
872 with_kernel_tool_prefix
873 with_cpu
874 with_fpu
875 with_float
876 with_aros_gcc
877 with_portssources
878 with_bootloader
879 with_iconset
880 with_theme
881 with_resolution
882 with_serial_debug
883 enable_palm_debug_hack
884 enable_usb30_code
885 enable_nesting_supervisor
886 enable_mmu
887 enable_x11_hidd
888 with_x
889 enable_x11_shm
890 enable_x11_vidmode
891 enable_sdl_hidd
892 with_sdl_prefix
893 with_sdl_exec_prefix
894 enable_sdltest
895 enable_dbus
897 ac_precious_vars='build_alias
898 host_alias
899 target_alias
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
906 CXXFLAGS
909 XMKMF'
912 # Initialize some variables set by options.
913 ac_init_help=
914 ac_init_version=false
915 ac_unrecognized_opts=
916 ac_unrecognized_sep=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
919 cache_file=/dev/null
920 exec_prefix=NONE
921 no_create=
922 no_recursion=
923 prefix=NONE
924 program_prefix=NONE
925 program_suffix=NONE
926 program_transform_name=s,x,x,
927 silent=
928 site=
929 srcdir=
930 verbose=
931 x_includes=NONE
932 x_libraries=NONE
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
960 ac_prev=
961 ac_dashdash=
962 for ac_option
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
967 ac_prev=
968 continue
971 case $ac_option in
972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
975 esac
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
981 ac_dashdash=yes ;;
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=no ;;
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1041 -enable-* | --enable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error $? "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1135 no_create=yes ;;
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
1204 sbindir=$ac_optarg ;;
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
1215 sharedstatedir=$ac_optarg ;;
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
1220 site=$ac_optarg ;;
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1245 -with-* | --with-*)
1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error $? "invalid package name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1254 "with_$ac_useropt"
1255 "*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=\$ac_optarg ;;
1261 -without-* | --without-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=no ;;
1277 --x)
1278 # Obsolete; use --with-x.
1279 with_x=yes ;;
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286 x_includes=$ac_optarg ;;
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293 x_libraries=$ac_optarg ;;
1295 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1299 *=*)
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 case $ac_envvar in #(
1303 '' | [0-9]* | *[!_$as_cr_alnum]* )
1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1305 esac
1306 eval $ac_envvar=\$ac_optarg
1307 export $ac_envvar ;;
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 esac
1318 done
1320 if test -n "$ac_prev"; then
1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322 as_fn_error $? "missing argument to $ac_option"
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1327 no) ;;
1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 esac
1333 # Check all directory arguments for consistency.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val=\$$ac_var
1340 # Remove trailing slashes.
1341 case $ac_val in
1342 */ )
1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\$ac_val;;
1345 esac
1346 # Be sure to have absolute directory names.
1347 case $ac_val in
1348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350 esac
1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352 done
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used" >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375 test "$silent" = yes && exec 6>/dev/null
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1404 /^X\(\/\/\)$/{
1405 s//\1/
1408 /^X\(\/\).*/{
1409 s//\1/
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1417 else
1418 ac_srcdir_defaulted=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures this package to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1505 _ACEOF
1507 cat <<\_ACEOF
1509 X features:
1510 --x-includes=DIR X include files are in DIR
1511 --x-libraries=DIR X library files are in DIR
1513 System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1519 if test -n "$ac_init_help"; then
1521 cat <<\_ACEOF
1523 Optional Features:
1524 --disable-option-checking ignore unrecognized --enable/--with options
1525 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527 --enable-build-type=TYPE
1528 Select the build type. Available types are:
1529 personal, nightly, snapshot, milestone, release. Do
1530 NOT use this option unless you know what you are
1531 doing! (default=personal)
1532 --enable-debug=list Enable different types of debug. Commas or
1533 whitespaces can be used to separate the items in the
1534 list. Available types of debug are: all, none,
1535 messages, stack, mungwall, modules, symbols. If no
1536 list is provided then "all" is assumed.
1537 (default=none)
1538 --disable-crosstools Do not build cross-compiler toolchain
1539 --enable-distcc Use distcc as a front end to the compiler
1540 (default=no).
1541 --enable-ccache Use ccache as a front end to the compiler
1542 (default=no).
1543 --enable-target-variant=NAME
1544 Enable a specific target variant(default=none)
1545 --enable-amigaos-compliance=VERSION
1546 Enforce userspace AmigaOS compliance to a specific
1547 KickStart version (default=none).
1548 --enable-palm-debug-hack
1549 Enable palm debug output hack in palm native
1550 (default=no)
1551 --enable-usb30-code Enable usb3.0 code (default=no)
1552 --enable-nesting-supervisor
1553 Enable nesting supervisor support in unix
1554 (default=no)
1555 --disable-mmu Disable MMU support (default=enabled)
1556 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1557 --enable-x11-shm use X11 shared memory (default=auto)
1558 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1559 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1560 --disable-sdltest Do not try to compile and run a test SDL program
1561 --enable-dbus Enable DBUS support via dbus.library (default=no)
1563 Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-kernel-gcc-version=VERSION
1567 Use host gcc-VERSION for building AROS
1568 --with-gcc-version=VERSION
1569 Use host gcc-VERSION for building AROS
1570 --with-optimization=FLAGS
1571 Use optimization flags FLAGS (default=-O2).
1572 --with-paranoia=FLAGS CC flags to enable paranoia
1573 --with-xcode=PATH Specify XCode path for iOS targets
1574 (default=/Developer).
1575 --with-sdk-version=VERSION
1576 Use iOS SDK version VERSION (default=4.1).
1577 --with-sdk=PATH Specify Android SDK path
1578 (default=$default_android_sdk).
1579 --with-ndk=PATH Specify Android NDK path (default=none).
1580 --with-sdk-version=LEVEL
1581 Use Android SDK for API LEVEL (default=12).
1582 --with-ndk-version=LEVEL
1583 Use Android NDK for API LEVEL (default=9).
1584 --with-crosstools=DIR Where to install or search for cross tools binaries
1585 --with-kernel-tool-prefix=...
1586 Specify crosscompile toolchain prefix for kernel
1587 objects
1588 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1589 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1590 --with-float=<spec> Specify floating point ABI
1591 (default=$gcc_default_float_abi).
1592 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1593 --with-portssources=DIR Where to download sourcecode for external ports
1594 --with-bootloader=NAME Use a specific bootloader
1595 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1596 --with-theme=NAME Use a specific GUI Theme
1597 --with-resolution=XRESxYRESxDEPTH
1598 Default resolution of the initial WorkbenchScreen
1599 --with-serial-debug Enable serial debug output in native (default=no)
1600 --with-x use the X Window System
1601 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1602 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1604 Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 LIBS libraries to pass to the linker, e.g. -l<library>
1610 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1611 you have headers in a nonstandard directory <include dir>
1612 CXX C++ compiler command
1613 CXXFLAGS C++ compiler flags
1614 CPP C preprocessor
1615 XMKMF Path to xmkmf, Makefile generator for X Window System
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to the package provider.
1621 _ACEOF
1622 ac_status=$?
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1631 ac_builddir=.
1633 case "$ac_dir" in
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643 esac
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1649 case $srcdir in
1650 .) # We are building in place.
1651 ac_srcdir=.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 esac
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1673 else
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1677 done
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682 cat <<\_ACEOF
1683 configure
1684 generated by GNU Autoconf 2.68
1686 Copyright (C) 2010 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689 _ACEOF
1690 exit
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=1
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1733 } # ac_fn_c_try_compile
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=1
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_cxx_try_compile
1773 # ac_fn_c_try_cpp LINENO
1774 # ----------------------
1775 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_cpp ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } > conftest.i && {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 }; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1803 ac_retval=1
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1808 } # ac_fn_c_try_cpp
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1814 # accordingly.
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 else
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1838 else
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 #include <$2>
1851 _ACEOF
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1854 else
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 yes:no: )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 no:yes:* )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 esac
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 eval "$3=\$ac_header_compiler"
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1901 ac_fn_c_try_run ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1912 ac_status=$?
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1922 ac_status=$?
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=$ac_status
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1937 } # ac_fn_c_try_run
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 eval "$3=yes"
1958 else
1959 eval "$3=no"
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_header_compile
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_c_try_link ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext conftest$ac_exeext
1977 if { { ac_try="$ac_link"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_c_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest$ac_exeext && {
1996 test "$cross_compiling" = yes ||
1997 $as_test_x conftest$ac_exeext
1998 }; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2004 ac_retval=1
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_c_try_link
2016 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2017 # ----------------------------------------------------
2018 # Tries to find if the field MEMBER exists in type AGGR, after including
2019 # INCLUDES, setting cache variable VAR accordingly.
2020 ac_fn_c_check_member ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2024 $as_echo_n "checking for $2.$3... " >&6; }
2025 if eval \${$4+:} false; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 static $2 ac_aggr;
2035 if (ac_aggr.$3)
2036 return 0;
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$4=yes"
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 main ()
2050 static $2 ac_aggr;
2051 if (sizeof ac_aggr.$3)
2052 return 0;
2054 return 0;
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 eval "$4=yes"
2059 else
2060 eval "$4=no"
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 eval ac_res=\$$4
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_member
2073 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2074 # ---------------------------------------------
2075 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2076 # accordingly.
2077 ac_fn_c_check_decl ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 as_decl_name=`echo $2|sed 's/ *(.*//'`
2081 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2083 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2091 main ()
2093 #ifndef $as_decl_name
2094 #ifdef __cplusplus
2095 (void) $as_decl_use;
2096 #else
2097 (void) $as_decl_name;
2098 #endif
2099 #endif
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 eval "$3=yes"
2107 else
2108 eval "$3=no"
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 } # ac_fn_c_check_decl
2119 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2120 # -------------------------------------------
2121 # Tests whether TYPE exists after having included INCLUDES, setting cache
2122 # variable VAR accordingly.
2123 ac_fn_c_check_type ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if eval \${$3+:} false; then :
2129 $as_echo_n "(cached) " >&6
2130 else
2131 eval "$3=no"
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2136 main ()
2138 if (sizeof ($2))
2139 return 0;
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2149 main ()
2151 if (sizeof (($2)))
2152 return 0;
2154 return 0;
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2159 else
2160 eval "$3=yes"
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext 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_type
2173 # ac_fn_c_check_func LINENO FUNC VAR
2174 # ----------------------------------
2175 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2176 ac_fn_c_check_func ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2183 else
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2188 #define $2 innocuous_$2
2190 /* System header to define __stub macros and hopefully few prototypes,
2191 which can conflict with char $2 (); below.
2192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2193 <limits.h> exists even on freestanding compilers. */
2195 #ifdef __STDC__
2196 # include <limits.h>
2197 #else
2198 # include <assert.h>
2199 #endif
2201 #undef $2
2203 /* Override any GCC internal prototype to avoid an error.
2204 Use char because int might match the return type of a GCC
2205 builtin and then its argument prototype would still apply. */
2206 #ifdef __cplusplus
2207 extern "C"
2208 #endif
2209 char $2 ();
2210 /* The GNU C library defines this for functions which it implements
2211 to always fail with ENOSYS. Some functions are actually named
2212 something starting with __ and the normal name is an alias. */
2213 #if defined __stub_$2 || defined __stub___$2
2214 choke me
2215 #endif
2218 main ()
2220 return $2 ();
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_link "$LINENO"; then :
2226 eval "$3=yes"
2227 else
2228 eval "$3=no"
2230 rm -f core conftest.err conftest.$ac_objext \
2231 conftest$ac_exeext conftest.$ac_ext
2233 eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 } # ac_fn_c_check_func
2239 cat >config.log <<_ACEOF
2240 This file contains any messages produced by compilers while
2241 running configure, to aid debugging if configure makes a mistake.
2243 It was created by $as_me, which was
2244 generated by GNU Autoconf 2.68. Invocation command line was
2246 $ $0 $@
2248 _ACEOF
2249 exec 5>>config.log
2251 cat <<_ASUNAME
2252 ## --------- ##
2253 ## Platform. ##
2254 ## --------- ##
2256 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2257 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2258 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2259 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2260 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2262 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2263 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2265 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2266 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2267 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2268 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2269 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2270 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2271 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2273 _ASUNAME
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 $as_echo "PATH: $as_dir"
2281 done
2282 IFS=$as_save_IFS
2284 } >&5
2286 cat >&5 <<_ACEOF
2289 ## ----------- ##
2290 ## Core tests. ##
2291 ## ----------- ##
2293 _ACEOF
2296 # Keep a trace of the command line.
2297 # Strip out --no-create and --no-recursion so they do not pile up.
2298 # Strip out --silent because we don't want to record it for future runs.
2299 # Also quote any args containing shell meta-characters.
2300 # Make two passes to allow for proper duplicate-argument suppression.
2301 ac_configure_args=
2302 ac_configure_args0=
2303 ac_configure_args1=
2304 ac_must_keep_next=false
2305 for ac_pass in 1 2
2307 for ac_arg
2309 case $ac_arg in
2310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2312 | -silent | --silent | --silen | --sile | --sil)
2313 continue ;;
2314 *\'*)
2315 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 esac
2317 case $ac_pass in
2318 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320 as_fn_append ac_configure_args1 " '$ac_arg'"
2321 if test $ac_must_keep_next = true; then
2322 ac_must_keep_next=false # Got value, back to normal.
2323 else
2324 case $ac_arg in
2325 *=* | --config-cache | -C | -disable-* | --disable-* \
2326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2328 | -with-* | --with-* | -without-* | --without-* | --x)
2329 case "$ac_configure_args0 " in
2330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331 esac
2333 -* ) ac_must_keep_next=true ;;
2334 esac
2336 as_fn_append ac_configure_args " '$ac_arg'"
2338 esac
2339 done
2340 done
2341 { ac_configure_args0=; unset ac_configure_args0;}
2342 { ac_configure_args1=; unset ac_configure_args1;}
2344 # When interrupted or exit'd, cleanup temporary files, and complete
2345 # config.log. We remove comments because anyway the quotes in there
2346 # would cause problems or look ugly.
2347 # WARNING: Use '\'' to represent an apostrophe within the trap.
2348 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2349 trap 'exit_status=$?
2350 # Save into config.log some information that might help in debugging.
2352 echo
2354 $as_echo "## ---------------- ##
2355 ## Cache variables. ##
2356 ## ---------------- ##"
2357 echo
2358 # The following way of writing the cache mishandles newlines in values,
2360 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in #(
2363 *${as_nl}*)
2364 case $ac_var in #(
2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367 esac
2368 case $ac_var in #(
2369 _ | IFS | as_nl) ;; #(
2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371 *) { eval $ac_var=; unset $ac_var;} ;;
2372 esac ;;
2373 esac
2374 done
2375 (set) 2>&1 |
2376 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2377 *${as_nl}ac_space=\ *)
2378 sed -n \
2379 "s/'\''/'\''\\\\'\'''\''/g;
2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381 ;; #(
2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385 esac |
2386 sort
2388 echo
2390 $as_echo "## ----------------- ##
2391 ## Output variables. ##
2392 ## ----------------- ##"
2393 echo
2394 for ac_var in $ac_subst_vars
2396 eval ac_val=\$$ac_var
2397 case $ac_val in
2398 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2399 esac
2400 $as_echo "$ac_var='\''$ac_val'\''"
2401 done | sort
2402 echo
2404 if test -n "$ac_subst_files"; then
2405 $as_echo "## ------------------- ##
2406 ## File substitutions. ##
2407 ## ------------------- ##"
2408 echo
2409 for ac_var in $ac_subst_files
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2420 if test -s confdefs.h; then
2421 $as_echo "## ----------- ##
2422 ## confdefs.h. ##
2423 ## ----------- ##"
2424 echo
2425 cat confdefs.h
2426 echo
2428 test "$ac_signal" != 0 &&
2429 $as_echo "$as_me: caught signal $ac_signal"
2430 $as_echo "$as_me: exit $exit_status"
2431 } >&5
2432 rm -f core *.core core.conftest.* &&
2433 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2434 exit $exit_status
2436 for ac_signal in 1 2 13 15; do
2437 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2438 done
2439 ac_signal=0
2441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2442 rm -f -r conftest* confdefs.h
2444 $as_echo "/* confdefs.h */" > confdefs.h
2446 # Predefined preprocessor variables.
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_NAME "$PACKAGE_NAME"
2450 _ACEOF
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2454 _ACEOF
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2458 _ACEOF
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_STRING "$PACKAGE_STRING"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_URL "$PACKAGE_URL"
2470 _ACEOF
2473 # Let the site file select an alternate cache file if it wants to.
2474 # Prefer an explicitly selected file to automatically selected ones.
2475 ac_site_file1=NONE
2476 ac_site_file2=NONE
2477 if test -n "$CONFIG_SITE"; then
2478 # We do not want a PATH search for config.site.
2479 case $CONFIG_SITE in #((
2480 -*) ac_site_file1=./$CONFIG_SITE;;
2481 */*) ac_site_file1=$CONFIG_SITE;;
2482 *) ac_site_file1=./$CONFIG_SITE;;
2483 esac
2484 elif test "x$prefix" != xNONE; then
2485 ac_site_file1=$prefix/share/config.site
2486 ac_site_file2=$prefix/etc/config.site
2487 else
2488 ac_site_file1=$ac_default_prefix/share/config.site
2489 ac_site_file2=$ac_default_prefix/etc/config.site
2491 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2493 test "x$ac_site_file" = xNONE && continue
2494 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2496 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2497 sed 's/^/| /' "$ac_site_file" >&5
2498 . "$ac_site_file" \
2499 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 as_fn_error $? "failed to load site script $ac_site_file
2502 See \`config.log' for more details" "$LINENO" 5; }
2504 done
2506 if test -r "$cache_file"; then
2507 # Some versions of bash will fail to source /dev/null (special files
2508 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2509 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2511 $as_echo "$as_me: loading cache $cache_file" >&6;}
2512 case $cache_file in
2513 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2514 *) . "./$cache_file";;
2515 esac
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2519 $as_echo "$as_me: creating cache $cache_file" >&6;}
2520 >$cache_file
2523 as_fn_append ac_header_list " stdlib.h"
2524 as_fn_append ac_header_list " unistd.h"
2525 as_fn_append ac_header_list " sys/param.h"
2526 # Check that the precious variables saved in the cache have kept the same
2527 # value.
2528 ac_cache_corrupted=false
2529 for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2535 set,)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2539 ,set)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2543 ,);;
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=:
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 fi;;
2563 esac
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2566 case $ac_new_val in
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573 esac
2575 done
2576 if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2583 ## -------------------- ##
2584 ## Main body of script. ##
2585 ## -------------------- ##
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 ac_aux_dir=
2596 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2597 if test -f "$ac_dir/install-sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2600 break
2601 elif test -f "$ac_dir/install.sh"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2604 break
2605 elif test -f "$ac_dir/shtool"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2608 break
2610 done
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625 # Check what host we are running on.
2626 # If a target is not suggested, we use this one.
2627 # Note that what we call a target, Autoconf calls a host.
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if ${ac_cv_build+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2649 *-*-*) ;;
2650 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2651 esac
2652 build=$ac_cv_build
2653 ac_save_IFS=$IFS; IFS='-'
2654 set x $ac_cv_build
2655 shift
2656 build_cpu=$1
2657 build_vendor=$2
2658 shift; shift
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2661 build_os=$*
2662 IFS=$ac_save_IFS
2663 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if ${ac_cv_host+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2673 else
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2681 case $ac_cv_host in
2682 *-*-*) ;;
2683 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2684 esac
2685 host=$ac_cv_host
2686 ac_save_IFS=$IFS; IFS='-'
2687 set x $ac_cv_host
2688 shift
2689 host_cpu=$1
2690 host_vendor=$2
2691 shift; shift
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2694 host_os=$*
2695 IFS=$ac_save_IFS
2696 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2700 # The AROS target is slightly different to the normal GNU style
2701 # format. We don't have the middle part, and we reverse the order
2702 # of the $(CPU) and $(OS) bits.
2704 # Don't strip the version of the target yet, it might be
2705 # useful on some systems.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2708 $as_echo_n "checking for AROS style target... " >&6; }
2710 if test "$target" = "NONE" ; then
2711 target=$host_os-$host_cpu
2712 else
2713 if test "$target" = "" ; then
2714 target=$host_os-$host_cpu
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2718 $as_echo "$target" >&6; }
2720 if test "$host_os" = "mingw32" ; then
2721 PWDCMD="pwd -W"
2724 # Don't know where else to put this...
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2726 $as_echo_n "checking building AROS in... " >&6; }
2727 AROS_BUILDDIR=`${PWDCMD-pwd}`
2728 AROS_BUILDDIR_UNIX=${PWD}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2730 $as_echo "$AROS_BUILDDIR" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2733 $as_echo_n "checking AROS source in... " >&6; }
2734 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2735 SRCDIR=${srcpwd}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2737 $as_echo "$SRCDIR" >&6; }
2739 # Parse the target field into something useful.
2741 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2742 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2745 aros_default_wbwidth=800
2746 aros_default_wbheight=600
2747 aros_default_wbdepth=4
2750 # The first step is to find the host binaries.
2751 # Check for a compiler.
2752 ac_ext=c
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757 if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_CC+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2779 done
2780 done
2781 IFS=$as_save_IFS
2785 CC=$ac_cv_prog_CC
2786 if test -n "$CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788 $as_echo "$CC" >&6; }
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2796 if test -z "$ac_cv_prog_CC"; then
2797 ac_ct_CC=$CC
2798 # Extract the first word of "gcc", so it can be a program name with args.
2799 set dummy gcc; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_ac_ct_CC="gcc"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2819 done
2820 done
2821 IFS=$as_save_IFS
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2828 $as_echo "$ac_ct_CC" >&6; }
2829 else
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2834 if test "x$ac_ct_CC" = x; then
2835 CC=""
2836 else
2837 case $cross_compiling:$ac_tool_warned in
2838 yes:)
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2842 esac
2843 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2849 if test -z "$CC"; then
2850 if test -n "$ac_tool_prefix"; then
2851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2852 set dummy ${ac_tool_prefix}cc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_CC="${ac_tool_prefix}cc"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2872 done
2873 done
2874 IFS=$as_save_IFS
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2882 else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2890 if test -z "$CC"; then
2891 # Extract the first word of "cc", so it can be a program name with args.
2892 set dummy cc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 ac_prog_rejected=no
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2910 ac_prog_rejected=yes
2911 continue
2913 ac_cv_prog_CC="cc"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2921 if test $ac_prog_rejected = yes; then
2922 # We found a bogon in the path, so make sure we never use it.
2923 set dummy $ac_cv_prog_CC
2924 shift
2925 if test $# != 0; then
2926 # We chose a different compiler from the bogus one.
2927 # However, it has the same basename, so the bogon will be chosen
2928 # first if we set CC to just the basename; use the full file name.
2929 shift
2930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935 CC=$ac_cv_prog_CC
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 for ac_prog in cl.exe
2950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_CC+:} false; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2973 IFS=$as_save_IFS
2977 CC=$ac_cv_prog_CC
2978 if test -n "$CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2987 test -n "$CC" && break
2988 done
2990 if test -z "$CC"; then
2991 ac_ct_CC=$CC
2992 for ac_prog in cl.exe
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995 set dummy $ac_prog; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_ac_ct_CC="$ac_prog"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3015 done
3016 done
3017 IFS=$as_save_IFS
3021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022 if test -n "$ac_ct_CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3024 $as_echo "$ac_ct_CC" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3031 test -n "$ac_ct_CC" && break
3032 done
3034 if test "x$ac_ct_CC" = x; then
3035 CC=""
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038 yes:)
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041 ac_tool_warned=yes ;;
3042 esac
3043 CC=$ac_ct_CC
3050 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error $? "no acceptable C compiler found in \$PATH
3053 See \`config.log' for more details" "$LINENO" 5; }
3055 # Provide some information about the compiler.
3056 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3057 set X $ac_compile
3058 ac_compiler=$2
3059 for ac_option in --version -v -V -qversion; do
3060 { { ac_try="$ac_compiler $ac_option >&5"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3068 ac_status=$?
3069 if test -s conftest.err; then
3070 sed '10a\
3071 ... rest of stderr output deleted ...
3072 10q' conftest.err >conftest.er1
3073 cat conftest.er1 >&5
3075 rm -f conftest.er1 conftest.err
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }
3078 done
3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3084 main ()
3088 return 0;
3090 _ACEOF
3091 ac_clean_files_save=$ac_clean_files
3092 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3095 # of exeext.
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3097 $as_echo_n "checking whether the C compiler works... " >&6; }
3098 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100 # The possible output files:
3101 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3103 ac_rmfiles=
3104 for ac_file in $ac_files
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3108 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3109 esac
3110 done
3111 rm -f $ac_rmfiles
3113 if { { ac_try="$ac_link_default"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_link_default") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
3124 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3125 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3126 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3127 # so that the user can short-circuit this test for compilers unknown to
3128 # Autoconf.
3129 for ac_file in $ac_files ''
3131 test -f "$ac_file" || continue
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3135 [ab].out )
3136 # We found the default executable, but exeext='' is most
3137 # certainly right.
3138 break;;
3139 *.* )
3140 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3141 then :; else
3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 # We set ac_cv_exeext here because the later test for it is not
3145 # safe: cross compilers may not add the suffix if given an `-o'
3146 # argument, so we may need to know it at that point already.
3147 # Even if this section looks crufty: it has the advantage of
3148 # actually working.
3149 break;;
3151 break;;
3152 esac
3153 done
3154 test "$ac_cv_exeext" = no && ac_cv_exeext=
3156 else
3157 ac_file=''
3159 if test -z "$ac_file"; then :
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error 77 "C compiler cannot create executables
3168 See \`config.log' for more details" "$LINENO" 5; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171 $as_echo "yes" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3174 $as_echo_n "checking for C compiler default output file name... " >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176 $as_echo "$ac_file" >&6; }
3177 ac_exeext=$ac_cv_exeext
3179 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3180 ac_clean_files=$ac_clean_files_save
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3182 $as_echo_n "checking for suffix of executables... " >&6; }
3183 if { { ac_try="$ac_link"
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_link") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3195 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3196 # work properly (i.e., refer to `conftest.exe'), while it won't with
3197 # `rm'.
3198 for ac_file in conftest.exe conftest conftest.*; do
3199 test -f "$ac_file" || continue
3200 case $ac_file in
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 break;;
3204 * ) break;;
3205 esac
3206 done
3207 else
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3211 See \`config.log' for more details" "$LINENO" 5; }
3213 rm -f conftest conftest$ac_cv_exeext
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3215 $as_echo "$ac_cv_exeext" >&6; }
3217 rm -f conftest.$ac_ext
3218 EXEEXT=$ac_cv_exeext
3219 ac_exeext=$EXEEXT
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3222 #include <stdio.h>
3224 main ()
3226 FILE *f = fopen ("conftest.out", "w");
3227 return ferror (f) || fclose (f) != 0;
3230 return 0;
3232 _ACEOF
3233 ac_clean_files="$ac_clean_files conftest.out"
3234 # Check that the compiler produces executables we can run. If not, either
3235 # the compiler is broken, or we cross compile.
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3237 $as_echo_n "checking whether we are cross compiling... " >&6; }
3238 if test "$cross_compiling" != yes; then
3239 { { ac_try="$ac_link"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 if { ac_try='./conftest$ac_cv_exeext'
3251 { { case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_try") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; }; then
3261 cross_compiling=no
3262 else
3263 if test "$cross_compiling" = maybe; then
3264 cross_compiling=yes
3265 else
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error $? "cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details" "$LINENO" 5; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3275 $as_echo "$cross_compiling" >&6; }
3277 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3278 ac_clean_files=$ac_clean_files_save
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3280 $as_echo_n "checking for suffix of object files... " >&6; }
3281 if ${ac_cv_objext+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3288 main ()
3292 return 0;
3294 _ACEOF
3295 rm -f conftest.o conftest.obj
3296 if { { ac_try="$ac_compile"
3297 case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_compile") 2>&5
3304 ac_status=$?
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; then :
3307 for ac_file in conftest.o conftest.obj conftest.*; do
3308 test -f "$ac_file" || continue;
3309 case $ac_file in
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3312 break;;
3313 esac
3314 done
3315 else
3316 $as_echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of object files: cannot compile
3322 See \`config.log' for more details" "$LINENO" 5; }
3324 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3327 $as_echo "$ac_cv_objext" >&6; }
3328 OBJEXT=$ac_cv_objext
3329 ac_objext=$OBJEXT
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3331 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3332 if ${ac_cv_c_compiler_gnu+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3339 main ()
3341 #ifndef __GNUC__
3342 choke me
3343 #endif
3346 return 0;
3348 _ACEOF
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350 ac_compiler_gnu=yes
3351 else
3352 ac_compiler_gnu=no
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3359 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3360 if test $ac_compiler_gnu = yes; then
3361 GCC=yes
3362 else
3363 GCC=
3365 ac_test_CFLAGS=${CFLAGS+set}
3366 ac_save_CFLAGS=$CFLAGS
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3368 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3369 if ${ac_cv_prog_cc_g+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 ac_save_c_werror_flag=$ac_c_werror_flag
3373 ac_c_werror_flag=yes
3374 ac_cv_prog_cc_g=no
3375 CFLAGS="-g"
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3380 main ()
3384 return 0;
3386 _ACEOF
3387 if ac_fn_c_try_compile "$LINENO"; then :
3388 ac_cv_prog_cc_g=yes
3389 else
3390 CFLAGS=""
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3395 main ()
3399 return 0;
3401 _ACEOF
3402 if ac_fn_c_try_compile "$LINENO"; then :
3404 else
3405 ac_c_werror_flag=$ac_save_c_werror_flag
3406 CFLAGS="-g"
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3411 main ()
3415 return 0;
3417 _ACEOF
3418 if ac_fn_c_try_compile "$LINENO"; then :
3419 ac_cv_prog_cc_g=yes
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3429 $as_echo "$ac_cv_prog_cc_g" >&6; }
3430 if test "$ac_test_CFLAGS" = set; then
3431 CFLAGS=$ac_save_CFLAGS
3432 elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3434 CFLAGS="-g -O2"
3435 else
3436 CFLAGS="-g"
3438 else
3439 if test "$GCC" = yes; then
3440 CFLAGS="-O2"
3441 else
3442 CFLAGS=
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3446 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3447 if ${ac_cv_prog_cc_c89+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 ac_cv_prog_cc_c89=no
3451 ac_save_CC=$CC
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454 #include <stdarg.h>
3455 #include <stdio.h>
3456 #include <sys/types.h>
3457 #include <sys/stat.h>
3458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3459 struct buf { int x; };
3460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461 static char *e (p, i)
3462 char **p;
3463 int i;
3465 return p[i];
3467 static char *f (char * (*g) (char **, int), char **p, ...)
3469 char *s;
3470 va_list v;
3471 va_start (v,p);
3472 s = g (p, va_arg (v,int));
3473 va_end (v);
3474 return s;
3477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3478 function prototypes and stuff, but not '\xHH' hex character constants.
3479 These don't provoke an error unfortunately, instead are silently treated
3480 as 'x'. The following induces an error, until -std is added to get
3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3482 array size at least. It's necessary to write '\x00'==0 to get something
3483 that's true only with -std. */
3484 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3486 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487 inside strings and character constants. */
3488 #define FOO(x) 'x'
3489 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3491 int test (int i, double x);
3492 struct s1 {int (*f) (int a);};
3493 struct s2 {int (*f) (double a);};
3494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495 int argc;
3496 char **argv;
3498 main ()
3500 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 return 0;
3504 _ACEOF
3505 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3508 CC="$ac_save_CC $ac_arg"
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_cv_prog_cc_c89=$ac_arg
3512 rm -f core conftest.err conftest.$ac_objext
3513 test "x$ac_cv_prog_cc_c89" != "xno" && break
3514 done
3515 rm -f conftest.$ac_ext
3516 CC=$ac_save_CC
3519 # AC_CACHE_VAL
3520 case "x$ac_cv_prog_cc_c89" in
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3523 $as_echo "none needed" >&6; } ;;
3524 xno)
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3526 $as_echo "unsupported" >&6; } ;;
3528 CC="$CC $ac_cv_prog_cc_c89"
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3530 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3531 esac
3532 if test "x$ac_cv_prog_cc_c89" != xno; then :
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 case $ac_cv_prog_cc_stdc in #(
3543 no) :
3544 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3545 *) :
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3547 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3548 if ${ac_cv_prog_cc_c99+:} false; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 ac_cv_prog_cc_c99=no
3552 ac_save_CC=$CC
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #include <stdarg.h>
3556 #include <stdbool.h>
3557 #include <stdlib.h>
3558 #include <wchar.h>
3559 #include <stdio.h>
3561 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3562 #define debug(...) fprintf (stderr, __VA_ARGS__)
3563 #define showlist(...) puts (#__VA_ARGS__)
3564 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3565 static void
3566 test_varargs_macros (void)
3568 int x = 1234;
3569 int y = 5678;
3570 debug ("Flag");
3571 debug ("X = %d\n", x);
3572 showlist (The first, second, and third items.);
3573 report (x>y, "x is %d but y is %d", x, y);
3576 // Check long long types.
3577 #define BIG64 18446744073709551615ull
3578 #define BIG32 4294967295ul
3579 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3580 #if !BIG_OK
3581 your preprocessor is broken;
3582 #endif
3583 #if BIG_OK
3584 #else
3585 your preprocessor is broken;
3586 #endif
3587 static long long int bignum = -9223372036854775807LL;
3588 static unsigned long long int ubignum = BIG64;
3590 struct incomplete_array
3592 int datasize;
3593 double data[];
3596 struct named_init {
3597 int number;
3598 const wchar_t *name;
3599 double average;
3602 typedef const char *ccp;
3604 static inline int
3605 test_restrict (ccp restrict text)
3607 // See if C++-style comments work.
3608 // Iterate through items via the restricted pointer.
3609 // Also check for declarations in for loops.
3610 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3611 continue;
3612 return 0;
3615 // Check varargs and va_copy.
3616 static void
3617 test_varargs (const char *format, ...)
3619 va_list args;
3620 va_start (args, format);
3621 va_list args_copy;
3622 va_copy (args_copy, args);
3624 const char *str;
3625 int number;
3626 float fnumber;
3628 while (*format)
3630 switch (*format++)
3632 case 's': // string
3633 str = va_arg (args_copy, const char *);
3634 break;
3635 case 'd': // int
3636 number = va_arg (args_copy, int);
3637 break;
3638 case 'f': // float
3639 fnumber = va_arg (args_copy, double);
3640 break;
3641 default:
3642 break;
3645 va_end (args_copy);
3646 va_end (args);
3650 main ()
3653 // Check bool.
3654 _Bool success = false;
3656 // Check restrict.
3657 if (test_restrict ("String literal") == 0)
3658 success = true;
3659 char *restrict newvar = "Another string";
3661 // Check varargs.
3662 test_varargs ("s, d' f .", "string", 65, 34.234);
3663 test_varargs_macros ();
3665 // Check flexible array members.
3666 struct incomplete_array *ia =
3667 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3668 ia->datasize = 10;
3669 for (int i = 0; i < ia->datasize; ++i)
3670 ia->data[i] = i * 1.234;
3672 // Check named initializers.
3673 struct named_init ni = {
3674 .number = 34,
3675 .name = L"Test wide string",
3676 .average = 543.34343,
3679 ni.number = 58;
3681 int dynamic_array[ni.number];
3682 dynamic_array[ni.number - 1] = 543;
3684 // work around unused variable warnings
3685 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3686 || dynamic_array[ni.number - 1] != 543);
3689 return 0;
3691 _ACEOF
3692 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_c99=$ac_arg
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c99" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3705 # AC_CACHE_VAL
3706 case "x$ac_cv_prog_cc_c99" in
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 $as_echo "none needed" >&6; } ;;
3710 xno)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 $as_echo "unsupported" >&6; } ;;
3714 CC="$CC $ac_cv_prog_cc_c99"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3716 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3717 esac
3718 if test "x$ac_cv_prog_cc_c99" != xno; then :
3719 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3722 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3723 if ${ac_cv_prog_cc_c89+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 ac_cv_prog_cc_c89=no
3727 ac_save_CC=$CC
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3730 #include <stdarg.h>
3731 #include <stdio.h>
3732 #include <sys/types.h>
3733 #include <sys/stat.h>
3734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3735 struct buf { int x; };
3736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3737 static char *e (p, i)
3738 char **p;
3739 int i;
3741 return p[i];
3743 static char *f (char * (*g) (char **, int), char **p, ...)
3745 char *s;
3746 va_list v;
3747 va_start (v,p);
3748 s = g (p, va_arg (v,int));
3749 va_end (v);
3750 return s;
3753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3754 function prototypes and stuff, but not '\xHH' hex character constants.
3755 These don't provoke an error unfortunately, instead are silently treated
3756 as 'x'. The following induces an error, until -std is added to get
3757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3758 array size at least. It's necessary to write '\x00'==0 to get something
3759 that's true only with -std. */
3760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3762 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3763 inside strings and character constants. */
3764 #define FOO(x) 'x'
3765 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3767 int test (int i, double x);
3768 struct s1 {int (*f) (int a);};
3769 struct s2 {int (*f) (double a);};
3770 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3771 int argc;
3772 char **argv;
3774 main ()
3776 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3778 return 0;
3780 _ACEOF
3781 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784 CC="$ac_save_CC $ac_arg"
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_prog_cc_c89=$ac_arg
3788 rm -f core conftest.err conftest.$ac_objext
3789 test "x$ac_cv_prog_cc_c89" != "xno" && break
3790 done
3791 rm -f conftest.$ac_ext
3792 CC=$ac_save_CC
3795 # AC_CACHE_VAL
3796 case "x$ac_cv_prog_cc_c89" in
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3799 $as_echo "none needed" >&6; } ;;
3800 xno)
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3802 $as_echo "unsupported" >&6; } ;;
3804 CC="$CC $ac_cv_prog_cc_c89"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3806 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3807 esac
3808 if test "x$ac_cv_prog_cc_c89" != xno; then :
3809 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3810 else
3811 ac_cv_prog_cc_stdc=no
3816 esac
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3818 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3819 if ${ac_cv_prog_cc_stdc+:} false; then :
3820 $as_echo_n "(cached) " >&6
3823 case $ac_cv_prog_cc_stdc in #(
3824 no) :
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3826 $as_echo "unsupported" >&6; } ;; #(
3827 '') :
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3829 $as_echo "none needed" >&6; } ;; #(
3830 *) :
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3832 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3833 esac
3835 ac_ext=cpp
3836 ac_cpp='$CXXCPP $CPPFLAGS'
3837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3840 if test -z "$CXX"; then
3841 if test -n "$CCC"; then
3842 CXX=$CCC
3843 else
3844 if test -n "$ac_tool_prefix"; then
3845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_CXX+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$CXX"; then
3855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 CXX=$ac_cv_prog_CXX
3875 if test -n "$CXX"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3877 $as_echo "$CXX" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$CXX" && break
3885 done
3887 if test -z "$CXX"; then
3888 ac_ct_CXX=$CXX
3889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$ac_ct_CXX"; then
3899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_ac_ct_CXX="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3912 done
3913 done
3914 IFS=$as_save_IFS
3918 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3919 if test -n "$ac_ct_CXX"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3921 $as_echo "$ac_ct_CXX" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3928 test -n "$ac_ct_CXX" && break
3929 done
3931 if test "x$ac_ct_CXX" = x; then
3932 CXX="g++"
3933 else
3934 case $cross_compiling:$ac_tool_warned in
3935 yes:)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3938 ac_tool_warned=yes ;;
3939 esac
3940 CXX=$ac_ct_CXX
3946 # Provide some information about the compiler.
3947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3948 set X $ac_compile
3949 ac_compiler=$2
3950 for ac_option in --version -v -V -qversion; do
3951 { { ac_try="$ac_compiler $ac_option >&5"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3959 ac_status=$?
3960 if test -s conftest.err; then
3961 sed '10a\
3962 ... rest of stderr output deleted ...
3963 10q' conftest.err >conftest.er1
3964 cat conftest.er1 >&5
3966 rm -f conftest.er1 conftest.err
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }
3969 done
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3972 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3973 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3980 main ()
3982 #ifndef __GNUC__
3983 choke me
3984 #endif
3987 return 0;
3989 _ACEOF
3990 if ac_fn_cxx_try_compile "$LINENO"; then :
3991 ac_compiler_gnu=yes
3992 else
3993 ac_compiler_gnu=no
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4000 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4001 if test $ac_compiler_gnu = yes; then
4002 GXX=yes
4003 else
4004 GXX=
4006 ac_test_CXXFLAGS=${CXXFLAGS+set}
4007 ac_save_CXXFLAGS=$CXXFLAGS
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4009 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4010 if ${ac_cv_prog_cxx_g+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4014 ac_cxx_werror_flag=yes
4015 ac_cv_prog_cxx_g=no
4016 CXXFLAGS="-g"
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4021 main ()
4025 return 0;
4027 _ACEOF
4028 if ac_fn_cxx_try_compile "$LINENO"; then :
4029 ac_cv_prog_cxx_g=yes
4030 else
4031 CXXFLAGS=""
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4036 main ()
4040 return 0;
4042 _ACEOF
4043 if ac_fn_cxx_try_compile "$LINENO"; then :
4045 else
4046 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4047 CXXFLAGS="-g"
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4052 main ()
4056 return 0;
4058 _ACEOF
4059 if ac_fn_cxx_try_compile "$LINENO"; then :
4060 ac_cv_prog_cxx_g=yes
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4070 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4071 if test "$ac_test_CXXFLAGS" = set; then
4072 CXXFLAGS=$ac_save_CXXFLAGS
4073 elif test $ac_cv_prog_cxx_g = yes; then
4074 if test "$GXX" = yes; then
4075 CXXFLAGS="-g -O2"
4076 else
4077 CXXFLAGS="-g"
4079 else
4080 if test "$GXX" = yes; then
4081 CXXFLAGS="-O2"
4082 else
4083 CXXFLAGS=
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4098 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4099 # On Suns, sometimes $CPP names a directory.
4100 if test -n "$CPP" && test -d "$CPP"; then
4101 CPP=
4103 if test -z "$CPP"; then
4104 if ${ac_cv_prog_CPP+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 # Double quotes because CPP needs to be expanded
4108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4110 ac_preproc_ok=false
4111 for ac_c_preproc_warn_flag in '' yes
4113 # Use a header file that comes with gcc, so configuring glibc
4114 # with a fresh cross-compiler works.
4115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116 # <limits.h> exists even on freestanding compilers.
4117 # On the NeXT, cc -E runs the code through the compiler's parser,
4118 # not just through cpp. "Syntax error" is here to catch this case.
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #ifdef __STDC__
4122 # include <limits.h>
4123 #else
4124 # include <assert.h>
4125 #endif
4126 Syntax error
4127 _ACEOF
4128 if ac_fn_c_try_cpp "$LINENO"; then :
4130 else
4131 # Broken: fails on valid input.
4132 continue
4134 rm -f conftest.err conftest.i conftest.$ac_ext
4136 # OK, works on sane cases. Now check whether nonexistent headers
4137 # can be detected and how.
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140 #include <ac_nonexistent.h>
4141 _ACEOF
4142 if ac_fn_c_try_cpp "$LINENO"; then :
4143 # Broken: success on invalid input.
4144 continue
4145 else
4146 # Passes both tests.
4147 ac_preproc_ok=:
4148 break
4150 rm -f conftest.err conftest.i conftest.$ac_ext
4152 done
4153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154 rm -f conftest.i conftest.err conftest.$ac_ext
4155 if $ac_preproc_ok; then :
4156 break
4159 done
4160 ac_cv_prog_CPP=$CPP
4163 CPP=$ac_cv_prog_CPP
4164 else
4165 ac_cv_prog_CPP=$CPP
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4168 $as_echo "$CPP" >&6; }
4169 ac_preproc_ok=false
4170 for ac_c_preproc_warn_flag in '' yes
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #ifdef __STDC__
4181 # include <limits.h>
4182 #else
4183 # include <assert.h>
4184 #endif
4185 Syntax error
4186 _ACEOF
4187 if ac_fn_c_try_cpp "$LINENO"; then :
4189 else
4190 # Broken: fails on valid input.
4191 continue
4193 rm -f conftest.err conftest.i conftest.$ac_ext
4195 # OK, works on sane cases. Now check whether nonexistent headers
4196 # can be detected and how.
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #include <ac_nonexistent.h>
4200 _ACEOF
4201 if ac_fn_c_try_cpp "$LINENO"; then :
4202 # Broken: success on invalid input.
4203 continue
4204 else
4205 # Passes both tests.
4206 ac_preproc_ok=:
4207 break
4209 rm -f conftest.err conftest.i conftest.$ac_ext
4211 done
4212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4213 rm -f conftest.i conftest.err conftest.$ac_ext
4214 if $ac_preproc_ok; then :
4216 else
4217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4219 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4220 See \`config.log' for more details" "$LINENO" 5; }
4223 ac_ext=c
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 # Check for a compatible awk
4231 for ac_prog in gawk nawk
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_AWK+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -n "$AWK"; then
4241 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_AWK="$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4254 done
4255 done
4256 IFS=$as_save_IFS
4260 AWK=$ac_cv_prog_AWK
4261 if test -n "$AWK"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4263 $as_echo "$AWK" >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4270 test -n "$AWK" && break
4271 done
4273 if test "$AWK" = ""; then
4274 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4276 # Extract the first word of "mmake", so it can be a program name with args.
4277 set dummy mmake; ac_word=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_prog_MMAKE+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -n "$MMAKE"; then
4284 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_MMAKE="mmake "
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4297 done
4298 done
4299 IFS=$as_save_IFS
4303 MMAKE=$ac_cv_prog_MMAKE
4304 if test -n "$MMAKE"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4306 $as_echo "$MMAKE" >&6; }
4307 else
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4314 # Perform some default variable assignments. Note all of these will be
4315 # Regenerated from the script, so there is no need to cache them.
4317 aros_host_cpp="$CPP"
4318 aros_host_cc="$CC"
4319 aros_host_cxx="$CXX"
4320 if test "$GCC" = "yes"; then
4321 aros_gcc_ld=`$CC -print-prog-name=ld`
4322 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4323 set dummy `basename $aros_gcc_ld`; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_path_aros_host_ld+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 case $aros_host_ld in
4330 [\\/]* | ?:[\\/]*)
4331 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in `dirname $aros_gcc_ld`
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4350 esac
4352 aros_host_ld=$ac_cv_path_aros_host_ld
4353 if test -n "$aros_host_ld"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4355 $as_echo "$aros_host_ld" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4363 if test "$aros_host_ld" = ""; then
4364 # Extract the first word of "ld", so it can be a program name with args.
4365 set dummy ld; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_path_aros_host_ld+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 case $aros_host_ld in
4372 [\\/]* | ?:[\\/]*)
4373 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4387 done
4388 done
4389 IFS=$as_save_IFS
4392 esac
4394 aros_host_ld=$ac_cv_path_aros_host_ld
4395 if test -n "$aros_host_ld"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4397 $as_echo "$aros_host_ld" >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4405 if test "$aros_host_ld" = ""; then
4406 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4408 aros_host_make="make"
4409 aros_host_cflags=$CFLAGS
4410 aros_host_cxxflags=$CXXFLAGS
4411 aros_host_ldflags=$LDFLAGS
4412 aros_host_debug="-g -O0"
4413 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4414 aros_host_mkargs="--no-print-directory"
4415 aros_host_exe_suffix="$EXEEXT"
4416 aros_host_lib_suffix=""
4418 # Ignore all compliance, AROS ROMs = 0
4419 # KickStart v1.0 = 30
4420 # KickStart v1.3 = 34
4421 # KickStart v2.0 = 37
4422 # KickStart v3.0 = 39
4423 # KickStart v3.1 = 40
4424 # AmigaOS v3.5 = 44
4425 aros_amigaos_compliance=0
4427 for ac_prog in aclocal aclocal19 aclocal-1.9
4429 # Extract the first word of "$ac_prog", so it can be a program name with args.
4430 set dummy $ac_prog; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -n "$aros_host_aclocal"; then
4437 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_aros_host_aclocal="$ac_prog"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4450 done
4451 done
4452 IFS=$as_save_IFS
4456 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4457 if test -n "$aros_host_aclocal"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4459 $as_echo "$aros_host_aclocal" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4466 test -n "$aros_host_aclocal" && break
4467 done
4469 for ac_prog in autoconf autoconf259 autoconf253
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -n "$aros_host_autoconf"; then
4479 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_aros_host_autoconf="$ac_prog"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4492 done
4493 done
4494 IFS=$as_save_IFS
4498 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4499 if test -n "$aros_host_autoconf"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4501 $as_echo "$aros_host_autoconf" >&6; }
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4508 test -n "$aros_host_autoconf" && break
4509 done
4511 for ac_prog in autoheader autoheader259 autoheader253
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -n "$aros_host_autoheader"; then
4521 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_aros_host_autoheader="$ac_prog"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4536 IFS=$as_save_IFS
4540 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4541 if test -n "$aros_host_autoheader"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4543 $as_echo "$aros_host_autoheader" >&6; }
4544 else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4550 test -n "$aros_host_autoheader" && break
4551 done
4553 for ac_prog in automake automake19 automake-1.9
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_aros_host_automake+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$aros_host_automake"; then
4563 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_aros_host_automake="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 aros_host_automake=$ac_cv_prog_aros_host_automake
4583 if test -n "$aros_host_automake"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4585 $as_echo "$aros_host_automake" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$aros_host_automake" && break
4593 done
4596 if test "$aros_host_aclocal" = ""; then
4597 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4599 if test "$aros_host_automake" = ""; then
4600 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4603 case "$aros_host_cc" in
4604 *gcc*)
4605 aros_host_cc_pipe="-pipe"
4607 icc)
4608 aros_host_cc_pipe=""
4611 aros_host_cc_pipe=""
4613 esac
4615 aros_kernel_cc_includes=""
4616 aros_target_cc_includes=""
4618 # ----------------------------------------------------------------------------------------
4619 # Host-specific defaults
4621 # This is the main host configuration section. It is where the host
4622 # can change the values of any variables it needs to change. We do
4623 # not look at anything that compiles to the target yet, we'll get
4624 # to that later.
4626 case "$host_os" in
4627 aros*)
4628 aros_host_arch="aros"
4629 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4630 case "$host_cpu" in
4631 *i?86*)
4632 aros_host_cpu="i386"
4634 *x86_64*)
4635 aros_host_cpu="x86_64"
4637 *powerpc*)
4638 aros_host_cpu="ppc"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4642 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4643 aros_host_cpu="$host_cpu"
4645 esac
4648 linux*)
4649 aros_host_arch="linux"
4650 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4651 android_build_os="linux-x86"
4652 android_tool="android"
4653 default_android_sdk="/opt/android-sdk-linux_x86"
4654 case "$host_cpu" in
4655 *i?86*)
4656 aros_host_cpu="i386"
4658 *x86_64*)
4659 aros_host_cpu="x86_64"
4661 *m68k*)
4662 aros_host_cpu="m68k"
4664 *powerpc*)
4665 aros_host_cpu="ppc"
4667 *arm*)
4668 aros_host_cpu="arm"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4672 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4673 aros_host_cpu="$host_cpu"
4675 esac
4678 freebsd*)
4679 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4680 aros_host_make="gmake"
4681 aros_host_arch="freebsd"
4682 aros_host_cpu="i386"
4684 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4686 case $host_os in
4687 freebsd[234]*)
4688 aros_object_format="elf_i386"
4692 aros_object_format="elf_i386_fbsd"
4694 esac
4698 darwin*)
4699 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4700 aros_host_arch="darwin"
4701 android_build_os="darwin-x86"
4702 android_tool="android"
4703 default_android_sdk="/android-sdk-mac_x86"
4704 case "$host_cpu" in
4705 *i?86*)
4706 aros_host_cpu="i386"
4708 *x86_64*)
4709 aros_host_cpu="x86_64"
4711 *powerpc*)
4712 aros_host_cpu="ppc"
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4716 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4717 aros_host_cpu="$host_cpu"
4719 esac
4721 aros_host_ldflags="$aros_host_ldflags -liconv"
4725 dragonfly*)
4726 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4727 aros_host_make="gmake"
4728 aros_host_arch="dragonfly"
4729 case $host_cpu in
4730 *i?86*)
4731 aros_host_cpu="i386"
4733 *amd64*)
4734 aros_host_cpu="x86_64"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4738 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4739 aros_host_cpu="$host_cpu"
4741 esac
4744 netbsd*)
4745 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4746 aros_host_make="gmake"
4747 aros_host_arch="netbsd"
4748 case "$host_cpu" in
4749 *i?86*)
4750 aros_host_cpu="i386"
4752 *m68k*)
4753 aros_host_cpu="m68k"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4757 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4758 aros_host_cpu="$host_cpu"
4760 esac
4761 aros_host_lib_suffix=".0.0"
4764 openbsd*)
4765 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4766 aros_host_make="gmake"
4767 aros_host_arch="openbsd"
4768 case "$host_cpu" in
4769 *i?86*)
4770 aros_host_cpu="i386"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4774 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4775 aros_host_cpu="$host_cpu"
4777 esac
4780 solaris*)
4781 aros_host_arch="solaris"
4782 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4783 case "$host_cpu" in
4784 *i?86*)
4785 aros_host_cpu="i386"
4787 *sparc*)
4788 aros_host_cpu="sparc"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4792 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4793 aros_host_cpu="$host_cpu"
4795 esac
4798 morphos*)
4799 aros_host_arch="morphos"
4800 aros_host_cpu="ppc"
4803 amiga*)
4804 aros_host_arch="amiga"
4805 SORT="/gg/bin/sort"
4806 TEST="/gg/bin/test"
4807 UNIQ="/gg/bin/uniq"
4808 FOR="for"
4809 TOUCH="/gg/bin/touch"
4810 case "$host_cpu" in
4811 *m68k*)
4812 aros_host_cpu="m68k"
4814 *powerpc*)
4815 aros_host_cpu="ppc"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4819 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4820 aros_host_cpu="$host_cpu"
4822 esac
4825 cygwin*)
4826 aros_host_arch="cygwin"
4827 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4828 android_build_os="windows"
4829 android_tool="android.bat"
4830 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4832 case "$host_cpu" in
4833 *i?86*)
4834 aros_host_cpu="i386"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4838 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4839 aros_host_cpu="$host_cpu"
4841 esac
4844 mingw32*)
4845 aros_host_arch="mingw32"
4846 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4847 android_build_os="windows"
4848 android_tool="android.bat"
4849 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4851 case "$host_cpu" in
4852 *i?86*)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4855 $as_echo_n "checking for Windows native gcc target... " >&6; }
4856 host_cpu=`gcc -dumpmachine`
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4858 $as_echo "$host_cpu" >&6; }
4861 esac
4863 case "$host_cpu" in
4864 *i?86*)
4865 aros_host_cpu="i386"
4868 mingw32*)
4869 aros_host_cpu="i386"
4872 *x86_64*)
4873 aros_host_cpu="x86_64"
4874 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4879 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4880 aros_host_cpu="$host_cpu"
4882 esac
4885 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4887 esac
4889 # Extract the first word of "ar", so it can be a program name with args.
4890 set dummy ar; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_prog_aros_host_ar+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$aros_host_ar"; then
4897 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_aros_host_ar="ar cr"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4910 done
4911 done
4912 IFS=$as_save_IFS
4916 aros_host_ar=$ac_cv_prog_aros_host_ar
4917 if test -n "$aros_host_ar"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4919 $as_echo "$aros_host_ar" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4926 if test "$aros_host_ar" = ""; then
4927 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4929 # Extract the first word of "ranlib", so it can be a program name with args.
4930 set dummy ranlib; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$aros_host_ranlib"; then
4937 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_aros_host_ranlib="ranlib "
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4950 done
4951 done
4952 IFS=$as_save_IFS
4956 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4957 if test -n "$aros_host_ranlib"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4959 $as_echo "$aros_host_ranlib" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4966 if test "$aros_host_ranlib" = ""; then
4967 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4969 # Extract the first word of "strip", so it can be a program name with args.
4970 set dummy strip; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_aros_host_strip+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$aros_host_strip"; then
4977 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_aros_host_strip="strip "
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 aros_host_strip=$ac_cv_prog_aros_host_strip
4997 if test -n "$aros_host_strip"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4999 $as_echo "$aros_host_strip" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5006 if test "$aros_host_strip" = ""; then
5007 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5010 # Extract the first word of "rm", so it can be a program name with args.
5011 set dummy rm; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_RM+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$RM"; then
5018 ac_cv_prog_RM="$RM" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027 ac_cv_prog_RM="rm -rf"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5031 done
5032 done
5033 IFS=$as_save_IFS
5037 RM=$ac_cv_prog_RM
5038 if test -n "$RM"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5040 $as_echo "$RM" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5047 if test "$RM" = ""; then
5048 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5050 # Extract the first word of "cp", so it can be a program name with args.
5051 set dummy cp; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_CP+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$CP"; then
5058 ac_cv_prog_CP="$CP" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_CP="cp "
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5071 done
5072 done
5073 IFS=$as_save_IFS
5077 CP=$ac_cv_prog_CP
5078 if test -n "$CP"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5080 $as_echo "$CP" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 if test "$CP" = ""; then
5088 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5090 # Extract the first word of "mv", so it can be a program name with args.
5091 set dummy mv; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_MV+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if test -n "$MV"; then
5098 ac_cv_prog_MV="$MV" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_prog_MV="mv "
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5111 done
5112 done
5113 IFS=$as_save_IFS
5117 MV=$ac_cv_prog_MV
5118 if test -n "$MV"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5120 $as_echo "$MV" >&6; }
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5127 if test "$MV" = ""; then
5128 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5130 # Extract the first word of "echo", so it can be a program name with args.
5131 set dummy echo; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_prog_ECHO+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -n "$ECHO"; then
5138 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_ECHO="echo "
5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5151 done
5152 done
5153 IFS=$as_save_IFS
5157 ECHO=$ac_cv_prog_ECHO
5158 if test -n "$ECHO"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5160 $as_echo "$ECHO" >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5167 if test "$ECHO" = ""; then
5168 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5170 # Extract the first word of "mkdir", so it can be a program name with args.
5171 set dummy mkdir; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if ${ac_cv_prog_MKDIR+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$MKDIR"; then
5178 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_MKDIR="mkdir -p"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5191 done
5192 done
5193 IFS=$as_save_IFS
5197 MKDIR=$ac_cv_prog_MKDIR
5198 if test -n "$MKDIR"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5200 $as_echo "$MKDIR" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5207 if test "$MKDIR" = ""; then
5208 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5210 # Extract the first word of "touch", so it can be a program name with args.
5211 set dummy touch; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_TOUCH+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$TOUCH"; then
5218 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_TOUCH="touch "
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5231 done
5232 done
5233 IFS=$as_save_IFS
5237 TOUCH=$ac_cv_prog_TOUCH
5238 if test -n "$TOUCH"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5240 $as_echo "$TOUCH" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5247 if test "$TOUCH" = ""; then
5248 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5250 # Extract the first word of "sort", so it can be a program name with args.
5251 set dummy sort; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_SORT+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$SORT"; then
5258 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_SORT="sort "
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5271 done
5272 done
5273 IFS=$as_save_IFS
5277 SORT=$ac_cv_prog_SORT
5278 if test -n "$SORT"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5280 $as_echo "$SORT" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5287 if test "$SORT" = ""; then
5288 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5290 # Extract the first word of "uniq", so it can be a program name with args.
5291 set dummy uniq; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_UNIQ+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 if test -n "$UNIQ"; then
5298 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_prog_UNIQ="uniq "
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5311 done
5312 done
5313 IFS=$as_save_IFS
5317 UNIQ=$ac_cv_prog_UNIQ
5318 if test -n "$UNIQ"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5320 $as_echo "$UNIQ" >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 if test "$UNIQ" = ""; then
5328 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5330 # Extract the first word of "true", so it can be a program name with args.
5331 set dummy true; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_NOP+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 if test -n "$NOP"; then
5338 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_prog_NOP="true "
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 break 2
5351 done
5352 done
5353 IFS=$as_save_IFS
5357 NOP=$ac_cv_prog_NOP
5358 if test -n "$NOP"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5360 $as_echo "$NOP" >&6; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5367 if test "$NOP" = ""; then
5368 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5370 # Extract the first word of "cat", so it can be a program name with args.
5371 set dummy cat; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if ${ac_cv_prog_CAT+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 if test -n "$CAT"; then
5378 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5379 else
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_prog_CAT="cat "
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 break 2
5391 done
5392 done
5393 IFS=$as_save_IFS
5397 CAT=$ac_cv_prog_CAT
5398 if test -n "$CAT"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5400 $as_echo "$CAT" >&6; }
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5407 if test "$CAT" = ""; then
5408 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5410 # Extract the first word of "bison", so it can be a program name with args.
5411 set dummy bison; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_prog_BISON+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if test -n "$BISON"; then
5418 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_BISON="bison "
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5431 done
5432 done
5433 IFS=$as_save_IFS
5437 BISON=$ac_cv_prog_BISON
5438 if test -n "$BISON"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5440 $as_echo "$BISON" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5447 if test "$BISON" = ""; then
5448 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5450 # Extract the first word of "flex", so it can be a program name with args.
5451 set dummy flex; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_FLEX+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$FLEX"; then
5458 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_FLEX="flex "
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5471 done
5472 done
5473 IFS=$as_save_IFS
5477 FLEX=$ac_cv_prog_FLEX
5478 if test -n "$FLEX"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5480 $as_echo "$FLEX" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5487 if test "$FLEX" = ""; then
5488 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5490 # Extract the first word of "pngtopnm", so it can be a program name with args.
5491 set dummy pngtopnm; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$PNGTOPNM"; then
5498 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_PNGTOPNM="pngtopnm "
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5511 done
5512 done
5513 IFS=$as_save_IFS
5517 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5518 if test -n "$PNGTOPNM"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5520 $as_echo "$PNGTOPNM" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5527 if test "$PNGTOPNM" = ""; then
5528 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5530 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5531 set dummy ppmtoilbm; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$PPMTOILBM"; then
5538 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5551 done
5552 done
5553 IFS=$as_save_IFS
5557 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5558 if test -n "$PPMTOILBM"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5560 $as_echo "$PPMTOILBM" >&6; }
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5567 if test "$PPMTOILBM" = ""; then
5568 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5570 # Extract the first word of "sed", so it can be a program name with args.
5571 set dummy sed; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_SED+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$SED"; then
5578 ac_cv_prog_SED="$SED" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_SED="sed "
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5591 done
5592 done
5593 IFS=$as_save_IFS
5597 SED=$ac_cv_prog_SED
5598 if test -n "$SED"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5600 $as_echo "$SED" >&6; }
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5607 if test "$SED" = ""; then
5608 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5610 # Extract the first word of "chmod", so it can be a program name with args.
5611 set dummy chmod; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_CHMOD+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if test -n "$CHMOD"; then
5618 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_CHMOD="chmod "
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5631 done
5632 done
5633 IFS=$as_save_IFS
5637 CHMOD=$ac_cv_prog_CHMOD
5638 if test -n "$CHMOD"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5640 $as_echo "$CHMOD" >&6; }
5641 else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5647 if test "$CHMOD" = ""; then
5648 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5650 # Extract the first word of "patch", so it can be a program name with args.
5651 set dummy patch; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_PATCH+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if test -n "$PATCH"; then
5658 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_PATCH="patch "
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5671 done
5672 done
5673 IFS=$as_save_IFS
5677 PATCH=$ac_cv_prog_PATCH
5678 if test -n "$PATCH"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5680 $as_echo "$PATCH" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5687 if test "$PATCH" = ""; then
5688 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5695 if test -n "$PYTHON"; then
5696 # If the user set $PYTHON, use it and don't search something else.
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5698 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5699 prog="import sys, string
5700 # split strings by '.' and convert to numeric. Append some zeros
5701 # because we need at least 4 digits for the hex conversion.
5702 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5703 minverhex = 0
5704 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5705 sys.exit(sys.hexversion < minverhex)"
5706 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5707 ($PYTHON -c "$prog") >&5 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; then :
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712 $as_echo "yes" >&6; }
5713 else
5714 as_fn_error $? "too old" "$LINENO" 5
5716 am_display_PYTHON=$PYTHON
5717 else
5718 # Otherwise, try each interpreter until we find one that satisfies
5719 # VERSION.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5721 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5722 if ${am_cv_pathless_PYTHON+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5726 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
5727 test "$am_cv_pathless_PYTHON" = none && break
5728 prog="import sys, string
5729 # split strings by '.' and convert to numeric. Append some zeros
5730 # because we need at least 4 digits for the hex conversion.
5731 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5732 minverhex = 0
5733 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5734 sys.exit(sys.hexversion < minverhex)"
5735 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5736 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; then :
5740 break
5742 done
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5745 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5746 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5747 if test "$am_cv_pathless_PYTHON" = none; then
5748 PYTHON=:
5749 else
5750 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5751 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_path_PYTHON+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 case $PYTHON in
5758 [\\/]* | ?:[\\/]*)
5759 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5778 esac
5780 PYTHON=$ac_cv_path_PYTHON
5781 if test -n "$PYTHON"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5783 $as_echo "$PYTHON" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5791 am_display_PYTHON=$am_cv_pathless_PYTHON
5795 if test "$PYTHON" = :; then
5796 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5797 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5801 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5802 if ${am_cv_python_version+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5808 $as_echo "$am_cv_python_version" >&6; }
5809 PYTHON_VERSION=$am_cv_python_version
5813 PYTHON_PREFIX='${prefix}'
5815 PYTHON_EXEC_PREFIX='${exec_prefix}'
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5820 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5821 if ${am_cv_python_platform+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5827 $as_echo "$am_cv_python_platform" >&6; }
5828 PYTHON_PLATFORM=$am_cv_python_platform
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5834 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5835 if ${am_cv_python_pythondir+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5839 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5842 $as_echo "$am_cv_python_pythondir" >&6; }
5843 pythondir=$am_cv_python_pythondir
5847 pkgpythondir=\${pythondir}/$PACKAGE
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5851 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5852 if ${am_cv_python_pyexecdir+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5856 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5859 $as_echo "$am_cv_python_pyexecdir" >&6; }
5860 pyexecdir=$am_cv_python_pyexecdir
5864 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5872 FOR=for
5874 IF=if
5876 TEST=test
5878 CMP=cmp
5882 # Check for some includes for the X11 HIDD and the kernel
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5886 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5887 if ${ac_cv_path_GREP+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -z "$GREP"; then
5891 ac_path_GREP_found=false
5892 # Loop through the user's path and test for each of PROGNAME-LIST
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_prog in grep ggrep; do
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5901 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5902 # Check for GNU ac_path_GREP and select it if it is found.
5903 # Check for GNU $ac_path_GREP
5904 case `"$ac_path_GREP" --version 2>&1` in
5905 *GNU*)
5906 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5908 ac_count=0
5909 $as_echo_n 0123456789 >"conftest.in"
5910 while :
5912 cat "conftest.in" "conftest.in" >"conftest.tmp"
5913 mv "conftest.tmp" "conftest.in"
5914 cp "conftest.in" "conftest.nl"
5915 $as_echo 'GREP' >> "conftest.nl"
5916 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5918 as_fn_arith $ac_count + 1 && ac_count=$as_val
5919 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5920 # Best one so far, save it but keep looking for a better one
5921 ac_cv_path_GREP="$ac_path_GREP"
5922 ac_path_GREP_max=$ac_count
5924 # 10*(2^10) chars as input seems more than enough
5925 test $ac_count -gt 10 && break
5926 done
5927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5928 esac
5930 $ac_path_GREP_found && break 3
5931 done
5932 done
5933 done
5934 IFS=$as_save_IFS
5935 if test -z "$ac_cv_path_GREP"; then
5936 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5938 else
5939 ac_cv_path_GREP=$GREP
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5944 $as_echo "$ac_cv_path_GREP" >&6; }
5945 GREP="$ac_cv_path_GREP"
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5949 $as_echo_n "checking for egrep... " >&6; }
5950 if ${ac_cv_path_EGREP+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5954 then ac_cv_path_EGREP="$GREP -E"
5955 else
5956 if test -z "$EGREP"; then
5957 ac_path_EGREP_found=false
5958 # Loop through the user's path and test for each of PROGNAME-LIST
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_prog in egrep; do
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5967 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5968 # Check for GNU ac_path_EGREP and select it if it is found.
5969 # Check for GNU $ac_path_EGREP
5970 case `"$ac_path_EGREP" --version 2>&1` in
5971 *GNU*)
5972 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5974 ac_count=0
5975 $as_echo_n 0123456789 >"conftest.in"
5976 while :
5978 cat "conftest.in" "conftest.in" >"conftest.tmp"
5979 mv "conftest.tmp" "conftest.in"
5980 cp "conftest.in" "conftest.nl"
5981 $as_echo 'EGREP' >> "conftest.nl"
5982 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5984 as_fn_arith $ac_count + 1 && ac_count=$as_val
5985 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5986 # Best one so far, save it but keep looking for a better one
5987 ac_cv_path_EGREP="$ac_path_EGREP"
5988 ac_path_EGREP_max=$ac_count
5990 # 10*(2^10) chars as input seems more than enough
5991 test $ac_count -gt 10 && break
5992 done
5993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5994 esac
5996 $ac_path_EGREP_found && break 3
5997 done
5998 done
5999 done
6000 IFS=$as_save_IFS
6001 if test -z "$ac_cv_path_EGREP"; then
6002 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6004 else
6005 ac_cv_path_EGREP=$EGREP
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6011 $as_echo "$ac_cv_path_EGREP" >&6; }
6012 EGREP="$ac_cv_path_EGREP"
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6016 $as_echo_n "checking for ANSI C header files... " >&6; }
6017 if ${ac_cv_header_stdc+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 #include <stdlib.h>
6023 #include <stdarg.h>
6024 #include <string.h>
6025 #include <float.h>
6028 main ()
6032 return 0;
6034 _ACEOF
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036 ac_cv_header_stdc=yes
6037 else
6038 ac_cv_header_stdc=no
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 if test $ac_cv_header_stdc = yes; then
6043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 #include <string.h>
6048 _ACEOF
6049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6050 $EGREP "memchr" >/dev/null 2>&1; then :
6052 else
6053 ac_cv_header_stdc=no
6055 rm -f conftest*
6059 if test $ac_cv_header_stdc = yes; then
6060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 #include <stdlib.h>
6065 _ACEOF
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "free" >/dev/null 2>&1; then :
6069 else
6070 ac_cv_header_stdc=no
6072 rm -f conftest*
6076 if test $ac_cv_header_stdc = yes; then
6077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6078 if test "$cross_compiling" = yes; then :
6080 else
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 #include <ctype.h>
6084 #include <stdlib.h>
6085 #if ((' ' & 0x0FF) == 0x020)
6086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6088 #else
6089 # define ISLOWER(c) \
6090 (('a' <= (c) && (c) <= 'i') \
6091 || ('j' <= (c) && (c) <= 'r') \
6092 || ('s' <= (c) && (c) <= 'z'))
6093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6094 #endif
6096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6098 main ()
6100 int i;
6101 for (i = 0; i < 256; i++)
6102 if (XOR (islower (i), ISLOWER (i))
6103 || toupper (i) != TOUPPER (i))
6104 return 2;
6105 return 0;
6107 _ACEOF
6108 if ac_fn_c_try_run "$LINENO"; then :
6110 else
6111 ac_cv_header_stdc=no
6113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6114 conftest.$ac_objext conftest.beam conftest.$ac_ext
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6120 $as_echo "$ac_cv_header_stdc" >&6; }
6121 if test $ac_cv_header_stdc = yes; then
6123 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6128 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6129 inttypes.h stdint.h unistd.h
6130 do :
6131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6134 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6135 cat >>confdefs.h <<_ACEOF
6136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6137 _ACEOF
6141 done
6144 for ac_header in sys/ipc.h sys/shm.h \
6145 sys/mmap.h sys/mman.h sysexits.h \
6146 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6148 do :
6149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6150 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6151 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6152 cat >>confdefs.h <<_ACEOF
6153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6154 _ACEOF
6158 done
6161 for ac_header in sys/mount.h
6162 do :
6163 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6165 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6166 cat >>confdefs.h <<_ACEOF
6167 #define HAVE_SYS_MOUNT_H 1
6168 _ACEOF
6172 done
6175 ac_header_dirent=no
6176 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6177 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6179 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6180 if eval \${$as_ac_Header+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <sys/types.h>
6186 #include <$ac_hdr>
6189 main ()
6191 if ((DIR *) 0)
6192 return 0;
6194 return 0;
6196 _ACEOF
6197 if ac_fn_c_try_compile "$LINENO"; then :
6198 eval "$as_ac_Header=yes"
6199 else
6200 eval "$as_ac_Header=no"
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 eval ac_res=\$$as_ac_Header
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6206 $as_echo "$ac_res" >&6; }
6207 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6210 _ACEOF
6212 ac_header_dirent=$ac_hdr; break
6215 done
6216 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6217 if test $ac_header_dirent = dirent.h; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6219 $as_echo_n "checking for library containing opendir... " >&6; }
6220 if ${ac_cv_search_opendir+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 ac_func_search_save_LIBS=$LIBS
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6227 /* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6230 #ifdef __cplusplus
6231 extern "C"
6232 #endif
6233 char opendir ();
6235 main ()
6237 return opendir ();
6239 return 0;
6241 _ACEOF
6242 for ac_lib in '' dir; do
6243 if test -z "$ac_lib"; then
6244 ac_res="none required"
6245 else
6246 ac_res=-l$ac_lib
6247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6249 if ac_fn_c_try_link "$LINENO"; then :
6250 ac_cv_search_opendir=$ac_res
6252 rm -f core conftest.err conftest.$ac_objext \
6253 conftest$ac_exeext
6254 if ${ac_cv_search_opendir+:} false; then :
6255 break
6257 done
6258 if ${ac_cv_search_opendir+:} false; then :
6260 else
6261 ac_cv_search_opendir=no
6263 rm conftest.$ac_ext
6264 LIBS=$ac_func_search_save_LIBS
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6267 $as_echo "$ac_cv_search_opendir" >&6; }
6268 ac_res=$ac_cv_search_opendir
6269 if test "$ac_res" != no; then :
6270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6276 $as_echo_n "checking for library containing opendir... " >&6; }
6277 if ${ac_cv_search_opendir+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 ac_func_search_save_LIBS=$LIBS
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6284 /* Override any GCC internal prototype to avoid an error.
6285 Use char because int might match the return type of a GCC
6286 builtin and then its argument prototype would still apply. */
6287 #ifdef __cplusplus
6288 extern "C"
6289 #endif
6290 char opendir ();
6292 main ()
6294 return opendir ();
6296 return 0;
6298 _ACEOF
6299 for ac_lib in '' x; do
6300 if test -z "$ac_lib"; then
6301 ac_res="none required"
6302 else
6303 ac_res=-l$ac_lib
6304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6306 if ac_fn_c_try_link "$LINENO"; then :
6307 ac_cv_search_opendir=$ac_res
6309 rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext
6311 if ${ac_cv_search_opendir+:} false; then :
6312 break
6314 done
6315 if ${ac_cv_search_opendir+:} false; then :
6317 else
6318 ac_cv_search_opendir=no
6320 rm conftest.$ac_ext
6321 LIBS=$ac_func_search_save_LIBS
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6324 $as_echo "$ac_cv_search_opendir" >&6; }
6325 ac_res=$ac_cv_search_opendir
6326 if test "$ac_res" != no; then :
6327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6334 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6335 if ${ac_cv_header_stat_broken+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 #include <sys/types.h>
6341 #include <sys/stat.h>
6343 #if defined S_ISBLK && defined S_IFDIR
6344 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6345 #endif
6347 #if defined S_ISBLK && defined S_IFCHR
6348 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6349 #endif
6351 #if defined S_ISLNK && defined S_IFREG
6352 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6353 #endif
6355 #if defined S_ISSOCK && defined S_IFREG
6356 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6357 #endif
6359 _ACEOF
6360 if ac_fn_c_try_compile "$LINENO"; then :
6361 ac_cv_header_stat_broken=no
6362 else
6363 ac_cv_header_stat_broken=yes
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6368 $as_echo "$ac_cv_header_stat_broken" >&6; }
6369 if test $ac_cv_header_stat_broken = yes; then
6371 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6376 $as_echo_n "checking for ANSI C header files... " >&6; }
6377 if ${ac_cv_header_stdc+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382 #include <stdlib.h>
6383 #include <stdarg.h>
6384 #include <string.h>
6385 #include <float.h>
6388 main ()
6392 return 0;
6394 _ACEOF
6395 if ac_fn_c_try_compile "$LINENO"; then :
6396 ac_cv_header_stdc=yes
6397 else
6398 ac_cv_header_stdc=no
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 if test $ac_cv_header_stdc = yes; then
6403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 #include <string.h>
6408 _ACEOF
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410 $EGREP "memchr" >/dev/null 2>&1; then :
6412 else
6413 ac_cv_header_stdc=no
6415 rm -f conftest*
6419 if test $ac_cv_header_stdc = yes; then
6420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <stdlib.h>
6425 _ACEOF
6426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6427 $EGREP "free" >/dev/null 2>&1; then :
6429 else
6430 ac_cv_header_stdc=no
6432 rm -f conftest*
6436 if test $ac_cv_header_stdc = yes; then
6437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6438 if test "$cross_compiling" = yes; then :
6440 else
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <ctype.h>
6444 #include <stdlib.h>
6445 #if ((' ' & 0x0FF) == 0x020)
6446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6448 #else
6449 # define ISLOWER(c) \
6450 (('a' <= (c) && (c) <= 'i') \
6451 || ('j' <= (c) && (c) <= 'r') \
6452 || ('s' <= (c) && (c) <= 'z'))
6453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6454 #endif
6456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6458 main ()
6460 int i;
6461 for (i = 0; i < 256; i++)
6462 if (XOR (islower (i), ISLOWER (i))
6463 || toupper (i) != TOUPPER (i))
6464 return 2;
6465 return 0;
6467 _ACEOF
6468 if ac_fn_c_try_run "$LINENO"; then :
6470 else
6471 ac_cv_header_stdc=no
6473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6474 conftest.$ac_objext conftest.beam conftest.$ac_ext
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6480 $as_echo "$ac_cv_header_stdc" >&6; }
6481 if test $ac_cv_header_stdc = yes; then
6483 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6488 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6489 if ${ac_cv_header_sys_wait_h+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494 #include <sys/types.h>
6495 #include <sys/wait.h>
6496 #ifndef WEXITSTATUS
6497 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6498 #endif
6499 #ifndef WIFEXITED
6500 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6501 #endif
6504 main ()
6506 int s;
6507 wait (&s);
6508 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6510 return 0;
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 ac_cv_header_sys_wait_h=yes
6515 else
6516 ac_cv_header_sys_wait_h=no
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6521 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6522 if test $ac_cv_header_sys_wait_h = yes; then
6524 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6529 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6530 if ${ac_cv_header_time+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 #include <sys/types.h>
6536 #include <sys/time.h>
6537 #include <time.h>
6540 main ()
6542 if ((struct tm *) 0)
6543 return 0;
6545 return 0;
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 ac_cv_header_time=yes
6550 else
6551 ac_cv_header_time=no
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6556 $as_echo "$ac_cv_header_time" >&6; }
6557 if test $ac_cv_header_time = yes; then
6559 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6563 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6564 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6566 cat >>confdefs.h <<_ACEOF
6567 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6568 _ACEOF
6571 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6576 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6577 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6579 cat >>confdefs.h <<_ACEOF
6580 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6581 _ACEOF
6584 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6586 else
6587 case " $LIBOBJS " in
6588 *" fileblocks.$ac_objext "* ) ;;
6589 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6591 esac
6596 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6597 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6599 cat >>confdefs.h <<_ACEOF
6600 #define HAVE_STRUCT_STAT_ST_RDEV 1
6601 _ACEOF
6604 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6610 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6611 if ${ac_cv_struct_tm+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616 #include <sys/types.h>
6617 #include <time.h>
6620 main ()
6622 struct tm tm;
6623 int *p = &tm.tm_sec;
6624 return !p;
6626 return 0;
6628 _ACEOF
6629 if ac_fn_c_try_compile "$LINENO"; then :
6630 ac_cv_struct_tm=time.h
6631 else
6632 ac_cv_struct_tm=sys/time.h
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6637 $as_echo "$ac_cv_struct_tm" >&6; }
6638 if test $ac_cv_struct_tm = sys/time.h; then
6640 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6644 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6645 #include <$ac_cv_struct_tm>
6648 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6650 cat >>confdefs.h <<_ACEOF
6651 #define HAVE_STRUCT_TM_TM_ZONE 1
6652 _ACEOF
6657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6659 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6661 else
6662 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6664 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6665 ac_have_decl=1
6666 else
6667 ac_have_decl=0
6670 cat >>confdefs.h <<_ACEOF
6671 #define HAVE_DECL_TZNAME $ac_have_decl
6672 _ACEOF
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6675 $as_echo_n "checking for tzname... " >&6; }
6676 if ${ac_cv_var_tzname+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 #include <time.h>
6682 #if !HAVE_DECL_TZNAME
6683 extern char *tzname[];
6684 #endif
6687 main ()
6689 return tzname[0][0];
6691 return 0;
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6695 ac_cv_var_tzname=yes
6696 else
6697 ac_cv_var_tzname=no
6699 rm -f core conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6703 $as_echo "$ac_cv_var_tzname" >&6; }
6704 if test $ac_cv_var_tzname = yes; then
6706 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6711 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6712 if test "x$ac_cv_type_off_t" = xyes; then :
6714 else
6716 cat >>confdefs.h <<_ACEOF
6717 #define off_t long int
6718 _ACEOF
6722 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6723 if test "x$ac_cv_type_pid_t" = xyes; then :
6725 else
6727 cat >>confdefs.h <<_ACEOF
6728 #define pid_t int
6729 _ACEOF
6733 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6734 if test "x$ac_cv_type_size_t" = xyes; then :
6736 else
6738 cat >>confdefs.h <<_ACEOF
6739 #define size_t unsigned int
6740 _ACEOF
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6745 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6746 if ${ac_cv_type_uid_t+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <sys/types.h>
6753 _ACEOF
6754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755 $EGREP "uid_t" >/dev/null 2>&1; then :
6756 ac_cv_type_uid_t=yes
6757 else
6758 ac_cv_type_uid_t=no
6760 rm -f conftest*
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6764 $as_echo "$ac_cv_type_uid_t" >&6; }
6765 if test $ac_cv_type_uid_t = no; then
6767 $as_echo "#define uid_t int" >>confdefs.h
6770 $as_echo "#define gid_t int" >>confdefs.h
6775 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6776 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6778 cat >>confdefs.h <<_ACEOF
6779 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6780 _ACEOF
6786 # Look for some functions
6787 for ac_func in getpagesize kqueue statfs statvfs \
6788 clone kse_create rfork_thread thr_create sa_register \
6789 getcontext makecontext setcontext sigaltstack swapcontext
6790 do :
6791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6792 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6793 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6794 cat >>confdefs.h <<_ACEOF
6795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6796 _ACEOF
6799 done
6805 for ac_header in $ac_header_list
6806 do :
6807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6808 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6811 cat >>confdefs.h <<_ACEOF
6812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6813 _ACEOF
6817 done
6826 for ac_func in getpagesize
6827 do :
6828 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6829 if test "x$ac_cv_func_getpagesize" = xyes; then :
6830 cat >>confdefs.h <<_ACEOF
6831 #define HAVE_GETPAGESIZE 1
6832 _ACEOF
6835 done
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6838 $as_echo_n "checking for working mmap... " >&6; }
6839 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test "$cross_compiling" = yes; then :
6843 ac_cv_func_mmap_fixed_mapped=no
6844 else
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 $ac_includes_default
6848 /* malloc might have been renamed as rpl_malloc. */
6849 #undef malloc
6851 /* Thanks to Mike Haertel and Jim Avera for this test.
6852 Here is a matrix of mmap possibilities:
6853 mmap private not fixed
6854 mmap private fixed at somewhere currently unmapped
6855 mmap private fixed at somewhere already mapped
6856 mmap shared not fixed
6857 mmap shared fixed at somewhere currently unmapped
6858 mmap shared fixed at somewhere already mapped
6859 For private mappings, we should verify that changes cannot be read()
6860 back from the file, nor mmap's back from the file at a different
6861 address. (There have been systems where private was not correctly
6862 implemented like the infamous i386 svr4.0, and systems where the
6863 VM page cache was not coherent with the file system buffer cache
6864 like early versions of FreeBSD and possibly contemporary NetBSD.)
6865 For shared mappings, we should conversely verify that changes get
6866 propagated back to all the places they're supposed to be.
6868 Grep wants private fixed already mapped.
6869 The main things grep needs to know about mmap are:
6870 * does it exist and is it safe to write into the mmap'd area
6871 * how to use it (BSD variants) */
6873 #include <fcntl.h>
6874 #include <sys/mman.h>
6876 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6877 char *malloc ();
6878 #endif
6880 /* This mess was copied from the GNU getpagesize.h. */
6881 #ifndef HAVE_GETPAGESIZE
6882 # ifdef _SC_PAGESIZE
6883 # define getpagesize() sysconf(_SC_PAGESIZE)
6884 # else /* no _SC_PAGESIZE */
6885 # ifdef HAVE_SYS_PARAM_H
6886 # include <sys/param.h>
6887 # ifdef EXEC_PAGESIZE
6888 # define getpagesize() EXEC_PAGESIZE
6889 # else /* no EXEC_PAGESIZE */
6890 # ifdef NBPG
6891 # define getpagesize() NBPG * CLSIZE
6892 # ifndef CLSIZE
6893 # define CLSIZE 1
6894 # endif /* no CLSIZE */
6895 # else /* no NBPG */
6896 # ifdef NBPC
6897 # define getpagesize() NBPC
6898 # else /* no NBPC */
6899 # ifdef PAGESIZE
6900 # define getpagesize() PAGESIZE
6901 # endif /* PAGESIZE */
6902 # endif /* no NBPC */
6903 # endif /* no NBPG */
6904 # endif /* no EXEC_PAGESIZE */
6905 # else /* no HAVE_SYS_PARAM_H */
6906 # define getpagesize() 8192 /* punt totally */
6907 # endif /* no HAVE_SYS_PARAM_H */
6908 # endif /* no _SC_PAGESIZE */
6910 #endif /* no HAVE_GETPAGESIZE */
6913 main ()
6915 char *data, *data2, *data3;
6916 const char *cdata2;
6917 int i, pagesize;
6918 int fd, fd2;
6920 pagesize = getpagesize ();
6922 /* First, make a file with some known garbage in it. */
6923 data = (char *) malloc (pagesize);
6924 if (!data)
6925 return 1;
6926 for (i = 0; i < pagesize; ++i)
6927 *(data + i) = rand ();
6928 umask (0);
6929 fd = creat ("conftest.mmap", 0600);
6930 if (fd < 0)
6931 return 2;
6932 if (write (fd, data, pagesize) != pagesize)
6933 return 3;
6934 close (fd);
6936 /* Next, check that the tail of a page is zero-filled. File must have
6937 non-zero length, otherwise we risk SIGBUS for entire page. */
6938 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6939 if (fd2 < 0)
6940 return 4;
6941 cdata2 = "";
6942 if (write (fd2, cdata2, 1) != 1)
6943 return 5;
6944 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6945 if (data2 == MAP_FAILED)
6946 return 6;
6947 for (i = 0; i < pagesize; ++i)
6948 if (*(data2 + i))
6949 return 7;
6950 close (fd2);
6951 if (munmap (data2, pagesize))
6952 return 8;
6954 /* Next, try to mmap the file at a fixed address which already has
6955 something else allocated at it. If we can, also make sure that
6956 we see the same garbage. */
6957 fd = open ("conftest.mmap", O_RDWR);
6958 if (fd < 0)
6959 return 9;
6960 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6962 return 10;
6963 for (i = 0; i < pagesize; ++i)
6964 if (*(data + i) != *(data2 + i))
6965 return 11;
6967 /* Finally, make sure that changes to the mapped area do not
6968 percolate back to the file as seen by read(). (This is a bug on
6969 some variants of i386 svr4.0.) */
6970 for (i = 0; i < pagesize; ++i)
6971 *(data2 + i) = *(data2 + i) + 1;
6972 data3 = (char *) malloc (pagesize);
6973 if (!data3)
6974 return 12;
6975 if (read (fd, data3, pagesize) != pagesize)
6976 return 13;
6977 for (i = 0; i < pagesize; ++i)
6978 if (*(data + i) != *(data3 + i))
6979 return 14;
6980 close (fd);
6981 return 0;
6983 _ACEOF
6984 if ac_fn_c_try_run "$LINENO"; then :
6985 ac_cv_func_mmap_fixed_mapped=yes
6986 else
6987 ac_cv_func_mmap_fixed_mapped=no
6989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6990 conftest.$ac_objext conftest.beam conftest.$ac_ext
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6995 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6996 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6998 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7001 rm -f conftest.mmap conftest.txt
7006 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7007 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7008 aros_config_ldflags=""
7010 aros_shared_default=yes
7012 aros_shared_cflags="-fPIC"
7013 aros_shared_aflags=""
7014 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7015 aros_kernel_ldflags="-Wl,-rpath,./lib"
7017 aros_kernel_ar_flags="cr"
7018 aros_target_ar_flags="cr"
7019 aros_target_nm_flags="-C -ul"
7020 aros_target_strip_flags="--strip-unneeded -R.comment"
7022 aros_compiler_libs=
7023 aros_arch_libs=
7025 aros_target_genmap="-Wl,-Map -Xlinker"
7027 # Native flavour stuff
7028 aros_serial_debug="0"
7030 # Palm native flavour stuff
7031 aros_palm_debug_hack="0"
7033 # Unix flavour stuff
7034 aros_nesting_supervisor="0"
7036 # Collect-aros stuff: "-ius" to ignore undefined symbols
7037 ignore_undefined_symbols=""
7039 # Check for X11 by default
7040 need_x11="auto"
7042 # Leave at 'none' for no external toolchain
7043 kernel_tool_prefix="none"
7045 #-----------------------------------------------------------------------------
7048 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7049 # it switched on by default, and we use the host compiler, so it compiles AROS
7050 # code with this enabled resulting in link failures as we don't have support
7051 # for it.
7053 # We use two methods to disable it. For the host compiler (used to compile
7054 # some hosted modules), we test to see if the compiler supports stack
7055 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7056 # work on all platforms.
7058 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7059 # (this is done unconditionally, as it should have no effect on compilers
7060 # without the stack protection feature). This may be specific to the way that
7061 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7062 # strong enough to disable it in a generic way though, so we'll live with it
7063 # until another vendor ships GCC with it enabled in a different way, and deal
7064 # with it then.
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7068 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7069 save_cflags="$CFLAGS"
7070 CFLAGS="$CFLAGS -fno-stack-protector"
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7075 main ()
7079 return 0;
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083 use_no_stack_protector="yes"
7084 else
7085 use_no_stack_protector="no"
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7089 $as_echo "$use_no_stack_protector" >&6; }
7090 if test "x-$use_no_stack_protector" = "x-yes" ; then
7091 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7093 CFLAGS="$save_cflags"
7095 #-----------------------------------------------------------------------------
7097 # Disable pointer-signedness warnings if the compiler recognises the option
7098 # (this only works for the host compiler at the moment)
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7101 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7102 save_cflags="$CFLAGS"
7103 CFLAGS="$CFLAGS -Wno-pointer-sign"
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7108 main ()
7112 return 0;
7114 _ACEOF
7115 if ac_fn_c_try_compile "$LINENO"; then :
7116 use_no_sign_warning="yes"
7117 else
7118 use_no_sign_warning="no"
7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7122 $as_echo "$use_no_sign_warning" >&6; }
7123 if test "x-$use_no_sign_warning" = "x-yes" ; then
7124 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7126 CFLAGS="$save_cflags"
7128 #-----------------------------------------------------------------------------
7130 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7133 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7134 save_cflags="$CFLAGS"
7135 CFLAGS="$CFLAGS -fgnu89-inline"
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7140 main ()
7144 return 0;
7146 _ACEOF
7147 if ac_fn_c_try_compile "$LINENO"; then :
7148 use_gnu89_inline="yes"
7149 else
7150 use_gnu89_inline="no"
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7154 $as_echo "$use_gnu89_inline" >&6; }
7155 if test "x-$use_gnu89_inline" = "x-yes" ; then
7156 gnu89_inline="-fgnu89-inline"
7158 CFLAGS="$save_cflags"
7160 #-----------------------------------------------------------------------------
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7163 $as_echo_n "checking for type of build... " >&6; }
7164 # Check whether --enable-build_type was given.
7165 if test "${enable_build_type+set}" = set; then :
7166 enableval=$enable_build_type; build_type=$enableval
7167 else
7168 build_type="personal"
7172 if test "$build_type" = "nightly"; then
7173 build_type_string="NIGHTLY"
7174 elif test "$build_type" = "snapshot"; then
7175 build_type_string="SNAPSHOT"
7176 elif test "$build_type" = "milestone"; then
7177 build_type_string="MILESTONE"
7178 elif test "$build_type" = "release"; then
7179 build_type_string="RELEASE"
7180 else
7181 build_type_string="PERSONAL"
7182 build_type="personal"
7185 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7188 $as_echo "$build_type" >&6; }
7190 #-----------------------------------------------------------------------------
7191 all_debug_types="messages stack modules mungwall symbols"
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7194 $as_echo_n "checking which debug types to enable... " >&6; }
7195 # Check whether --enable-debug was given.
7196 if test "${enable_debug+set}" = set; then :
7197 enableval=$enable_debug; debug="$enableval"
7198 else
7199 debug=""
7203 if test "$debug" = "" -o "$debug" = "no"; then
7204 debug="none"
7205 elif test "$debug" = "yes"; then
7206 debug="all"
7209 if test "$debug" = "all" ; then
7210 debug="messages stack modules symbols"
7211 for d in $all_debug_types; do
7212 export aros_${d}_debug="1"
7213 done
7214 else
7215 for d in $all_debug_types; do
7216 export aros_${d}_debug="0"
7217 done
7220 if test "$debug" != "none"; then
7221 debug=`echo $debug | sed s/,/\ /g`
7222 for d in $debug; do
7223 found="0"
7224 for d2 in $all_debug_types; do
7225 if test "$d2" = "$d"; then
7226 found="1"
7227 break
7229 done
7230 if test "$found" = "0"; then
7231 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7233 export aros_${d}_debug="1"
7234 done
7235 aros_debug="yes"
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7238 $as_echo "$debug" >&6; }
7240 if test "$aros_messages_debug" = "1"; then
7241 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7242 else
7243 aros_messages_debug=""
7245 if test "$aros_symbols_debug" = "1"; then
7246 aros_symbols_debug="-g"
7247 else
7248 aros_symbols_debug=""
7251 # These are the flags to pass when compiling debugged programs
7252 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7253 aros_debug_aflags=""
7254 aros_debug_ldflags="$aros_symbols_debug"
7256 #-----------------------------------------------------------------------------
7257 # Checking if we should build crosstools..
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
7259 $as_echo_n "checking whether to build crosstools... " >&6; }
7260 # Check whether --enable-crosstools was given.
7261 if test "${enable_crosstools+set}" = set; then :
7262 enableval=$enable_crosstools; crosstools="$enableval"
7263 else
7264 crosstools="yes"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
7268 $as_echo "$crosstools" >&6; }
7270 #-----------------------------------------------------------------------------
7271 # Checking for distcc and ccache.
7273 # Always apply the transforms in this particular order. Basically you should
7274 # always run 'ccache distcc compiler' in that order for the best performance.
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7277 $as_echo_n "checking whether to enable distcc... " >&6; }
7278 # Check whether --enable-distcc was given.
7279 if test "${enable_distcc+set}" = set; then :
7280 enableval=$enable_distcc; distcc="$enableval"
7281 else
7282 distcc="no"
7285 if test "$distcc" != "" -a "$distcc" != "no"; then
7286 # AC_CHECK_PROG will print out the result in this case
7287 # Extract the first word of "distcc", so it can be a program name with args.
7288 set dummy distcc; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_path_DISTCC+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 case $DISTCC in
7295 [\\/]* | ?:[\\/]*)
7296 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7310 done
7311 done
7312 IFS=$as_save_IFS
7314 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7316 esac
7318 DISTCC=$ac_cv_path_DISTCC
7319 if test -n "$DISTCC"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7321 $as_echo "$DISTCC" >&6; }
7322 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7328 else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7334 $as_echo_n "checking whether to enable ccache... " >&6; }
7335 # Check whether --enable-ccache was given.
7336 if test "${enable_ccache+set}" = set; then :
7337 enableval=$enable_ccache; ccache="$enableval"
7338 else
7339 ccache="no"
7342 if test "$ccache" != "" -a "$ccache" != "no"; then
7343 # AC_CHECK_PROG will print out the result in this case
7344 # Extract the first word of "ccache", so it can be a program name with args.
7345 set dummy ccache; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_CCACHE+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$CCACHE"; then
7352 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_prog_CCACHE="ccache"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7365 done
7366 done
7367 IFS=$as_save_IFS
7371 CCACHE=$ac_cv_prog_CCACHE
7372 if test -n "$CCACHE"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7374 $as_echo "$CCACHE" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7386 #-----------------------------------------------------------------------------
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7388 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7390 # Check whether --with-gcc-version was given.
7391 if test "${with_gcc_version+set}" = set; then :
7392 withval=$with_gcc_version; kernel_tool_version="$withval"
7393 else
7394 kernel_tool_version="default"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7398 $as_echo "$kernel_tool_version" >&6; }
7400 #-----------------------------------------------------------------------------
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7402 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7404 # Check whether --with-gcc-version was given.
7405 if test "${with_gcc_version+set}" = set; then :
7406 withval=$with_gcc_version; target_tool_version="$withval"
7407 else
7408 target_tool_version="default"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7412 $as_echo "$target_tool_version" >&6; }
7414 #-----------------------------------------------------------------------------
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7416 $as_echo_n "checking what optimization flags to use... " >&6; }
7418 # Check whether --with-optimization was given.
7419 if test "${with_optimization+set}" = set; then :
7420 withval=$with_optimization; optimization="$withval"
7421 else
7422 optimization="unknown"
7425 if test "$optimization" = "unknown"; then
7426 if test "$debug" != "none"; then
7427 optimization="-O0"
7428 else
7429 optimization="-O2"
7432 aros_config_cflags="$aros_config_cflags $optimization"
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7434 $as_echo "$optimization" >&6; }
7436 #-----------------------------------------------------------------------------
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7438 $as_echo_n "checking what paranoia flags to use... " >&6; }
7440 # Check whether --with-paranoia was given.
7441 if test "${with_paranoia+set}" = set; then :
7442 withval=$with_paranoia; paranoia_flags="$withval"
7443 else
7444 paranoia_flags="default"
7447 if test "$paranoia_flags" = "default"; then
7448 paranoia_flags=""
7449 else if test "$paranoia_flags" = "yes"; then
7450 paranoia_flags="-Wall -Werror"
7451 fi fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7453 $as_echo "$paranoia_flags" >&6; }
7454 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7456 #-----------------------------------------------------------------------------
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7458 $as_echo_n "checking what target variant to enable... " >&6; }
7459 # Check whether --enable-target_variant was given.
7460 if test "${enable_target_variant+set}" = set; then :
7461 enableval=$enable_target_variant; target_variant=$enableval
7462 else
7463 target_variant=""
7466 if test "$target_variant" = ""; then
7467 aros_target_variant=""
7468 aros_target_suffix=""
7469 enableval="none"
7470 else
7471 aros_target_variant="$target_variant"
7472 aros_target_suffix="-$target_variant"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7475 $as_echo "$enableval" >&6; }
7477 #-----------------------------------------------------------------------------
7478 # Target-specific defaults. You can override then on a per-target basis.
7480 # Bootloader name. Currently used by PC target.
7481 target_bootloader="none"
7483 #-----------------------------------------------------------------------------
7484 # Additional options for some specific targets
7486 case "$aros_target_variant" in
7487 ios)
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7489 $as_echo_n "checking XCode path... " >&6; }
7491 # Check whether --with-xcode was given.
7492 if test "${with_xcode+set}" = set; then :
7493 withval=$with_xcode; aros_xcode_path="$withval"
7494 else
7495 aros_xcode_path="/Developer"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7499 $as_echo "$aros_xcode_path" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7502 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7504 # Check whether --with-sdk-version was given.
7505 if test "${with_sdk_version+set}" = set; then :
7506 withval=$with_sdk_version; aros_sdk_version="$withval"
7507 else
7508 aros_sdk_version="4.1"
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7512 $as_echo "$aros_sdk_version" >&6; }
7516 "android")
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7518 $as_echo_n "checking Android SDK path... " >&6; }
7520 # Check whether --with-sdk was given.
7521 if test "${with_sdk+set}" = set; then :
7522 withval=$with_sdk; aros_android_sdk="$withval"
7523 else
7524 aros_android_sdk=$default_android_sdk
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7528 $as_echo "$aros_android_sdk" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7531 $as_echo_n "checking Android NDK path... " >&6; }
7533 # Check whether --with-ndk was given.
7534 if test "${with_ndk+set}" = set; then :
7535 withval=$with_ndk; aros_android_ndk="$withval"
7536 else
7537 aros_android_ndk="none"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7541 $as_echo "$aros_android_ndk" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7544 $as_echo_n "checking what Android SDK version to use... " >&6; }
7546 # Check whether --with-sdk-version was given.
7547 if test "${with_sdk_version+set}" = set; then :
7548 withval=$with_sdk_version; aros_sdk_version="$withval"
7549 else
7550 aros_sdk_version="12"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7554 $as_echo "$aros_sdk_version" >&6; }
7556 if test "$aros_android_ndk" != "none"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7558 $as_echo_n "checking what Android NDK version to use... " >&6; }
7560 # Check whether --with-ndk-version was given.
7561 if test "${with_ndk_version+set}" = set; then :
7562 withval=$with_ndk_version; aros_ndk_version="$withval"
7563 else
7564 aros_ndk_version="9"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7568 $as_echo "$aros_ndk_version" >&6; }
7571 export PATH="$aros_android_sdk/tools:$PATH"
7572 # Extract the first word of "$android_tool", so it can be a program name with args.
7573 set dummy $android_tool; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_path_android_tool+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 case $android_tool in
7580 [\\/]* | ?:[\\/]*)
7581 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7595 done
7596 done
7597 IFS=$as_save_IFS
7600 esac
7602 android_tool=$ac_cv_path_android_tool
7603 if test -n "$android_tool"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7605 $as_echo "$android_tool" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7612 if test "$android_tool" = ""; then
7613 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7616 aros_android_level=android-$aros_sdk_version
7617 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7618 echo "Platform $aros_android_level is not installed in your SDK"
7619 echo "Use --with-sdk-version=<API level number> to select another platform version"
7620 echo "You can check what plaform versions are installed in your SDK"
7621 echo "by examining contents of $aros_android_sdk/platforms directory"
7622 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7625 # Extract the first word of "ant", so it can be a program name with args.
7626 set dummy ant; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_path_ant+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 case $ant in
7633 [\\/]* | ?:[\\/]*)
7634 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7648 done
7649 done
7650 IFS=$as_save_IFS
7653 esac
7655 ant=$ac_cv_path_ant
7656 if test -n "$ant"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7658 $as_echo "$ant" >&6; }
7659 else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7665 if test "$ant" = ""; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7667 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7670 if test "$host_os" = "mingw32"; then
7671 android_tool="cmd //c $android_tool"
7675 esac
7677 #-----------------------------------------------------------------------------
7679 # This is the target configuration switch.
7680 case "$target_os" in
7681 linux*)
7682 aros_target_arch="linux"
7683 aros_target_family="unix"
7684 case "$target_cpu" in
7685 *m68k*)
7686 aros_target_cpu="m68k"
7687 aros_object_format="m68kelf"
7688 aros_flavour="emulcompat"
7689 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7690 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7691 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7692 gcc_target_cpu="mc68000"
7694 *i?86*)
7695 aros_target_cpu="i386"
7696 aros_object_format="elf_i386"
7697 aros_flavour="emulation"
7698 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7699 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7700 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7701 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7702 aros_config_ldflags="-m32 -march=i486"
7703 aros_kernel_ldflags="-melf_i386"
7704 aros_default_wbdepth=8
7705 gcc_target_cpu="i386"
7706 pci_hidd_target="hidd-pci-linux"
7707 android_tool_dir_prefix="x86"
7708 android_tool_prefix="i686-android-linux"
7709 android_ndk_arch="x86"
7711 *x86_64*)
7712 aros_target_cpu="x86_64"
7713 aros_object_format="elf_x86_64"
7714 aros_flavour="emulation"
7715 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7716 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7717 aros_default_wbdepth=8
7718 pci_hidd_target="hidd-pci-linux"
7720 *powerpc*)
7721 aros_target_cpu="ppc"
7722 aros_object_format="elf32ppc"
7723 aros_flavour="emulation"
7724 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7725 aros_default_wbdepth=8
7726 gcc_target_cpu="ppc"
7728 # TODO
7729 # Same as powerpc, but I need this for the nightly build to work again.
7730 # Actually, the nightly should be made working with powerpc target.
7731 # That just was too much work for the moment, another week or two.
7732 *ppc*)
7733 aros_target_cpu="ppc"
7734 aros_object_format="elf32ppc"
7735 aros_flavour="emulation"
7736 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7737 aros_default_wbdepth=8
7738 gcc_target_cpu="ppc"
7740 *arm*)
7741 aros_target_cpu="arm"
7742 aros_object_format="armelf_linux_eabi"
7743 aros_flavour="emulation"
7744 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7745 gcc_target_cpu="arm"
7746 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7747 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7748 aros_arch_libs="-laeabi"
7749 android_tool_dir_prefix="arm-linux-androideabi"
7750 android_tool_prefix="arm-linux-androideabi"
7751 android_ndk_arch="arm"
7752 if test "$aros_host_cpu" != "arm" ; then
7753 kernel_tool_prefix="arm-linux-gnueabi-"
7757 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7759 esac
7760 case "$aros_target_variant" in
7761 android)
7763 if test "$android_ndk_arch" = ""; then
7764 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7767 aros_default_wbwidth=320
7768 aros_default_wbheight=480
7769 if test "$aros_android_ndk" = "none"; then
7770 aros_kernel_cflags="-mandroid"
7771 aros_kernel_ldflags="-mandroid"
7772 CFLAGS="-mandroid"
7773 else
7774 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7775 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7776 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7777 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7778 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7779 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7781 need_x11=no
7782 x11_hidd_target=kernel-hidd-androidgfx-kobj
7783 # Disable implicit PIC mode
7784 aros_kernel_cflags="$aros_kernel_cflags -fno-pic"
7785 aros_target_cflags="$aros_target_cflags -fno-pic"
7786 kernel_tool_prefix="$android_tool_prefix-"
7788 esac
7792 aros_target_arch="pc"
7793 aros_shared_default="no"
7794 target_bootloader="grub2"
7795 case "$target_cpu" in
7796 *i?86*)
7797 aros_target_cpu="i386"
7800 if test "$aros_object_format" = "" ; then
7801 aros_object_format="elf_i386"
7803 aros_flavour="standalone"
7804 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7805 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7806 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7807 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7808 aros_config_ldflags="-m32 -march=i486"
7809 aros_kernel_ldflags="-melf_i386"
7810 aros_default_wbwidth=640
7811 aros_default_wbheight=480
7812 gcc_target_cpu="i386"
7814 *x86_64*)
7815 aros_target_cpu="x86_64"
7816 aros_serial_debug=1
7817 if test "$aros_object_format" = "" ; then
7818 aros_object_format="elf_x86_64"
7820 aros_flavour="standalone"
7821 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7822 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7823 aros_kernel_ldflags=""
7824 aros_default_wbwidth=640
7825 aros_default_wbheight=480
7828 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7830 esac
7833 prep)
7834 aros_target_arch="prep"
7835 aros_shared_default="no"
7836 aros_target_cpu="ppc"
7837 aros_object_format="elf32ppc"
7838 aros_flavour="ppcnative"
7839 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7840 aros_kernel_ldflags=""
7841 aros_default_wbwidth=640
7842 aros_default_wbheight=480
7843 gcc_target_cpu="ppc"
7846 freebsd*)
7847 aros_target_arch="freebsd"
7848 aros_target_family="unix"
7849 aros_target_cpu="i386"
7850 aros_flavour="emulation"
7851 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7852 gcc_target_cpu="i386"
7854 aros_target_strip_flags="-x"
7857 darwin*)
7858 aros_target_arch="darwin"
7859 aros_target_family="unix"
7860 aros_flavour="emulation"
7861 case "$target_cpu" in
7862 *i?86*)
7863 aros_ios_platform="iPhoneSimulator"
7864 aros_target_cpu="i386"
7865 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7866 aros_kernel_ldflags=""
7867 aros_macosx_version="10.4"
7868 aros_default_wbdepth=8
7869 gcc_target_cpu="i386"
7870 aros_object_format="elf_i386"
7871 aros_kernel_ar_flags="-cr"
7872 aros_target_strip_flags="-x"
7873 kernel_tool_flags="-m32"
7875 *x86_64*)
7876 aros_target_cpu="x86_64"
7877 aros_object_format="elf_x86_64"
7878 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7879 aros_macosx_version="10.6"
7880 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7881 aros_kernel_cflags="-m64"
7882 aros_kernel_ldflags="-m64"
7883 aros_target_cflags="-mcmodel=large"
7884 aros_default_wbdepth=8
7885 aros_kernel_ar="ar"
7886 aros_kernel_ar_flags="-cr"
7887 aros_kernel_ld="ld"
7888 aros_kernel_ranlib="ranlib"
7890 *ppc*)
7891 aros_target_cpu="ppc"
7892 aros_object_format="elf32ppc"
7893 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7894 aros_kernel_ldflags=""
7895 aros_macosx_version="10.0"
7896 aros_default_wbdepth=8
7897 gcc_target_cpu="ppc"
7898 aros_kernel_ar="ar"
7899 aros_kernel_ar_flags="-cr"
7900 aros_kernel_ld="ld -arch ppc"
7901 aros_kernel_ranlib="ranlib -arch ppc"
7902 kernel_tool_prefix="powerpc-apple-darwin10-"
7904 *arm*)
7905 aros_ios_platform="iPhoneOS"
7906 aros_target_cpu="arm"
7907 aros_object_format="armelf_linux_eabi"
7908 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7909 aros_arch_libs="-laeabi"
7910 aros_default_wbdepth=8
7911 gcc_target_cpu="arm"
7912 aros_kernel_ar="ar"
7913 aros_kernel_ar_flags="-cr"
7914 aros_kernel_ld="ld -arch arm"
7915 aros_kernel_ranlib="ranlib -arch arm"
7916 kernel_tool_prefix="arm-apple-darwin10-"
7917 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7920 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7922 esac
7923 case "$aros_target_variant" in
7924 ios)
7925 aros_ios_version="3.0"
7926 aros_default_wbwidth=320
7927 aros_default_wbheight=480
7928 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7929 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7930 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7931 need_x11=no
7932 # This is here because it may depend on iOS or SDK version
7933 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7934 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7935 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7938 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7939 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7941 esac
7944 dragonfly*)
7945 aros_target_arch="dragonfly"
7946 aros_target_family="unix"
7947 aros_flavour="emulation"
7948 case "$target_cpu" in
7949 *i?86*)
7950 aros_target_cpu="i386"
7951 aros_object_format="elf_i386"
7952 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7954 *x86_64*)
7955 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7956 aros_target_cpu="x86_64"
7957 aros_object_format="elf_x86_64"
7958 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7961 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7963 esac
7966 netbsd*)
7967 aros_target_arch="netbsd"
7968 aros_target_family="unix"
7969 case "$target_cpu" in
7970 *m68k*)
7971 aros_target_cpu="m68k"
7972 aros_object_format="m68kelf"
7973 aros_flavour="emulcompat"
7974 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7975 gcc_target_cpu="mc68000"
7977 *i?86*)
7978 aros_target_cpu="i386"
7979 aros_object_format="elf_i386"
7980 aros_flavour="emulation"
7981 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7982 aros_default_wbdepth=8
7983 gcc_target_cpu="i386"
7986 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7988 esac
7989 aros_target_genmap="-Wl,-M -Xlinker >"
7990 aros_flavour="emulation"
7991 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7994 openbsd*)
7995 aros_target_arch="openbsd"
7996 aros_target_family="unix"
7997 case "$target_cpu" in
7998 *i?86*)
7999 aros_target_cpu="i386"
8000 aros_object_format="elf_i386"
8001 aros_flavour="emulation"
8002 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8003 gcc_target_cpu="i386"
8006 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8008 esac
8009 aros_target_genmap="-Wl,-M -Xlinker >"
8010 aros_target_nm_flags="-u"
8011 aros_flavour="emulation"
8014 solaris*)
8015 aros_target_arch="solaris"
8016 aros_target_family="unix"
8017 case "$target_cpu" in
8018 *i?86*)
8019 aros_target_cpu="i386"
8020 aros_object_format="elf_i386"
8021 aros_flavour="emulation"
8022 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8023 aros_default_wbdepth=8
8024 gcc_target_cpu="i386"
8026 *sparc*)
8027 aros_target_cpu="sparc"
8028 aros_object_format="elf_sparc"
8029 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8030 gcc_target_cpu="sparc"
8033 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8035 esac
8036 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8037 aros_flavour="emulation"
8040 morphos*)
8041 aros_target_arch="morphos"
8042 aros_shared_default="no"
8043 aros_target_cpu="ppc"
8044 aros_object_format="elf_ppc"
8045 aros_flavour="nativecompat"
8046 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8047 gcc_target_cpu="ppc"
8050 sam440)
8051 aros_target_arch="sam440"
8052 aros_shared_default="no"
8053 aros_target_cpu="ppc"
8054 aros_object_format="elf32ppc"
8055 aros_flavour="ppcnative"
8056 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8057 aros_kernel_ldflags=""
8058 aros_default_wbwidth=1024
8059 aros_default_wbheight=768
8060 aros_default_wbdepth=24
8061 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8062 gcc_target_cpu="powerpc"
8065 efika)
8066 aros_target_arch="efika"
8067 aros_shared_default="no"
8068 aros_target_cpu="arm"
8069 aros_object_format="armelf_linux_eabi"
8070 aros_flavour="standalone"
8071 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8072 aros_kernel_ldflags=""
8073 aros_default_wbwidth=1024
8074 aros_default_wbheight=600
8075 aros_arch_libs="-laeabi"
8076 gcc_default_cpu="armv7-a"
8077 gcc_default_fpu="vfpv3"
8078 gcc_default_float_abi="softfp"
8079 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8080 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8083 chrp)
8084 aros_target_arch="chrp"
8085 aros_shared_default="no"
8086 aros_target_cpu="ppc"
8087 aros_object_format="elf32ppc"
8088 aros_flavour="ppcnative"
8089 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8090 aros_kernel_ldflags=""
8091 aros_default_wbwidth=640
8092 aros_default_wbheight=480
8093 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8094 gcc_target_cpu="powerpc"
8095 case "$aros_target_variant" in
8096 efika)
8097 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8099 esac
8102 amiga*)
8103 aros_target_arch="amiga"
8104 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8105 aros_shared_default="no"
8107 case "$target_cpu" in
8108 *m68k*)
8109 # Check whether --enable-amigaos_compliance was given.
8110 if test "${enable_amigaos_compliance+set}" = set; then :
8111 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8114 aros_enable_mmu=no
8115 aros_target_cpu="m68k"
8116 aros_object_format="m68kelf"
8117 aros_flavour="standcompat"
8118 gcc_target_cpu="m68000"
8119 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8120 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8121 # Needed to get the correct multilib
8122 aros_config_ldflags="-${gcc_target_cpu}"
8123 aros_shared_ldflags="-${gcc_target_cpu}"
8124 aros_kernel_ldflags="-${gcc_target_cpu}"
8125 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8126 aros_target_strip_flags="-R.comment --strip-debug"
8127 aros_default_wbwidth=640
8128 aros_default_wbheight=256
8129 aros_default_wbdepth=2
8131 *ppc*)
8132 aros_cpu="ppc"
8133 aros_flavour="native"
8134 gcc_target_cpu="ppc"
8137 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8139 esac
8142 mingw*)
8143 aros_target_arch="mingw32"
8144 aros_shared_default="no"
8145 aros_flavour="emulation"
8146 aros_shared_cflags=""
8147 need_dlopen="no"
8148 rescomp="windres"
8149 case "$target_cpu" in
8150 *i?86*)
8151 aros_target_cpu="i386"
8152 aros_object_format="elf_i386"
8153 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8154 aros_default_wbdepth=8
8155 gcc_target_cpu="i386"
8157 kernel_tool_prefix="i386-mingw32-"
8159 *x86_64*)
8160 aros_target_cpu="x86_64"
8161 aros_object_format="elf_x86_64"
8162 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8163 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8164 aros_default_wbdepth=8
8165 kernel_tool_prefix="x86_64-w64-mingw32-"
8167 *arm*)
8168 aros_target_cpu="arm"
8169 aros_object_format="armelf_linux_eabi"
8170 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8171 aros_arch_libs="-laeabi"
8172 aros_default_wbdepth=8
8173 gcc_target_cpu="arm"
8174 gcc_default_float_abi="soft"
8175 kernel_tool_prefix="arm-mingw32ce-"
8176 aros_default_wbwidth=160
8177 aros_default_wbheight=160
8180 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8182 esac
8183 if test $host_os = "cygwin"; then
8184 aros_kernel_cflags="-mno-cygwin"
8187 pp*)
8188 aros_target_arch="pp"
8189 aros_shared_default="no"
8190 case "$target_cpu" in
8191 *m68k*)
8192 aros_target_cpu="m68k"
8193 aros_object_format="m68kelf"
8194 aros_flavour="palmnative"
8195 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8196 aros_default_wbwidth=160
8197 aros_default_wbheight=160
8198 aros_default_wbdepth=1
8199 aros_target_ar_flags="cru"
8200 aros_compiler_libs="-lgcc1"
8201 aros_shared_default=no
8202 aros_shared_cflags="-fpic"
8203 aros_shared_aflags=""
8204 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8205 aros_kernel_ldflags="-Wl,-rpath,./lib"
8206 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8207 aros_debug_aflags=""
8208 aros_debug_ldflags="$aros_symbols_debug"
8209 aros_mungwall_debug="0"
8210 aros_modules_debug="0"
8211 gcc_target_cpu="mc68000"
8212 ignore_undefined_symbols="-ius"
8215 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8217 esac
8220 mac*)
8221 aros_target_arch="mac"
8222 aros_shared_default="no"
8223 case "$target_cpu" in
8224 *m68k*)
8225 aros_target_cpu="m68k"
8226 aros_object_format="m68kelf"
8227 aros_flavour="mac68knative"
8228 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8229 aros_default_wbwidth=512
8230 aros_default_wbheight=384
8231 aros_default_wbdepth=8
8232 aros_target_ar_flags="cru"
8233 aros_compiler_libs="-lgcc1"
8234 aros_shared_default=no
8235 aros_shared_cflags="-fpic"
8236 aros_shared_aflags=""
8237 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8238 aros_kernel_ldflags="-Wl,-rpath,./lib"
8239 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8240 aros_debug_aflags=""
8241 aros_debug_ldflags="$aros_symbols_debug"
8242 aros_mungwall_debug="0"
8243 aros_modules_debug="0"
8244 gcc_target_cpu="mc68000"
8245 ignore_undefined_symbols="-ius"
8248 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8250 esac
8254 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8256 esac
8258 #-----------------------------------------------------------------------------
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8260 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8262 # Check whether --with-crosstools was given.
8263 if test "${with_crosstools+set}" = set; then :
8264 withval=$with_crosstools; with_crosstools=$withval
8265 else
8266 with_crosstools="default"
8269 if test "$with_crosstools" = "default"; then
8270 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8271 else
8272 # Disable building crosstools if we are using an external set - otherwise
8273 # we may attempt to overwrite them if the tools-crosstools target is made!
8274 crosstools=no
8275 AROS_CROSSTOOLSDIR="$with_crosstools"
8276 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8279 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
8282 $as_echo_n "checking Kernel tool prefix... " >&6; }
8284 # Check whether --with-kernel-tool-prefix was given.
8285 if test "${with_kernel_tool_prefix+set}" = set; then :
8286 withval=$with_kernel_tool_prefix; kernel_tool_prefix="$withval"
8287 else
8288 kernel_tool_prefix="$kernel_tool_prefix"
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8292 $as_echo "$kernel_tool_prefix" >&6; }
8294 target_tool_prefix=${target_cpu}-aros-
8296 # Now process extra architecture-specific options.
8297 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8298 # as well as floating-point ABI.
8299 case "$aros_target_cpu" in
8300 arm)
8301 if test "$gcc_default_cpu" = ""; then
8302 gcc_default_cpu="armv6"
8304 if test "$gcc_default_fpu" = ""; then
8305 gcc_default_fpu="vfp"
8307 if test "$gcc_default_float_abi" = ""; then
8308 gcc_default_float_abi="softfp"
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8312 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8314 # Check whether --with-cpu was given.
8315 if test "${with_cpu+set}" = set; then :
8316 withval=$with_cpu; aros_gcc_cpu="$withval"
8317 else
8318 aros_gcc_cpu=$gcc_default_cpu
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8322 $as_echo "$aros_gcc_cpu" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8325 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8327 # Check whether --with-fpu was given.
8328 if test "${with_fpu+set}" = set; then :
8329 withval=$with_fpu; aros_gcc_fpu="$withval"
8330 else
8331 aros_gcc_fpu=$gcc_default_fpu
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8335 $as_echo "$aros_gcc_fpu" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8338 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8340 # Check whether --with-float was given.
8341 if test "${with_float+set}" = set; then :
8342 withval=$with_float; aros_gcc_float_abi="$withval"
8343 else
8344 aros_gcc_float_abi=$gcc_default_float_abi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8348 $as_echo "$aros_gcc_float_abi" >&6; }
8350 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8351 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8353 esac
8355 # Some formats need custom ELF specs.
8356 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8357 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8358 elf_specs_in=config/${aros_object_format}-specs.in
8359 else
8360 elf_specs_in=config/elf-specs.in
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8364 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8366 # Check whether --with-aros-gcc was given.
8367 if test "${with_aros_gcc+set}" = set; then :
8368 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8369 else
8370 aros_gcc_version=""
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8374 $as_echo "$aros_gcc_version" >&6; }
8376 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8377 # Since we override specs, we may need to put these defines there
8378 if test "$gcc_target_cpu" != ""; then
8379 gcc_target_cpu="-D__${gcc_target_cpu}__"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8383 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8385 # Check whether --with-portssources was given.
8386 if test "${with_portssources+set}" = set; then :
8387 withval=$with_portssources; with_portssrcdir=$withval
8388 else
8389 with_portssrcdir="default"
8392 if test "$with_portssrcdir" = "default"; then
8393 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8394 else
8395 AROS_PORTSSRCDIR="$with_portssrcdir"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8398 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8401 $as_echo_n "checking which bootloader to use... " >&6; }
8403 # Check whether --with-bootloader was given.
8404 if test "${with_bootloader+set}" = set; then :
8405 withval=$with_bootloader; target_bootloader=$withval
8406 else
8407 target_bootloader=$target_bootloader
8410 if test "$target_bootloader" = "none"; then
8411 aros_target_bootloader=""
8412 else
8413 aros_target_bootloader="$target_bootloader"
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8416 $as_echo "$target_bootloader" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8419 $as_echo_n "checking which icon-set to use... " >&6; }
8421 # Check whether --with-iconset was given.
8422 if test "${with_iconset+set}" = set; then :
8423 withval=$with_iconset; target_iconset=$withval
8424 else
8425 target_iconset="default"
8428 if test "$target_iconset" = "default"; then
8429 aros_target_iconset="Gorilla"
8430 target_iconset="default (Gorilla)"
8431 else
8432 aros_target_iconset="$target_iconset"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8435 $as_echo "$target_iconset" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8438 $as_echo_n "checking which GUI Theme to use... " >&6; }
8440 # Check whether --with-theme was given.
8441 if test "${with_theme+set}" = set; then :
8442 withval=$with_theme; target_guitheme=$withval
8443 else
8444 target_guitheme="default"
8447 if test "$target_guitheme" = "default"; then
8448 aros_target_guitheme="Ice"
8449 else
8450 aros_target_guitheme="$target_guitheme"
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8453 $as_echo "$aros_target_guitheme" >&6; }
8455 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8456 # for target code)
8457 cross_compiling=no
8458 if test "$aros_host_cpu" = "$aros_target_cpu" ; then
8459 # If host = target CPU, let's try to use the
8460 # host's toolchains if no others were requested
8461 if test "$kernel_tool_prefix" = "none" ; then
8462 kernel_tool_prefix=""
8464 else
8465 cross_compiling=yes
8468 if test "$aros_host_cpu" == "x86_64" ; then
8469 if test "$aros_target_cpu" == "i386" ; then
8470 if test "$aros_target_arch" != "mingw32"; then
8471 cross_compiling=no
8472 kernel_tool_prefix=""
8477 if test "$aros_host_arch" == "darwin" ; then
8478 if test "$aros_target_arch" != "darwin" ; then
8479 cross_compiling=yes
8480 else
8481 cross_compiling=no
8482 kernel_tool_prefix=""
8486 if test "$aros_host_arch" == "mingw32" ; then
8487 if test "$aros_target_arch" != "mingw32" ; then
8488 cross_compiling=yes
8492 #######################################################################
8493 ## Compute what toolchains to use, and their paths ##
8494 #######################################################################
8496 # This takes, as input:
8497 # crosstools {yes,no}
8498 # aros_gcc_version {default,[version]}
8499 # kernel_tool_prefix {none,[some-arch-os-]}
8500 # target_tool_prefix ${target_cpu}-aros-
8502 # The output is
8503 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8504 # Where the 'kernel' binaries are located
8505 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8506 # Where the 'target' binaries are located
8507 # (not the symlink farm - that is aros_target_*!)
8509 # The rules are:
8510 # if crosstools then
8511 # if kernel_tools_prefix = "no-kernel-prefix-"
8512 # aros_kernel_* = crosstools cc paths
8513 # aros_kernel_cc = elf cc wrapper around crosstools cc
8514 # else
8515 # VALIDATE(${kernel_tools_prefix}*)
8516 # aros_kernel_* = ${kernel_tools_prefix}*
8517 # if ${kernel_tools_prefix}cc is an AROS gcc
8518 # aros_kernel_cc = ${kernel_tools_prefix}cc
8519 # else
8520 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8521 # fi
8522 # fi
8524 # orig_target_* = aros built crosstools
8525 # orig_target_cc = elf cc wrapper around crosstools cc
8526 # else
8527 # VALIDATE(${kernel_tools_prefix}*)
8529 # orig_target_* = aros_kernel_*
8530 # if aros_kernel_cc is an AROS gcc
8531 # orig_target_cc = aros_kernel_cc
8532 # else
8533 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8534 # fi
8535 # fi
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external toolchain" >&5
8539 $as_echo_n "checking whether to use external toolchain... " >&6; }
8540 if test "$kernel_tool_prefix" = "none" ; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; };
8543 if test "$crosstools" != "yes"; then
8544 as_fn_error $? "--disable-crosstools requires --with-kernel-tool-prefix= for this arch" "$LINENO" 5
8546 # We are building AROS crosstools, and no kernel
8547 # tools specified - assume target tools == kernel tools
8548 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
8549 aros_kernel_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
8550 aros_kernel_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
8551 aros_kernel_cpp="${tmp_tool_prefix}cpp"
8552 aros_kernel_ld="${tmp_tool_prefix}ld"
8553 aros_kernel_as="${tmp_tool_prefix}as"
8554 aros_kernel_ar="${tmp_tool_prefix}ar"
8555 aros_kernel_ranlib="${tmp_tool_prefix}ranlib"
8556 aros_kernel_nm="${tmp_tool_prefix}nm"
8557 aros_kernel_strip="${tmp_tool_prefix}strip"
8558 aros_kernel_objcopy="${tmp_tool_prefix}objcopy"
8559 aros_kernel_objdump="${tmp_tool_prefix}objdump"
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8562 $as_echo "yes" >&6; };
8563 # Kernel tools specified - find them
8564 # Note that 'normally', aros_kernel_* overrides will
8565 # empty, unless specified in the per-arch sections above.
8568 if test "$aros_kernel_cpp" = ""; then
8569 if test "$cross_compiling" = "yes" ; then
8570 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8571 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 case $aros_kernel_cpp in
8578 [\\/]* | ?:[\\/]*)
8579 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8589 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8593 done
8594 done
8595 IFS=$as_save_IFS
8598 esac
8600 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8601 if test -n "$aros_kernel_cpp"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8603 $as_echo "$aros_kernel_cpp" >&6; }
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8610 else
8611 if test "$GCC" = "yes"; then
8612 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8613 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8614 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 case $aros_kernel_cpp in
8621 [\\/]* | ?:[\\/]*)
8622 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in `dirname $aros_gcc_cpp`
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8632 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 break 2
8636 done
8637 done
8638 IFS=$as_save_IFS
8641 esac
8643 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8644 if test -n "$aros_kernel_cpp"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8646 $as_echo "$aros_kernel_cpp" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8654 if test "$aros_kernel_cpp" = ""; then
8655 # Extract the first word of "cpp", so it can be a program name with args.
8656 set dummy cpp; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 case $aros_kernel_cpp in
8663 [\\/]* | ?:[\\/]*)
8664 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8674 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8678 done
8679 done
8680 IFS=$as_save_IFS
8683 esac
8685 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8686 if test -n "$aros_kernel_cpp"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8688 $as_echo "$aros_kernel_cpp" >&6; }
8689 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8697 else
8698 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8699 set dummy $aros_kernel_cpp; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 case $aros_kernel_cpp in
8706 [\\/]* | ?:[\\/]*)
8707 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8717 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8721 done
8722 done
8723 IFS=$as_save_IFS
8726 esac
8728 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8729 if test -n "$aros_kernel_cpp"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8731 $as_echo "$aros_kernel_cpp" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8740 if test "$aros_kernel_cpp" = ""; then
8741 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8743 if test "x$aros_kernel_cc" = "x"; then
8744 aros_kernel_cc=${kernel_tool_prefix}gcc
8747 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8748 if test "$cross_compiling" = "yes" ; then
8749 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8750 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 case $aros_kernel_cc in
8757 [\\/]* | ?:[\\/]*)
8758 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8774 IFS=$as_save_IFS
8777 esac
8779 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8780 if test -n "$aros_kernel_cc"; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8782 $as_echo "$aros_kernel_cc" >&6; }
8783 else
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8789 else
8790 if test "$GCC" = "yes"; then
8791 aros_gcc_cc=`$CC -print-prog-name=cc`
8792 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8793 set dummy `basename $aros_gcc_cc`; ac_word=$2
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 $as_echo_n "checking for $ac_word... " >&6; }
8796 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 case $aros_kernel_cc in
8800 [\\/]* | ?:[\\/]*)
8801 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in `dirname $aros_gcc_cc`
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8815 done
8816 done
8817 IFS=$as_save_IFS
8820 esac
8822 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8823 if test -n "$aros_kernel_cc"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8825 $as_echo "$aros_kernel_cc" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8833 if test "$aros_kernel_cc" = ""; then
8834 # Extract the first word of "cc", so it can be a program name with args.
8835 set dummy cc; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 case $aros_kernel_cc in
8842 [\\/]* | ?:[\\/]*)
8843 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847 for as_dir in $PATH
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8853 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 break 2
8857 done
8858 done
8859 IFS=$as_save_IFS
8862 esac
8864 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8865 if test -n "$aros_kernel_cc"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8867 $as_echo "$aros_kernel_cc" >&6; }
8868 else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8876 else
8877 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8878 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 case $aros_kernel_cc in
8885 [\\/]* | ?:[\\/]*)
8886 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 break 2
8900 done
8901 done
8902 IFS=$as_save_IFS
8905 esac
8907 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8908 if test -n "$aros_kernel_cc"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8910 $as_echo "$aros_kernel_cc" >&6; }
8911 else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8919 if test "$aros_kernel_cc" = ""; then
8920 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8922 if test "x$aros_kernel_cxx" = "x"; then
8923 aros_kernel_cxx=${kernel_tool_prefix}g++
8926 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8927 if test "$cross_compiling" = "yes" ; then
8928 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8929 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 case $aros_kernel_cxx in
8936 [\\/]* | ?:[\\/]*)
8937 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8947 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 break 2
8951 done
8952 done
8953 IFS=$as_save_IFS
8956 esac
8958 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8959 if test -n "$aros_kernel_cxx"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8961 $as_echo "$aros_kernel_cxx" >&6; }
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8968 else
8969 if test "$GCC" = "yes"; then
8970 aros_gcc_cxx=`$CC -print-prog-name=cxx`
8971 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
8972 set dummy `basename $aros_gcc_cxx`; ac_word=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 case $aros_kernel_cxx in
8979 [\\/]* | ?:[\\/]*)
8980 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in `dirname $aros_gcc_cxx`
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8994 done
8995 done
8996 IFS=$as_save_IFS
8999 esac
9001 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9002 if test -n "$aros_kernel_cxx"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9004 $as_echo "$aros_kernel_cxx" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9012 if test "$aros_kernel_cxx" = ""; then
9013 # Extract the first word of "cxx", so it can be a program name with args.
9014 set dummy cxx; ac_word=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 case $aros_kernel_cxx in
9021 [\\/]* | ?:[\\/]*)
9022 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9036 done
9037 done
9038 IFS=$as_save_IFS
9041 esac
9043 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9044 if test -n "$aros_kernel_cxx"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9046 $as_echo "$aros_kernel_cxx" >&6; }
9047 else
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9055 else
9056 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9057 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 case $aros_kernel_cxx in
9064 [\\/]* | ?:[\\/]*)
9065 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 for as_dir in $PATH
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9075 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 break 2
9079 done
9080 done
9081 IFS=$as_save_IFS
9084 esac
9086 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9087 if test -n "$aros_kernel_cxx"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9089 $as_echo "$aros_kernel_cxx" >&6; }
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9098 # If it's set, make sure it's really there
9099 if test "x$aros_kernel_cxx" != "x" ; then
9100 if test "$aros_kernel_cxx" = ""; then
9101 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9105 if test "$aros_kernel_ld" = ""; then
9106 if test "$cross_compiling" = "yes" ; then
9107 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9108 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 case $aros_kernel_ld in
9115 [\\/]* | ?:[\\/]*)
9116 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9130 done
9131 done
9132 IFS=$as_save_IFS
9135 esac
9137 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9138 if test -n "$aros_kernel_ld"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9140 $as_echo "$aros_kernel_ld" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9147 else
9148 if test "$GCC" = "yes"; then
9149 aros_gcc_ld=`$CC -print-prog-name=ld`
9150 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9151 set dummy `basename $aros_gcc_ld`; ac_word=$2
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153 $as_echo_n "checking for $ac_word... " >&6; }
9154 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 case $aros_kernel_ld in
9158 [\\/]* | ?:[\\/]*)
9159 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163 for as_dir in `dirname $aros_gcc_ld`
9165 IFS=$as_save_IFS
9166 test -z "$as_dir" && as_dir=.
9167 for ac_exec_ext in '' $ac_executable_extensions; do
9168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9169 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9171 break 2
9173 done
9174 done
9175 IFS=$as_save_IFS
9178 esac
9180 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9181 if test -n "$aros_kernel_ld"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9183 $as_echo "$aros_kernel_ld" >&6; }
9184 else
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9191 if test "$aros_kernel_ld" = ""; then
9192 # Extract the first word of "ld", so it can be a program name with args.
9193 set dummy ld; ac_word=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 case $aros_kernel_ld in
9200 [\\/]* | ?:[\\/]*)
9201 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9211 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 break 2
9215 done
9216 done
9217 IFS=$as_save_IFS
9220 esac
9222 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9223 if test -n "$aros_kernel_ld"; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9225 $as_echo "$aros_kernel_ld" >&6; }
9226 else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9234 else
9235 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9236 set dummy $aros_kernel_ld; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 case $aros_kernel_ld in
9243 [\\/]* | ?:[\\/]*)
9244 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9258 done
9259 done
9260 IFS=$as_save_IFS
9263 esac
9265 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9266 if test -n "$aros_kernel_ld"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9268 $as_echo "$aros_kernel_ld" >&6; }
9269 else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9277 if test "$aros_kernel_ld" = ""; then
9278 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9281 if test "$aros_kernel_as" = ""; then
9282 if test "$cross_compiling" = "yes" ; then
9283 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9284 set dummy ${kernel_tool_prefix}as; ac_word=$2
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286 $as_echo_n "checking for $ac_word... " >&6; }
9287 if ${ac_cv_path_aros_kernel_as+:} false; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 case $aros_kernel_as in
9291 [\\/]* | ?:[\\/]*)
9292 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 for as_dir in $PATH
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9302 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9306 done
9307 done
9308 IFS=$as_save_IFS
9311 esac
9313 aros_kernel_as=$ac_cv_path_aros_kernel_as
9314 if test -n "$aros_kernel_as"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9316 $as_echo "$aros_kernel_as" >&6; }
9317 else
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9323 else
9324 if test "$GCC" = "yes"; then
9325 aros_gcc_as=`$CC -print-prog-name=as`
9326 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9327 set dummy `basename $aros_gcc_as`; ac_word=$2
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 $as_echo_n "checking for $ac_word... " >&6; }
9330 if ${ac_cv_path_aros_kernel_as+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 case $aros_kernel_as in
9334 [\\/]* | ?:[\\/]*)
9335 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 for as_dir in `dirname $aros_gcc_as`
9341 IFS=$as_save_IFS
9342 test -z "$as_dir" && as_dir=.
9343 for ac_exec_ext in '' $ac_executable_extensions; do
9344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9345 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9347 break 2
9349 done
9350 done
9351 IFS=$as_save_IFS
9354 esac
9356 aros_kernel_as=$ac_cv_path_aros_kernel_as
9357 if test -n "$aros_kernel_as"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9359 $as_echo "$aros_kernel_as" >&6; }
9360 else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9367 if test "$aros_kernel_as" = ""; then
9368 # Extract the first word of "as", so it can be a program name with args.
9369 set dummy as; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if ${ac_cv_path_aros_kernel_as+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 case $aros_kernel_as in
9376 [\\/]* | ?:[\\/]*)
9377 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9383 IFS=$as_save_IFS
9384 test -z "$as_dir" && as_dir=.
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9387 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389 break 2
9391 done
9392 done
9393 IFS=$as_save_IFS
9396 esac
9398 aros_kernel_as=$ac_cv_path_aros_kernel_as
9399 if test -n "$aros_kernel_as"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9401 $as_echo "$aros_kernel_as" >&6; }
9402 else
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9410 else
9411 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9412 set dummy $aros_kernel_as; ac_word=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if ${ac_cv_path_aros_kernel_as+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 case $aros_kernel_as in
9419 [\\/]* | ?:[\\/]*)
9420 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9432 break 2
9434 done
9435 done
9436 IFS=$as_save_IFS
9439 esac
9441 aros_kernel_as=$ac_cv_path_aros_kernel_as
9442 if test -n "$aros_kernel_as"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9444 $as_echo "$aros_kernel_as" >&6; }
9445 else
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9453 if test "$aros_kernel_as" = ""; then
9454 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9457 if test "$aros_kernel_ar" = ""; then
9458 if test "$cross_compiling" = "yes" ; then
9459 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9460 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 case $aros_kernel_ar in
9467 [\\/]* | ?:[\\/]*)
9468 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9478 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9482 done
9483 done
9484 IFS=$as_save_IFS
9487 esac
9489 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9490 if test -n "$aros_kernel_ar"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9492 $as_echo "$aros_kernel_ar" >&6; }
9493 else
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9499 else
9500 if test "$GCC" = "yes"; then
9501 aros_gcc_ar=`$CC -print-prog-name=ar`
9502 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9503 set dummy `basename $aros_gcc_ar`; ac_word=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 case $aros_kernel_ar in
9510 [\\/]* | ?:[\\/]*)
9511 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in `dirname $aros_gcc_ar`
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
9519 for ac_exec_ext in '' $ac_executable_extensions; do
9520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9521 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 break 2
9525 done
9526 done
9527 IFS=$as_save_IFS
9530 esac
9532 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9533 if test -n "$aros_kernel_ar"; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9535 $as_echo "$aros_kernel_ar" >&6; }
9536 else
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9543 if test "$aros_kernel_ar" = ""; then
9544 # Extract the first word of "ar", so it can be a program name with args.
9545 set dummy ar; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 case $aros_kernel_ar in
9552 [\\/]* | ?:[\\/]*)
9553 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9567 done
9568 done
9569 IFS=$as_save_IFS
9572 esac
9574 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9575 if test -n "$aros_kernel_ar"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9577 $as_echo "$aros_kernel_ar" >&6; }
9578 else
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9586 else
9587 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9588 set dummy $aros_kernel_ar; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 case $aros_kernel_ar in
9595 [\\/]* | ?:[\\/]*)
9596 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 for as_dir in $PATH
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608 break 2
9610 done
9611 done
9612 IFS=$as_save_IFS
9615 esac
9617 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9618 if test -n "$aros_kernel_ar"; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9620 $as_echo "$aros_kernel_ar" >&6; }
9621 else
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9629 if test "$aros_kernel_ar" = ""; then
9630 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9633 if test "$aros_kernel_ranlib" = ""; then
9634 if test "$cross_compiling" = "yes" ; then
9635 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9636 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642 case $aros_kernel_ranlib in
9643 [\\/]* | ?:[\\/]*)
9644 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 break 2
9658 done
9659 done
9660 IFS=$as_save_IFS
9663 esac
9665 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9666 if test -n "$aros_kernel_ranlib"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9668 $as_echo "$aros_kernel_ranlib" >&6; }
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9675 else
9676 if test "$GCC" = "yes"; then
9677 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9678 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9679 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 case $aros_kernel_ranlib in
9686 [\\/]* | ?:[\\/]*)
9687 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 for as_dir in `dirname $aros_gcc_ranlib`
9693 IFS=$as_save_IFS
9694 test -z "$as_dir" && as_dir=.
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9697 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9699 break 2
9701 done
9702 done
9703 IFS=$as_save_IFS
9706 esac
9708 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9709 if test -n "$aros_kernel_ranlib"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9711 $as_echo "$aros_kernel_ranlib" >&6; }
9712 else
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9719 if test "$aros_kernel_ranlib" = ""; then
9720 # Extract the first word of "ranlib", so it can be a program name with args.
9721 set dummy ranlib; ac_word=$2
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723 $as_echo_n "checking for $ac_word... " >&6; }
9724 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 case $aros_kernel_ranlib in
9728 [\\/]* | ?:[\\/]*)
9729 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9733 for as_dir in $PATH
9735 IFS=$as_save_IFS
9736 test -z "$as_dir" && as_dir=.
9737 for ac_exec_ext in '' $ac_executable_extensions; do
9738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9739 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 break 2
9743 done
9744 done
9745 IFS=$as_save_IFS
9748 esac
9750 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9751 if test -n "$aros_kernel_ranlib"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9753 $as_echo "$aros_kernel_ranlib" >&6; }
9754 else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9762 else
9763 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9764 set dummy $aros_kernel_ranlib; ac_word=$2
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766 $as_echo_n "checking for $ac_word... " >&6; }
9767 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 case $aros_kernel_ranlib in
9771 [\\/]* | ?:[\\/]*)
9772 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 for as_dir in $PATH
9778 IFS=$as_save_IFS
9779 test -z "$as_dir" && as_dir=.
9780 for ac_exec_ext in '' $ac_executable_extensions; do
9781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9782 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9784 break 2
9786 done
9787 done
9788 IFS=$as_save_IFS
9791 esac
9793 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9794 if test -n "$aros_kernel_ranlib"; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9796 $as_echo "$aros_kernel_ranlib" >&6; }
9797 else
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9805 if test "$aros_kernel_ranlib" = ""; then
9806 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9809 if test "$aros_kernel_nm" = ""; then
9810 if test "$cross_compiling" = "yes" ; then
9811 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9812 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 case $aros_kernel_nm in
9819 [\\/]* | ?:[\\/]*)
9820 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 for as_dir in $PATH
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9834 done
9835 done
9836 IFS=$as_save_IFS
9839 esac
9841 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9842 if test -n "$aros_kernel_nm"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9844 $as_echo "$aros_kernel_nm" >&6; }
9845 else
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9851 else
9852 if test "$GCC" = "yes"; then
9853 aros_gcc_nm=`$CC -print-prog-name=nm`
9854 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9855 set dummy `basename $aros_gcc_nm`; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 case $aros_kernel_nm in
9862 [\\/]* | ?:[\\/]*)
9863 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867 for as_dir in `dirname $aros_gcc_nm`
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9873 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 break 2
9877 done
9878 done
9879 IFS=$as_save_IFS
9882 esac
9884 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9885 if test -n "$aros_kernel_nm"; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9887 $as_echo "$aros_kernel_nm" >&6; }
9888 else
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9895 if test "$aros_kernel_nm" = ""; then
9896 # Extract the first word of "nm", so it can be a program name with args.
9897 set dummy nm; ac_word=$2
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899 $as_echo_n "checking for $ac_word... " >&6; }
9900 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 case $aros_kernel_nm in
9904 [\\/]* | ?:[\\/]*)
9905 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909 for as_dir in $PATH
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9915 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 break 2
9919 done
9920 done
9921 IFS=$as_save_IFS
9924 esac
9926 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9927 if test -n "$aros_kernel_nm"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9929 $as_echo "$aros_kernel_nm" >&6; }
9930 else
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9938 else
9939 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9940 set dummy $aros_kernel_nm; ac_word=$2
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9942 $as_echo_n "checking for $ac_word... " >&6; }
9943 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9944 $as_echo_n "(cached) " >&6
9945 else
9946 case $aros_kernel_nm in
9947 [\\/]* | ?:[\\/]*)
9948 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 for as_dir in $PATH
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9958 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 break 2
9962 done
9963 done
9964 IFS=$as_save_IFS
9967 esac
9969 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9970 if test -n "$aros_kernel_nm"; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9972 $as_echo "$aros_kernel_nm" >&6; }
9973 else
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9981 if test "$aros_kernel_nm" = ""; then
9982 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9985 if test "$aros_kernel_strip" = ""; then
9986 if test "$cross_compiling" = "yes" ; then
9987 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
9988 set dummy ${kernel_tool_prefix}strip; ac_word=$2
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990 $as_echo_n "checking for $ac_word... " >&6; }
9991 if ${ac_cv_path_aros_kernel_strip+:} false; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 case $aros_kernel_strip in
9995 [\\/]* | ?:[\\/]*)
9996 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10006 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10010 done
10011 done
10012 IFS=$as_save_IFS
10015 esac
10017 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10018 if test -n "$aros_kernel_strip"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10020 $as_echo "$aros_kernel_strip" >&6; }
10021 else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10027 else
10028 if test "$GCC" = "yes"; then
10029 aros_gcc_strip=`$CC -print-prog-name=strip`
10030 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10031 set dummy `basename $aros_gcc_strip`; ac_word=$2
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033 $as_echo_n "checking for $ac_word... " >&6; }
10034 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 case $aros_kernel_strip in
10038 [\\/]* | ?:[\\/]*)
10039 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in `dirname $aros_gcc_strip`
10045 IFS=$as_save_IFS
10046 test -z "$as_dir" && as_dir=.
10047 for ac_exec_ext in '' $ac_executable_extensions; do
10048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10049 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 break 2
10053 done
10054 done
10055 IFS=$as_save_IFS
10058 esac
10060 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10061 if test -n "$aros_kernel_strip"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10063 $as_echo "$aros_kernel_strip" >&6; }
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10071 if test "$aros_kernel_strip" = ""; then
10072 # Extract the first word of "strip", so it can be a program name with args.
10073 set dummy strip; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 case $aros_kernel_strip in
10080 [\\/]* | ?:[\\/]*)
10081 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10091 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10095 done
10096 done
10097 IFS=$as_save_IFS
10100 esac
10102 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10103 if test -n "$aros_kernel_strip"; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10105 $as_echo "$aros_kernel_strip" >&6; }
10106 else
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10114 else
10115 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10116 set dummy $aros_kernel_strip; ac_word=$2
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118 $as_echo_n "checking for $ac_word... " >&6; }
10119 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10122 case $aros_kernel_strip in
10123 [\\/]* | ?:[\\/]*)
10124 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128 for as_dir in $PATH
10130 IFS=$as_save_IFS
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10134 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10136 break 2
10138 done
10139 done
10140 IFS=$as_save_IFS
10143 esac
10145 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10146 if test -n "$aros_kernel_strip"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10148 $as_echo "$aros_kernel_strip" >&6; }
10149 else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10157 if test "$aros_kernel_strip" = ""; then
10158 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10161 # Objcopy and objdump are not required for the kernel
10162 # toolchain on many architectures.
10163 # So we'll look for them, but not make them strictly required.
10165 if test "$aros_kernel_objcopy" = ""; then
10166 if test "$cross_compiling" = "yes" ; then
10167 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10168 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 case $aros_kernel_objcopy in
10175 [\\/]* | ?:[\\/]*)
10176 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10186 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 break 2
10190 done
10191 done
10192 IFS=$as_save_IFS
10195 esac
10197 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10198 if test -n "$aros_kernel_objcopy"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10200 $as_echo "$aros_kernel_objcopy" >&6; }
10201 else
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10207 else
10208 if test "$GCC" = "yes"; then
10209 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10210 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10211 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 case $aros_kernel_objcopy in
10218 [\\/]* | ?:[\\/]*)
10219 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in `dirname $aros_gcc_objcopy`
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10229 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 break 2
10233 done
10234 done
10235 IFS=$as_save_IFS
10238 esac
10240 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10241 if test -n "$aros_kernel_objcopy"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10243 $as_echo "$aros_kernel_objcopy" >&6; }
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10251 if test "$aros_kernel_objcopy" = ""; then
10252 # Extract the first word of "objcopy", so it can be a program name with args.
10253 set dummy objcopy; ac_word=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 case $aros_kernel_objcopy in
10260 [\\/]* | ?:[\\/]*)
10261 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265 for as_dir in $PATH
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10271 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 break 2
10275 done
10276 done
10277 IFS=$as_save_IFS
10280 esac
10282 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10283 if test -n "$aros_kernel_objcopy"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10285 $as_echo "$aros_kernel_objcopy" >&6; }
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10294 else
10295 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10296 set dummy $aros_kernel_objcopy; ac_word=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 case $aros_kernel_objcopy in
10303 [\\/]* | ?:[\\/]*)
10304 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10314 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 break 2
10318 done
10319 done
10320 IFS=$as_save_IFS
10323 esac
10325 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10326 if test -n "$aros_kernel_objcopy"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10328 $as_echo "$aros_kernel_objcopy" >&6; }
10329 else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10338 if test "$aros_kernel_objdump" = ""; then
10339 if test "$cross_compiling" = "yes" ; then
10340 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10341 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 case $aros_kernel_objdump in
10348 [\\/]* | ?:[\\/]*)
10349 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10363 done
10364 done
10365 IFS=$as_save_IFS
10368 esac
10370 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10371 if test -n "$aros_kernel_objdump"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10373 $as_echo "$aros_kernel_objdump" >&6; }
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10380 else
10381 if test "$GCC" = "yes"; then
10382 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10383 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10384 set dummy `basename $aros_gcc_objdump`; 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_objdump+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 case $aros_kernel_objdump in
10391 [\\/]* | ?:[\\/]*)
10392 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in `dirname $aros_gcc_objdump`
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_objdump="$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_objdump=$ac_cv_path_aros_kernel_objdump
10414 if test -n "$aros_kernel_objdump"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10416 $as_echo "$aros_kernel_objdump" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10424 if test "$aros_kernel_objdump" = ""; then
10425 # Extract the first word of "objdump", so it can be a program name with args.
10426 set dummy objdump; ac_word=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 case $aros_kernel_objdump in
10433 [\\/]* | ?:[\\/]*)
10434 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10444 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10448 done
10449 done
10450 IFS=$as_save_IFS
10453 esac
10455 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10456 if test -n "$aros_kernel_objdump"; then
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10458 $as_echo "$aros_kernel_objdump" >&6; }
10459 else
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10467 else
10468 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10469 set dummy $aros_kernel_objdump; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 case $aros_kernel_objdump in
10476 [\\/]* | ?:[\\/]*)
10477 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10491 done
10492 done
10493 IFS=$as_save_IFS
10496 esac
10498 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10499 if test -n "$aros_kernel_objdump"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10501 $as_echo "$aros_kernel_objdump" >&6; }
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10510 if test "x${crosstools}" != "xyes" ; then
10511 if test "$aros_kernel_objcopy" = ""; then
10512 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10514 if test "$aros_kernel_objdump" = ""; then
10515 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools" >&5
10521 $as_echo_n "checking which target tools... " >&6; }
10522 if test "$crosstools" = "yes"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10524 $as_echo "$target_tool_prefix" >&6; }
10525 # We are are building AROS crosstools
10526 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10527 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10528 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10529 orig_target_cpp="${tmp_tool_prefix}cpp"
10530 orig_target_ld="${tmp_tool_prefix}ld"
10531 orig_target_as="${tmp_tool_prefix}as"
10532 orig_target_ar="${tmp_tool_prefix}ar"
10533 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10534 orig_target_nm="${tmp_tool_prefix}nm"
10535 orig_target_strip="${tmp_tool_prefix}strip"
10536 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10537 orig_target_objdump="${tmp_tool_prefix}objdump"
10538 else
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10540 $as_echo "$kernel_tool_prefix" >&6; }
10541 # We are *not* building AROS crosstools - use the kernel tools
10542 orig_target_cpp="${aros_kernel_cpp}"
10543 if test "$orig_target_cpp" = ""; then
10544 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10546 orig_target_cc="${aros_kernel_cc}"
10547 if test "$orig_target_cc" = ""; then
10548 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10550 orig_target_cxx="${aros_kernel_cxx}"
10551 if test "x$orig_target_cxx" != "x" ; then
10552 if test "$orig_target_cxx" = ""; then
10553 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10556 orig_target_ld="${aros_kernel_ld}"
10557 if test "$orig_target_ld" = ""; then
10558 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10560 orig_target_as="${aros_kernel_as}"
10561 if test "$orig_target_as" = ""; then
10562 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10564 orig_target_ar="${aros_kernel_ar}"
10565 if test "$orig_target_ar" = ""; then
10566 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10568 orig_target_ranlib="${aros_kernel_ranlib}"
10569 if test "$orig_target_ranlib" = ""; then
10570 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10572 orig_target_nm="${aros_kernel_nm}"
10573 if test "$orig_target_nm" = ""; then
10574 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10576 orig_target_strip="${aros_kernel_strip}"
10577 if test "$orig_target_strip" = ""; then
10578 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10580 orig_target_objcopy="${aros_kernel_objcopy}"
10581 if test "$orig_target_objcopy" = ""; then
10582 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10584 orig_target_objdump="${aros_kernel_objdump}"
10585 if test "$orig_target_objdump" = ""; then
10586 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10590 # At this point, all aros_kernel_* and aros_target_*
10591 # tools should be set up correctly
10593 CC="$aros_kernel_cc $kernel_tool_flags"
10594 CPP="$aros_kernel_cpp"
10596 #-----------------------------------------------------------------------------
10598 # Disable pointer-signedness warnings if the compiler recognises the option
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
10601 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
10602 save_cflags="$CFLAGS"
10603 if test "$crosstools" != "yes" ; then
10604 CFLAGS="$CFLAGS -Wno-pointer-sign"
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10609 main ()
10613 return 0;
10615 _ACEOF
10616 if ac_fn_c_try_compile "$LINENO"; then :
10617 use_no_sign_warning="yes"
10618 else
10619 use_no_sign_warning="no"
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622 else
10623 # we do know it is supported for the smallest version of gcc we are going to build
10624 # we assume it's also supported by later versions
10625 use_no_sign_warning=yes
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
10628 $as_echo "$use_no_sign_warning" >&6; }
10629 if test "x-$use_no_sign_warning" = "x-yes" ; then
10630 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
10632 CFLAGS="$save_cflags"
10634 #-----------------------------------------------------------------------------
10636 # Find all the tools we need to compile. This could be cross-compiling
10637 # though! If that is the case we use the GNU form of the target and
10638 # simply add this to the front of the binary name. This is rather simple,
10639 # but it should work under most circumstances.
10641 # The default tools are to use the same as the host, but only if the
10642 # host and target CPU are the same. With GCC this is normally enough.
10645 aros_cc_pre=""
10646 aros_shared_ld="$aros_host_ld"
10648 aros_target_mkdep="$aros_host_mkdep"
10650 # The default tools executables to be linked to.
10651 if test "$rescomp" != ""; then
10653 if test "" = ""; then
10654 if test "$cross_compiling" = "yes" ; then
10655 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
10656 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 $as_echo_n "checking for $ac_word... " >&6; }
10659 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 case $aros_kernel_rescomp in
10663 [\\/]* | ?:[\\/]*)
10664 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668 for as_dir in $PATH
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10674 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10678 done
10679 done
10680 IFS=$as_save_IFS
10683 esac
10685 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10686 if test -n "$aros_kernel_rescomp"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10688 $as_echo "$aros_kernel_rescomp" >&6; }
10689 else
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10695 else
10696 if test "$GCC" = "yes"; then
10697 aros_gcc_$rescomp=`$CC -print-prog-name=$rescomp`
10698 # Extract the first word of "`basename $aros_gcc_[$rescomp]`", so it can be a program name with args.
10699 set dummy `basename $aros_gcc_$rescomp`; ac_word=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 case $aros_kernel_rescomp in
10706 [\\/]* | ?:[\\/]*)
10707 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in `dirname $aros_gcc_$rescomp`
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10717 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 break 2
10721 done
10722 done
10723 IFS=$as_save_IFS
10726 esac
10728 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10729 if test -n "$aros_kernel_rescomp"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10731 $as_echo "$aros_kernel_rescomp" >&6; }
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10739 if test "$aros_kernel_rescomp" = ""; then
10740 # Extract the first word of "$rescomp", so it can be a program name with args.
10741 set dummy $rescomp; ac_word=$2
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743 $as_echo_n "checking for $ac_word... " >&6; }
10744 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 case $aros_kernel_rescomp in
10748 [\\/]* | ?:[\\/]*)
10749 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10759 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10763 done
10764 done
10765 IFS=$as_save_IFS
10768 esac
10770 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10771 if test -n "$aros_kernel_rescomp"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10773 $as_echo "$aros_kernel_rescomp" >&6; }
10774 else
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10782 else
10783 # Extract the first word of "", so it can be a program name with args.
10784 set dummy ; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 case $aros_kernel_rescomp in
10791 [\\/]* | ?:[\\/]*)
10792 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10806 done
10807 done
10808 IFS=$as_save_IFS
10811 esac
10813 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10814 if test -n "$aros_kernel_rescomp"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10816 $as_echo "$aros_kernel_rescomp" >&6; }
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10825 if test "$aros_kernel_rescomp" = ""; then
10826 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
10830 # Set up the sources for the symlink farm
10831 if test "$crosstools" = "yes"; then
10832 crosstools_target=tools-crosstools
10833 else
10834 crosstools_cxx_target=tools-crosstools
10837 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
10838 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10841 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10842 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10843 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10844 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10845 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10846 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10847 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10849 # aros_cc_pre is a variable that is added to the front of the compiler name
10850 # in the generated aros-gcc shell script. We need this to enable the cache
10851 # to work across cleaned builds. Also, support DISTCC using the correct
10852 # environment variable.
10855 if test "x${DISTCC}" != "x" ; then
10856 if test "x${CCACHE}" != "x" ; then
10857 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10858 else
10859 aros_cc_pre="${DISTCC} "
10861 else
10862 if test "x${CCACHE}" != "x" ; then
10863 aros_cc_pre="${CCACHE} "
10867 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
10869 aros_target_nostdinc_cflags=-nostdinc
10871 aros_target_nostartup_ldflags=-nostartfiles
10873 aros_target_nix_ldflags=-nix
10875 aros_target_detach_ldflags=-detach
10877 aros_target_nostdlib_ldflags=-nostdlib
10880 # Target tools
10881 if test "$crosstools" != "yes"; then
10882 if test "$GCC" = "yes"; then
10883 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10885 else
10886 # We do not know which gcc version we are going to build and what we need to know
10887 # here is different for different versions so this will be set later during the
10888 # build of crosstools.
10889 aros_target_cc_path=@aros_target_cc_path@
10891 aros_target_cpp="${prefix}cpp"
10892 aros_target_cc="${prefix}gcc"
10893 aros_target_cxx="${prefix}g++"
10894 aros_target_as="${prefix}as"
10895 aros_target_ld="${prefix}ld"
10896 aros_target_ar="${prefix}ar $aros_target_ar_flags"
10897 aros_target_objcopy="${prefix}objcopy"
10898 aros_target_objdump="${prefix}objdump"
10899 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
10900 aros_target_nm="${prefix}nm $aros_target_nm_flags"
10901 aros_target_strip="${prefix}strip"
10902 aros_plain_nm="${prefix}nm"
10903 aros_plain_ar="${prefix}ar"
10905 if test "$aros_kernel_includes" != "" ; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10907 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10908 if test "$aros_kernel_cc_includes" = "" ; then
10909 # Try to guess where the directory is.
10910 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10911 if test -d $aros_kernel_cc_includes; then
10912 # Check if there is also an include-fixed directory and add it
10913 # to kernel compiler's include path as it may contain some of
10914 # the headers we need.
10915 if test -d "$aros_kernel_cc_includes"-fixed; then
10916 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10918 # Check for specific includes directory. Neede for Ubuntu 11.10
10919 if test -d "/usr/include/i386-linux-gnu"; then
10920 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
10922 else
10923 # The directory doesn't exist, we need to do some more work.
10924 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10926 # These are the headers we're looking for.
10927 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10928 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10929 zutil.h stdint.h"
10931 dirs=
10932 for h in $headers; do
10933 # Which other headers are needed by each of the above?
10934 deps=$(echo "#include <$h>" | \
10935 $aros_kernel_cc -E -M - 2>/dev/null | \
10936 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10938 # Copy all the needed headers to a directory beneath gendir.
10939 for d in $deps; do
10940 h=$(basename $d)
10941 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10942 sed -n "s,^.*/include\(/.*\),\1,p")
10943 ! test -d $dir && mkdir -p $dir
10944 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10945 done
10946 done
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10950 $as_echo "$aros_kernel_cc_includes" >&6; }
10951 # Adding -nostdinc to kernel includes as they are always used together.
10952 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10955 if test "$crosstools" != "yes"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10957 $as_echo_n "checking for the target compiler's include path... " >&6; }
10958 if test "$aros_target_cc_includes" = "" ; then
10959 #try to guess where the directory is
10960 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10961 if ! test -d $aros_target_cc_includes; then
10962 #the directory doesn't exist, we need to do some more work
10963 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10965 #these are the headers we're looking for
10966 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10967 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10968 zutil.h"
10970 dirs=
10971 for h in $headers; do
10972 #which other headers each of the above headers needs?
10973 deps=$(echo "#include <$h>" | \
10974 $orig_target_cc -E -M - 2>/dev/null | \
10975 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10977 #copy all the needed headers to a directory beneath gendir
10978 for d in $deps; do
10979 h=$(basename $d)
10980 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10981 sed -n "s,^.*/include\(/.*\),\1,p")
10982 ! test -d $dir && mkdir -p $dir
10983 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10984 done
10985 done
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10989 $as_echo "$aros_target_cc_includes" >&6; }
10990 else
10991 # We do not know which gcc version we are going to build and what we need to know
10992 # here is different for different versions so this will be set later during the
10993 # build of crosstools.
10994 aros_target_cc_includes=@aros_target_cc_includes@
10998 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10999 # On GCC >= 4.0 -iquote should be used
11002 save_cc="$CC"
11003 save_cflags="$CFLAGS"
11004 CFLAGS="-iquote."
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11006 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11007 if test "x-$crosstools" != "x-yes"; then
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11012 main ()
11016 return 0;
11018 _ACEOF
11019 if ac_fn_c_try_compile "$LINENO"; then :
11020 has_iquote="yes"
11021 else
11022 has_iquote="no"
11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025 else
11026 # we do know it is supported for the smallest version of gcc we are going to build
11027 # we assume it's also supported by later versions
11028 has_iquote=yes
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11031 $as_echo "$has_iquote" >&6; }
11032 if test "x-$has_iquote" = "x-yes" ; then
11033 host_cflags_iquote=-iquote
11034 host_cflags_iquote_end=
11035 else
11036 host_cflags_iquote=-I
11037 host_cflags_iquote_end=-I-
11039 kernel_cflags_iquote=$host_cflags_iquote
11040 kernel_cflags_iquote_end=$host_cflags_iquote_end
11041 if test "x-$cross_compiling" = "x-yes"; then
11042 CC="$aros_kernel_cc"
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11044 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11045 if test "x-$crosstools" != "x-yes"; then
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11050 main ()
11054 return 0;
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"; then :
11058 use_no_stack_protector="yes"
11059 else
11060 use_no_stack_protector="no"
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 else
11064 # we do know it is supported for the smallest version of gcc we are going to build
11065 # we assume it's also supported by later versions
11066 use_no_stack_protector=yes
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11069 $as_echo "$use_no_stack_protector" >&6; }
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11071 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11072 if test "x-$crosstools" != "x-yes"; then
11073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074 /* end confdefs.h. */
11077 main ()
11081 return 0;
11083 _ACEOF
11084 if ac_fn_c_try_compile "$LINENO"; then :
11085 has_iquote="yes"
11086 else
11087 has_iquote="no"
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090 else
11091 # we do know it is supported for the smallest version of gcc we are going to build
11092 # we assume it's also supported by later versions
11093 has_iquote=yes
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11096 $as_echo "$has_iquote" >&6; }
11097 if test "x-$has_iquote" = "x-yes" ; then
11098 kernel_cflags_iquote=-iquote
11099 kernel_cflags_iquote_end=
11100 else
11101 kernel_cflags_iquote=-I
11102 kernel_cflags_iquote_end=-I-
11105 aros_cflags_iquote=$kernel_cflags_iquote
11106 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11107 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11108 CC="$orig_target_cc"
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11110 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11111 if test "x-$crosstools" != "x-yes"; then
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11116 main ()
11120 return 0;
11122 _ACEOF
11123 if ac_fn_c_try_compile "$LINENO"; then :
11124 has_iquote="yes"
11125 else
11126 has_iquote="no"
11128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11129 else
11130 # we do know it is supported for the smallest version of gcc we are going to build
11131 # we assume it's also supported by later versions
11132 has_iquote=yes
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11135 $as_echo "$has_iquote" >&6; }
11136 if test "x-$has_iquote" = "x-yes" ; then
11137 aros_cflags_iquote=-iquote
11138 aros_cflags_iquote_end=
11139 else
11140 aros_cflags_iquote=-I
11141 aros_cflags_iquote_end=-I-
11144 if test "x-$use_no_stack_protector" = "x-yes" ; then
11145 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11149 #-----------------------------------------------------------------------------
11151 # Check if the target compiler supports some options used for delinting:
11152 # -Wunused-but-set-variable
11153 # -Warray-bounds
11154 # -Wenum-compare
11155 # -Wstrict-overflow
11156 # -Wformat-security
11158 if test "x-$crosstools" != "x-yes"; then
11159 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11160 CC="$orig_target_cc"
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11163 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11164 CFLAGS=-Wunused-but-set-variable
11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11169 main ()
11173 return 0;
11175 _ACEOF
11176 if ac_fn_c_try_compile "$LINENO"; then :
11177 aros_unused_but_set_variable="yes"
11178 else
11179 aros_unused_but_set_variable="no"
11181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11183 $as_echo "$aros_unused_but_set_variable" >&6; }
11184 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11185 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11189 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11190 CFLAGS=-Warray-bounds
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11195 main ()
11199 return 0;
11201 _ACEOF
11202 if ac_fn_c_try_compile "$LINENO"; then :
11203 aros_array_bounds="yes"
11204 else
11205 aros_array_bounds="no"
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11209 $as_echo "$aros_array_bounds" >&6; }
11210 if test "x-$aros_array_bounds" = "x-yes" ; then
11211 aros_cflags_array_bounds=-Wno-array-bounds
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11215 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11216 CFLAGS=-Wenum-compare
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11221 main ()
11225 return 0;
11227 _ACEOF
11228 if ac_fn_c_try_compile "$LINENO"; then :
11229 aros_enum_compare="yes"
11230 else
11231 aros_enum_compare="no"
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11235 $as_echo "$aros_enum_compare" >&6; }
11236 if test "x-$aros_enum_compare" = "x-yes" ; then
11237 aros_cflags_enum_compare=-Wno-enum-compare
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11241 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11242 CFLAGS=-Wstrict-overflow
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11247 main ()
11251 return 0;
11253 _ACEOF
11254 if ac_fn_c_try_compile "$LINENO"; then :
11255 aros_strict_overflow="yes"
11256 else
11257 aros_strict_overflow="no"
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11261 $as_echo "$aros_strict_overflow" >&6; }
11262 if test "x-$aros_strict_overflow" = "x-yes" ; then
11263 aros_cflags_strict_overflow=-Wno-strict-overflow
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11267 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11268 CFLAGS=-Wformat-security
11269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11273 main ()
11277 return 0;
11279 _ACEOF
11280 if ac_fn_c_try_compile "$LINENO"; then :
11281 aros_format_security="yes"
11282 else
11283 aros_format_security="no"
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11287 $as_echo "$aros_format_security" >&6; }
11288 if test "x-$aros_format_security" = "x-yes" ; then
11289 aros_cflags_format_security=-Wno-format-security
11291 else
11292 # We do not know which gcc version we are going to build and what we need to know
11293 # here is different for different versions so this will be set later during the
11294 # build of crosstools.
11295 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
11296 aros_cflags_array_bounds=@aros_cflags_array_bounds@
11297 aros_cflags_enum_compare=@aros_cflags_enum_compare@
11298 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
11299 aros_cflags_format_security=@aros_cflags_format_security@
11302 #-----------------------------------------------------------------------------
11304 # Check if we can explicitly choose older version of symbol hashing
11306 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11307 CC="$aros_kernel_cc"
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11309 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11314 main ()
11318 return 0;
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 use_hash_style="yes"
11323 else
11324 use_hash_style="no"
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11329 $as_echo "$use_hash_style" >&6; }
11330 if test "x-$use_hash_style" = "x-yes" ; then
11331 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11333 CC="$save_cc"
11334 CFLAGS="$save_cflags"
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11345 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11347 # Check whether --with-resolution was given.
11348 if test "${with_resolution+set}" = set; then :
11349 withval=$with_resolution; resolution=$withval
11350 else
11351 resolution=none
11354 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11355 if test "$resolution" = "yes" ; then
11356 resolution="none"
11358 if test "$resolution" = "no" ; then
11359 resolution="none"
11361 if test "$resolution" != "none" ; then
11362 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11363 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11364 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11367 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11368 aros_cv_default_wbwidth=$aros_default_wbwidth
11369 aros_cv_default_wbheight=$aros_default_wbheight
11370 aros_cv_default_wbdepth=$aros_default_wbdepth
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11373 $as_echo_n "checking if serial debug is enabled... " >&6; }
11375 # Check whether --with-serial-debug was given.
11376 if test "${with_serial_debug+set}" = set; then :
11377 withval=$with_serial_debug; serial_debug=$withval
11378 else
11379 serial_debug=none
11382 if test "$aros_serial_debug" = 0 ; then
11383 serial_debug_forced=""
11384 if test "$serial_debug" = "yes" ; then
11385 serial_debug="1"
11387 if test "$serial_debug" = "no" ; then
11388 serial_debug="none"
11390 else
11391 serial_debug_forced="(forced)"
11392 serial_debug=$aros_serial_debug
11394 if test "$serial_debug" != "none" ; then
11395 aros_serial_debug=$serial_debug
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11397 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11398 else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11404 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11405 # Check whether --enable-palm_debug_hack was given.
11406 if test "${enable_palm_debug_hack+set}" = set; then :
11407 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11408 else
11409 palm_debug_hack="no"
11412 if test "$palm_debug_hack" = "yes" ; then
11413 aros_palm_debug_hack="1"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11416 $as_echo "$palm_debug_hack" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11419 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11420 # Check whether --enable-usb30_code was given.
11421 if test "${enable_usb30_code+set}" = set; then :
11422 enableval=$enable_usb30_code; usb30_code="yes"
11423 else
11424 usb30_code="no"
11427 if test "$usb30_code" = "yes" ; then
11428 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11429 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11432 $as_echo "$usb30_code" >&6; }
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11435 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11436 # Check whether --enable-nesting_supervisor was given.
11437 if test "${enable_nesting_supervisor+set}" = set; then :
11438 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11439 else
11440 nesting_supervisor="no"
11443 if test "$nesting_supervisor" = "yes" ; then
11444 aros_nesting_supervisor="1"
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11447 $as_echo "$nesting_supervisor" >&6; }
11449 if test "$aros_enable_mmu" = "" ; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11451 $as_echo_n "checking if MMU support is enabled... " >&6; }
11452 # Check whether --enable-mmu was given.
11453 if test "${enable_mmu+set}" = set; then :
11454 enableval=$enable_mmu; aros_enable_mmu=$enableval
11455 else
11456 aros_enable_mmu="yes"
11459 if test "$aros_enable_mmu" = "" ; then
11460 aros_enable_mmu="yes"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11463 $as_echo "$aros_enable_mmu" >&6; }
11465 if test "$aros_enable_mmu" = "no" ; then
11466 aros_enable_mmu="0"
11467 else
11468 aros_enable_mmu="1"
11472 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11474 if test "x-$need_dlopen" != "x-no" ; then
11475 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11476 if test "x$ac_cv_func_dlopen" = xyes; then :
11477 have_dl="yes"
11478 else
11479 have_dl="no"
11482 if test "x-$have_dl" = "x-no" ; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11484 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11485 if ${ac_cv_lib_dl_dlopen+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 ac_check_lib_save_LIBS=$LIBS
11489 LIBS="-ldl $LIBS"
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11493 /* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 char dlopen ();
11501 main ()
11503 return dlopen ();
11505 return 0;
11507 _ACEOF
11508 if ac_fn_c_try_link "$LINENO"; then :
11509 ac_cv_lib_dl_dlopen=yes
11510 else
11511 ac_cv_lib_dl_dlopen=no
11513 rm -f core conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
11515 LIBS=$ac_check_lib_save_LIBS
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11518 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11519 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11520 have_dl="yes"
11521 aros_host_ldflags="$aros_host_ldflags -ldl"
11522 else
11523 have_dl="no"
11527 if test "x-$have_dl" = "x-no" ; then
11528 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11533 # Check whether --enable-x11_hidd was given.
11534 if test "${enable_x11_hidd+set}" = set; then :
11535 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11536 else
11537 x11_hidd="$need_x11"
11540 case "x-$x11_hidd" in
11541 x-yes|x-no|x-auto) ;;
11542 *) x11_hidd="$need_x11" ;;
11543 esac
11545 ENABLE_X11=0
11547 if test "x-$x11_hidd" != "x-no" ; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11550 $as_echo_n "checking for X... " >&6; }
11553 # Check whether --with-x was given.
11554 if test "${with_x+set}" = set; then :
11555 withval=$with_x;
11558 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11559 if test "x$with_x" = xno; then
11560 # The user explicitly disabled X.
11561 have_x=disabled
11562 else
11563 case $x_includes,$x_libraries in #(
11564 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11565 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 # One or both of the vars are not set, and there is no cached value.
11569 ac_x_includes=no ac_x_libraries=no
11570 rm -f -r conftest.dir
11571 if mkdir conftest.dir; then
11572 cd conftest.dir
11573 cat >Imakefile <<'_ACEOF'
11574 incroot:
11575 @echo incroot='${INCROOT}'
11576 usrlibdir:
11577 @echo usrlibdir='${USRLIBDIR}'
11578 libdir:
11579 @echo libdir='${LIBDIR}'
11580 _ACEOF
11581 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11582 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11583 for ac_var in incroot usrlibdir libdir; do
11584 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11585 done
11586 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11587 for ac_extension in a so sl dylib la dll; do
11588 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11589 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11590 ac_im_usrlibdir=$ac_im_libdir; break
11592 done
11593 # Screen out bogus values from the imake configuration. They are
11594 # bogus both because they are the default anyway, and because
11595 # using them would break gcc on systems where it needs fixed includes.
11596 case $ac_im_incroot in
11597 /usr/include) ac_x_includes= ;;
11598 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11599 esac
11600 case $ac_im_usrlibdir in
11601 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11602 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11603 esac
11605 cd ..
11606 rm -f -r conftest.dir
11609 # Standard set of common directories for X headers.
11610 # Check X11 before X11Rn because it is often a symlink to the current release.
11611 ac_x_header_dirs='
11612 /usr/X11/include
11613 /usr/X11R7/include
11614 /usr/X11R6/include
11615 /usr/X11R5/include
11616 /usr/X11R4/include
11618 /usr/include/X11
11619 /usr/include/X11R7
11620 /usr/include/X11R6
11621 /usr/include/X11R5
11622 /usr/include/X11R4
11624 /usr/local/X11/include
11625 /usr/local/X11R7/include
11626 /usr/local/X11R6/include
11627 /usr/local/X11R5/include
11628 /usr/local/X11R4/include
11630 /usr/local/include/X11
11631 /usr/local/include/X11R7
11632 /usr/local/include/X11R6
11633 /usr/local/include/X11R5
11634 /usr/local/include/X11R4
11636 /usr/X386/include
11637 /usr/x386/include
11638 /usr/XFree86/include/X11
11640 /usr/include
11641 /usr/local/include
11642 /usr/unsupported/include
11643 /usr/athena/include
11644 /usr/local/x11r5/include
11645 /usr/lpp/Xamples/include
11647 /usr/openwin/include
11648 /usr/openwin/share/include'
11650 if test "$ac_x_includes" = no; then
11651 # Guess where to find include files, by looking for Xlib.h.
11652 # First, try using that file with no special directory specified.
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11655 #include <X11/Xlib.h>
11656 _ACEOF
11657 if ac_fn_c_try_cpp "$LINENO"; then :
11658 # We can compile using X headers with no special include directory.
11659 ac_x_includes=
11660 else
11661 for ac_dir in $ac_x_header_dirs; do
11662 if test -r "$ac_dir/X11/Xlib.h"; then
11663 ac_x_includes=$ac_dir
11664 break
11666 done
11668 rm -f conftest.err conftest.i conftest.$ac_ext
11669 fi # $ac_x_includes = no
11671 if test "$ac_x_libraries" = no; then
11672 # Check for the libraries.
11673 # See if we find them without any special options.
11674 # Don't add to $LIBS permanently.
11675 ac_save_LIBS=$LIBS
11676 LIBS="-lX11 $LIBS"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11679 #include <X11/Xlib.h>
11681 main ()
11683 XrmInitialize ()
11685 return 0;
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689 LIBS=$ac_save_LIBS
11690 # We can link X programs with no special library path.
11691 ac_x_libraries=
11692 else
11693 LIBS=$ac_save_LIBS
11694 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11696 # Don't even attempt the hair of trying to link an X program!
11697 for ac_extension in a so sl dylib la dll; do
11698 if test -r "$ac_dir/libX11.$ac_extension"; then
11699 ac_x_libraries=$ac_dir
11700 break 2
11702 done
11703 done
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 fi # $ac_x_libraries = no
11709 case $ac_x_includes,$ac_x_libraries in #(
11710 no,* | *,no | *\'*)
11711 # Didn't find X, or a directory has "'" in its name.
11712 ac_cv_have_x="have_x=no";; #(
11714 # Record where we found X for the cache.
11715 ac_cv_have_x="have_x=yes\
11716 ac_x_includes='$ac_x_includes'\
11717 ac_x_libraries='$ac_x_libraries'"
11718 esac
11720 ;; #(
11721 *) have_x=yes;;
11722 esac
11723 eval "$ac_cv_have_x"
11724 fi # $with_x != no
11726 if test "$have_x" != yes; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11728 $as_echo "$have_x" >&6; }
11729 no_x=yes
11730 else
11731 # If each of the values was on the command line, it overrides each guess.
11732 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11733 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11734 # Update the cache value to reflect the command line values.
11735 ac_cv_have_x="have_x=yes\
11736 ac_x_includes='$x_includes'\
11737 ac_x_libraries='$x_libraries'"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11739 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11743 x_cflags=
11744 for path in $x_libraries
11746 x_cflags="$x_cflags -L$path"
11747 done
11749 for path in $x_includes
11751 x_cflags="$x_cflags -I$path"
11752 done
11754 if test "x-$no_x" = "x-yes" ; then
11756 if test "x-$x11_hidd" != "x-auto" ; then
11757 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11760 else
11761 x11_hidd_target=kernel-x11gfx-kobj
11762 ENABLE_X11=1
11764 # Check whether --enable-x11_shm was given.
11765 if test "${enable_x11_shm+set}" = set; then :
11766 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11767 else
11768 x11_hidd_shm="auto"
11771 case "x-$x11_hidd_shm" in
11772 x-yes|x-no|x-auto) ;;
11773 *) x11_hidd_shm="auto" ;;
11774 esac
11776 have_xshm=no
11778 if test "x-$x11_hidd_shm" != "x-no" ; then
11780 for ac_header in sys/ipc.h
11781 do :
11782 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11783 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11784 cat >>confdefs.h <<_ACEOF
11785 #define HAVE_SYS_IPC_H 1
11786 _ACEOF
11790 done
11792 for ac_header in sys/shm.h
11793 do :
11794 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11795 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11796 cat >>confdefs.h <<_ACEOF
11797 #define HAVE_SYS_SHM_H 1
11798 _ACEOF
11802 done
11805 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11807 save_cflags="$CFLAGS"
11808 CFLAGS="$CFLAGS $x_cflags"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11810 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11811 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-lXext $LIBS"
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char XShmQueryExtension ();
11827 main ()
11829 return XShmQueryExtension ();
11831 return 0;
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 ac_cv_lib_Xext_XShmQueryExtension=yes
11836 else
11837 ac_cv_lib_Xext_XShmQueryExtension=no
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11844 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11845 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11846 have_xshm=yes
11849 CFLAGS="$save_cflags"
11853 if test "x-$have_xshm" = "x-yes" ; then
11854 DO_XSHM_SUPPORT="1"
11855 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11856 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11857 else
11858 DO_XSHM_SUPPORT="0"
11862 # Check whether --enable-x11_vidmode was given.
11863 if test "${enable_x11_vidmode+set}" = set; then :
11864 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11865 else
11866 x11_hidd_vidmode="auto"
11869 case "x-$x11_hidd_vidmode" in
11870 x-yes|x-no|x-auto) ;;
11871 *) x11_hidd_vidmode="auto" ;;
11872 esac
11874 have_vidmode=no
11876 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11878 save_cflags="$CFLAGS"
11879 CFLAGS="$CFLAGS $x_cflags"
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11881 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11882 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 ac_check_lib_save_LIBS=$LIBS
11886 LIBS="-lXxf86vm $LIBS"
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 char XF86VidModeQueryExtension ();
11898 main ()
11900 return XF86VidModeQueryExtension ();
11902 return 0;
11904 _ACEOF
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11907 else
11908 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_lib_save_LIBS
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11915 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11916 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11917 have_vidmode=yes
11920 CFLAGS="$save_cflags"
11923 if test "x-$have_vidmode" = "x-yes" ; then
11924 DO_VIDMODE_SUPPORT="1"
11925 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11926 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11927 else
11928 DO_VIDMODE_SUPPORT="0"
11932 aros_host_x11_includes=$x_includes
11933 aros_host_x11_libdirs=$x_libraries
11937 # Check whether --enable-sdl_hidd was given.
11938 if test "${enable_sdl_hidd+set}" = set; then :
11939 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11940 else
11941 sdl_hidd="auto"
11944 case "x-$sdl_hidd" in
11945 x-yes|x-no|x-auto) ;;
11946 *) sdl_hidd="auto" ;;
11947 esac
11949 if test "x-$sdl_hidd" != "x-no" ; then
11952 # Check whether --with-sdl-prefix was given.
11953 if test "${with_sdl_prefix+set}" = set; then :
11954 withval=$with_sdl_prefix; sdl_prefix="$withval"
11955 else
11956 sdl_prefix=""
11960 # Check whether --with-sdl-exec-prefix was given.
11961 if test "${with_sdl_exec_prefix+set}" = set; then :
11962 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11963 else
11964 sdl_exec_prefix=""
11967 # Check whether --enable-sdltest was given.
11968 if test "${enable_sdltest+set}" = set; then :
11969 enableval=$enable_sdltest;
11970 else
11971 enable_sdltest=yes
11975 if test x$sdl_exec_prefix != x ; then
11976 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11977 if test x${SDL_CONFIG+set} != xset ; then
11978 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11981 if test x$sdl_prefix != x ; then
11982 sdl_args="$sdl_args --prefix=$sdl_prefix"
11983 if test x${SDL_CONFIG+set} != xset ; then
11984 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11988 if test "x$prefix" != xNONE; then
11989 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11991 # Extract the first word of "sdl-config", so it can be a program name with args.
11992 set dummy sdl-config; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11996 $as_echo_n "(cached) " >&6
11997 else
11998 case $SDL_CONFIG in
11999 [\\/]* | ?:[\\/]*)
12000 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12010 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 break 2
12014 done
12015 done
12016 IFS=$as_save_IFS
12018 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12020 esac
12022 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12023 if test -n "$SDL_CONFIG"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12025 $as_echo "$SDL_CONFIG" >&6; }
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12032 min_sdl_version=1.2.10
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12034 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12035 no_sdl=""
12036 if test "$SDL_CONFIG" = "no" ; then
12037 no_sdl=yes
12038 else
12039 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12040 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12042 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12044 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12046 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12047 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12048 if test "x$enable_sdltest" = "xyes" ; then
12049 ac_save_CFLAGS="$CFLAGS"
12050 ac_save_CXXFLAGS="$CXXFLAGS"
12051 ac_save_LIBS="$LIBS"
12052 CFLAGS="$CFLAGS $SDL_CFLAGS"
12053 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12054 LIBS="$LIBS $SDL_LIBS"
12055 rm -f conf.sdltest
12056 if test "$cross_compiling" = yes; then :
12057 echo $ac_n "cross compiling; assumed OK... $ac_c"
12058 else
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12062 #include <stdio.h>
12063 #include <stdlib.h>
12064 #include <string.h>
12065 #include "SDL.h"
12067 char*
12068 my_strdup (char *str)
12070 char *new_str;
12072 if (str)
12074 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12075 strcpy (new_str, str);
12077 else
12078 new_str = NULL;
12080 return new_str;
12083 int main (int argc, char *argv[])
12085 int major, minor, micro;
12086 char *tmp_version;
12088 /* This hangs on some systems (?)
12089 system ("touch conf.sdltest");
12091 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12093 /* HP/UX 9 (%@#!) writes to sscanf strings */
12094 tmp_version = my_strdup("$min_sdl_version");
12095 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12096 printf("%s, bad version string\n", "$min_sdl_version");
12097 exit(1);
12100 if (($sdl_major_version > major) ||
12101 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12102 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12104 return 0;
12106 else
12108 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12109 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12110 printf("*** best to upgrade to the required version.\n");
12111 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12112 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12113 printf("*** config.cache before re-running configure\n");
12114 return 1;
12119 _ACEOF
12120 if ac_fn_c_try_run "$LINENO"; then :
12122 else
12123 no_sdl=yes
12125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12126 conftest.$ac_objext conftest.beam conftest.$ac_ext
12129 CFLAGS="$ac_save_CFLAGS"
12130 CXXFLAGS="$ac_save_CXXFLAGS"
12131 LIBS="$ac_save_LIBS"
12134 if test "x$no_sdl" = x ; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12136 $as_echo "yes" >&6; }
12137 have_sdl="yes"
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12141 if test "$SDL_CONFIG" = "no" ; then
12142 echo "*** The sdl-config script installed by SDL could not be found"
12143 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12144 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12145 echo "*** full path to sdl-config."
12146 else
12147 if test -f conf.sdltest ; then
12149 else
12150 echo "*** Could not run SDL test program, checking why..."
12151 CFLAGS="$CFLAGS $SDL_CFLAGS"
12152 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12153 LIBS="$LIBS $SDL_LIBS"
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 #include <stdio.h>
12158 #include "SDL.h"
12160 int main(int argc, char *argv[])
12161 { return 0; }
12162 #undef main
12163 #define main K_and_R_C_main
12166 main ()
12168 return 0;
12170 return 0;
12172 _ACEOF
12173 if ac_fn_c_try_link "$LINENO"; then :
12174 echo "*** The test program compiled, but did not run. This usually means"
12175 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12176 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12177 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12178 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12179 echo "*** is required on your system"
12180 echo "***"
12181 echo "*** If you have an old version installed, it is best to remove it, although"
12182 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12183 else
12184 echo "*** The test program failed to compile or link. See the file config.log for the"
12185 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12186 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12187 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12189 rm -f core conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12191 CFLAGS="$ac_save_CFLAGS"
12192 CXXFLAGS="$ac_save_CXXFLAGS"
12193 LIBS="$ac_save_LIBS"
12196 SDL_CFLAGS=""
12197 SDL_LIBS=""
12198 have_sdl="no"
12202 rm -f conf.sdltest
12205 if test "x-$have_sdl" != "x-yes" ; then
12207 if test "x-$sdl_hidd" != "x-auto" ; then
12208 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12211 else
12212 sdl_hidd_target=kernel-hidd-sdl
12213 aros_host_sdl_cflags=SDL_CFLAGS
12214 aros_host_sdl_libs=SDL_LIBS
12218 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12219 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12224 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12225 oss_library_target=workbench-libs-oss-unix
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12231 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12232 # Check whether --enable-dbus was given.
12233 if test "${enable_dbus+set}" = set; then :
12234 enableval=$enable_dbus; dbus="yes"
12235 else
12236 dbus="no"
12239 if test "$dbus" = "yes" ; then
12240 ENABLE_DBUS=1
12241 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12242 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12243 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12244 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12245 else
12246 ENABLE_DBUS=0
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12249 $as_echo "$dbus" >&6; }
12251 if test "$use_kernel_cc_wrapper" = "yes" ; then
12252 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12255 if test "${crosstools}" != "yes" ; then
12256 aros_target_toolchain=no
12257 else
12258 aros_target_toolchain=yes
12262 # Generic
12274 # Compatability with other Amiga-like operation systems
12277 # Host related
12305 # Target Related
12369 # Delinting target compiler flags
12376 # Graphics Related
12393 # Native version related
12396 # Palm native version related
12399 # USB3.0 code
12402 # Unix/Hosted version related
12405 # MMU related
12408 # Apple iOS related
12413 # Android related
12417 # DBUS related
12424 #X11 related
12427 # Debug related
12433 # Collect-aros stuff: "-ius" to ignore undefined symbols
12436 # C compiler related
12439 case "$aros_flavour" in
12440 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12441 aros_flavour="emulation" ;;
12442 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12443 aros_flavour="emulation" ;;
12444 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12445 aros_flavour="standalone";;
12446 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12447 aros_flavour="standalone";;
12448 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12449 aros_flavour="native" ;;
12450 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12451 aros_flavour="native" ;;
12452 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12453 aros_flavour="linklib" ;;
12454 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12455 aros_flavour="palmnative" ;;
12456 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12457 aros_flavour="mac68knative" ;;
12458 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12459 aros_flavour="ppcnative" ;;
12460 esac
12462 if test ! -d ${aros_inc_dir} ; then
12463 ${MKDIR} ${aros_inc_dir}
12465 if test ! -d ${aros_geninc_dir} ; then
12466 ${MKDIR} ${aros_geninc_dir}
12468 if test ! -d ${aros_hostcfg_dir} ; then
12469 ${MKDIR} ${aros_hostcfg_dir}
12471 if test ! -d ${aros_targetcfg_dir} ; then
12472 ${MKDIR} ${aros_targetcfg_dir}
12474 if test ! -d ${aros_tools_dir} ; then
12475 ${MKDIR} ${aros_tools_dir}
12477 if test ! -d ${aros_scripts_dir} ; then
12478 ${MKDIR} ${aros_scripts_dir}
12481 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12484 ac_config_commands="$ac_config_commands compiler_executable"
12486 ac_config_commands="$ac_config_commands genmf_executable"
12489 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-cpp:scripts/aros-cpp.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}-aros-g++:scripts/aros-g++.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"
12492 cat >confcache <<\_ACEOF
12493 # This file is a shell script that caches the results of configure
12494 # tests run on this system so they can be shared between configure
12495 # scripts and configure runs, see configure's option --config-cache.
12496 # It is not useful on other systems. If it contains results you don't
12497 # want to keep, you may remove or edit it.
12499 # config.status only pays attention to the cache file if you give it
12500 # the --recheck option to rerun configure.
12502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12504 # following values.
12506 _ACEOF
12508 # The following way of writing the cache mishandles newlines in values,
12509 # but we know of no workaround that is simple, portable, and efficient.
12510 # So, we kill variables containing newlines.
12511 # Ultrix sh set writes to stderr and can't be redirected directly,
12512 # and sets the high bit in the cache file unless we assign to the vars.
12514 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12515 eval ac_val=\$$ac_var
12516 case $ac_val in #(
12517 *${as_nl}*)
12518 case $ac_var in #(
12519 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12520 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12521 esac
12522 case $ac_var in #(
12523 _ | IFS | as_nl) ;; #(
12524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12525 *) { eval $ac_var=; unset $ac_var;} ;;
12526 esac ;;
12527 esac
12528 done
12530 (set) 2>&1 |
12531 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12532 *${as_nl}ac_space=\ *)
12533 # `set' does not quote correctly, so add quotes: double-quote
12534 # substitution turns \\\\ into \\, and sed turns \\ into \.
12535 sed -n \
12536 "s/'/'\\\\''/g;
12537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12538 ;; #(
12540 # `set' quotes correctly as required by POSIX, so do not add quotes.
12541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12543 esac |
12544 sort
12546 sed '
12547 /^ac_cv_env_/b end
12548 t clear
12549 :clear
12550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12551 t end
12552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12553 :end' >>confcache
12554 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12555 if test -w "$cache_file"; then
12556 if test "x$cache_file" != "x/dev/null"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12558 $as_echo "$as_me: updating cache $cache_file" >&6;}
12559 if test ! -f "$cache_file" || test -h "$cache_file"; then
12560 cat confcache >"$cache_file"
12561 else
12562 case $cache_file in #(
12563 */* | ?:*)
12564 mv -f confcache "$cache_file"$$ &&
12565 mv -f "$cache_file"$$ "$cache_file" ;; #(
12567 mv -f confcache "$cache_file" ;;
12568 esac
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12573 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12576 rm -f confcache
12578 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12579 # Let make expand exec_prefix.
12580 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12582 DEFS=-DHAVE_CONFIG_H
12584 ac_libobjs=
12585 ac_ltlibobjs=
12587 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12588 # 1. Remove the extension, and $U if already installed.
12589 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12590 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12591 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12592 # will be set to the directory where LIBOBJS objects are built.
12593 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12594 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12595 done
12596 LIBOBJS=$ac_libobjs
12598 LTLIBOBJS=$ac_ltlibobjs
12602 : "${CONFIG_STATUS=./config.status}"
12603 ac_write_fail=0
12604 ac_clean_files_save=$ac_clean_files
12605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12607 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12608 as_write_fail=0
12609 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12610 #! $SHELL
12611 # Generated by $as_me.
12612 # Run this file to recreate the current configuration.
12613 # Compiler output produced by configure, useful for debugging
12614 # configure, is in config.log if it exists.
12616 debug=false
12617 ac_cs_recheck=false
12618 ac_cs_silent=false
12620 SHELL=\${CONFIG_SHELL-$SHELL}
12621 export SHELL
12622 _ASEOF
12623 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12624 ## -------------------- ##
12625 ## M4sh Initialization. ##
12626 ## -------------------- ##
12628 # Be more Bourne compatible
12629 DUALCASE=1; export DUALCASE # for MKS sh
12630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12631 emulate sh
12632 NULLCMD=:
12633 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12634 # is contrary to our usage. Disable this feature.
12635 alias -g '${1+"$@"}'='"$@"'
12636 setopt NO_GLOB_SUBST
12637 else
12638 case `(set -o) 2>/dev/null` in #(
12639 *posix*) :
12640 set -o posix ;; #(
12641 *) :
12643 esac
12647 as_nl='
12649 export as_nl
12650 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12651 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12654 # Prefer a ksh shell builtin over an external printf program on Solaris,
12655 # but without wasting forks for bash or zsh.
12656 if test -z "$BASH_VERSION$ZSH_VERSION" \
12657 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12658 as_echo='print -r --'
12659 as_echo_n='print -rn --'
12660 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12661 as_echo='printf %s\n'
12662 as_echo_n='printf %s'
12663 else
12664 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12665 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12666 as_echo_n='/usr/ucb/echo -n'
12667 else
12668 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12669 as_echo_n_body='eval
12670 arg=$1;
12671 case $arg in #(
12672 *"$as_nl"*)
12673 expr "X$arg" : "X\\(.*\\)$as_nl";
12674 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12675 esac;
12676 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12678 export as_echo_n_body
12679 as_echo_n='sh -c $as_echo_n_body as_echo'
12681 export as_echo_body
12682 as_echo='sh -c $as_echo_body as_echo'
12685 # The user is always right.
12686 if test "${PATH_SEPARATOR+set}" != set; then
12687 PATH_SEPARATOR=:
12688 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12689 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12690 PATH_SEPARATOR=';'
12695 # IFS
12696 # We need space, tab and new line, in precisely that order. Quoting is
12697 # there to prevent editors from complaining about space-tab.
12698 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12699 # splitting by setting IFS to empty value.)
12700 IFS=" "" $as_nl"
12702 # Find who we are. Look in the path if we contain no directory separator.
12703 as_myself=
12704 case $0 in #((
12705 *[\\/]* ) as_myself=$0 ;;
12706 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 for as_dir in $PATH
12709 IFS=$as_save_IFS
12710 test -z "$as_dir" && as_dir=.
12711 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12712 done
12713 IFS=$as_save_IFS
12716 esac
12717 # We did not find ourselves, most probably we were run as `sh COMMAND'
12718 # in which case we are not to be found in the path.
12719 if test "x$as_myself" = x; then
12720 as_myself=$0
12722 if test ! -f "$as_myself"; then
12723 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12724 exit 1
12727 # Unset variables that we do not need and which cause bugs (e.g. in
12728 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12729 # suppresses any "Segmentation fault" message there. '((' could
12730 # trigger a bug in pdksh 5.2.14.
12731 for as_var in BASH_ENV ENV MAIL MAILPATH
12732 do eval test x\${$as_var+set} = xset \
12733 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12734 done
12735 PS1='$ '
12736 PS2='> '
12737 PS4='+ '
12739 # NLS nuisances.
12740 LC_ALL=C
12741 export LC_ALL
12742 LANGUAGE=C
12743 export LANGUAGE
12745 # CDPATH.
12746 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12749 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12750 # ----------------------------------------
12751 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12752 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12753 # script with STATUS, using 1 if that was 0.
12754 as_fn_error ()
12756 as_status=$1; test $as_status -eq 0 && as_status=1
12757 if test "$4"; then
12758 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12759 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12761 $as_echo "$as_me: error: $2" >&2
12762 as_fn_exit $as_status
12763 } # as_fn_error
12766 # as_fn_set_status STATUS
12767 # -----------------------
12768 # Set $? to STATUS, without forking.
12769 as_fn_set_status ()
12771 return $1
12772 } # as_fn_set_status
12774 # as_fn_exit STATUS
12775 # -----------------
12776 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12777 as_fn_exit ()
12779 set +e
12780 as_fn_set_status $1
12781 exit $1
12782 } # as_fn_exit
12784 # as_fn_unset VAR
12785 # ---------------
12786 # Portably unset VAR.
12787 as_fn_unset ()
12789 { eval $1=; unset $1;}
12791 as_unset=as_fn_unset
12792 # as_fn_append VAR VALUE
12793 # ----------------------
12794 # Append the text in VALUE to the end of the definition contained in VAR. Take
12795 # advantage of any shell optimizations that allow amortized linear growth over
12796 # repeated appends, instead of the typical quadratic growth present in naive
12797 # implementations.
12798 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12799 eval 'as_fn_append ()
12801 eval $1+=\$2
12803 else
12804 as_fn_append ()
12806 eval $1=\$$1\$2
12808 fi # as_fn_append
12810 # as_fn_arith ARG...
12811 # ------------------
12812 # Perform arithmetic evaluation on the ARGs, and store the result in the
12813 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12814 # must be portable across $(()) and expr.
12815 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12816 eval 'as_fn_arith ()
12818 as_val=$(( $* ))
12820 else
12821 as_fn_arith ()
12823 as_val=`expr "$@" || test $? -eq 1`
12825 fi # as_fn_arith
12828 if expr a : '\(a\)' >/dev/null 2>&1 &&
12829 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12830 as_expr=expr
12831 else
12832 as_expr=false
12835 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12836 as_basename=basename
12837 else
12838 as_basename=false
12841 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12842 as_dirname=dirname
12843 else
12844 as_dirname=false
12847 as_me=`$as_basename -- "$0" ||
12848 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12849 X"$0" : 'X\(//\)$' \| \
12850 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12851 $as_echo X/"$0" |
12852 sed '/^.*\/\([^/][^/]*\)\/*$/{
12853 s//\1/
12856 /^X\/\(\/\/\)$/{
12857 s//\1/
12860 /^X\/\(\/\).*/{
12861 s//\1/
12864 s/.*/./; q'`
12866 # Avoid depending upon Character Ranges.
12867 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12868 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12869 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12870 as_cr_digits='0123456789'
12871 as_cr_alnum=$as_cr_Letters$as_cr_digits
12873 ECHO_C= ECHO_N= ECHO_T=
12874 case `echo -n x` in #(((((
12875 -n*)
12876 case `echo 'xy\c'` in
12877 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12878 xy) ECHO_C='\c';;
12879 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12880 ECHO_T=' ';;
12881 esac;;
12883 ECHO_N='-n';;
12884 esac
12886 rm -f conf$$ conf$$.exe conf$$.file
12887 if test -d conf$$.dir; then
12888 rm -f conf$$.dir/conf$$.file
12889 else
12890 rm -f conf$$.dir
12891 mkdir conf$$.dir 2>/dev/null
12893 if (echo >conf$$.file) 2>/dev/null; then
12894 if ln -s conf$$.file conf$$ 2>/dev/null; then
12895 as_ln_s='ln -s'
12896 # ... but there are two gotchas:
12897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12899 # In both cases, we have to default to `cp -p'.
12900 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12901 as_ln_s='cp -p'
12902 elif ln conf$$.file conf$$ 2>/dev/null; then
12903 as_ln_s=ln
12904 else
12905 as_ln_s='cp -p'
12907 else
12908 as_ln_s='cp -p'
12910 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12911 rmdir conf$$.dir 2>/dev/null
12914 # as_fn_mkdir_p
12915 # -------------
12916 # Create "$as_dir" as a directory, including parents if necessary.
12917 as_fn_mkdir_p ()
12920 case $as_dir in #(
12921 -*) as_dir=./$as_dir;;
12922 esac
12923 test -d "$as_dir" || eval $as_mkdir_p || {
12924 as_dirs=
12925 while :; do
12926 case $as_dir in #(
12927 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12928 *) as_qdir=$as_dir;;
12929 esac
12930 as_dirs="'$as_qdir' $as_dirs"
12931 as_dir=`$as_dirname -- "$as_dir" ||
12932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12933 X"$as_dir" : 'X\(//\)[^/]' \| \
12934 X"$as_dir" : 'X\(//\)$' \| \
12935 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12936 $as_echo X"$as_dir" |
12937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12938 s//\1/
12941 /^X\(\/\/\)[^/].*/{
12942 s//\1/
12945 /^X\(\/\/\)$/{
12946 s//\1/
12949 /^X\(\/\).*/{
12950 s//\1/
12953 s/.*/./; q'`
12954 test -d "$as_dir" && break
12955 done
12956 test -z "$as_dirs" || eval "mkdir $as_dirs"
12957 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12960 } # as_fn_mkdir_p
12961 if mkdir -p . 2>/dev/null; then
12962 as_mkdir_p='mkdir -p "$as_dir"'
12963 else
12964 test -d ./-p && rmdir ./-p
12965 as_mkdir_p=false
12968 if test -x / >/dev/null 2>&1; then
12969 as_test_x='test -x'
12970 else
12971 if ls -dL / >/dev/null 2>&1; then
12972 as_ls_L_option=L
12973 else
12974 as_ls_L_option=
12976 as_test_x='
12977 eval sh -c '\''
12978 if test -d "$1"; then
12979 test -d "$1/.";
12980 else
12981 case $1 in #(
12982 -*)set "./$1";;
12983 esac;
12984 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12985 ???[sx]*):;;*)false;;esac;fi
12986 '\'' sh
12989 as_executable_p=$as_test_x
12991 # Sed expression to map a string onto a valid CPP name.
12992 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12994 # Sed expression to map a string onto a valid variable name.
12995 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12998 exec 6>&1
12999 ## ----------------------------------- ##
13000 ## Main body of $CONFIG_STATUS script. ##
13001 ## ----------------------------------- ##
13002 _ASEOF
13003 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13006 # Save the log message, to keep $0 and so on meaningful, and to
13007 # report actual input values of CONFIG_FILES etc. instead of their
13008 # values after options handling.
13009 ac_log="
13010 This file was extended by $as_me, which was
13011 generated by GNU Autoconf 2.68. Invocation command line was
13013 CONFIG_FILES = $CONFIG_FILES
13014 CONFIG_HEADERS = $CONFIG_HEADERS
13015 CONFIG_LINKS = $CONFIG_LINKS
13016 CONFIG_COMMANDS = $CONFIG_COMMANDS
13017 $ $0 $@
13019 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13022 _ACEOF
13024 case $ac_config_files in *"
13025 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13026 esac
13028 case $ac_config_headers in *"
13029 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13030 esac
13033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13034 # Files that config.status was made for.
13035 config_files="$ac_config_files"
13036 config_headers="$ac_config_headers"
13037 config_commands="$ac_config_commands"
13039 _ACEOF
13041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13042 ac_cs_usage="\
13043 \`$as_me' instantiates files and other configuration actions
13044 from templates according to the current configuration. Unless the files
13045 and actions are specified as TAGs, all are instantiated by default.
13047 Usage: $0 [OPTION]... [TAG]...
13049 -h, --help print this help, then exit
13050 -V, --version print version number and configuration settings, then exit
13051 --config print configuration, then exit
13052 -q, --quiet, --silent
13053 do not print progress messages
13054 -d, --debug don't remove temporary files
13055 --recheck update $as_me by reconfiguring in the same conditions
13056 --file=FILE[:TEMPLATE]
13057 instantiate the configuration file FILE
13058 --header=FILE[:TEMPLATE]
13059 instantiate the configuration header FILE
13061 Configuration files:
13062 $config_files
13064 Configuration headers:
13065 $config_headers
13067 Configuration commands:
13068 $config_commands
13070 Report bugs to the package provider."
13072 _ACEOF
13073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13074 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13075 ac_cs_version="\\
13076 config.status
13077 configured by $0, generated by GNU Autoconf 2.68,
13078 with options \\"\$ac_cs_config\\"
13080 Copyright (C) 2010 Free Software Foundation, Inc.
13081 This config.status script is free software; the Free Software Foundation
13082 gives unlimited permission to copy, distribute and modify it."
13084 ac_pwd='$ac_pwd'
13085 srcdir='$srcdir'
13086 test -n "\$AWK" || AWK=awk
13087 _ACEOF
13089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13090 # The default lists apply if the user does not specify any file.
13091 ac_need_defaults=:
13092 while test $# != 0
13094 case $1 in
13095 --*=?*)
13096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13098 ac_shift=:
13100 --*=)
13101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13102 ac_optarg=
13103 ac_shift=:
13106 ac_option=$1
13107 ac_optarg=$2
13108 ac_shift=shift
13110 esac
13112 case $ac_option in
13113 # Handling of the options.
13114 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13115 ac_cs_recheck=: ;;
13116 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13117 $as_echo "$ac_cs_version"; exit ;;
13118 --config | --confi | --conf | --con | --co | --c )
13119 $as_echo "$ac_cs_config"; exit ;;
13120 --debug | --debu | --deb | --de | --d | -d )
13121 debug=: ;;
13122 --file | --fil | --fi | --f )
13123 $ac_shift
13124 case $ac_optarg in
13125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13126 '') as_fn_error $? "missing file argument" ;;
13127 esac
13128 as_fn_append CONFIG_FILES " '$ac_optarg'"
13129 ac_need_defaults=false;;
13130 --header | --heade | --head | --hea )
13131 $ac_shift
13132 case $ac_optarg in
13133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13134 esac
13135 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13136 ac_need_defaults=false;;
13137 --he | --h)
13138 # Conflict between --help and --header
13139 as_fn_error $? "ambiguous option: \`$1'
13140 Try \`$0 --help' for more information.";;
13141 --help | --hel | -h )
13142 $as_echo "$ac_cs_usage"; exit ;;
13143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13145 ac_cs_silent=: ;;
13147 # This is an error.
13148 -*) as_fn_error $? "unrecognized option: \`$1'
13149 Try \`$0 --help' for more information." ;;
13151 *) as_fn_append ac_config_targets " $1"
13152 ac_need_defaults=false ;;
13154 esac
13155 shift
13156 done
13158 ac_configure_extra_args=
13160 if $ac_cs_silent; then
13161 exec 6>/dev/null
13162 ac_configure_extra_args="$ac_configure_extra_args --silent"
13165 _ACEOF
13166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13167 if \$ac_cs_recheck; then
13168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13169 shift
13170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13171 CONFIG_SHELL='$SHELL'
13172 export CONFIG_SHELL
13173 exec "\$@"
13176 _ACEOF
13177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13178 exec 5>>config.log
13180 echo
13181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13182 ## Running $as_me. ##
13183 _ASBOX
13184 $as_echo "$ac_log"
13185 } >&5
13187 _ACEOF
13188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13190 # INIT-COMMANDS
13193 aros_host_exe_suffix=${aros_host_exe_suffix}
13194 aros_tools_dir=${aros_tools_dir}
13195 aros_target_cpu=${aros_target_cpu}
13196 aros_target_arch=${aros_target_arch}
13197 aros_target_suffix=${aros_target_suffix}
13198 orig_target_nm=${orig_target_nm}
13199 orig_target_as=${orig_target_as}
13200 orig_target_ar=${orig_target_ar}
13201 orig_target_ranlib=${orig_target_ranlib}
13202 orig_target_objdump=${orig_target_objdump}
13203 orig_target_objcopy=${orig_target_objcopy}
13204 orig_target_strip=${orig_target_strip}
13205 aros_kernel_ld=${aros_kernel_ld}
13208 aros_tools_dir=${aros_tools_dir}
13211 _ACEOF
13213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13215 # Handling of arguments.
13216 for ac_config_target in $ac_config_targets
13218 case $ac_config_target in
13219 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13220 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13221 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13222 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13223 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13224 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13225 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13226 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13227 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13228 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13229 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13230 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13231 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13232 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in" ;;
13233 "${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" ;;
13234 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in" ;;
13235 "${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" ;;
13236 "${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" ;;
13237 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13238 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13239 "${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" ;;
13241 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13242 esac
13243 done
13246 # If the user did not use the arguments to specify the items to instantiate,
13247 # then the envvar interface is used. Set only those that are not.
13248 # We use the long form for the default assignment because of an extremely
13249 # bizarre bug on SunOS 4.1.3.
13250 if $ac_need_defaults; then
13251 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13252 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13253 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13256 # Have a temporary directory for convenience. Make it in the build tree
13257 # simply because there is no reason against having it here, and in addition,
13258 # creating and moving files from /tmp can sometimes cause problems.
13259 # Hook for its removal unless debugging.
13260 # Note that there is a small window in which the directory will not be cleaned:
13261 # after its creation but before its name has been assigned to `$tmp'.
13262 $debug ||
13264 tmp= ac_tmp=
13265 trap 'exit_status=$?
13266 : "${ac_tmp:=$tmp}"
13267 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13269 trap 'as_fn_exit 1' 1 2 13 15
13271 # Create a (secure) tmp directory for tmp files.
13274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13275 test -d "$tmp"
13276 } ||
13278 tmp=./conf$$-$RANDOM
13279 (umask 077 && mkdir "$tmp")
13280 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13281 ac_tmp=$tmp
13283 # Set up the scripts for CONFIG_FILES section.
13284 # No need to generate them if there are no CONFIG_FILES.
13285 # This happens for instance with `./config.status config.h'.
13286 if test -n "$CONFIG_FILES"; then
13289 ac_cr=`echo X | tr X '\015'`
13290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13291 # But we know of no other shell where ac_cr would be empty at this
13292 # point, so we can use a bashism as a fallback.
13293 if test "x$ac_cr" = x; then
13294 eval ac_cr=\$\'\\r\'
13296 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13298 ac_cs_awk_cr='\\r'
13299 else
13300 ac_cs_awk_cr=$ac_cr
13303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13304 _ACEOF
13308 echo "cat >conf$$subs.awk <<_ACEOF" &&
13309 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13310 echo "_ACEOF"
13311 } >conf$$subs.sh ||
13312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13313 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13314 ac_delim='%!_!# '
13315 for ac_last_try in false false false false false :; do
13316 . ./conf$$subs.sh ||
13317 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13319 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13320 if test $ac_delim_n = $ac_delim_num; then
13321 break
13322 elif $ac_last_try; then
13323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13324 else
13325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13327 done
13328 rm -f conf$$subs.sh
13330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13331 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13332 _ACEOF
13333 sed -n '
13335 s/^/S["/; s/!.*/"]=/
13338 s/^[^!]*!//
13339 :repl
13340 t repl
13341 s/'"$ac_delim"'$//
13342 t delim
13345 s/\(.\{148\}\)..*/\1/
13346 t more1
13347 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13350 b repl
13351 :more1
13352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13355 s/.\{148\}//
13356 t nl
13357 :delim
13359 s/\(.\{148\}\)..*/\1/
13360 t more2
13361 s/["\\]/\\&/g; s/^/"/; s/$/"/
13364 :more2
13365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13368 s/.\{148\}//
13369 t delim
13370 ' <conf$$subs.awk | sed '
13371 /^[^""]/{
13373 s/\n//
13375 ' >>$CONFIG_STATUS || ac_write_fail=1
13376 rm -f conf$$subs.awk
13377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13378 _ACAWK
13379 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13380 for (key in S) S_is_set[key] = 1
13381 FS = "\a"
13385 line = $ 0
13386 nfields = split(line, field, "@")
13387 substed = 0
13388 len = length(field[1])
13389 for (i = 2; i < nfields; i++) {
13390 key = field[i]
13391 keylen = length(key)
13392 if (S_is_set[key]) {
13393 value = S[key]
13394 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13395 len += length(value) + length(field[++i])
13396 substed = 1
13397 } else
13398 len += 1 + keylen
13401 print line
13404 _ACAWK
13405 _ACEOF
13406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13407 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13408 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13409 else
13411 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13412 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13413 _ACEOF
13415 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13416 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13417 # trailing colons and then remove the whole line if VPATH becomes empty
13418 # (actually we leave an empty line to preserve line numbers).
13419 if test "x$srcdir" = x.; then
13420 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13422 s///
13423 s/^/:/
13424 s/[ ]*$/:/
13425 s/:\$(srcdir):/:/g
13426 s/:\${srcdir}:/:/g
13427 s/:@srcdir@:/:/g
13428 s/^:*//
13429 s/:*$//
13431 s/\(=[ ]*\).*/\1/
13433 s/\n//
13434 s/^[^=]*=[ ]*$//
13438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13439 fi # test -n "$CONFIG_FILES"
13441 # Set up the scripts for CONFIG_HEADERS section.
13442 # No need to generate them if there are no CONFIG_HEADERS.
13443 # This happens for instance with `./config.status Makefile'.
13444 if test -n "$CONFIG_HEADERS"; then
13445 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13446 BEGIN {
13447 _ACEOF
13449 # Transform confdefs.h into an awk script `defines.awk', embedded as
13450 # here-document in config.status, that substitutes the proper values into
13451 # config.h.in to produce config.h.
13453 # Create a delimiter string that does not exist in confdefs.h, to ease
13454 # handling of long lines.
13455 ac_delim='%!_!# '
13456 for ac_last_try in false false :; do
13457 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13458 if test -z "$ac_tt"; then
13459 break
13460 elif $ac_last_try; then
13461 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13462 else
13463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13465 done
13467 # For the awk script, D is an array of macro values keyed by name,
13468 # likewise P contains macro parameters if any. Preserve backslash
13469 # newline sequences.
13471 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13472 sed -n '
13473 s/.\{148\}/&'"$ac_delim"'/g
13474 t rset
13475 :rset
13476 s/^[ ]*#[ ]*define[ ][ ]*/ /
13477 t def
13479 :def
13480 s/\\$//
13481 t bsnl
13482 s/["\\]/\\&/g
13483 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13484 D["\1"]=" \3"/p
13485 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13487 :bsnl
13488 s/["\\]/\\&/g
13489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13490 D["\1"]=" \3\\\\\\n"\\/p
13491 t cont
13492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13493 t cont
13495 :cont
13497 s/.\{148\}/&'"$ac_delim"'/g
13498 t clear
13499 :clear
13500 s/\\$//
13501 t bsnlc
13502 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13504 :bsnlc
13505 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13506 b cont
13507 ' <confdefs.h | sed '
13508 s/'"$ac_delim"'/"\\\
13509 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13512 for (key in D) D_is_set[key] = 1
13513 FS = "\a"
13515 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13516 line = \$ 0
13517 split(line, arg, " ")
13518 if (arg[1] == "#") {
13519 defundef = arg[2]
13520 mac1 = arg[3]
13521 } else {
13522 defundef = substr(arg[1], 2)
13523 mac1 = arg[2]
13525 split(mac1, mac2, "(") #)
13526 macro = mac2[1]
13527 prefix = substr(line, 1, index(line, defundef) - 1)
13528 if (D_is_set[macro]) {
13529 # Preserve the white space surrounding the "#".
13530 print prefix "define", macro P[macro] D[macro]
13531 next
13532 } else {
13533 # Replace #undef with comments. This is necessary, for example,
13534 # in the case of _POSIX_SOURCE, which is predefined and required
13535 # on some systems where configure will not decide to define it.
13536 if (defundef == "undef") {
13537 print "/*", prefix defundef, macro, "*/"
13538 next
13542 { print }
13543 _ACAWK
13544 _ACEOF
13545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13546 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13547 fi # test -n "$CONFIG_HEADERS"
13550 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13551 shift
13552 for ac_tag
13554 case $ac_tag in
13555 :[FHLC]) ac_mode=$ac_tag; continue;;
13556 esac
13557 case $ac_mode$ac_tag in
13558 :[FHL]*:*);;
13559 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13560 :[FH]-) ac_tag=-:-;;
13561 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13562 esac
13563 ac_save_IFS=$IFS
13564 IFS=:
13565 set x $ac_tag
13566 IFS=$ac_save_IFS
13567 shift
13568 ac_file=$1
13569 shift
13571 case $ac_mode in
13572 :L) ac_source=$1;;
13573 :[FH])
13574 ac_file_inputs=
13575 for ac_f
13577 case $ac_f in
13578 -) ac_f="$ac_tmp/stdin";;
13579 *) # Look for the file first in the build tree, then in the source tree
13580 # (if the path is not absolute). The absolute path cannot be DOS-style,
13581 # because $ac_f cannot contain `:'.
13582 test -f "$ac_f" ||
13583 case $ac_f in
13584 [\\/$]*) false;;
13585 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13586 esac ||
13587 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13588 esac
13589 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13590 as_fn_append ac_file_inputs " '$ac_f'"
13591 done
13593 # Let's still pretend it is `configure' which instantiates (i.e., don't
13594 # use $as_me), people would be surprised to read:
13595 # /* config.h. Generated by config.status. */
13596 configure_input='Generated from '`
13597 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13598 `' by configure.'
13599 if test x"$ac_file" != x-; then
13600 configure_input="$ac_file. $configure_input"
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13602 $as_echo "$as_me: creating $ac_file" >&6;}
13604 # Neutralize special characters interpreted by sed in replacement strings.
13605 case $configure_input in #(
13606 *\&* | *\|* | *\\* )
13607 ac_sed_conf_input=`$as_echo "$configure_input" |
13608 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13609 *) ac_sed_conf_input=$configure_input;;
13610 esac
13612 case $ac_tag in
13613 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13615 esac
13617 esac
13619 ac_dir=`$as_dirname -- "$ac_file" ||
13620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13621 X"$ac_file" : 'X\(//\)[^/]' \| \
13622 X"$ac_file" : 'X\(//\)$' \| \
13623 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13624 $as_echo X"$ac_file" |
13625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13626 s//\1/
13629 /^X\(\/\/\)[^/].*/{
13630 s//\1/
13633 /^X\(\/\/\)$/{
13634 s//\1/
13637 /^X\(\/\).*/{
13638 s//\1/
13641 s/.*/./; q'`
13642 as_dir="$ac_dir"; as_fn_mkdir_p
13643 ac_builddir=.
13645 case "$ac_dir" in
13646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13649 # A ".." for each directory in $ac_dir_suffix.
13650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13651 case $ac_top_builddir_sub in
13652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13654 esac ;;
13655 esac
13656 ac_abs_top_builddir=$ac_pwd
13657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13658 # for backward compatibility:
13659 ac_top_builddir=$ac_top_build_prefix
13661 case $srcdir in
13662 .) # We are building in place.
13663 ac_srcdir=.
13664 ac_top_srcdir=$ac_top_builddir_sub
13665 ac_abs_top_srcdir=$ac_pwd ;;
13666 [\\/]* | ?:[\\/]* ) # Absolute name.
13667 ac_srcdir=$srcdir$ac_dir_suffix;
13668 ac_top_srcdir=$srcdir
13669 ac_abs_top_srcdir=$srcdir ;;
13670 *) # Relative name.
13671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13672 ac_top_srcdir=$ac_top_build_prefix$srcdir
13673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13674 esac
13675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13678 case $ac_mode in
13681 # CONFIG_FILE
13684 _ACEOF
13686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13687 # If the template does not know about datarootdir, expand it.
13688 # FIXME: This hack should be removed a few years after 2.60.
13689 ac_datarootdir_hack=; ac_datarootdir_seen=
13690 ac_sed_dataroot='
13691 /datarootdir/ {
13695 /@datadir@/p
13696 /@docdir@/p
13697 /@infodir@/p
13698 /@localedir@/p
13699 /@mandir@/p'
13700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13701 *datarootdir*) ac_datarootdir_seen=yes;;
13702 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13705 _ACEOF
13706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13707 ac_datarootdir_hack='
13708 s&@datadir@&$datadir&g
13709 s&@docdir@&$docdir&g
13710 s&@infodir@&$infodir&g
13711 s&@localedir@&$localedir&g
13712 s&@mandir@&$mandir&g
13713 s&\\\${datarootdir}&$datarootdir&g' ;;
13714 esac
13715 _ACEOF
13717 # Neutralize VPATH when `$srcdir' = `.'.
13718 # Shell code in configure.ac might set extrasub.
13719 # FIXME: do we really want to maintain this feature?
13720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13721 ac_sed_extra="$ac_vpsub
13722 $extrasub
13723 _ACEOF
13724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13727 s|@configure_input@|$ac_sed_conf_input|;t t
13728 s&@top_builddir@&$ac_top_builddir_sub&;t t
13729 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13730 s&@srcdir@&$ac_srcdir&;t t
13731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13732 s&@top_srcdir@&$ac_top_srcdir&;t t
13733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13734 s&@builddir@&$ac_builddir&;t t
13735 s&@abs_builddir@&$ac_abs_builddir&;t t
13736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13737 $ac_datarootdir_hack
13739 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13740 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13743 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13745 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13747 which seems to be undefined. Please make sure it is defined" >&5
13748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13749 which seems to be undefined. Please make sure it is defined" >&2;}
13751 rm -f "$ac_tmp/stdin"
13752 case $ac_file in
13753 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13754 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13755 esac \
13756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13760 # CONFIG_HEADER
13762 if test x"$ac_file" != x-; then
13764 $as_echo "/* $configure_input */" \
13765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13766 } >"$ac_tmp/config.h" \
13767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13768 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13770 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13771 else
13772 rm -f "$ac_file"
13773 mv "$ac_tmp/config.h" "$ac_file" \
13774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13776 else
13777 $as_echo "/* $configure_input */" \
13778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13779 || as_fn_error $? "could not create -" "$LINENO" 5
13783 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13784 $as_echo "$as_me: executing $ac_file commands" >&6;}
13786 esac
13789 case $ac_file$ac_mode in
13790 "compiler_executable":C)
13791 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13792 mkdir -p $prefix
13793 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13794 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13796 echo ${prefix2}
13797 echo ${prefix3}
13798 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
13800 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13801 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13802 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13803 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13804 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13805 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13806 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13808 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13810 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13812 esac
13813 done # for ac_tag
13816 as_fn_exit 0
13817 _ACEOF
13818 ac_clean_files=$ac_clean_files_save
13820 test $ac_write_fail = 0 ||
13821 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13824 # configure is writing to config.log, and then calls config.status.
13825 # config.status does its own redirection, appending to config.log.
13826 # Unfortunately, on DOS this fails, as config.log is still kept open
13827 # by configure, so config.status won't be able to write to it; its
13828 # output is simply discarded. So we exec the FD to /dev/null,
13829 # effectively closing config.log, so it can be properly (re)opened and
13830 # appended to by config.status. When coming back to configure, we
13831 # need to make the FD available again.
13832 if test "$no_create" != yes; then
13833 ac_cs_success=:
13834 ac_config_status_args=
13835 test "$silent" = yes &&
13836 ac_config_status_args="$ac_config_status_args --quiet"
13837 exec 5>/dev/null
13838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13839 exec 5>>config.log
13840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13841 # would make configure fail if this is the last instruction.
13842 $ac_cs_success || as_fn_exit 1
13844 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13846 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13851 #XXX compatability...
13852 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13854 if test -n "$aros_shared_cflags" ; then
13855 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13856 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg