Correctly access platform data via function argument.
[AROS.git] / configure
blob0ee1dced03848294a0a10771b0c679a47f18b37c
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 # Some debug output, to be removed again.
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2747 $as_echo_n "checking for target system (debug output)... " >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2749 $as_echo "$target_os" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2751 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2753 $as_echo "$target_cpu" >&6; }
2755 aros_default_wbwidth=800
2756 aros_default_wbheight=600
2757 aros_default_wbdepth=4
2760 # The first step is to find the host binaries.
2761 # Check for a compiler.
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_CC+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2789 done
2790 done
2791 IFS=$as_save_IFS
2795 CC=$ac_cv_prog_CC
2796 if test -n "$CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798 $as_echo "$CC" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2806 if test -z "$ac_cv_prog_CC"; then
2807 ac_ct_CC=$CC
2808 # Extract the first word of "gcc", so it can be a program name with args.
2809 set dummy gcc; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_ac_ct_CC="gcc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2829 done
2830 done
2831 IFS=$as_save_IFS
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2838 $as_echo "$ac_ct_CC" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2844 if test "x$ac_ct_CC" = x; then
2845 CC=""
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848 yes:)
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851 ac_tool_warned=yes ;;
2852 esac
2853 CC=$ac_ct_CC
2855 else
2856 CC="$ac_cv_prog_CC"
2859 if test -z "$CC"; then
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}cc; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_CC+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CC="${ac_tool_prefix}cc"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2882 done
2883 done
2884 IFS=$as_save_IFS
2888 CC=$ac_cv_prog_CC
2889 if test -n "$CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2900 if test -z "$CC"; then
2901 # Extract the first word of "cc", so it can be a program name with args.
2902 set dummy cc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 ac_prog_rejected=no
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2920 ac_prog_rejected=yes
2921 continue
2923 ac_cv_prog_CC="cc"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2927 done
2928 done
2929 IFS=$as_save_IFS
2931 if test $ac_prog_rejected = yes; then
2932 # We found a bogon in the path, so make sure we never use it.
2933 set dummy $ac_cv_prog_CC
2934 shift
2935 if test $# != 0; then
2936 # We chose a different compiler from the bogus one.
2937 # However, it has the same basename, so the bogon will be chosen
2938 # first if we set CC to just the basename; use the full file name.
2939 shift
2940 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2956 if test -z "$CC"; then
2957 if test -n "$ac_tool_prefix"; then
2958 for ac_prog in cl.exe
2960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_CC+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2981 done
2982 done
2983 IFS=$as_save_IFS
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2997 test -n "$CC" && break
2998 done
3000 if test -z "$CC"; then
3001 ac_ct_CC=$CC
3002 for ac_prog in cl.exe
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_ac_ct_CC="$ac_prog"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3025 done
3026 done
3027 IFS=$as_save_IFS
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3041 test -n "$ac_ct_CC" && break
3042 done
3044 if test "x$ac_ct_CC" = x; then
3045 CC=""
3046 else
3047 case $cross_compiling:$ac_tool_warned in
3048 yes:)
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3052 esac
3053 CC=$ac_ct_CC
3060 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 as_fn_error $? "no acceptable C compiler found in \$PATH
3063 See \`config.log' for more details" "$LINENO" 5; }
3065 # Provide some information about the compiler.
3066 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3067 set X $ac_compile
3068 ac_compiler=$2
3069 for ac_option in --version -v -V -qversion; do
3070 { { ac_try="$ac_compiler $ac_option >&5"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3078 ac_status=$?
3079 if test -s conftest.err; then
3080 sed '10a\
3081 ... rest of stderr output deleted ...
3082 10q' conftest.err >conftest.er1
3083 cat conftest.er1 >&5
3085 rm -f conftest.er1 conftest.err
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }
3088 done
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3094 main ()
3098 return 0;
3100 _ACEOF
3101 ac_clean_files_save=$ac_clean_files
3102 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3103 # Try to create an executable without -o first, disregard a.out.
3104 # It will help us diagnose broken compilers, and finding out an intuition
3105 # of exeext.
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3107 $as_echo_n "checking whether the C compiler works... " >&6; }
3108 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3110 # The possible output files:
3111 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3113 ac_rmfiles=
3114 for ac_file in $ac_files
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3118 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3119 esac
3120 done
3121 rm -f $ac_rmfiles
3123 if { { ac_try="$ac_link_default"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_link_default") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; then :
3134 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3135 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3136 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3137 # so that the user can short-circuit this test for compilers unknown to
3138 # Autoconf.
3139 for ac_file in $ac_files ''
3141 test -f "$ac_file" || continue
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3145 [ab].out )
3146 # We found the default executable, but exeext='' is most
3147 # certainly right.
3148 break;;
3149 *.* )
3150 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3151 then :; else
3152 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 # We set ac_cv_exeext here because the later test for it is not
3155 # safe: cross compilers may not add the suffix if given an `-o'
3156 # argument, so we may need to know it at that point already.
3157 # Even if this section looks crufty: it has the advantage of
3158 # actually working.
3159 break;;
3161 break;;
3162 esac
3163 done
3164 test "$ac_cv_exeext" = no && ac_cv_exeext=
3166 else
3167 ac_file=''
3169 if test -z "$ac_file"; then :
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 $as_echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error 77 "C compiler cannot create executables
3178 See \`config.log' for more details" "$LINENO" 5; }
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 $as_echo "yes" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3184 $as_echo_n "checking for C compiler default output file name... " >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3186 $as_echo "$ac_file" >&6; }
3187 ac_exeext=$ac_cv_exeext
3189 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3190 ac_clean_files=$ac_clean_files_save
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3192 $as_echo_n "checking for suffix of executables... " >&6; }
3193 if { { ac_try="$ac_link"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_link") 2>&5
3201 ac_status=$?
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }; then :
3204 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3205 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3206 # work properly (i.e., refer to `conftest.exe'), while it won't with
3207 # `rm'.
3208 for ac_file in conftest.exe conftest conftest.*; do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3212 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213 break;;
3214 * ) break;;
3215 esac
3216 done
3217 else
3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3221 See \`config.log' for more details" "$LINENO" 5; }
3223 rm -f conftest conftest$ac_cv_exeext
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3225 $as_echo "$ac_cv_exeext" >&6; }
3227 rm -f conftest.$ac_ext
3228 EXEEXT=$ac_cv_exeext
3229 ac_exeext=$EXEEXT
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3232 #include <stdio.h>
3234 main ()
3236 FILE *f = fopen ("conftest.out", "w");
3237 return ferror (f) || fclose (f) != 0;
3240 return 0;
3242 _ACEOF
3243 ac_clean_files="$ac_clean_files conftest.out"
3244 # Check that the compiler produces executables we can run. If not, either
3245 # the compiler is broken, or we cross compile.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3247 $as_echo_n "checking whether we are cross compiling... " >&6; }
3248 if test "$cross_compiling" != yes; then
3249 { { ac_try="$ac_link"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link") 2>&5
3257 ac_status=$?
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }
3260 if { ac_try='./conftest$ac_cv_exeext'
3261 { { case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_try") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; }; then
3271 cross_compiling=no
3272 else
3273 if test "$cross_compiling" = maybe; then
3274 cross_compiling=yes
3275 else
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error $? "cannot run C compiled programs.
3279 If you meant to cross compile, use \`--host'.
3280 See \`config.log' for more details" "$LINENO" 5; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3285 $as_echo "$cross_compiling" >&6; }
3287 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3288 ac_clean_files=$ac_clean_files_save
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3290 $as_echo_n "checking for suffix of object files... " >&6; }
3291 if ${ac_cv_objext+:} false; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3298 main ()
3302 return 0;
3304 _ACEOF
3305 rm -f conftest.o conftest.obj
3306 if { { ac_try="$ac_compile"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_compile") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 for ac_file in conftest.o conftest.obj conftest.*; do
3318 test -f "$ac_file" || continue;
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3322 break;;
3323 esac
3324 done
3325 else
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $? "cannot compute suffix of object files: cannot compile
3332 See \`config.log' for more details" "$LINENO" 5; }
3334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3337 $as_echo "$ac_cv_objext" >&6; }
3338 OBJEXT=$ac_cv_objext
3339 ac_objext=$OBJEXT
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3341 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3342 if ${ac_cv_c_compiler_gnu+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3349 main ()
3351 #ifndef __GNUC__
3352 choke me
3353 #endif
3356 return 0;
3358 _ACEOF
3359 if ac_fn_c_try_compile "$LINENO"; then :
3360 ac_compiler_gnu=yes
3361 else
3362 ac_compiler_gnu=no
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3369 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3370 if test $ac_compiler_gnu = yes; then
3371 GCC=yes
3372 else
3373 GCC=
3375 ac_test_CFLAGS=${CFLAGS+set}
3376 ac_save_CFLAGS=$CFLAGS
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3378 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3379 if ${ac_cv_prog_cc_g+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 ac_save_c_werror_flag=$ac_c_werror_flag
3383 ac_c_werror_flag=yes
3384 ac_cv_prog_cc_g=no
3385 CFLAGS="-g"
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3390 main ()
3394 return 0;
3396 _ACEOF
3397 if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_cv_prog_cc_g=yes
3399 else
3400 CFLAGS=""
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3405 main ()
3409 return 0;
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"; then :
3414 else
3415 ac_c_werror_flag=$ac_save_c_werror_flag
3416 CFLAGS="-g"
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3421 main ()
3425 return 0;
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429 ac_cv_prog_cc_g=yes
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_c_werror_flag=$ac_save_c_werror_flag
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3439 $as_echo "$ac_cv_prog_cc_g" >&6; }
3440 if test "$ac_test_CFLAGS" = set; then
3441 CFLAGS=$ac_save_CFLAGS
3442 elif test $ac_cv_prog_cc_g = yes; then
3443 if test "$GCC" = yes; then
3444 CFLAGS="-g -O2"
3445 else
3446 CFLAGS="-g"
3448 else
3449 if test "$GCC" = yes; then
3450 CFLAGS="-O2"
3451 else
3452 CFLAGS=
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3456 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3457 if ${ac_cv_prog_cc_c89+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 ac_cv_prog_cc_c89=no
3461 ac_save_CC=$CC
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464 #include <stdarg.h>
3465 #include <stdio.h>
3466 #include <sys/types.h>
3467 #include <sys/stat.h>
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3472 char **p;
3473 int i;
3475 return p[i];
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3479 char *s;
3480 va_list v;
3481 va_start (v,p);
3482 s = g (p, va_arg (v,int));
3483 va_end (v);
3484 return s;
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3488 function prototypes and stuff, but not '\xHH' hex character constants.
3489 These don't provoke an error unfortunately, instead are silently treated
3490 as 'x'. The following induces an error, until -std is added to get
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3492 array size at least. It's necessary to write '\x00'==0 to get something
3493 that's true only with -std. */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497 inside strings and character constants. */
3498 #define FOO(x) 'x'
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3505 int argc;
3506 char **argv;
3508 main ()
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3512 return 0;
3514 _ACEOF
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3518 CC="$ac_save_CC $ac_arg"
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_prog_cc_c89=$ac_arg
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3524 done
3525 rm -f conftest.$ac_ext
3526 CC=$ac_save_CC
3529 # AC_CACHE_VAL
3530 case "x$ac_cv_prog_cc_c89" in
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3534 xno)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3541 esac
3542 if test "x$ac_cv_prog_cc_c89" != xno; then :
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 case $ac_cv_prog_cc_stdc in #(
3553 no) :
3554 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3555 *) :
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3558 if ${ac_cv_prog_cc_c99+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 ac_cv_prog_cc_c99=no
3562 ac_save_CC=$CC
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <stdarg.h>
3566 #include <stdbool.h>
3567 #include <stdlib.h>
3568 #include <wchar.h>
3569 #include <stdio.h>
3571 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3572 #define debug(...) fprintf (stderr, __VA_ARGS__)
3573 #define showlist(...) puts (#__VA_ARGS__)
3574 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3575 static void
3576 test_varargs_macros (void)
3578 int x = 1234;
3579 int y = 5678;
3580 debug ("Flag");
3581 debug ("X = %d\n", x);
3582 showlist (The first, second, and third items.);
3583 report (x>y, "x is %d but y is %d", x, y);
3586 // Check long long types.
3587 #define BIG64 18446744073709551615ull
3588 #define BIG32 4294967295ul
3589 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3590 #if !BIG_OK
3591 your preprocessor is broken;
3592 #endif
3593 #if BIG_OK
3594 #else
3595 your preprocessor is broken;
3596 #endif
3597 static long long int bignum = -9223372036854775807LL;
3598 static unsigned long long int ubignum = BIG64;
3600 struct incomplete_array
3602 int datasize;
3603 double data[];
3606 struct named_init {
3607 int number;
3608 const wchar_t *name;
3609 double average;
3612 typedef const char *ccp;
3614 static inline int
3615 test_restrict (ccp restrict text)
3617 // See if C++-style comments work.
3618 // Iterate through items via the restricted pointer.
3619 // Also check for declarations in for loops.
3620 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3621 continue;
3622 return 0;
3625 // Check varargs and va_copy.
3626 static void
3627 test_varargs (const char *format, ...)
3629 va_list args;
3630 va_start (args, format);
3631 va_list args_copy;
3632 va_copy (args_copy, args);
3634 const char *str;
3635 int number;
3636 float fnumber;
3638 while (*format)
3640 switch (*format++)
3642 case 's': // string
3643 str = va_arg (args_copy, const char *);
3644 break;
3645 case 'd': // int
3646 number = va_arg (args_copy, int);
3647 break;
3648 case 'f': // float
3649 fnumber = va_arg (args_copy, double);
3650 break;
3651 default:
3652 break;
3655 va_end (args_copy);
3656 va_end (args);
3660 main ()
3663 // Check bool.
3664 _Bool success = false;
3666 // Check restrict.
3667 if (test_restrict ("String literal") == 0)
3668 success = true;
3669 char *restrict newvar = "Another string";
3671 // Check varargs.
3672 test_varargs ("s, d' f .", "string", 65, 34.234);
3673 test_varargs_macros ();
3675 // Check flexible array members.
3676 struct incomplete_array *ia =
3677 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3678 ia->datasize = 10;
3679 for (int i = 0; i < ia->datasize; ++i)
3680 ia->data[i] = i * 1.234;
3682 // Check named initializers.
3683 struct named_init ni = {
3684 .number = 34,
3685 .name = L"Test wide string",
3686 .average = 543.34343,
3689 ni.number = 58;
3691 int dynamic_array[ni.number];
3692 dynamic_array[ni.number - 1] = 543;
3694 // work around unused variable warnings
3695 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3696 || dynamic_array[ni.number - 1] != 543);
3699 return 0;
3701 _ACEOF
3702 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3704 CC="$ac_save_CC $ac_arg"
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_cv_prog_cc_c99=$ac_arg
3708 rm -f core conftest.err conftest.$ac_objext
3709 test "x$ac_cv_prog_cc_c99" != "xno" && break
3710 done
3711 rm -f conftest.$ac_ext
3712 CC=$ac_save_CC
3715 # AC_CACHE_VAL
3716 case "x$ac_cv_prog_cc_c99" in
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3719 $as_echo "none needed" >&6; } ;;
3720 xno)
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3722 $as_echo "unsupported" >&6; } ;;
3724 CC="$CC $ac_cv_prog_cc_c99"
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3726 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3727 esac
3728 if test "x$ac_cv_prog_cc_c99" != xno; then :
3729 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3732 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3733 if ${ac_cv_prog_cc_c89+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 ac_cv_prog_cc_c89=no
3737 ac_save_CC=$CC
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <stdarg.h>
3741 #include <stdio.h>
3742 #include <sys/types.h>
3743 #include <sys/stat.h>
3744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3745 struct buf { int x; };
3746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3747 static char *e (p, i)
3748 char **p;
3749 int i;
3751 return p[i];
3753 static char *f (char * (*g) (char **, int), char **p, ...)
3755 char *s;
3756 va_list v;
3757 va_start (v,p);
3758 s = g (p, va_arg (v,int));
3759 va_end (v);
3760 return s;
3763 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3764 function prototypes and stuff, but not '\xHH' hex character constants.
3765 These don't provoke an error unfortunately, instead are silently treated
3766 as 'x'. The following induces an error, until -std is added to get
3767 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3768 array size at least. It's necessary to write '\x00'==0 to get something
3769 that's true only with -std. */
3770 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3772 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3773 inside strings and character constants. */
3774 #define FOO(x) 'x'
3775 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3777 int test (int i, double x);
3778 struct s1 {int (*f) (int a);};
3779 struct s2 {int (*f) (double a);};
3780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3781 int argc;
3782 char **argv;
3784 main ()
3786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3788 return 0;
3790 _ACEOF
3791 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3792 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3794 CC="$ac_save_CC $ac_arg"
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796 ac_cv_prog_cc_c89=$ac_arg
3798 rm -f core conftest.err conftest.$ac_objext
3799 test "x$ac_cv_prog_cc_c89" != "xno" && break
3800 done
3801 rm -f conftest.$ac_ext
3802 CC=$ac_save_CC
3805 # AC_CACHE_VAL
3806 case "x$ac_cv_prog_cc_c89" in
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3809 $as_echo "none needed" >&6; } ;;
3810 xno)
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3812 $as_echo "unsupported" >&6; } ;;
3814 CC="$CC $ac_cv_prog_cc_c89"
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3816 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3817 esac
3818 if test "x$ac_cv_prog_cc_c89" != xno; then :
3819 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3820 else
3821 ac_cv_prog_cc_stdc=no
3826 esac
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3828 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3829 if ${ac_cv_prog_cc_stdc+:} false; then :
3830 $as_echo_n "(cached) " >&6
3833 case $ac_cv_prog_cc_stdc in #(
3834 no) :
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3836 $as_echo "unsupported" >&6; } ;; #(
3837 '') :
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 $as_echo "none needed" >&6; } ;; #(
3840 *) :
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3842 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3843 esac
3845 ac_ext=cpp
3846 ac_cpp='$CXXCPP $CPPFLAGS'
3847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3850 if test -z "$CXX"; then
3851 if test -n "$CCC"; then
3852 CXX=$CCC
3853 else
3854 if test -n "$ac_tool_prefix"; then
3855 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_prog_CXX+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 if test -n "$CXX"; then
3865 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3866 else
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3878 done
3879 done
3880 IFS=$as_save_IFS
3884 CXX=$ac_cv_prog_CXX
3885 if test -n "$CXX"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3887 $as_echo "$CXX" >&6; }
3888 else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3894 test -n "$CXX" && break
3895 done
3897 if test -z "$CXX"; then
3898 ac_ct_CXX=$CXX
3899 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3901 # Extract the first word of "$ac_prog", so it can be a program name with args.
3902 set dummy $ac_prog; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if test -n "$ac_ct_CXX"; then
3909 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_ac_ct_CXX="$ac_prog"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3922 done
3923 done
3924 IFS=$as_save_IFS
3928 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3929 if test -n "$ac_ct_CXX"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3931 $as_echo "$ac_ct_CXX" >&6; }
3932 else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3938 test -n "$ac_ct_CXX" && break
3939 done
3941 if test "x$ac_ct_CXX" = x; then
3942 CXX="g++"
3943 else
3944 case $cross_compiling:$ac_tool_warned in
3945 yes:)
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3948 ac_tool_warned=yes ;;
3949 esac
3950 CXX=$ac_ct_CXX
3956 # Provide some information about the compiler.
3957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3958 set X $ac_compile
3959 ac_compiler=$2
3960 for ac_option in --version -v -V -qversion; do
3961 { { ac_try="$ac_compiler $ac_option >&5"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3969 ac_status=$?
3970 if test -s conftest.err; then
3971 sed '10a\
3972 ... rest of stderr output deleted ...
3973 10q' conftest.err >conftest.er1
3974 cat conftest.er1 >&5
3976 rm -f conftest.er1 conftest.err
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }
3979 done
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3982 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3983 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3990 main ()
3992 #ifndef __GNUC__
3993 choke me
3994 #endif
3997 return 0;
3999 _ACEOF
4000 if ac_fn_cxx_try_compile "$LINENO"; then :
4001 ac_compiler_gnu=yes
4002 else
4003 ac_compiler_gnu=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4010 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4011 if test $ac_compiler_gnu = yes; then
4012 GXX=yes
4013 else
4014 GXX=
4016 ac_test_CXXFLAGS=${CXXFLAGS+set}
4017 ac_save_CXXFLAGS=$CXXFLAGS
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4019 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4020 if ${ac_cv_prog_cxx_g+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4024 ac_cxx_werror_flag=yes
4025 ac_cv_prog_cxx_g=no
4026 CXXFLAGS="-g"
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4031 main ()
4035 return 0;
4037 _ACEOF
4038 if ac_fn_cxx_try_compile "$LINENO"; then :
4039 ac_cv_prog_cxx_g=yes
4040 else
4041 CXXFLAGS=""
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4046 main ()
4050 return 0;
4052 _ACEOF
4053 if ac_fn_cxx_try_compile "$LINENO"; then :
4055 else
4056 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4057 CXXFLAGS="-g"
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4062 main ()
4066 return 0;
4068 _ACEOF
4069 if ac_fn_cxx_try_compile "$LINENO"; then :
4070 ac_cv_prog_cxx_g=yes
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4080 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4081 if test "$ac_test_CXXFLAGS" = set; then
4082 CXXFLAGS=$ac_save_CXXFLAGS
4083 elif test $ac_cv_prog_cxx_g = yes; then
4084 if test "$GXX" = yes; then
4085 CXXFLAGS="-g -O2"
4086 else
4087 CXXFLAGS="-g"
4089 else
4090 if test "$GXX" = yes; then
4091 CXXFLAGS="-O2"
4092 else
4093 CXXFLAGS=
4096 ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4108 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4109 # On Suns, sometimes $CPP names a directory.
4110 if test -n "$CPP" && test -d "$CPP"; then
4111 CPP=
4113 if test -z "$CPP"; then
4114 if ${ac_cv_prog_CPP+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 # Double quotes because CPP needs to be expanded
4118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4120 ac_preproc_ok=false
4121 for ac_c_preproc_warn_flag in '' yes
4123 # Use a header file that comes with gcc, so configuring glibc
4124 # with a fresh cross-compiler works.
4125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126 # <limits.h> exists even on freestanding compilers.
4127 # On the NeXT, cc -E runs the code through the compiler's parser,
4128 # not just through cpp. "Syntax error" is here to catch this case.
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131 #ifdef __STDC__
4132 # include <limits.h>
4133 #else
4134 # include <assert.h>
4135 #endif
4136 Syntax error
4137 _ACEOF
4138 if ac_fn_c_try_cpp "$LINENO"; then :
4140 else
4141 # Broken: fails on valid input.
4142 continue
4144 rm -f conftest.err conftest.i conftest.$ac_ext
4146 # OK, works on sane cases. Now check whether nonexistent headers
4147 # can be detected and how.
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #include <ac_nonexistent.h>
4151 _ACEOF
4152 if ac_fn_c_try_cpp "$LINENO"; then :
4153 # Broken: success on invalid input.
4154 continue
4155 else
4156 # Passes both tests.
4157 ac_preproc_ok=:
4158 break
4160 rm -f conftest.err conftest.i conftest.$ac_ext
4162 done
4163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4164 rm -f conftest.i conftest.err conftest.$ac_ext
4165 if $ac_preproc_ok; then :
4166 break
4169 done
4170 ac_cv_prog_CPP=$CPP
4173 CPP=$ac_cv_prog_CPP
4174 else
4175 ac_cv_prog_CPP=$CPP
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4178 $as_echo "$CPP" >&6; }
4179 ac_preproc_ok=false
4180 for ac_c_preproc_warn_flag in '' yes
4182 # Use a header file that comes with gcc, so configuring glibc
4183 # with a fresh cross-compiler works.
4184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185 # <limits.h> exists even on freestanding compilers.
4186 # On the NeXT, cc -E runs the code through the compiler's parser,
4187 # not just through cpp. "Syntax error" is here to catch this case.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 #ifdef __STDC__
4191 # include <limits.h>
4192 #else
4193 # include <assert.h>
4194 #endif
4195 Syntax error
4196 _ACEOF
4197 if ac_fn_c_try_cpp "$LINENO"; then :
4199 else
4200 # Broken: fails on valid input.
4201 continue
4203 rm -f conftest.err conftest.i conftest.$ac_ext
4205 # OK, works on sane cases. Now check whether nonexistent headers
4206 # can be detected and how.
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <ac_nonexistent.h>
4210 _ACEOF
4211 if ac_fn_c_try_cpp "$LINENO"; then :
4212 # Broken: success on invalid input.
4213 continue
4214 else
4215 # Passes both tests.
4216 ac_preproc_ok=:
4217 break
4219 rm -f conftest.err conftest.i conftest.$ac_ext
4221 done
4222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223 rm -f conftest.i conftest.err conftest.$ac_ext
4224 if $ac_preproc_ok; then :
4226 else
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4230 See \`config.log' for more details" "$LINENO" 5; }
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 # Check for a compatible awk
4241 for ac_prog in gawk nawk
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244 set dummy $ac_prog; ac_word=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if ${ac_cv_prog_AWK+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -n "$AWK"; then
4251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_AWK="$ac_prog"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4266 IFS=$as_save_IFS
4270 AWK=$ac_cv_prog_AWK
4271 if test -n "$AWK"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4273 $as_echo "$AWK" >&6; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4280 test -n "$AWK" && break
4281 done
4283 if test "$AWK" = ""; then
4284 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4286 # Extract the first word of "mmake", so it can be a program name with args.
4287 set dummy mmake; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_MMAKE+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$MMAKE"; then
4294 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_MMAKE="mmake "
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4307 done
4308 done
4309 IFS=$as_save_IFS
4313 MMAKE=$ac_cv_prog_MMAKE
4314 if test -n "$MMAKE"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4316 $as_echo "$MMAKE" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4324 # Perform some default variable assignments. Note all of these will be
4325 # Regenerated from the script, so there is no need to cache them.
4327 aros_host_cpp="$CPP"
4328 aros_host_cc="$CC"
4329 aros_host_cxx="$CXX"
4330 if test "$GCC" = "yes"; then
4331 aros_gcc_ld=`$CC -print-prog-name=ld`
4332 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4333 set dummy `basename $aros_gcc_ld`; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_path_aros_host_ld+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 case $aros_host_ld in
4340 [\\/]* | ?:[\\/]*)
4341 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in `dirname $aros_gcc_ld`
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4355 done
4356 done
4357 IFS=$as_save_IFS
4360 esac
4362 aros_host_ld=$ac_cv_path_aros_host_ld
4363 if test -n "$aros_host_ld"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4365 $as_echo "$aros_host_ld" >&6; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4373 if test "$aros_host_ld" = ""; then
4374 # Extract the first word of "ld", so it can be a program name with args.
4375 set dummy ld; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_path_aros_host_ld+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 case $aros_host_ld in
4382 [\\/]* | ?:[\\/]*)
4383 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4397 done
4398 done
4399 IFS=$as_save_IFS
4402 esac
4404 aros_host_ld=$ac_cv_path_aros_host_ld
4405 if test -n "$aros_host_ld"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4407 $as_echo "$aros_host_ld" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4415 if test "$aros_host_ld" = ""; then
4416 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4418 aros_host_make="make"
4419 aros_host_cflags=$CFLAGS
4420 aros_host_cxxflags=$CXXFLAGS
4421 aros_host_ldflags=$LDFLAGS
4422 aros_host_debug="-g -O0"
4423 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4424 aros_host_mkargs="--no-print-directory"
4425 aros_host_exe_suffix="$EXEEXT"
4426 aros_host_lib_suffix=""
4428 # Ignore all compliance, AROS ROMs = 0
4429 # KickStart v1.0 = 30
4430 # KickStart v1.3 = 34
4431 # KickStart v2.0 = 37
4432 # KickStart v3.0 = 39
4433 # KickStart v3.1 = 40
4434 # AmigaOS v3.5 = 44
4435 aros_amigaos_compliance=0
4437 for ac_prog in aclocal aclocal19 aclocal-1.9
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$aros_host_aclocal"; then
4447 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_aros_host_aclocal="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4460 done
4461 done
4462 IFS=$as_save_IFS
4466 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4467 if test -n "$aros_host_aclocal"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4469 $as_echo "$aros_host_aclocal" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4476 test -n "$aros_host_aclocal" && break
4477 done
4479 for ac_prog in autoconf autoconf259 autoconf253
4481 # Extract the first word of "$ac_prog", so it can be a program name with args.
4482 set dummy $ac_prog; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -n "$aros_host_autoconf"; then
4489 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_aros_host_autoconf="$ac_prog"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4509 if test -n "$aros_host_autoconf"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4511 $as_echo "$aros_host_autoconf" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4518 test -n "$aros_host_autoconf" && break
4519 done
4521 for ac_prog in autoheader autoheader259 autoheader253
4523 # Extract the first word of "$ac_prog", so it can be a program name with args.
4524 set dummy $ac_prog; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$aros_host_autoheader"; then
4531 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_aros_host_autoheader="$ac_prog"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4551 if test -n "$aros_host_autoheader"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4553 $as_echo "$aros_host_autoheader" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4560 test -n "$aros_host_autoheader" && break
4561 done
4563 for ac_prog in automake automake19 automake-1.9
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_prog_aros_host_automake+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -n "$aros_host_automake"; then
4573 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_aros_host_automake="$ac_prog"
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4586 done
4587 done
4588 IFS=$as_save_IFS
4592 aros_host_automake=$ac_cv_prog_aros_host_automake
4593 if test -n "$aros_host_automake"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4595 $as_echo "$aros_host_automake" >&6; }
4596 else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4602 test -n "$aros_host_automake" && break
4603 done
4606 if test "$aros_host_aclocal" = ""; then
4607 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4609 if test "$aros_host_automake" = ""; then
4610 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4613 case "$aros_host_cc" in
4614 *gcc*)
4615 aros_host_cc_pipe="-pipe"
4617 icc)
4618 aros_host_cc_pipe=""
4621 aros_host_cc_pipe=""
4623 esac
4625 aros_kernel_cc_includes=""
4626 aros_target_cc_includes=""
4628 # ----------------------------------------------------------------------------------------
4629 # Host-specific defaults
4631 # This is the main host configuration section. It is where the host
4632 # can change the values of any variables it needs to change. We do
4633 # not look at anything that compiles to the target yet, we'll get
4634 # to that later.
4636 case "$host_os" in
4637 aros*)
4638 aros_host_arch="aros"
4639 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4640 case "$host_cpu" in
4641 *i?86*)
4642 aros_host_cpu="i386"
4644 *x86_64*)
4645 aros_host_cpu="x86_64"
4647 *powerpc*)
4648 aros_host_cpu="ppc"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4652 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4653 aros_host_cpu="$host_cpu"
4655 esac
4658 linux*)
4659 aros_host_arch="linux"
4660 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4661 android_build_os="linux-x86"
4662 android_tool="android"
4663 default_android_sdk="/opt/android-sdk-linux_x86"
4664 case "$host_cpu" in
4665 *i?86*)
4666 aros_host_cpu="i386"
4668 *x86_64*)
4669 aros_host_cpu="x86_64"
4671 *m68k*)
4672 aros_host_cpu="m68k"
4674 *powerpc*)
4675 aros_host_cpu="ppc"
4677 *arm*)
4678 aros_host_cpu="arm"
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4682 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4683 aros_host_cpu="$host_cpu"
4685 esac
4688 freebsd*)
4689 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4690 aros_host_make="gmake"
4691 aros_host_arch="freebsd"
4692 aros_host_cpu="i386"
4694 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4696 case $host_os in
4697 freebsd[234]*)
4698 aros_object_format="elf_i386"
4702 aros_object_format="elf_i386_fbsd"
4704 esac
4708 darwin*)
4709 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4710 aros_host_arch="darwin"
4711 android_build_os="darwin-x86"
4712 android_tool="android"
4713 default_android_sdk="/android-sdk-mac_x86"
4714 case "$host_cpu" in
4715 *i?86*)
4716 aros_host_cpu="i386"
4718 *x86_64*)
4719 aros_host_cpu="x86_64"
4721 *powerpc*)
4722 aros_host_cpu="ppc"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4726 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4727 aros_host_cpu="$host_cpu"
4729 esac
4731 aros_host_ldflags="$aros_host_ldflags -liconv"
4735 dragonfly*)
4736 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4737 aros_host_make="gmake"
4738 aros_host_arch="dragonfly"
4739 case $host_cpu in
4740 *i?86*)
4741 aros_host_cpu="i386"
4743 *amd64*)
4744 aros_host_cpu="x86_64"
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4748 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4749 aros_host_cpu="$host_cpu"
4751 esac
4754 netbsd*)
4755 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4756 aros_host_make="gmake"
4757 aros_host_arch="netbsd"
4758 case "$host_cpu" in
4759 *i?86*)
4760 aros_host_cpu="i386"
4762 *m68k*)
4763 aros_host_cpu="m68k"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4767 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4768 aros_host_cpu="$host_cpu"
4770 esac
4771 aros_host_lib_suffix=".0.0"
4774 openbsd*)
4775 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4776 aros_host_make="gmake"
4777 aros_host_arch="openbsd"
4778 case "$host_cpu" in
4779 *i?86*)
4780 aros_host_cpu="i386"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4784 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4785 aros_host_cpu="$host_cpu"
4787 esac
4790 solaris*)
4791 aros_host_arch="solaris"
4792 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4793 case "$host_cpu" in
4794 *i?86*)
4795 aros_host_cpu="i386"
4797 *sparc*)
4798 aros_host_cpu="sparc"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4802 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4803 aros_host_cpu="$host_cpu"
4805 esac
4808 morphos*)
4809 aros_host_arch="morphos"
4810 aros_host_cpu="ppc"
4813 amiga*)
4814 aros_host_arch="amiga"
4815 SORT="/gg/bin/sort"
4816 TEST="/gg/bin/test"
4817 UNIQ="/gg/bin/uniq"
4818 FOR="for"
4819 TOUCH="/gg/bin/touch"
4820 case "$host_cpu" in
4821 *m68k*)
4822 aros_host_cpu="m68k"
4824 *powerpc*)
4825 aros_host_cpu="ppc"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4829 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4830 aros_host_cpu="$host_cpu"
4832 esac
4835 cygwin*)
4836 aros_host_arch="cygwin"
4837 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4838 android_build_os="windows"
4839 android_tool="android.bat"
4840 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4842 case "$host_cpu" in
4843 *i?86*)
4844 aros_host_cpu="i386"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4848 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4849 aros_host_cpu="$host_cpu"
4851 esac
4854 mingw32*)
4855 aros_host_arch="mingw32"
4856 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4857 android_build_os="windows"
4858 android_tool="android.bat"
4859 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4861 case "$host_cpu" in
4862 *i?86*)
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4865 $as_echo_n "checking for Windows native gcc target... " >&6; }
4866 host_cpu=`gcc -dumpmachine`
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4868 $as_echo "$host_cpu" >&6; }
4871 esac
4873 case "$host_cpu" in
4874 *i?86*)
4875 aros_host_cpu="i386"
4878 mingw32*)
4879 aros_host_cpu="i386"
4882 *x86_64*)
4883 aros_host_cpu="x86_64"
4884 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4889 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4890 aros_host_cpu="$host_cpu"
4892 esac
4895 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4897 esac
4899 # Extract the first word of "ar", so it can be a program name with args.
4900 set dummy ar; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_prog_aros_host_ar+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$aros_host_ar"; then
4907 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_aros_host_ar="ar cr"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 aros_host_ar=$ac_cv_prog_aros_host_ar
4927 if test -n "$aros_host_ar"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4929 $as_echo "$aros_host_ar" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4936 if test "$aros_host_ar" = ""; then
4937 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4939 # Extract the first word of "ranlib", so it can be a program name with args.
4940 set dummy ranlib; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$aros_host_ranlib"; then
4947 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_prog_aros_host_ranlib="ranlib "
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4960 done
4961 done
4962 IFS=$as_save_IFS
4966 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4967 if test -n "$aros_host_ranlib"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4969 $as_echo "$aros_host_ranlib" >&6; }
4970 else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4976 if test "$aros_host_ranlib" = ""; then
4977 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4979 # Extract the first word of "strip", so it can be a program name with args.
4980 set dummy strip; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_aros_host_strip+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$aros_host_strip"; then
4987 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_aros_host_strip="strip "
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
5000 done
5001 done
5002 IFS=$as_save_IFS
5006 aros_host_strip=$ac_cv_prog_aros_host_strip
5007 if test -n "$aros_host_strip"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5009 $as_echo "$aros_host_strip" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5016 if test "$aros_host_strip" = ""; then
5017 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5020 # Extract the first word of "rm", so it can be a program name with args.
5021 set dummy rm; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_RM+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$RM"; then
5028 ac_cv_prog_RM="$RM" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_RM="rm -rf"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5043 IFS=$as_save_IFS
5047 RM=$ac_cv_prog_RM
5048 if test -n "$RM"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5050 $as_echo "$RM" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5057 if test "$RM" = ""; then
5058 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5060 # Extract the first word of "cp", so it can be a program name with args.
5061 set dummy cp; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if ${ac_cv_prog_CP+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -n "$CP"; then
5068 ac_cv_prog_CP="$CP" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CP="cp "
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5087 CP=$ac_cv_prog_CP
5088 if test -n "$CP"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5090 $as_echo "$CP" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5097 if test "$CP" = ""; then
5098 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5100 # Extract the first word of "mv", so it can be a program name with args.
5101 set dummy mv; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if ${ac_cv_prog_MV+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -n "$MV"; then
5108 ac_cv_prog_MV="$MV" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_MV="mv "
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5121 done
5122 done
5123 IFS=$as_save_IFS
5127 MV=$ac_cv_prog_MV
5128 if test -n "$MV"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5130 $as_echo "$MV" >&6; }
5131 else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 if test "$MV" = ""; then
5138 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5140 # Extract the first word of "echo", so it can be a program name with args.
5141 set dummy echo; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_ECHO+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$ECHO"; then
5148 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_ECHO="echo "
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5163 IFS=$as_save_IFS
5167 ECHO=$ac_cv_prog_ECHO
5168 if test -n "$ECHO"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5170 $as_echo "$ECHO" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 if test "$ECHO" = ""; then
5178 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5180 # Extract the first word of "mkdir", so it can be a program name with args.
5181 set dummy mkdir; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_MKDIR+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$MKDIR"; then
5188 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_MKDIR="mkdir -p"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5201 done
5202 done
5203 IFS=$as_save_IFS
5207 MKDIR=$ac_cv_prog_MKDIR
5208 if test -n "$MKDIR"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5210 $as_echo "$MKDIR" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 if test "$MKDIR" = ""; then
5218 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5220 # Extract the first word of "touch", so it can be a program name with args.
5221 set dummy touch; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_prog_TOUCH+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 if test -n "$TOUCH"; then
5228 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_prog_TOUCH="touch "
5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5243 IFS=$as_save_IFS
5247 TOUCH=$ac_cv_prog_TOUCH
5248 if test -n "$TOUCH"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5250 $as_echo "$TOUCH" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5257 if test "$TOUCH" = ""; then
5258 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5260 # Extract the first word of "sort", so it can be a program name with args.
5261 set dummy sort; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_SORT+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -n "$SORT"; then
5268 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_prog_SORT="sort "
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5281 done
5282 done
5283 IFS=$as_save_IFS
5287 SORT=$ac_cv_prog_SORT
5288 if test -n "$SORT"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5290 $as_echo "$SORT" >&6; }
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5297 if test "$SORT" = ""; then
5298 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5300 # Extract the first word of "uniq", so it can be a program name with args.
5301 set dummy uniq; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_UNIQ+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 if test -n "$UNIQ"; then
5308 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_prog_UNIQ="uniq "
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5323 IFS=$as_save_IFS
5327 UNIQ=$ac_cv_prog_UNIQ
5328 if test -n "$UNIQ"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5330 $as_echo "$UNIQ" >&6; }
5331 else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5337 if test "$UNIQ" = ""; then
5338 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5340 # Extract the first word of "true", so it can be a program name with args.
5341 set dummy true; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_NOP+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 if test -n "$NOP"; then
5348 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_prog_NOP="true "
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5363 IFS=$as_save_IFS
5367 NOP=$ac_cv_prog_NOP
5368 if test -n "$NOP"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5370 $as_echo "$NOP" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5377 if test "$NOP" = ""; then
5378 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5380 # Extract the first word of "cat", so it can be a program name with args.
5381 set dummy cat; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_CAT+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 if test -n "$CAT"; then
5388 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_CAT="cat "
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5403 IFS=$as_save_IFS
5407 CAT=$ac_cv_prog_CAT
5408 if test -n "$CAT"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5410 $as_echo "$CAT" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5417 if test "$CAT" = ""; then
5418 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5420 # Extract the first word of "bison", so it can be a program name with args.
5421 set dummy bison; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_BISON+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -n "$BISON"; then
5428 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_BISON="bison "
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5441 done
5442 done
5443 IFS=$as_save_IFS
5447 BISON=$ac_cv_prog_BISON
5448 if test -n "$BISON"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5450 $as_echo "$BISON" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5457 if test "$BISON" = ""; then
5458 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5460 # Extract the first word of "flex", so it can be a program name with args.
5461 set dummy flex; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_FLEX+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$FLEX"; then
5468 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_FLEX="flex "
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5487 FLEX=$ac_cv_prog_FLEX
5488 if test -n "$FLEX"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5490 $as_echo "$FLEX" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5497 if test "$FLEX" = ""; then
5498 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5500 # Extract the first word of "pngtopnm", so it can be a program name with args.
5501 set dummy pngtopnm; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$PNGTOPNM"; then
5508 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_PNGTOPNM="pngtopnm "
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5521 done
5522 done
5523 IFS=$as_save_IFS
5527 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5528 if test -n "$PNGTOPNM"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5530 $as_echo "$PNGTOPNM" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5537 if test "$PNGTOPNM" = ""; then
5538 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5540 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5541 set dummy ppmtoilbm; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$PPMTOILBM"; then
5548 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5561 done
5562 done
5563 IFS=$as_save_IFS
5567 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5568 if test -n "$PPMTOILBM"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5570 $as_echo "$PPMTOILBM" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5577 if test "$PPMTOILBM" = ""; then
5578 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5580 # Extract the first word of "sed", so it can be a program name with args.
5581 set dummy sed; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_SED+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test -n "$SED"; then
5588 ac_cv_prog_SED="$SED" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_SED="sed "
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5601 done
5602 done
5603 IFS=$as_save_IFS
5607 SED=$ac_cv_prog_SED
5608 if test -n "$SED"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5610 $as_echo "$SED" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5617 if test "$SED" = ""; then
5618 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5620 # Extract the first word of "chmod", so it can be a program name with args.
5621 set dummy chmod; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_CHMOD+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$CHMOD"; then
5628 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_prog_CHMOD="chmod "
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5641 done
5642 done
5643 IFS=$as_save_IFS
5647 CHMOD=$ac_cv_prog_CHMOD
5648 if test -n "$CHMOD"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5650 $as_echo "$CHMOD" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5657 if test "$CHMOD" = ""; then
5658 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5660 # Extract the first word of "patch", so it can be a program name with args.
5661 set dummy patch; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_PATCH+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -n "$PATCH"; then
5668 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_PATCH="patch "
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5681 done
5682 done
5683 IFS=$as_save_IFS
5687 PATCH=$ac_cv_prog_PATCH
5688 if test -n "$PATCH"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5690 $as_echo "$PATCH" >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5697 if test "$PATCH" = ""; then
5698 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5705 if test -n "$PYTHON"; then
5706 # If the user set $PYTHON, use it and don't search something else.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5708 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5709 prog="import sys, string
5710 # split strings by '.' and convert to numeric. Append some zeros
5711 # because we need at least 4 digits for the hex conversion.
5712 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5713 minverhex = 0
5714 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5715 sys.exit(sys.hexversion < minverhex)"
5716 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5717 ($PYTHON -c "$prog") >&5 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; then :
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5722 $as_echo "yes" >&6; }
5723 else
5724 as_fn_error $? "too old" "$LINENO" 5
5726 am_display_PYTHON=$PYTHON
5727 else
5728 # Otherwise, try each interpreter until we find one that satisfies
5729 # VERSION.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5731 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5732 if ${am_cv_pathless_PYTHON+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5736 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
5737 test "$am_cv_pathless_PYTHON" = none && break
5738 prog="import sys, string
5739 # split strings by '.' and convert to numeric. Append some zeros
5740 # because we need at least 4 digits for the hex conversion.
5741 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5742 minverhex = 0
5743 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5744 sys.exit(sys.hexversion < minverhex)"
5745 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5746 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; then :
5750 break
5752 done
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5755 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5756 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5757 if test "$am_cv_pathless_PYTHON" = none; then
5758 PYTHON=:
5759 else
5760 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5761 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_path_PYTHON+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 case $PYTHON in
5768 [\\/]* | ?:[\\/]*)
5769 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5783 done
5784 done
5785 IFS=$as_save_IFS
5788 esac
5790 PYTHON=$ac_cv_path_PYTHON
5791 if test -n "$PYTHON"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5793 $as_echo "$PYTHON" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5801 am_display_PYTHON=$am_cv_pathless_PYTHON
5805 if test "$PYTHON" = :; then
5806 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5807 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5811 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5812 if ${am_cv_python_version+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5818 $as_echo "$am_cv_python_version" >&6; }
5819 PYTHON_VERSION=$am_cv_python_version
5823 PYTHON_PREFIX='${prefix}'
5825 PYTHON_EXEC_PREFIX='${exec_prefix}'
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5830 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5831 if ${am_cv_python_platform+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5837 $as_echo "$am_cv_python_platform" >&6; }
5838 PYTHON_PLATFORM=$am_cv_python_platform
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5844 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5845 if ${am_cv_python_pythondir+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5849 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5852 $as_echo "$am_cv_python_pythondir" >&6; }
5853 pythondir=$am_cv_python_pythondir
5857 pkgpythondir=\${pythondir}/$PACKAGE
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5861 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5862 if ${am_cv_python_pyexecdir+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5866 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5869 $as_echo "$am_cv_python_pyexecdir" >&6; }
5870 pyexecdir=$am_cv_python_pyexecdir
5874 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5882 FOR=for
5884 IF=if
5886 TEST=test
5888 CMP=cmp
5892 # Check for some includes for the X11 HIDD and the kernel
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5896 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5897 if ${ac_cv_path_GREP+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 if test -z "$GREP"; then
5901 ac_path_GREP_found=false
5902 # Loop through the user's path and test for each of PROGNAME-LIST
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_prog in grep ggrep; do
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5911 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5912 # Check for GNU ac_path_GREP and select it if it is found.
5913 # Check for GNU $ac_path_GREP
5914 case `"$ac_path_GREP" --version 2>&1` in
5915 *GNU*)
5916 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5918 ac_count=0
5919 $as_echo_n 0123456789 >"conftest.in"
5920 while :
5922 cat "conftest.in" "conftest.in" >"conftest.tmp"
5923 mv "conftest.tmp" "conftest.in"
5924 cp "conftest.in" "conftest.nl"
5925 $as_echo 'GREP' >> "conftest.nl"
5926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5928 as_fn_arith $ac_count + 1 && ac_count=$as_val
5929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5930 # Best one so far, save it but keep looking for a better one
5931 ac_cv_path_GREP="$ac_path_GREP"
5932 ac_path_GREP_max=$ac_count
5934 # 10*(2^10) chars as input seems more than enough
5935 test $ac_count -gt 10 && break
5936 done
5937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5938 esac
5940 $ac_path_GREP_found && break 3
5941 done
5942 done
5943 done
5944 IFS=$as_save_IFS
5945 if test -z "$ac_cv_path_GREP"; then
5946 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5948 else
5949 ac_cv_path_GREP=$GREP
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5954 $as_echo "$ac_cv_path_GREP" >&6; }
5955 GREP="$ac_cv_path_GREP"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5959 $as_echo_n "checking for egrep... " >&6; }
5960 if ${ac_cv_path_EGREP+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5964 then ac_cv_path_EGREP="$GREP -E"
5965 else
5966 if test -z "$EGREP"; then
5967 ac_path_EGREP_found=false
5968 # Loop through the user's path and test for each of PROGNAME-LIST
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_prog in egrep; do
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5977 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5978 # Check for GNU ac_path_EGREP and select it if it is found.
5979 # Check for GNU $ac_path_EGREP
5980 case `"$ac_path_EGREP" --version 2>&1` in
5981 *GNU*)
5982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5984 ac_count=0
5985 $as_echo_n 0123456789 >"conftest.in"
5986 while :
5988 cat "conftest.in" "conftest.in" >"conftest.tmp"
5989 mv "conftest.tmp" "conftest.in"
5990 cp "conftest.in" "conftest.nl"
5991 $as_echo 'EGREP' >> "conftest.nl"
5992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5994 as_fn_arith $ac_count + 1 && ac_count=$as_val
5995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5996 # Best one so far, save it but keep looking for a better one
5997 ac_cv_path_EGREP="$ac_path_EGREP"
5998 ac_path_EGREP_max=$ac_count
6000 # 10*(2^10) chars as input seems more than enough
6001 test $ac_count -gt 10 && break
6002 done
6003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6004 esac
6006 $ac_path_EGREP_found && break 3
6007 done
6008 done
6009 done
6010 IFS=$as_save_IFS
6011 if test -z "$ac_cv_path_EGREP"; then
6012 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6014 else
6015 ac_cv_path_EGREP=$EGREP
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6021 $as_echo "$ac_cv_path_EGREP" >&6; }
6022 EGREP="$ac_cv_path_EGREP"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6026 $as_echo_n "checking for ANSI C header files... " >&6; }
6027 if ${ac_cv_header_stdc+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 #include <stdlib.h>
6033 #include <stdarg.h>
6034 #include <string.h>
6035 #include <float.h>
6038 main ()
6042 return 0;
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046 ac_cv_header_stdc=yes
6047 else
6048 ac_cv_header_stdc=no
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 if test $ac_cv_header_stdc = yes; then
6053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #include <string.h>
6058 _ACEOF
6059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060 $EGREP "memchr" >/dev/null 2>&1; then :
6062 else
6063 ac_cv_header_stdc=no
6065 rm -f conftest*
6069 if test $ac_cv_header_stdc = yes; then
6070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <stdlib.h>
6075 _ACEOF
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 $EGREP "free" >/dev/null 2>&1; then :
6079 else
6080 ac_cv_header_stdc=no
6082 rm -f conftest*
6086 if test $ac_cv_header_stdc = yes; then
6087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6088 if test "$cross_compiling" = yes; then :
6090 else
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 #include <ctype.h>
6094 #include <stdlib.h>
6095 #if ((' ' & 0x0FF) == 0x020)
6096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6098 #else
6099 # define ISLOWER(c) \
6100 (('a' <= (c) && (c) <= 'i') \
6101 || ('j' <= (c) && (c) <= 'r') \
6102 || ('s' <= (c) && (c) <= 'z'))
6103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6104 #endif
6106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6108 main ()
6110 int i;
6111 for (i = 0; i < 256; i++)
6112 if (XOR (islower (i), ISLOWER (i))
6113 || toupper (i) != TOUPPER (i))
6114 return 2;
6115 return 0;
6117 _ACEOF
6118 if ac_fn_c_try_run "$LINENO"; then :
6120 else
6121 ac_cv_header_stdc=no
6123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6124 conftest.$ac_objext conftest.beam conftest.$ac_ext
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6130 $as_echo "$ac_cv_header_stdc" >&6; }
6131 if test $ac_cv_header_stdc = yes; then
6133 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6137 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6138 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6139 inttypes.h stdint.h unistd.h
6140 do :
6141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6142 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6145 cat >>confdefs.h <<_ACEOF
6146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147 _ACEOF
6151 done
6154 for ac_header in sys/ipc.h sys/shm.h \
6155 sys/mmap.h sys/mman.h sysexits.h \
6156 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6158 do :
6159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6160 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6161 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6162 cat >>confdefs.h <<_ACEOF
6163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164 _ACEOF
6168 done
6171 for ac_header in sys/mount.h
6172 do :
6173 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6175 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6176 cat >>confdefs.h <<_ACEOF
6177 #define HAVE_SYS_MOUNT_H 1
6178 _ACEOF
6182 done
6185 ac_header_dirent=no
6186 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6187 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6189 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6190 if eval \${$as_ac_Header+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <sys/types.h>
6196 #include <$ac_hdr>
6199 main ()
6201 if ((DIR *) 0)
6202 return 0;
6204 return 0;
6206 _ACEOF
6207 if ac_fn_c_try_compile "$LINENO"; then :
6208 eval "$as_ac_Header=yes"
6209 else
6210 eval "$as_ac_Header=no"
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 eval ac_res=\$$as_ac_Header
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6216 $as_echo "$ac_res" >&6; }
6217 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6218 cat >>confdefs.h <<_ACEOF
6219 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6220 _ACEOF
6222 ac_header_dirent=$ac_hdr; break
6225 done
6226 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6227 if test $ac_header_dirent = dirent.h; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6229 $as_echo_n "checking for library containing opendir... " >&6; }
6230 if ${ac_cv_search_opendir+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 ac_func_search_save_LIBS=$LIBS
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6237 /* Override any GCC internal prototype to avoid an error.
6238 Use char because int might match the return type of a GCC
6239 builtin and then its argument prototype would still apply. */
6240 #ifdef __cplusplus
6241 extern "C"
6242 #endif
6243 char opendir ();
6245 main ()
6247 return opendir ();
6249 return 0;
6251 _ACEOF
6252 for ac_lib in '' dir; do
6253 if test -z "$ac_lib"; then
6254 ac_res="none required"
6255 else
6256 ac_res=-l$ac_lib
6257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6259 if ac_fn_c_try_link "$LINENO"; then :
6260 ac_cv_search_opendir=$ac_res
6262 rm -f core conftest.err conftest.$ac_objext \
6263 conftest$ac_exeext
6264 if ${ac_cv_search_opendir+:} false; then :
6265 break
6267 done
6268 if ${ac_cv_search_opendir+:} false; then :
6270 else
6271 ac_cv_search_opendir=no
6273 rm conftest.$ac_ext
6274 LIBS=$ac_func_search_save_LIBS
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6277 $as_echo "$ac_cv_search_opendir" >&6; }
6278 ac_res=$ac_cv_search_opendir
6279 if test "$ac_res" != no; then :
6280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6286 $as_echo_n "checking for library containing opendir... " >&6; }
6287 if ${ac_cv_search_opendir+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 ac_func_search_save_LIBS=$LIBS
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6294 /* Override any GCC internal prototype to avoid an error.
6295 Use char because int might match the return type of a GCC
6296 builtin and then its argument prototype would still apply. */
6297 #ifdef __cplusplus
6298 extern "C"
6299 #endif
6300 char opendir ();
6302 main ()
6304 return opendir ();
6306 return 0;
6308 _ACEOF
6309 for ac_lib in '' x; do
6310 if test -z "$ac_lib"; then
6311 ac_res="none required"
6312 else
6313 ac_res=-l$ac_lib
6314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6316 if ac_fn_c_try_link "$LINENO"; then :
6317 ac_cv_search_opendir=$ac_res
6319 rm -f core conftest.err conftest.$ac_objext \
6320 conftest$ac_exeext
6321 if ${ac_cv_search_opendir+:} false; then :
6322 break
6324 done
6325 if ${ac_cv_search_opendir+:} false; then :
6327 else
6328 ac_cv_search_opendir=no
6330 rm conftest.$ac_ext
6331 LIBS=$ac_func_search_save_LIBS
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6334 $as_echo "$ac_cv_search_opendir" >&6; }
6335 ac_res=$ac_cv_search_opendir
6336 if test "$ac_res" != no; then :
6337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6344 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6345 if ${ac_cv_header_stat_broken+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 #include <sys/types.h>
6351 #include <sys/stat.h>
6353 #if defined S_ISBLK && defined S_IFDIR
6354 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6355 #endif
6357 #if defined S_ISBLK && defined S_IFCHR
6358 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6359 #endif
6361 #if defined S_ISLNK && defined S_IFREG
6362 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6363 #endif
6365 #if defined S_ISSOCK && defined S_IFREG
6366 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6367 #endif
6369 _ACEOF
6370 if ac_fn_c_try_compile "$LINENO"; then :
6371 ac_cv_header_stat_broken=no
6372 else
6373 ac_cv_header_stat_broken=yes
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6378 $as_echo "$ac_cv_header_stat_broken" >&6; }
6379 if test $ac_cv_header_stat_broken = yes; then
6381 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6386 $as_echo_n "checking for ANSI C header files... " >&6; }
6387 if ${ac_cv_header_stdc+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 #include <stdlib.h>
6393 #include <stdarg.h>
6394 #include <string.h>
6395 #include <float.h>
6398 main ()
6402 return 0;
6404 _ACEOF
6405 if ac_fn_c_try_compile "$LINENO"; then :
6406 ac_cv_header_stdc=yes
6407 else
6408 ac_cv_header_stdc=no
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 if test $ac_cv_header_stdc = yes; then
6413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 #include <string.h>
6418 _ACEOF
6419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6420 $EGREP "memchr" >/dev/null 2>&1; then :
6422 else
6423 ac_cv_header_stdc=no
6425 rm -f conftest*
6429 if test $ac_cv_header_stdc = yes; then
6430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433 #include <stdlib.h>
6435 _ACEOF
6436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6437 $EGREP "free" >/dev/null 2>&1; then :
6439 else
6440 ac_cv_header_stdc=no
6442 rm -f conftest*
6446 if test $ac_cv_header_stdc = yes; then
6447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6448 if test "$cross_compiling" = yes; then :
6450 else
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453 #include <ctype.h>
6454 #include <stdlib.h>
6455 #if ((' ' & 0x0FF) == 0x020)
6456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6458 #else
6459 # define ISLOWER(c) \
6460 (('a' <= (c) && (c) <= 'i') \
6461 || ('j' <= (c) && (c) <= 'r') \
6462 || ('s' <= (c) && (c) <= 'z'))
6463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6464 #endif
6466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6468 main ()
6470 int i;
6471 for (i = 0; i < 256; i++)
6472 if (XOR (islower (i), ISLOWER (i))
6473 || toupper (i) != TOUPPER (i))
6474 return 2;
6475 return 0;
6477 _ACEOF
6478 if ac_fn_c_try_run "$LINENO"; then :
6480 else
6481 ac_cv_header_stdc=no
6483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6484 conftest.$ac_objext conftest.beam conftest.$ac_ext
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6490 $as_echo "$ac_cv_header_stdc" >&6; }
6491 if test $ac_cv_header_stdc = yes; then
6493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6498 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6499 if ${ac_cv_header_sys_wait_h+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 #include <sys/types.h>
6505 #include <sys/wait.h>
6506 #ifndef WEXITSTATUS
6507 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6508 #endif
6509 #ifndef WIFEXITED
6510 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6511 #endif
6514 main ()
6516 int s;
6517 wait (&s);
6518 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6520 return 0;
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 ac_cv_header_sys_wait_h=yes
6525 else
6526 ac_cv_header_sys_wait_h=no
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6531 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6532 if test $ac_cv_header_sys_wait_h = yes; then
6534 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6539 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6540 if ${ac_cv_header_time+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 #include <sys/types.h>
6546 #include <sys/time.h>
6547 #include <time.h>
6550 main ()
6552 if ((struct tm *) 0)
6553 return 0;
6555 return 0;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 ac_cv_header_time=yes
6560 else
6561 ac_cv_header_time=no
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6566 $as_echo "$ac_cv_header_time" >&6; }
6567 if test $ac_cv_header_time = yes; then
6569 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6573 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6574 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6576 cat >>confdefs.h <<_ACEOF
6577 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6578 _ACEOF
6581 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6586 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6587 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6589 cat >>confdefs.h <<_ACEOF
6590 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6591 _ACEOF
6594 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6596 else
6597 case " $LIBOBJS " in
6598 *" fileblocks.$ac_objext "* ) ;;
6599 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6601 esac
6606 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6607 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6609 cat >>confdefs.h <<_ACEOF
6610 #define HAVE_STRUCT_STAT_ST_RDEV 1
6611 _ACEOF
6614 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6620 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6621 if ${ac_cv_struct_tm+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626 #include <sys/types.h>
6627 #include <time.h>
6630 main ()
6632 struct tm tm;
6633 int *p = &tm.tm_sec;
6634 return !p;
6636 return 0;
6638 _ACEOF
6639 if ac_fn_c_try_compile "$LINENO"; then :
6640 ac_cv_struct_tm=time.h
6641 else
6642 ac_cv_struct_tm=sys/time.h
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6647 $as_echo "$ac_cv_struct_tm" >&6; }
6648 if test $ac_cv_struct_tm = sys/time.h; then
6650 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6654 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6655 #include <$ac_cv_struct_tm>
6658 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6660 cat >>confdefs.h <<_ACEOF
6661 #define HAVE_STRUCT_TM_TM_ZONE 1
6662 _ACEOF
6667 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6669 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6671 else
6672 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6674 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6675 ac_have_decl=1
6676 else
6677 ac_have_decl=0
6680 cat >>confdefs.h <<_ACEOF
6681 #define HAVE_DECL_TZNAME $ac_have_decl
6682 _ACEOF
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6685 $as_echo_n "checking for tzname... " >&6; }
6686 if ${ac_cv_var_tzname+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6691 #include <time.h>
6692 #if !HAVE_DECL_TZNAME
6693 extern char *tzname[];
6694 #endif
6697 main ()
6699 return tzname[0][0];
6701 return 0;
6703 _ACEOF
6704 if ac_fn_c_try_link "$LINENO"; then :
6705 ac_cv_var_tzname=yes
6706 else
6707 ac_cv_var_tzname=no
6709 rm -f core conftest.err conftest.$ac_objext \
6710 conftest$ac_exeext conftest.$ac_ext
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6713 $as_echo "$ac_cv_var_tzname" >&6; }
6714 if test $ac_cv_var_tzname = yes; then
6716 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6721 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6722 if test "x$ac_cv_type_off_t" = xyes; then :
6724 else
6726 cat >>confdefs.h <<_ACEOF
6727 #define off_t long int
6728 _ACEOF
6732 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6733 if test "x$ac_cv_type_pid_t" = xyes; then :
6735 else
6737 cat >>confdefs.h <<_ACEOF
6738 #define pid_t int
6739 _ACEOF
6743 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6744 if test "x$ac_cv_type_size_t" = xyes; then :
6746 else
6748 cat >>confdefs.h <<_ACEOF
6749 #define size_t unsigned int
6750 _ACEOF
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6755 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6756 if ${ac_cv_type_uid_t+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 #include <sys/types.h>
6763 _ACEOF
6764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765 $EGREP "uid_t" >/dev/null 2>&1; then :
6766 ac_cv_type_uid_t=yes
6767 else
6768 ac_cv_type_uid_t=no
6770 rm -f conftest*
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6774 $as_echo "$ac_cv_type_uid_t" >&6; }
6775 if test $ac_cv_type_uid_t = no; then
6777 $as_echo "#define uid_t int" >>confdefs.h
6780 $as_echo "#define gid_t int" >>confdefs.h
6785 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6786 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6788 cat >>confdefs.h <<_ACEOF
6789 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6790 _ACEOF
6796 # Look for some functions
6797 for ac_func in getpagesize kqueue statfs statvfs \
6798 clone kse_create rfork_thread thr_create sa_register \
6799 getcontext makecontext setcontext sigaltstack swapcontext
6800 do :
6801 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6802 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6803 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6804 cat >>confdefs.h <<_ACEOF
6805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6806 _ACEOF
6809 done
6815 for ac_header in $ac_header_list
6816 do :
6817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6818 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6821 cat >>confdefs.h <<_ACEOF
6822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6823 _ACEOF
6827 done
6836 for ac_func in getpagesize
6837 do :
6838 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6839 if test "x$ac_cv_func_getpagesize" = xyes; then :
6840 cat >>confdefs.h <<_ACEOF
6841 #define HAVE_GETPAGESIZE 1
6842 _ACEOF
6845 done
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6848 $as_echo_n "checking for working mmap... " >&6; }
6849 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test "$cross_compiling" = yes; then :
6853 ac_cv_func_mmap_fixed_mapped=no
6854 else
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 $ac_includes_default
6858 /* malloc might have been renamed as rpl_malloc. */
6859 #undef malloc
6861 /* Thanks to Mike Haertel and Jim Avera for this test.
6862 Here is a matrix of mmap possibilities:
6863 mmap private not fixed
6864 mmap private fixed at somewhere currently unmapped
6865 mmap private fixed at somewhere already mapped
6866 mmap shared not fixed
6867 mmap shared fixed at somewhere currently unmapped
6868 mmap shared fixed at somewhere already mapped
6869 For private mappings, we should verify that changes cannot be read()
6870 back from the file, nor mmap's back from the file at a different
6871 address. (There have been systems where private was not correctly
6872 implemented like the infamous i386 svr4.0, and systems where the
6873 VM page cache was not coherent with the file system buffer cache
6874 like early versions of FreeBSD and possibly contemporary NetBSD.)
6875 For shared mappings, we should conversely verify that changes get
6876 propagated back to all the places they're supposed to be.
6878 Grep wants private fixed already mapped.
6879 The main things grep needs to know about mmap are:
6880 * does it exist and is it safe to write into the mmap'd area
6881 * how to use it (BSD variants) */
6883 #include <fcntl.h>
6884 #include <sys/mman.h>
6886 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6887 char *malloc ();
6888 #endif
6890 /* This mess was copied from the GNU getpagesize.h. */
6891 #ifndef HAVE_GETPAGESIZE
6892 # ifdef _SC_PAGESIZE
6893 # define getpagesize() sysconf(_SC_PAGESIZE)
6894 # else /* no _SC_PAGESIZE */
6895 # ifdef HAVE_SYS_PARAM_H
6896 # include <sys/param.h>
6897 # ifdef EXEC_PAGESIZE
6898 # define getpagesize() EXEC_PAGESIZE
6899 # else /* no EXEC_PAGESIZE */
6900 # ifdef NBPG
6901 # define getpagesize() NBPG * CLSIZE
6902 # ifndef CLSIZE
6903 # define CLSIZE 1
6904 # endif /* no CLSIZE */
6905 # else /* no NBPG */
6906 # ifdef NBPC
6907 # define getpagesize() NBPC
6908 # else /* no NBPC */
6909 # ifdef PAGESIZE
6910 # define getpagesize() PAGESIZE
6911 # endif /* PAGESIZE */
6912 # endif /* no NBPC */
6913 # endif /* no NBPG */
6914 # endif /* no EXEC_PAGESIZE */
6915 # else /* no HAVE_SYS_PARAM_H */
6916 # define getpagesize() 8192 /* punt totally */
6917 # endif /* no HAVE_SYS_PARAM_H */
6918 # endif /* no _SC_PAGESIZE */
6920 #endif /* no HAVE_GETPAGESIZE */
6923 main ()
6925 char *data, *data2, *data3;
6926 const char *cdata2;
6927 int i, pagesize;
6928 int fd, fd2;
6930 pagesize = getpagesize ();
6932 /* First, make a file with some known garbage in it. */
6933 data = (char *) malloc (pagesize);
6934 if (!data)
6935 return 1;
6936 for (i = 0; i < pagesize; ++i)
6937 *(data + i) = rand ();
6938 umask (0);
6939 fd = creat ("conftest.mmap", 0600);
6940 if (fd < 0)
6941 return 2;
6942 if (write (fd, data, pagesize) != pagesize)
6943 return 3;
6944 close (fd);
6946 /* Next, check that the tail of a page is zero-filled. File must have
6947 non-zero length, otherwise we risk SIGBUS for entire page. */
6948 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6949 if (fd2 < 0)
6950 return 4;
6951 cdata2 = "";
6952 if (write (fd2, cdata2, 1) != 1)
6953 return 5;
6954 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6955 if (data2 == MAP_FAILED)
6956 return 6;
6957 for (i = 0; i < pagesize; ++i)
6958 if (*(data2 + i))
6959 return 7;
6960 close (fd2);
6961 if (munmap (data2, pagesize))
6962 return 8;
6964 /* Next, try to mmap the file at a fixed address which already has
6965 something else allocated at it. If we can, also make sure that
6966 we see the same garbage. */
6967 fd = open ("conftest.mmap", O_RDWR);
6968 if (fd < 0)
6969 return 9;
6970 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6971 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6972 return 10;
6973 for (i = 0; i < pagesize; ++i)
6974 if (*(data + i) != *(data2 + i))
6975 return 11;
6977 /* Finally, make sure that changes to the mapped area do not
6978 percolate back to the file as seen by read(). (This is a bug on
6979 some variants of i386 svr4.0.) */
6980 for (i = 0; i < pagesize; ++i)
6981 *(data2 + i) = *(data2 + i) + 1;
6982 data3 = (char *) malloc (pagesize);
6983 if (!data3)
6984 return 12;
6985 if (read (fd, data3, pagesize) != pagesize)
6986 return 13;
6987 for (i = 0; i < pagesize; ++i)
6988 if (*(data + i) != *(data3 + i))
6989 return 14;
6990 close (fd);
6991 return 0;
6993 _ACEOF
6994 if ac_fn_c_try_run "$LINENO"; then :
6995 ac_cv_func_mmap_fixed_mapped=yes
6996 else
6997 ac_cv_func_mmap_fixed_mapped=no
6999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7000 conftest.$ac_objext conftest.beam conftest.$ac_ext
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7005 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7006 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7008 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7011 rm -f conftest.mmap conftest.txt
7016 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7017 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7018 aros_config_ldflags=""
7020 aros_shared_default=yes
7022 aros_shared_cflags="-fPIC"
7023 aros_shared_aflags=""
7024 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7025 aros_kernel_ldflags="-Wl,-rpath,./lib"
7027 aros_kernel_ar_flags="cr"
7028 aros_target_ar_flags="cr"
7029 aros_target_nm_flags="-C -ul"
7030 aros_target_strip_flags="--strip-unneeded -R.comment"
7032 aros_compiler_libs=
7033 aros_arch_libs=
7035 aros_target_genmap="-Wl,-Map -Xlinker"
7037 # Native flavour stuff
7038 aros_serial_debug="0"
7040 # Palm native flavour stuff
7041 aros_palm_debug_hack="0"
7043 # Unix flavour stuff
7044 aros_nesting_supervisor="0"
7046 # Collect-aros stuff: "-ius" to ignore undefined symbols
7047 ignore_undefined_symbols=""
7049 # Check for X11 by default
7050 need_x11="auto"
7052 # Leave at 'none' for no external toolchain
7053 kernel_tool_prefix="none"
7055 #-----------------------------------------------------------------------------
7058 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7059 # it switched on by default, and we use the host compiler, so it compiles AROS
7060 # code with this enabled resulting in link failures as we don't have support
7061 # for it.
7063 # We use two methods to disable it. For the host compiler (used to compile
7064 # some hosted modules), we test to see if the compiler supports stack
7065 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7066 # work on all platforms.
7068 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7069 # (this is done unconditionally, as it should have no effect on compilers
7070 # without the stack protection feature). This may be specific to the way that
7071 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7072 # strong enough to disable it in a generic way though, so we'll live with it
7073 # until another vendor ships GCC with it enabled in a different way, and deal
7074 # with it then.
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7078 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7079 save_cflags="$CFLAGS"
7080 CFLAGS="$CFLAGS -fno-stack-protector"
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7085 main ()
7089 return 0;
7091 _ACEOF
7092 if ac_fn_c_try_compile "$LINENO"; then :
7093 use_no_stack_protector="yes"
7094 else
7095 use_no_stack_protector="no"
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7099 $as_echo "$use_no_stack_protector" >&6; }
7100 if test "x-$use_no_stack_protector" = "x-yes" ; then
7101 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7103 CFLAGS="$save_cflags"
7105 #-----------------------------------------------------------------------------
7107 # Disable pointer-signedness warnings if the compiler recognises the option
7108 # (this only works for the host compiler at the moment)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7111 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7112 save_cflags="$CFLAGS"
7113 CFLAGS="$CFLAGS -Wno-pointer-sign"
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7118 main ()
7122 return 0;
7124 _ACEOF
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 use_no_sign_warning="yes"
7127 else
7128 use_no_sign_warning="no"
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7132 $as_echo "$use_no_sign_warning" >&6; }
7133 if test "x-$use_no_sign_warning" = "x-yes" ; then
7134 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7136 CFLAGS="$save_cflags"
7138 #-----------------------------------------------------------------------------
7140 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7143 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7144 save_cflags="$CFLAGS"
7145 CFLAGS="$CFLAGS -fgnu89-inline"
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7150 main ()
7154 return 0;
7156 _ACEOF
7157 if ac_fn_c_try_compile "$LINENO"; then :
7158 use_gnu89_inline="yes"
7159 else
7160 use_gnu89_inline="no"
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7164 $as_echo "$use_gnu89_inline" >&6; }
7165 if test "x-$use_gnu89_inline" = "x-yes" ; then
7166 gnu89_inline="-fgnu89-inline"
7168 CFLAGS="$save_cflags"
7170 #-----------------------------------------------------------------------------
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7173 $as_echo_n "checking for type of build... " >&6; }
7174 # Check whether --enable-build_type was given.
7175 if test "${enable_build_type+set}" = set; then :
7176 enableval=$enable_build_type; build_type=$enableval
7177 else
7178 build_type="personal"
7182 if test "$build_type" = "nightly"; then
7183 build_type_string="NIGHTLY"
7184 elif test "$build_type" = "snapshot"; then
7185 build_type_string="SNAPSHOT"
7186 elif test "$build_type" = "milestone"; then
7187 build_type_string="MILESTONE"
7188 elif test "$build_type" = "release"; then
7189 build_type_string="RELEASE"
7190 else
7191 build_type_string="PERSONAL"
7192 build_type="personal"
7195 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7198 $as_echo "$build_type" >&6; }
7200 #-----------------------------------------------------------------------------
7201 all_debug_types="messages stack modules mungwall symbols"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7204 $as_echo_n "checking which debug types to enable... " >&6; }
7205 # Check whether --enable-debug was given.
7206 if test "${enable_debug+set}" = set; then :
7207 enableval=$enable_debug; debug="$enableval"
7208 else
7209 debug=""
7213 if test "$debug" = "" -o "$debug" = "no"; then
7214 debug="none"
7215 elif test "$debug" = "yes"; then
7216 debug="all"
7219 if test "$debug" = "all" ; then
7220 debug="messages stack modules symbols"
7221 for d in $all_debug_types; do
7222 export aros_${d}_debug="1"
7223 done
7224 else
7225 for d in $all_debug_types; do
7226 export aros_${d}_debug="0"
7227 done
7230 if test "$debug" != "none"; then
7231 debug=`echo $debug | sed s/,/\ /g`
7232 for d in $debug; do
7233 found="0"
7234 for d2 in $all_debug_types; do
7235 if test "$d2" = "$d"; then
7236 found="1"
7237 break
7239 done
7240 if test "$found" = "0"; then
7241 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7243 export aros_${d}_debug="1"
7244 done
7245 aros_debug="yes"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7248 $as_echo "$debug" >&6; }
7250 if test "$aros_messages_debug" = "1"; then
7251 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7252 else
7253 aros_messages_debug=""
7255 if test "$aros_symbols_debug" = "1"; then
7256 aros_symbols_debug="-g"
7257 else
7258 aros_symbols_debug=""
7261 # These are the flags to pass when compiling debugged programs
7262 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7263 aros_debug_aflags=""
7264 aros_debug_ldflags="$aros_symbols_debug"
7266 #-----------------------------------------------------------------------------
7267 # Checking if we should build crosstools..
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
7269 $as_echo_n "checking whether to build crosstools... " >&6; }
7270 # Check whether --enable-crosstools was given.
7271 if test "${enable_crosstools+set}" = set; then :
7272 enableval=$enable_crosstools; crosstools="$enableval"
7273 else
7274 crosstools="yes"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
7278 $as_echo "$crosstools" >&6; }
7280 #-----------------------------------------------------------------------------
7281 # Checking for distcc and ccache.
7283 # Always apply the transforms in this particular order. Basically you should
7284 # always run 'ccache distcc compiler' in that order for the best performance.
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7287 $as_echo_n "checking whether to enable distcc... " >&6; }
7288 # Check whether --enable-distcc was given.
7289 if test "${enable_distcc+set}" = set; then :
7290 enableval=$enable_distcc; distcc="$enableval"
7291 else
7292 distcc="no"
7295 if test "$distcc" != "" -a "$distcc" != "no"; then
7296 # AC_CHECK_PROG will print out the result in this case
7297 # Extract the first word of "distcc", so it can be a program name with args.
7298 set dummy distcc; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_path_DISTCC+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 case $DISTCC in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7320 done
7321 done
7322 IFS=$as_save_IFS
7324 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7326 esac
7328 DISTCC=$ac_cv_path_DISTCC
7329 if test -n "$DISTCC"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7331 $as_echo "$DISTCC" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7338 else
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7344 $as_echo_n "checking whether to enable ccache... " >&6; }
7345 # Check whether --enable-ccache was given.
7346 if test "${enable_ccache+set}" = set; then :
7347 enableval=$enable_ccache; ccache="$enableval"
7348 else
7349 ccache="no"
7352 if test "$ccache" != "" -a "$ccache" != "no"; then
7353 # AC_CHECK_PROG will print out the result in this case
7354 # Extract the first word of "ccache", so it can be a program name with args.
7355 set dummy ccache; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_CCACHE+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$CCACHE"; then
7362 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_CCACHE="ccache"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7375 done
7376 done
7377 IFS=$as_save_IFS
7381 CCACHE=$ac_cv_prog_CCACHE
7382 if test -n "$CCACHE"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7384 $as_echo "$CCACHE" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7396 #-----------------------------------------------------------------------------
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7398 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7400 # Check whether --with-gcc-version was given.
7401 if test "${with_gcc_version+set}" = set; then :
7402 withval=$with_gcc_version; kernel_tool_version="$withval"
7403 else
7404 kernel_tool_version="default"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7408 $as_echo "$kernel_tool_version" >&6; }
7410 #-----------------------------------------------------------------------------
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7412 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7414 # Check whether --with-gcc-version was given.
7415 if test "${with_gcc_version+set}" = set; then :
7416 withval=$with_gcc_version; target_tool_version="$withval"
7417 else
7418 target_tool_version="default"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7422 $as_echo "$target_tool_version" >&6; }
7424 #-----------------------------------------------------------------------------
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7426 $as_echo_n "checking what optimization flags to use... " >&6; }
7428 # Check whether --with-optimization was given.
7429 if test "${with_optimization+set}" = set; then :
7430 withval=$with_optimization; optimization="$withval"
7431 else
7432 optimization="unknown"
7435 if test "$optimization" = "unknown"; then
7436 if test "$debug" != "none"; then
7437 optimization="-O0"
7438 else
7439 optimization="-O2"
7442 aros_config_cflags="$aros_config_cflags $optimization"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7444 $as_echo "$optimization" >&6; }
7446 #-----------------------------------------------------------------------------
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7448 $as_echo_n "checking what paranoia flags to use... " >&6; }
7450 # Check whether --with-paranoia was given.
7451 if test "${with_paranoia+set}" = set; then :
7452 withval=$with_paranoia; paranoia_flags="$withval"
7453 else
7454 paranoia_flags="default"
7457 if test "$paranoia_flags" = "default"; then
7458 paranoia_flags=""
7459 else if test "$paranoia_flags" = "yes"; then
7460 paranoia_flags="-Wall -Werror"
7461 fi fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7463 $as_echo "$paranoia_flags" >&6; }
7464 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7466 #-----------------------------------------------------------------------------
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7468 $as_echo_n "checking what target variant to enable... " >&6; }
7469 # Check whether --enable-target_variant was given.
7470 if test "${enable_target_variant+set}" = set; then :
7471 enableval=$enable_target_variant; target_variant=$enableval
7472 else
7473 target_variant=""
7476 if test "$target_variant" = ""; then
7477 aros_target_variant=""
7478 aros_target_suffix=""
7479 enableval="none"
7480 else
7481 aros_target_variant="$target_variant"
7482 aros_target_suffix="-$target_variant"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7485 $as_echo "$enableval" >&6; }
7487 #-----------------------------------------------------------------------------
7488 # Target-specific defaults. You can override then on a per-target basis.
7490 # Bootloader name. Currently used by PC target.
7491 target_bootloader="none"
7493 #-----------------------------------------------------------------------------
7494 # Additional options for some specific targets
7496 case "$aros_target_variant" in
7497 ios)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7499 $as_echo_n "checking XCode path... " >&6; }
7501 # Check whether --with-xcode was given.
7502 if test "${with_xcode+set}" = set; then :
7503 withval=$with_xcode; aros_xcode_path="$withval"
7504 else
7505 aros_xcode_path="/Developer"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7509 $as_echo "$aros_xcode_path" >&6; }
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7512 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7514 # Check whether --with-sdk-version was given.
7515 if test "${with_sdk_version+set}" = set; then :
7516 withval=$with_sdk_version; aros_sdk_version="$withval"
7517 else
7518 aros_sdk_version="4.1"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7522 $as_echo "$aros_sdk_version" >&6; }
7526 "android")
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7528 $as_echo_n "checking Android SDK path... " >&6; }
7530 # Check whether --with-sdk was given.
7531 if test "${with_sdk+set}" = set; then :
7532 withval=$with_sdk; aros_android_sdk="$withval"
7533 else
7534 aros_android_sdk=$default_android_sdk
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7538 $as_echo "$aros_android_sdk" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7541 $as_echo_n "checking Android NDK path... " >&6; }
7543 # Check whether --with-ndk was given.
7544 if test "${with_ndk+set}" = set; then :
7545 withval=$with_ndk; aros_android_ndk="$withval"
7546 else
7547 aros_android_ndk="none"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7551 $as_echo "$aros_android_ndk" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7554 $as_echo_n "checking what Android SDK version to use... " >&6; }
7556 # Check whether --with-sdk-version was given.
7557 if test "${with_sdk_version+set}" = set; then :
7558 withval=$with_sdk_version; aros_sdk_version="$withval"
7559 else
7560 aros_sdk_version="12"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7564 $as_echo "$aros_sdk_version" >&6; }
7566 if test "$aros_android_ndk" != "none"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7568 $as_echo_n "checking what Android NDK version to use... " >&6; }
7570 # Check whether --with-ndk-version was given.
7571 if test "${with_ndk_version+set}" = set; then :
7572 withval=$with_ndk_version; aros_ndk_version="$withval"
7573 else
7574 aros_ndk_version="9"
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7578 $as_echo "$aros_ndk_version" >&6; }
7581 export PATH="$aros_android_sdk/tools:$PATH"
7582 # Extract the first word of "$android_tool", so it can be a program name with args.
7583 set dummy $android_tool; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_path_android_tool+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 case $android_tool in
7590 [\\/]* | ?:[\\/]*)
7591 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7605 done
7606 done
7607 IFS=$as_save_IFS
7610 esac
7612 android_tool=$ac_cv_path_android_tool
7613 if test -n "$android_tool"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7615 $as_echo "$android_tool" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7622 if test "$android_tool" = ""; then
7623 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7626 aros_android_level=android-$aros_sdk_version
7627 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7628 echo "Platform $aros_android_level is not installed in your SDK"
7629 echo "Use --with-sdk-version=<API level number> to select another platform version"
7630 echo "You can check what plaform versions are installed in your SDK"
7631 echo "by examining contents of $aros_android_sdk/platforms directory"
7632 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7635 # Extract the first word of "ant", so it can be a program name with args.
7636 set dummy ant; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_path_ant+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 case $ant in
7643 [\\/]* | ?:[\\/]*)
7644 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7658 done
7659 done
7660 IFS=$as_save_IFS
7663 esac
7665 ant=$ac_cv_path_ant
7666 if test -n "$ant"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7668 $as_echo "$ant" >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7675 if test "$ant" = ""; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7677 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7680 if test "$host_os" = "mingw32"; then
7681 android_tool="cmd //c $android_tool"
7685 esac
7687 #-----------------------------------------------------------------------------
7689 # This is the target configuration switch.
7690 case "$target_os" in
7691 linux*)
7692 aros_target_arch="linux"
7693 aros_target_family="unix"
7694 case "$target_cpu" in
7695 *m68k*)
7696 aros_target_cpu="m68k"
7697 aros_object_format="m68kelf"
7698 aros_flavour="emulcompat"
7699 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7700 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7701 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7702 gcc_target_cpu="mc68000"
7704 *i?86*)
7705 aros_target_cpu="i386"
7706 aros_object_format="elf_i386"
7707 aros_flavour="emulation"
7708 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7709 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7710 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7711 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7712 aros_config_ldflags="-m32 -march=i486"
7713 aros_kernel_ldflags="-melf_i386"
7714 aros_default_wbdepth=8
7715 gcc_target_cpu="i386"
7716 pci_hidd_target="hidd-pci-linux"
7717 android_tool_dir_prefix="x86"
7718 android_tool_prefix="i686-android-linux"
7719 android_ndk_arch="x86"
7721 *x86_64*)
7722 aros_target_cpu="x86_64"
7723 aros_object_format="elf_x86_64"
7724 aros_flavour="emulation"
7725 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7726 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7727 aros_default_wbdepth=8
7728 pci_hidd_target="hidd-pci-linux"
7730 *powerpc*)
7731 aros_target_cpu="ppc"
7732 aros_object_format="elf32ppc"
7733 aros_flavour="emulation"
7734 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7735 aros_default_wbdepth=8
7736 gcc_target_cpu="ppc"
7738 # TODO
7739 # Same as powerpc, but I need this for the nightly build to work again.
7740 # Actually, the nightly should be made working with powerpc target.
7741 # That just was too much work for the moment, another week or two.
7742 *ppc*)
7743 aros_target_cpu="ppc"
7744 aros_object_format="elf32ppc"
7745 aros_flavour="emulation"
7746 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7747 aros_default_wbdepth=8
7748 gcc_target_cpu="ppc"
7750 *arm*)
7751 aros_target_cpu="arm"
7752 aros_object_format="armelf_linux_eabi"
7753 aros_flavour="emulation"
7754 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7755 gcc_target_cpu="arm"
7756 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7757 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7758 aros_arch_libs="-laeabi"
7759 android_tool_dir_prefix="arm-linux-androideabi"
7760 android_tool_prefix="arm-linux-androideabi"
7761 android_ndk_arch="arm"
7762 if test "$aros_host_cpu" != "arm" ; then
7763 kernel_tool_prefix="arm-linux-gnueabi-"
7767 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7769 esac
7770 case "$aros_target_variant" in
7771 android)
7773 if test "$android_ndk_arch" = ""; then
7774 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7777 aros_default_wbwidth=320
7778 aros_default_wbheight=480
7779 if test "$aros_android_ndk" = "none"; then
7780 aros_kernel_cflags="-mandroid"
7781 aros_kernel_ldflags="-mandroid"
7782 CFLAGS="-mandroid"
7783 else
7784 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7785 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7786 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7787 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7788 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7789 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7791 need_x11=no
7792 x11_hidd_target=kernel-hidd-androidgfx-kobj
7793 # Disable implicit PIC mode
7794 aros_kernel_cflags="$aros_kernel_cflags -fno-pic"
7795 aros_target_cflags="$aros_target_cflags -fno-pic"
7796 kernel_tool_prefix="$android_tool_prefix-"
7798 esac
7802 aros_target_arch="pc"
7803 aros_shared_default="no"
7804 target_bootloader="grub2"
7805 case "$target_cpu" in
7806 *i?86*)
7807 aros_target_cpu="i386"
7810 if test "$aros_object_format" = "" ; then
7811 aros_object_format="elf_i386"
7813 aros_flavour="standalone"
7814 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7815 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7816 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7817 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7818 aros_config_ldflags="-m32 -march=i486"
7819 aros_kernel_ldflags="-melf_i386"
7820 aros_default_wbwidth=640
7821 aros_default_wbheight=480
7822 gcc_target_cpu="i386"
7824 *x86_64*)
7825 aros_target_cpu="x86_64"
7826 aros_serial_debug=1
7827 if test "$aros_object_format" = "" ; then
7828 aros_object_format="elf_x86_64"
7830 aros_flavour="standalone"
7831 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7832 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7833 aros_kernel_ldflags=""
7834 aros_default_wbwidth=640
7835 aros_default_wbheight=480
7838 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7840 esac
7843 prep)
7844 aros_target_arch="prep"
7845 aros_shared_default="no"
7846 aros_target_cpu="ppc"
7847 aros_object_format="elf32ppc"
7848 aros_flavour="ppcnative"
7849 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7850 aros_kernel_ldflags=""
7851 aros_default_wbwidth=640
7852 aros_default_wbheight=480
7853 gcc_target_cpu="ppc"
7856 freebsd*)
7857 aros_target_arch="freebsd"
7858 aros_target_family="unix"
7859 aros_target_cpu="i386"
7860 aros_flavour="emulation"
7861 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7862 gcc_target_cpu="i386"
7864 aros_target_strip_flags="-x"
7867 darwin*)
7868 aros_target_arch="darwin"
7869 aros_target_family="unix"
7870 aros_flavour="emulation"
7871 case "$target_cpu" in
7872 *i?86*)
7873 aros_ios_platform="iPhoneSimulator"
7874 aros_target_cpu="i386"
7875 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7876 aros_kernel_ldflags=""
7877 aros_macosx_version="10.4"
7878 aros_default_wbdepth=8
7879 gcc_target_cpu="i386"
7880 aros_object_format="elf_i386"
7881 aros_kernel_ar_flags="-cr"
7882 aros_target_strip_flags="-x"
7883 kernel_tool_flags="-m32"
7885 *x86_64*)
7886 aros_target_cpu="x86_64"
7887 aros_object_format="elf_x86_64"
7888 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7889 aros_macosx_version="10.6"
7890 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7891 aros_kernel_cflags="-m64"
7892 aros_kernel_ldflags="-m64"
7893 aros_target_cflags="-mcmodel=large"
7894 aros_default_wbdepth=8
7895 aros_kernel_ar="ar"
7896 aros_kernel_ar_flags="-cr"
7897 aros_kernel_ld="ld"
7898 aros_kernel_ranlib="ranlib"
7900 *ppc*)
7901 aros_target_cpu="ppc"
7902 aros_object_format="elf32ppc"
7903 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7904 aros_kernel_ldflags=""
7905 aros_macosx_version="10.0"
7906 aros_default_wbdepth=8
7907 gcc_target_cpu="ppc"
7908 aros_kernel_ar="ar"
7909 aros_kernel_ar_flags="-cr"
7910 aros_kernel_ld="ld -arch ppc"
7911 aros_kernel_ranlib="ranlib -arch ppc"
7912 kernel_tool_prefix="powerpc-apple-darwin10-"
7914 *arm*)
7915 aros_ios_platform="iPhoneOS"
7916 aros_target_cpu="arm"
7917 aros_object_format="armelf_linux_eabi"
7918 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7919 aros_arch_libs="-laeabi"
7920 aros_default_wbdepth=8
7921 gcc_target_cpu="arm"
7922 aros_kernel_ar="ar"
7923 aros_kernel_ar_flags="-cr"
7924 aros_kernel_ld="ld -arch arm"
7925 aros_kernel_ranlib="ranlib -arch arm"
7926 kernel_tool_prefix="arm-apple-darwin10-"
7927 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7930 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7932 esac
7933 case "$aros_target_variant" in
7934 ios)
7935 aros_ios_version="3.0"
7936 aros_default_wbwidth=320
7937 aros_default_wbheight=480
7938 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7939 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7940 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7941 need_x11=no
7942 # This is here because it may depend on iOS or SDK version
7943 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7944 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7945 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7948 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7949 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7951 esac
7954 dragonfly*)
7955 aros_target_arch="dragonfly"
7956 aros_target_family="unix"
7957 aros_flavour="emulation"
7958 case "$target_cpu" in
7959 *i?86*)
7960 aros_target_cpu="i386"
7961 aros_object_format="elf_i386"
7962 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7964 *x86_64*)
7965 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7966 aros_target_cpu="x86_64"
7967 aros_object_format="elf_x86_64"
7968 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7971 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7973 esac
7976 netbsd*)
7977 aros_target_arch="netbsd"
7978 aros_target_family="unix"
7979 case "$target_cpu" in
7980 *m68k*)
7981 aros_target_cpu="m68k"
7982 aros_object_format="m68kelf"
7983 aros_flavour="emulcompat"
7984 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7985 gcc_target_cpu="mc68000"
7987 *i?86*)
7988 aros_target_cpu="i386"
7989 aros_object_format="elf_i386"
7990 aros_flavour="emulation"
7991 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7992 aros_default_wbdepth=8
7993 gcc_target_cpu="i386"
7996 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7998 esac
7999 aros_target_genmap="-Wl,-M -Xlinker >"
8000 aros_flavour="emulation"
8001 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8004 openbsd*)
8005 aros_target_arch="openbsd"
8006 aros_target_family="unix"
8007 case "$target_cpu" in
8008 *i?86*)
8009 aros_target_cpu="i386"
8010 aros_object_format="elf_i386"
8011 aros_flavour="emulation"
8012 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8013 gcc_target_cpu="i386"
8016 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8018 esac
8019 aros_target_genmap="-Wl,-M -Xlinker >"
8020 aros_target_nm_flags="-u"
8021 aros_flavour="emulation"
8024 solaris*)
8025 aros_target_arch="solaris"
8026 aros_target_family="unix"
8027 case "$target_cpu" in
8028 *i?86*)
8029 aros_target_cpu="i386"
8030 aros_object_format="elf_i386"
8031 aros_flavour="emulation"
8032 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8033 aros_default_wbdepth=8
8034 gcc_target_cpu="i386"
8036 *sparc*)
8037 aros_target_cpu="sparc"
8038 aros_object_format="elf_sparc"
8039 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8040 gcc_target_cpu="sparc"
8043 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8045 esac
8046 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8047 aros_flavour="emulation"
8050 morphos*)
8051 aros_target_arch="morphos"
8052 aros_shared_default="no"
8053 aros_target_cpu="ppc"
8054 aros_object_format="elf_ppc"
8055 aros_flavour="nativecompat"
8056 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8057 gcc_target_cpu="ppc"
8060 sam440)
8061 aros_target_arch="sam440"
8062 aros_shared_default="no"
8063 aros_target_cpu="ppc"
8064 aros_object_format="elf32ppc"
8065 aros_flavour="ppcnative"
8066 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8067 aros_kernel_ldflags=""
8068 aros_default_wbwidth=1024
8069 aros_default_wbheight=768
8070 aros_default_wbdepth=24
8071 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8072 gcc_target_cpu="powerpc"
8075 efika)
8076 aros_target_arch="efika"
8077 aros_shared_default="no"
8078 aros_target_cpu="arm"
8079 aros_object_format="armelf_linux_eabi"
8080 aros_flavour="standalone"
8081 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8082 aros_kernel_ldflags=""
8083 aros_default_wbwidth=1024
8084 aros_default_wbheight=600
8085 aros_arch_libs="-laeabi"
8086 gcc_default_cpu="armv7-a"
8087 gcc_default_fpu="vfpv3"
8088 gcc_default_float_abi="softfp"
8089 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8090 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8093 chrp)
8094 aros_target_arch="chrp"
8095 aros_shared_default="no"
8096 aros_target_cpu="ppc"
8097 aros_object_format="elf32ppc"
8098 aros_flavour="ppcnative"
8099 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8100 aros_kernel_ldflags=""
8101 aros_default_wbwidth=640
8102 aros_default_wbheight=480
8103 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8104 gcc_target_cpu="powerpc"
8105 case "$aros_target_variant" in
8106 efika)
8107 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8109 esac
8112 amiga*)
8113 aros_target_arch="amiga"
8114 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8115 aros_shared_default="no"
8117 case "$target_cpu" in
8118 *m68k*)
8119 # Check whether --enable-amigaos_compliance was given.
8120 if test "${enable_amigaos_compliance+set}" = set; then :
8121 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8124 aros_enable_mmu=no
8125 aros_target_cpu="m68k"
8126 aros_object_format="m68kelf"
8127 aros_flavour="standcompat"
8128 gcc_target_cpu="m68000"
8129 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8130 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8131 # Needed to get the correct multilib
8132 aros_config_ldflags="-${gcc_target_cpu}"
8133 aros_shared_ldflags="-${gcc_target_cpu}"
8134 aros_kernel_ldflags="-${gcc_target_cpu}"
8135 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8136 aros_target_strip_flags="-R.comment --strip-debug"
8137 aros_default_wbwidth=640
8138 aros_default_wbheight=256
8139 aros_default_wbdepth=2
8141 *ppc*)
8142 aros_cpu="ppc"
8143 aros_flavour="native"
8144 gcc_target_cpu="ppc"
8147 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8149 esac
8152 mingw*)
8153 aros_target_arch="mingw32"
8154 aros_shared_default="no"
8155 aros_flavour="emulation"
8156 aros_shared_cflags=""
8157 need_dlopen="no"
8158 rescomp="windres"
8159 case "$target_cpu" in
8160 *i?86*)
8161 aros_target_cpu="i386"
8162 aros_object_format="elf_i386"
8163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8164 aros_default_wbdepth=8
8165 gcc_target_cpu="i386"
8167 kernel_tool_prefix="i386-mingw32-"
8169 *x86_64*)
8170 aros_target_cpu="x86_64"
8171 aros_object_format="elf_x86_64"
8172 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8173 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8174 aros_default_wbdepth=8
8175 kernel_tool_prefix="x86_64-w64-mingw32-"
8177 *arm*)
8178 aros_target_cpu="arm"
8179 aros_object_format="armelf_linux_eabi"
8180 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8181 aros_arch_libs="-laeabi"
8182 aros_default_wbdepth=8
8183 gcc_target_cpu="arm"
8184 gcc_default_float_abi="soft"
8185 kernel_tool_prefix="arm-mingw32ce-"
8186 aros_default_wbwidth=160
8187 aros_default_wbheight=160
8190 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8192 esac
8193 if test $host_os = "cygwin"; then
8194 aros_kernel_cflags="-mno-cygwin"
8197 pp*)
8198 aros_target_arch="pp"
8199 aros_shared_default="no"
8200 case "$target_cpu" in
8201 *m68k*)
8202 aros_target_cpu="m68k"
8203 aros_object_format="m68kelf"
8204 aros_flavour="palmnative"
8205 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8206 aros_default_wbwidth=160
8207 aros_default_wbheight=160
8208 aros_default_wbdepth=1
8209 aros_target_ar_flags="cru"
8210 aros_compiler_libs="-lgcc1"
8211 aros_shared_default=no
8212 aros_shared_cflags="-fpic"
8213 aros_shared_aflags=""
8214 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8215 aros_kernel_ldflags="-Wl,-rpath,./lib"
8216 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8217 aros_debug_aflags=""
8218 aros_debug_ldflags="$aros_symbols_debug"
8219 aros_mungwall_debug="0"
8220 aros_modules_debug="0"
8221 gcc_target_cpu="mc68000"
8222 ignore_undefined_symbols="-ius"
8225 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8227 esac
8230 mac*)
8231 aros_target_arch="mac"
8232 aros_shared_default="no"
8233 case "$target_cpu" in
8234 *m68k*)
8235 aros_target_cpu="m68k"
8236 aros_object_format="m68kelf"
8237 aros_flavour="mac68knative"
8238 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8239 aros_default_wbwidth=512
8240 aros_default_wbheight=384
8241 aros_default_wbdepth=8
8242 aros_target_ar_flags="cru"
8243 aros_compiler_libs="-lgcc1"
8244 aros_shared_default=no
8245 aros_shared_cflags="-fpic"
8246 aros_shared_aflags=""
8247 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8248 aros_kernel_ldflags="-Wl,-rpath,./lib"
8249 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8250 aros_debug_aflags=""
8251 aros_debug_ldflags="$aros_symbols_debug"
8252 aros_mungwall_debug="0"
8253 aros_modules_debug="0"
8254 gcc_target_cpu="mc68000"
8255 ignore_undefined_symbols="-ius"
8258 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8260 esac
8264 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8266 esac
8268 #-----------------------------------------------------------------------------
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8270 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8272 # Check whether --with-crosstools was given.
8273 if test "${with_crosstools+set}" = set; then :
8274 withval=$with_crosstools; with_crosstools=$withval
8275 else
8276 with_crosstools="default"
8279 if test "$with_crosstools" = "default"; then
8280 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8281 else
8282 # Disable building crosstools if we are using an external set - otherwise
8283 # we may attempt to overwrite them if the tools-crosstools target is made!
8284 crosstools=no
8285 AROS_CROSSTOOLSDIR="$with_crosstools"
8286 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8289 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
8292 $as_echo_n "checking Kernel tool prefix... " >&6; }
8294 # Check whether --with-kernel-tool-prefix was given.
8295 if test "${with_kernel_tool_prefix+set}" = set; then :
8296 withval=$with_kernel_tool_prefix; kernel_tool_prefix="$withval"
8297 else
8298 kernel_tool_prefix="$kernel_tool_prefix"
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8302 $as_echo "$kernel_tool_prefix" >&6; }
8304 target_tool_prefix=${target_cpu}-aros-
8306 # Now process extra architecture-specific options.
8307 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8308 # as well as floating-point ABI.
8309 case "$aros_target_cpu" in
8310 arm)
8311 if test "$gcc_default_cpu" = ""; then
8312 gcc_default_cpu="armv6"
8314 if test "$gcc_default_fpu" = ""; then
8315 gcc_default_fpu="vfp"
8317 if test "$gcc_default_float_abi" = ""; then
8318 gcc_default_float_abi="softfp"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8322 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8324 # Check whether --with-cpu was given.
8325 if test "${with_cpu+set}" = set; then :
8326 withval=$with_cpu; aros_gcc_cpu="$withval"
8327 else
8328 aros_gcc_cpu=$gcc_default_cpu
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8332 $as_echo "$aros_gcc_cpu" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8335 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8337 # Check whether --with-fpu was given.
8338 if test "${with_fpu+set}" = set; then :
8339 withval=$with_fpu; aros_gcc_fpu="$withval"
8340 else
8341 aros_gcc_fpu=$gcc_default_fpu
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8345 $as_echo "$aros_gcc_fpu" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8348 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8350 # Check whether --with-float was given.
8351 if test "${with_float+set}" = set; then :
8352 withval=$with_float; aros_gcc_float_abi="$withval"
8353 else
8354 aros_gcc_float_abi=$gcc_default_float_abi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8358 $as_echo "$aros_gcc_float_abi" >&6; }
8360 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"
8361 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"
8363 esac
8365 # Some formats need custom ELF specs.
8366 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8367 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8368 elf_specs_in=config/${aros_object_format}-specs.in
8369 else
8370 elf_specs_in=config/elf-specs.in
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8374 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8376 # Check whether --with-aros-gcc was given.
8377 if test "${with_aros_gcc+set}" = set; then :
8378 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8379 else
8380 aros_gcc_version=""
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8384 $as_echo "$aros_gcc_version" >&6; }
8386 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8387 # Since we override specs, we may need to put these defines there
8388 if test "$gcc_target_cpu" != ""; then
8389 gcc_target_cpu="-D__${gcc_target_cpu}__"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8393 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8395 # Check whether --with-portssources was given.
8396 if test "${with_portssources+set}" = set; then :
8397 withval=$with_portssources; with_portssrcdir=$withval
8398 else
8399 with_portssrcdir="default"
8402 if test "$with_portssrcdir" = "default"; then
8403 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8404 else
8405 AROS_PORTSSRCDIR="$with_portssrcdir"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8408 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8411 $as_echo_n "checking which bootloader to use... " >&6; }
8413 # Check whether --with-bootloader was given.
8414 if test "${with_bootloader+set}" = set; then :
8415 withval=$with_bootloader; target_bootloader=$withval
8416 else
8417 target_bootloader=$target_bootloader
8420 if test "$target_bootloader" = "none"; then
8421 aros_target_bootloader=""
8422 else
8423 aros_target_bootloader="$target_bootloader"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8426 $as_echo "$target_bootloader" >&6; }
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8429 $as_echo_n "checking which icon-set to use... " >&6; }
8431 # Check whether --with-iconset was given.
8432 if test "${with_iconset+set}" = set; then :
8433 withval=$with_iconset; target_iconset=$withval
8434 else
8435 target_iconset="default"
8438 if test "$target_iconset" = "default"; then
8439 aros_target_iconset="Gorilla"
8440 target_iconset="default (Gorilla)"
8441 else
8442 aros_target_iconset="$target_iconset"
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8445 $as_echo "$target_iconset" >&6; }
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8448 $as_echo_n "checking which GUI Theme to use... " >&6; }
8450 # Check whether --with-theme was given.
8451 if test "${with_theme+set}" = set; then :
8452 withval=$with_theme; target_guitheme=$withval
8453 else
8454 target_guitheme="default"
8457 if test "$target_guitheme" = "default"; then
8458 aros_target_guitheme="Ice"
8459 else
8460 aros_target_guitheme="$target_guitheme"
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8463 $as_echo "$aros_target_guitheme" >&6; }
8465 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8466 # for target code)
8467 cross_compiling=no
8468 if test "$aros_host_cpu" = "$aros_target_cpu" ; then
8469 # If host = target CPU, let's try to use the
8470 # host's toolchains if no others were requested
8471 if test "$kernel_tool_prefix" = "none" ; then
8472 kernel_tool_prefix=""
8474 else
8475 cross_compiling=yes
8478 if test "$aros_host_cpu" == "x86_64" ; then
8479 if test "$aros_target_cpu" == "i386" ; then
8480 if test "$aros_target_arch" != "mingw32"; then
8481 cross_compiling=no
8482 kernel_tool_prefix=""
8487 if test "$aros_host_arch" == "darwin" ; then
8488 if test "$aros_target_arch" != "darwin" ; then
8489 cross_compiling=yes
8490 else
8491 cross_compiling=no
8492 kernel_tool_prefix=""
8496 if test "$aros_host_arch" == "mingw32" ; then
8497 if test "$aros_target_arch" != "mingw32" ; then
8498 cross_compiling=yes
8502 #######################################################################
8503 ## Compute what toolchains to use, and their paths ##
8504 #######################################################################
8506 # This takes, as input:
8507 # crosstools {yes,no}
8508 # aros_gcc_version {default,[version]}
8509 # kernel_tool_prefix {none,[some-arch-os-]}
8510 # target_tool_prefix ${target_cpu}-aros-
8512 # The output is
8513 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8514 # Where the 'kernel' binaries are located
8515 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8516 # Where the 'target' binaries are located
8517 # (not the symlink farm - that is aros_target_*!)
8519 # The rules are:
8520 # if crosstools then
8521 # if kernel_tools_prefix = "no-kernel-prefix-"
8522 # aros_kernel_* = crosstools cc paths
8523 # aros_kernel_cc = elf cc wrapper around crosstools cc
8524 # else
8525 # VALIDATE(${kernel_tools_prefix}*)
8526 # aros_kernel_* = ${kernel_tools_prefix}*
8527 # if ${kernel_tools_prefix}cc is an AROS gcc
8528 # aros_kernel_cc = ${kernel_tools_prefix}cc
8529 # else
8530 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8531 # fi
8532 # fi
8534 # orig_target_* = aros built crosstools
8535 # orig_target_cc = elf cc wrapper around crosstools cc
8536 # else
8537 # VALIDATE(${kernel_tools_prefix}*)
8539 # orig_target_* = aros_kernel_*
8540 # if aros_kernel_cc is an AROS gcc
8541 # orig_target_cc = aros_kernel_cc
8542 # else
8543 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8544 # fi
8545 # fi
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external toolchain" >&5
8549 $as_echo_n "checking whether to use external toolchain... " >&6; }
8550 if test "$kernel_tool_prefix" = "none" ; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; };
8553 if test "$crosstools" != "yes"; then
8554 as_fn_error $? "--disable-crosstools requires --with-kernel-tool-prefix= for this arch" "$LINENO" 5
8556 # We are building AROS crosstools, and no kernel
8557 # tools specified - assume target tools == kernel tools
8558 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
8559 aros_kernel_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
8560 aros_kernel_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
8561 aros_kernel_cpp="${tmp_tool_prefix}cpp"
8562 aros_kernel_ld="${tmp_tool_prefix}ld"
8563 aros_kernel_as="${tmp_tool_prefix}as"
8564 aros_kernel_ar="${tmp_tool_prefix}ar"
8565 aros_kernel_ranlib="${tmp_tool_prefix}ranlib"
8566 aros_kernel_nm="${tmp_tool_prefix}nm"
8567 aros_kernel_strip="${tmp_tool_prefix}strip"
8568 aros_kernel_objcopy="${tmp_tool_prefix}objcopy"
8569 aros_kernel_objdump="${tmp_tool_prefix}objdump"
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8572 $as_echo "yes" >&6; };
8573 # Kernel tools specified - find them
8574 # Note that 'normally', aros_kernel_* overrides will
8575 # empty, unless specified in the per-arch sections above.
8578 if test "$aros_kernel_cpp" = ""; then
8579 if test "$cross_compiling" = "yes" ; then
8580 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8581 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 case $aros_kernel_cpp in
8588 [\\/]* | ?:[\\/]*)
8589 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 break 2
8603 done
8604 done
8605 IFS=$as_save_IFS
8608 esac
8610 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8611 if test -n "$aros_kernel_cpp"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8613 $as_echo "$aros_kernel_cpp" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8620 else
8621 if test "$GCC" = "yes"; then
8622 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8623 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8624 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 case $aros_kernel_cpp in
8631 [\\/]* | ?:[\\/]*)
8632 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in `dirname $aros_gcc_cpp`
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8642 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8646 done
8647 done
8648 IFS=$as_save_IFS
8651 esac
8653 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8654 if test -n "$aros_kernel_cpp"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8656 $as_echo "$aros_kernel_cpp" >&6; }
8657 else
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659 $as_echo "no" >&6; }
8664 if test "$aros_kernel_cpp" = ""; then
8665 # Extract the first word of "cpp", so it can be a program name with args.
8666 set dummy cpp; ac_word=$2
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668 $as_echo_n "checking for $ac_word... " >&6; }
8669 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 case $aros_kernel_cpp in
8673 [\\/]* | ?:[\\/]*)
8674 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in $PATH
8680 IFS=$as_save_IFS
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8684 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 break 2
8688 done
8689 done
8690 IFS=$as_save_IFS
8693 esac
8695 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8696 if test -n "$aros_kernel_cpp"; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8698 $as_echo "$aros_kernel_cpp" >&6; }
8699 else
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701 $as_echo "no" >&6; }
8707 else
8708 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8709 set dummy $aros_kernel_cpp; ac_word=$2
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711 $as_echo_n "checking for $ac_word... " >&6; }
8712 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 case $aros_kernel_cpp in
8716 [\\/]* | ?:[\\/]*)
8717 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in $PATH
8723 IFS=$as_save_IFS
8724 test -z "$as_dir" && as_dir=.
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8727 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729 break 2
8731 done
8732 done
8733 IFS=$as_save_IFS
8736 esac
8738 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8739 if test -n "$aros_kernel_cpp"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8741 $as_echo "$aros_kernel_cpp" >&6; }
8742 else
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8750 if test "$aros_kernel_cpp" = ""; then
8751 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8753 if test "x$aros_kernel_cc" = "x"; then
8754 aros_kernel_cc=${kernel_tool_prefix}gcc
8757 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8758 if test "$cross_compiling" = "yes" ; then
8759 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8760 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 case $aros_kernel_cc in
8767 [\\/]* | ?:[\\/]*)
8768 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8782 done
8783 done
8784 IFS=$as_save_IFS
8787 esac
8789 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8790 if test -n "$aros_kernel_cc"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8792 $as_echo "$aros_kernel_cc" >&6; }
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8799 else
8800 if test "$GCC" = "yes"; then
8801 aros_gcc_cc=`$CC -print-prog-name=cc`
8802 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8803 set dummy `basename $aros_gcc_cc`; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 case $aros_kernel_cc in
8810 [\\/]* | ?:[\\/]*)
8811 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in `dirname $aros_gcc_cc`
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8825 done
8826 done
8827 IFS=$as_save_IFS
8830 esac
8832 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8833 if test -n "$aros_kernel_cc"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8835 $as_echo "$aros_kernel_cc" >&6; }
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8843 if test "$aros_kernel_cc" = ""; then
8844 # Extract the first word of "cc", so it can be a program name with args.
8845 set dummy cc; ac_word=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 case $aros_kernel_cc in
8852 [\\/]* | ?:[\\/]*)
8853 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8863 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8867 done
8868 done
8869 IFS=$as_save_IFS
8872 esac
8874 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8875 if test -n "$aros_kernel_cc"; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8877 $as_echo "$aros_kernel_cc" >&6; }
8878 else
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8886 else
8887 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8888 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 $as_echo_n "checking for $ac_word... " >&6; }
8891 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 case $aros_kernel_cc in
8895 [\\/]* | ?:[\\/]*)
8896 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 for as_dir in $PATH
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8906 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8910 done
8911 done
8912 IFS=$as_save_IFS
8915 esac
8917 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8918 if test -n "$aros_kernel_cc"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8920 $as_echo "$aros_kernel_cc" >&6; }
8921 else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8929 if test "$aros_kernel_cc" = ""; then
8930 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8932 if test "x$aros_kernel_cxx" = "x"; then
8933 aros_kernel_cxx=${kernel_tool_prefix}g++
8936 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8937 if test "$cross_compiling" = "yes" ; then
8938 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8939 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 case $aros_kernel_cxx in
8946 [\\/]* | ?:[\\/]*)
8947 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8961 done
8962 done
8963 IFS=$as_save_IFS
8966 esac
8968 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8969 if test -n "$aros_kernel_cxx"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8971 $as_echo "$aros_kernel_cxx" >&6; }
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8978 else
8979 if test "$GCC" = "yes"; then
8980 aros_gcc_cxx=`$CC -print-prog-name=cxx`
8981 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
8982 set dummy `basename $aros_gcc_cxx`; ac_word=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 case $aros_kernel_cxx in
8989 [\\/]* | ?:[\\/]*)
8990 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in `dirname $aros_gcc_cxx`
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9000 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 break 2
9004 done
9005 done
9006 IFS=$as_save_IFS
9009 esac
9011 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9012 if test -n "$aros_kernel_cxx"; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9014 $as_echo "$aros_kernel_cxx" >&6; }
9015 else
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9022 if test "$aros_kernel_cxx" = ""; then
9023 # Extract the first word of "cxx", so it can be a program name with args.
9024 set dummy cxx; ac_word=$2
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026 $as_echo_n "checking for $ac_word... " >&6; }
9027 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 case $aros_kernel_cxx in
9031 [\\/]* | ?:[\\/]*)
9032 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 for as_dir in $PATH
9038 IFS=$as_save_IFS
9039 test -z "$as_dir" && as_dir=.
9040 for ac_exec_ext in '' $ac_executable_extensions; do
9041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9042 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 break 2
9046 done
9047 done
9048 IFS=$as_save_IFS
9051 esac
9053 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9054 if test -n "$aros_kernel_cxx"; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9056 $as_echo "$aros_kernel_cxx" >&6; }
9057 else
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9065 else
9066 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9067 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 case $aros_kernel_cxx in
9074 [\\/]* | ?:[\\/]*)
9075 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9089 done
9090 done
9091 IFS=$as_save_IFS
9094 esac
9096 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9097 if test -n "$aros_kernel_cxx"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9099 $as_echo "$aros_kernel_cxx" >&6; }
9100 else
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9108 # If it's set, make sure it's really there
9109 if test "x$aros_kernel_cxx" != "x" ; then
9110 if test "$aros_kernel_cxx" = ""; then
9111 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9115 if test "$aros_kernel_ld" = ""; then
9116 if test "$cross_compiling" = "yes" ; then
9117 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9118 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 case $aros_kernel_ld in
9125 [\\/]* | ?:[\\/]*)
9126 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9140 done
9141 done
9142 IFS=$as_save_IFS
9145 esac
9147 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9148 if test -n "$aros_kernel_ld"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9150 $as_echo "$aros_kernel_ld" >&6; }
9151 else
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9157 else
9158 if test "$GCC" = "yes"; then
9159 aros_gcc_ld=`$CC -print-prog-name=ld`
9160 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9161 set dummy `basename $aros_gcc_ld`; ac_word=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 case $aros_kernel_ld in
9168 [\\/]* | ?:[\\/]*)
9169 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 for as_dir in `dirname $aros_gcc_ld`
9175 IFS=$as_save_IFS
9176 test -z "$as_dir" && as_dir=.
9177 for ac_exec_ext in '' $ac_executable_extensions; do
9178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9179 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 break 2
9183 done
9184 done
9185 IFS=$as_save_IFS
9188 esac
9190 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9191 if test -n "$aros_kernel_ld"; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9193 $as_echo "$aros_kernel_ld" >&6; }
9194 else
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9201 if test "$aros_kernel_ld" = ""; then
9202 # Extract the first word of "ld", so it can be a program name with args.
9203 set dummy ld; ac_word=$2
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9205 $as_echo_n "checking for $ac_word... " >&6; }
9206 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 case $aros_kernel_ld in
9210 [\\/]* | ?:[\\/]*)
9211 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 for as_dir in $PATH
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
9219 for ac_exec_ext in '' $ac_executable_extensions; do
9220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9221 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 break 2
9225 done
9226 done
9227 IFS=$as_save_IFS
9230 esac
9232 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9233 if test -n "$aros_kernel_ld"; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9235 $as_echo "$aros_kernel_ld" >&6; }
9236 else
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9244 else
9245 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9246 set dummy $aros_kernel_ld; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 case $aros_kernel_ld in
9253 [\\/]* | ?:[\\/]*)
9254 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 break 2
9268 done
9269 done
9270 IFS=$as_save_IFS
9273 esac
9275 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9276 if test -n "$aros_kernel_ld"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9278 $as_echo "$aros_kernel_ld" >&6; }
9279 else
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9287 if test "$aros_kernel_ld" = ""; then
9288 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9291 if test "$aros_kernel_as" = ""; then
9292 if test "$cross_compiling" = "yes" ; then
9293 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9294 set dummy ${kernel_tool_prefix}as; ac_word=$2
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9296 $as_echo_n "checking for $ac_word... " >&6; }
9297 if ${ac_cv_path_aros_kernel_as+:} false; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300 case $aros_kernel_as in
9301 [\\/]* | ?:[\\/]*)
9302 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306 for as_dir in $PATH
9308 IFS=$as_save_IFS
9309 test -z "$as_dir" && as_dir=.
9310 for ac_exec_ext in '' $ac_executable_extensions; do
9311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9312 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9314 break 2
9316 done
9317 done
9318 IFS=$as_save_IFS
9321 esac
9323 aros_kernel_as=$ac_cv_path_aros_kernel_as
9324 if test -n "$aros_kernel_as"; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9326 $as_echo "$aros_kernel_as" >&6; }
9327 else
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9333 else
9334 if test "$GCC" = "yes"; then
9335 aros_gcc_as=`$CC -print-prog-name=as`
9336 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9337 set dummy `basename $aros_gcc_as`; ac_word=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if ${ac_cv_path_aros_kernel_as+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 case $aros_kernel_as in
9344 [\\/]* | ?:[\\/]*)
9345 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349 for as_dir in `dirname $aros_gcc_as`
9351 IFS=$as_save_IFS
9352 test -z "$as_dir" && as_dir=.
9353 for ac_exec_ext in '' $ac_executable_extensions; do
9354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9355 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357 break 2
9359 done
9360 done
9361 IFS=$as_save_IFS
9364 esac
9366 aros_kernel_as=$ac_cv_path_aros_kernel_as
9367 if test -n "$aros_kernel_as"; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9369 $as_echo "$aros_kernel_as" >&6; }
9370 else
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9377 if test "$aros_kernel_as" = ""; then
9378 # Extract the first word of "as", so it can be a program name with args.
9379 set dummy as; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if ${ac_cv_path_aros_kernel_as+:} false; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 case $aros_kernel_as in
9386 [\\/]* | ?:[\\/]*)
9387 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391 for as_dir in $PATH
9393 IFS=$as_save_IFS
9394 test -z "$as_dir" && as_dir=.
9395 for ac_exec_ext in '' $ac_executable_extensions; do
9396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9397 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399 break 2
9401 done
9402 done
9403 IFS=$as_save_IFS
9406 esac
9408 aros_kernel_as=$ac_cv_path_aros_kernel_as
9409 if test -n "$aros_kernel_as"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9411 $as_echo "$aros_kernel_as" >&6; }
9412 else
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9420 else
9421 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9422 set dummy $aros_kernel_as; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if ${ac_cv_path_aros_kernel_as+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 case $aros_kernel_as in
9429 [\\/]* | ?:[\\/]*)
9430 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9440 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9444 done
9445 done
9446 IFS=$as_save_IFS
9449 esac
9451 aros_kernel_as=$ac_cv_path_aros_kernel_as
9452 if test -n "$aros_kernel_as"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9454 $as_echo "$aros_kernel_as" >&6; }
9455 else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9463 if test "$aros_kernel_as" = ""; then
9464 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9467 if test "$aros_kernel_ar" = ""; then
9468 if test "$cross_compiling" = "yes" ; then
9469 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9470 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9472 $as_echo_n "checking for $ac_word... " >&6; }
9473 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 case $aros_kernel_ar in
9477 [\\/]* | ?:[\\/]*)
9478 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482 for as_dir in $PATH
9484 IFS=$as_save_IFS
9485 test -z "$as_dir" && as_dir=.
9486 for ac_exec_ext in '' $ac_executable_extensions; do
9487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9488 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9490 break 2
9492 done
9493 done
9494 IFS=$as_save_IFS
9497 esac
9499 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9500 if test -n "$aros_kernel_ar"; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9502 $as_echo "$aros_kernel_ar" >&6; }
9503 else
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9509 else
9510 if test "$GCC" = "yes"; then
9511 aros_gcc_ar=`$CC -print-prog-name=ar`
9512 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9513 set dummy `basename $aros_gcc_ar`; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 case $aros_kernel_ar in
9520 [\\/]* | ?:[\\/]*)
9521 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525 for as_dir in `dirname $aros_gcc_ar`
9527 IFS=$as_save_IFS
9528 test -z "$as_dir" && as_dir=.
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9531 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9533 break 2
9535 done
9536 done
9537 IFS=$as_save_IFS
9540 esac
9542 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9543 if test -n "$aros_kernel_ar"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9545 $as_echo "$aros_kernel_ar" >&6; }
9546 else
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9553 if test "$aros_kernel_ar" = ""; then
9554 # Extract the first word of "ar", so it can be a program name with args.
9555 set dummy ar; ac_word=$2
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 $as_echo_n "checking for $ac_word... " >&6; }
9558 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 case $aros_kernel_ar in
9562 [\\/]* | ?:[\\/]*)
9563 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567 for as_dir in $PATH
9569 IFS=$as_save_IFS
9570 test -z "$as_dir" && as_dir=.
9571 for ac_exec_ext in '' $ac_executable_extensions; do
9572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9575 break 2
9577 done
9578 done
9579 IFS=$as_save_IFS
9582 esac
9584 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9585 if test -n "$aros_kernel_ar"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9587 $as_echo "$aros_kernel_ar" >&6; }
9588 else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9596 else
9597 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9598 set dummy $aros_kernel_ar; ac_word=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 case $aros_kernel_ar in
9605 [\\/]* | ?:[\\/]*)
9606 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9620 done
9621 done
9622 IFS=$as_save_IFS
9625 esac
9627 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9628 if test -n "$aros_kernel_ar"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9630 $as_echo "$aros_kernel_ar" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9639 if test "$aros_kernel_ar" = ""; then
9640 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9643 if test "$aros_kernel_ranlib" = ""; then
9644 if test "$cross_compiling" = "yes" ; then
9645 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9646 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 case $aros_kernel_ranlib in
9653 [\\/]* | ?:[\\/]*)
9654 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9664 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9668 done
9669 done
9670 IFS=$as_save_IFS
9673 esac
9675 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9676 if test -n "$aros_kernel_ranlib"; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9678 $as_echo "$aros_kernel_ranlib" >&6; }
9679 else
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681 $as_echo "no" >&6; }
9685 else
9686 if test "$GCC" = "yes"; then
9687 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9688 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9689 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9691 $as_echo_n "checking for $ac_word... " >&6; }
9692 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 case $aros_kernel_ranlib in
9696 [\\/]* | ?:[\\/]*)
9697 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701 for as_dir in `dirname $aros_gcc_ranlib`
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9707 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 break 2
9711 done
9712 done
9713 IFS=$as_save_IFS
9716 esac
9718 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9719 if test -n "$aros_kernel_ranlib"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9721 $as_echo "$aros_kernel_ranlib" >&6; }
9722 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9729 if test "$aros_kernel_ranlib" = ""; then
9730 # Extract the first word of "ranlib", so it can be a program name with args.
9731 set dummy ranlib; ac_word=$2
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 $as_echo_n "checking for $ac_word... " >&6; }
9734 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 case $aros_kernel_ranlib in
9738 [\\/]* | ?:[\\/]*)
9739 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 for as_dir in $PATH
9745 IFS=$as_save_IFS
9746 test -z "$as_dir" && as_dir=.
9747 for ac_exec_ext in '' $ac_executable_extensions; do
9748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9749 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9751 break 2
9753 done
9754 done
9755 IFS=$as_save_IFS
9758 esac
9760 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9761 if test -n "$aros_kernel_ranlib"; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9763 $as_echo "$aros_kernel_ranlib" >&6; }
9764 else
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766 $as_echo "no" >&6; }
9772 else
9773 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9774 set dummy $aros_kernel_ranlib; ac_word=$2
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776 $as_echo_n "checking for $ac_word... " >&6; }
9777 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 case $aros_kernel_ranlib in
9781 [\\/]* | ?:[\\/]*)
9782 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9792 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 break 2
9796 done
9797 done
9798 IFS=$as_save_IFS
9801 esac
9803 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9804 if test -n "$aros_kernel_ranlib"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9806 $as_echo "$aros_kernel_ranlib" >&6; }
9807 else
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 $as_echo "no" >&6; }
9815 if test "$aros_kernel_ranlib" = ""; then
9816 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9819 if test "$aros_kernel_nm" = ""; then
9820 if test "$cross_compiling" = "yes" ; then
9821 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9822 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 $as_echo_n "checking for $ac_word... " >&6; }
9825 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 case $aros_kernel_nm in
9829 [\\/]* | ?:[\\/]*)
9830 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834 for as_dir in $PATH
9836 IFS=$as_save_IFS
9837 test -z "$as_dir" && as_dir=.
9838 for ac_exec_ext in '' $ac_executable_extensions; do
9839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 break 2
9844 done
9845 done
9846 IFS=$as_save_IFS
9849 esac
9851 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9852 if test -n "$aros_kernel_nm"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9854 $as_echo "$aros_kernel_nm" >&6; }
9855 else
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9861 else
9862 if test "$GCC" = "yes"; then
9863 aros_gcc_nm=`$CC -print-prog-name=nm`
9864 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9865 set dummy `basename $aros_gcc_nm`; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 case $aros_kernel_nm in
9872 [\\/]* | ?:[\\/]*)
9873 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in `dirname $aros_gcc_nm`
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9887 done
9888 done
9889 IFS=$as_save_IFS
9892 esac
9894 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9895 if test -n "$aros_kernel_nm"; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9897 $as_echo "$aros_kernel_nm" >&6; }
9898 else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9905 if test "$aros_kernel_nm" = ""; then
9906 # Extract the first word of "nm", so it can be a program name with args.
9907 set dummy nm; ac_word=$2
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909 $as_echo_n "checking for $ac_word... " >&6; }
9910 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 case $aros_kernel_nm in
9914 [\\/]* | ?:[\\/]*)
9915 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919 for as_dir in $PATH
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 break 2
9929 done
9930 done
9931 IFS=$as_save_IFS
9934 esac
9936 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9937 if test -n "$aros_kernel_nm"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9939 $as_echo "$aros_kernel_nm" >&6; }
9940 else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9948 else
9949 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9950 set dummy $aros_kernel_nm; ac_word=$2
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9952 $as_echo_n "checking for $ac_word... " >&6; }
9953 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 case $aros_kernel_nm in
9957 [\\/]* | ?:[\\/]*)
9958 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9964 IFS=$as_save_IFS
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9968 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 break 2
9972 done
9973 done
9974 IFS=$as_save_IFS
9977 esac
9979 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9980 if test -n "$aros_kernel_nm"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9982 $as_echo "$aros_kernel_nm" >&6; }
9983 else
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9991 if test "$aros_kernel_nm" = ""; then
9992 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9995 if test "$aros_kernel_strip" = ""; then
9996 if test "$cross_compiling" = "yes" ; then
9997 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
9998 set dummy ${kernel_tool_prefix}strip; ac_word=$2
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 case $aros_kernel_strip in
10005 [\\/]* | ?:[\\/]*)
10006 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
10015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10016 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 break 2
10020 done
10021 done
10022 IFS=$as_save_IFS
10025 esac
10027 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10028 if test -n "$aros_kernel_strip"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10030 $as_echo "$aros_kernel_strip" >&6; }
10031 else
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10037 else
10038 if test "$GCC" = "yes"; then
10039 aros_gcc_strip=`$CC -print-prog-name=strip`
10040 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10041 set dummy `basename $aros_gcc_strip`; ac_word=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 case $aros_kernel_strip in
10048 [\\/]* | ?:[\\/]*)
10049 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in `dirname $aros_gcc_strip`
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10063 done
10064 done
10065 IFS=$as_save_IFS
10068 esac
10070 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10071 if test -n "$aros_kernel_strip"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10073 $as_echo "$aros_kernel_strip" >&6; }
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10081 if test "$aros_kernel_strip" = ""; then
10082 # Extract the first word of "strip", so it can be a program name with args.
10083 set dummy strip; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 case $aros_kernel_strip in
10090 [\\/]* | ?:[\\/]*)
10091 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10105 done
10106 done
10107 IFS=$as_save_IFS
10110 esac
10112 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10113 if test -n "$aros_kernel_strip"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10115 $as_echo "$aros_kernel_strip" >&6; }
10116 else
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10124 else
10125 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10126 set dummy $aros_kernel_strip; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 case $aros_kernel_strip in
10133 [\\/]* | ?:[\\/]*)
10134 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10144 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10148 done
10149 done
10150 IFS=$as_save_IFS
10153 esac
10155 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10156 if test -n "$aros_kernel_strip"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10158 $as_echo "$aros_kernel_strip" >&6; }
10159 else
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10167 if test "$aros_kernel_strip" = ""; then
10168 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10171 # Objcopy and objdump are not required for the kernel
10172 # toolchain on many architectures.
10173 # So we'll look for them, but not make them strictly required.
10175 if test "$aros_kernel_objcopy" = ""; then
10176 if test "$cross_compiling" = "yes" ; then
10177 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10178 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10184 case $aros_kernel_objcopy in
10185 [\\/]* | ?:[\\/]*)
10186 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190 for as_dir in $PATH
10192 IFS=$as_save_IFS
10193 test -z "$as_dir" && as_dir=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10196 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 break 2
10200 done
10201 done
10202 IFS=$as_save_IFS
10205 esac
10207 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10208 if test -n "$aros_kernel_objcopy"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10210 $as_echo "$aros_kernel_objcopy" >&6; }
10211 else
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10217 else
10218 if test "$GCC" = "yes"; then
10219 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10220 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10221 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 case $aros_kernel_objcopy in
10228 [\\/]* | ?:[\\/]*)
10229 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233 for as_dir in `dirname $aros_gcc_objcopy`
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10239 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 break 2
10243 done
10244 done
10245 IFS=$as_save_IFS
10248 esac
10250 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10251 if test -n "$aros_kernel_objcopy"; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10253 $as_echo "$aros_kernel_objcopy" >&6; }
10254 else
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10261 if test "$aros_kernel_objcopy" = ""; then
10262 # Extract the first word of "objcopy", so it can be a program name with args.
10263 set dummy objcopy; ac_word=$2
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265 $as_echo_n "checking for $ac_word... " >&6; }
10266 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10267 $as_echo_n "(cached) " >&6
10268 else
10269 case $aros_kernel_objcopy in
10270 [\\/]* | ?:[\\/]*)
10271 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10281 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10285 done
10286 done
10287 IFS=$as_save_IFS
10290 esac
10292 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10293 if test -n "$aros_kernel_objcopy"; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10295 $as_echo "$aros_kernel_objcopy" >&6; }
10296 else
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10304 else
10305 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10306 set dummy $aros_kernel_objcopy; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 case $aros_kernel_objcopy in
10313 [\\/]* | ?:[\\/]*)
10314 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10324 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10333 esac
10335 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10336 if test -n "$aros_kernel_objcopy"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10338 $as_echo "$aros_kernel_objcopy" >&6; }
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10348 if test "$aros_kernel_objdump" = ""; then
10349 if test "$cross_compiling" = "yes" ; then
10350 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10351 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 case $aros_kernel_objdump in
10358 [\\/]* | ?:[\\/]*)
10359 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10369 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10373 done
10374 done
10375 IFS=$as_save_IFS
10378 esac
10380 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10381 if test -n "$aros_kernel_objdump"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10383 $as_echo "$aros_kernel_objdump" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10390 else
10391 if test "$GCC" = "yes"; then
10392 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10393 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10394 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 case $aros_kernel_objdump in
10401 [\\/]* | ?:[\\/]*)
10402 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in `dirname $aros_gcc_objdump`
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10416 done
10417 done
10418 IFS=$as_save_IFS
10421 esac
10423 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10424 if test -n "$aros_kernel_objdump"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10426 $as_echo "$aros_kernel_objdump" >&6; }
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10434 if test "$aros_kernel_objdump" = ""; then
10435 # Extract the first word of "objdump", so it can be a program name with args.
10436 set dummy objdump; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 case $aros_kernel_objdump in
10443 [\\/]* | ?:[\\/]*)
10444 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10454 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10458 done
10459 done
10460 IFS=$as_save_IFS
10463 esac
10465 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10466 if test -n "$aros_kernel_objdump"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10468 $as_echo "$aros_kernel_objdump" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10477 else
10478 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10479 set dummy $aros_kernel_objdump; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 case $aros_kernel_objdump in
10486 [\\/]* | ?:[\\/]*)
10487 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10501 done
10502 done
10503 IFS=$as_save_IFS
10506 esac
10508 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10509 if test -n "$aros_kernel_objdump"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10511 $as_echo "$aros_kernel_objdump" >&6; }
10512 else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10520 if test "x${crosstools}" != "xyes" ; then
10521 if test "$aros_kernel_objcopy" = ""; then
10522 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10524 if test "$aros_kernel_objdump" = ""; then
10525 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools" >&5
10531 $as_echo_n "checking which target tools... " >&6; }
10532 if test "$crosstools" = "yes"; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10534 $as_echo "$target_tool_prefix" >&6; }
10535 # We are are building AROS crosstools
10536 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10537 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10538 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10539 orig_target_cpp="${tmp_tool_prefix}cpp"
10540 orig_target_ld="${tmp_tool_prefix}ld"
10541 orig_target_as="${tmp_tool_prefix}as"
10542 orig_target_ar="${tmp_tool_prefix}ar"
10543 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10544 orig_target_nm="${tmp_tool_prefix}nm"
10545 orig_target_strip="${tmp_tool_prefix}strip"
10546 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10547 orig_target_objdump="${tmp_tool_prefix}objdump"
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10550 $as_echo "$kernel_tool_prefix" >&6; }
10551 # We are *not* building AROS crosstools - use the kernel tools
10552 orig_target_cpp="${aros_kernel_cpp}"
10553 if test "$orig_target_cpp" = ""; then
10554 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10556 orig_target_cc="${aros_kernel_cc}"
10557 if test "$orig_target_cc" = ""; then
10558 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10560 orig_target_cxx="${aros_kernel_cxx}"
10561 if test "x$orig_target_cxx" != "x" ; then
10562 if test "$orig_target_cxx" = ""; then
10563 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10566 orig_target_ld="${aros_kernel_ld}"
10567 if test "$orig_target_ld" = ""; then
10568 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10570 orig_target_as="${aros_kernel_as}"
10571 if test "$orig_target_as" = ""; then
10572 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10574 orig_target_ar="${aros_kernel_ar}"
10575 if test "$orig_target_ar" = ""; then
10576 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10578 orig_target_ranlib="${aros_kernel_ranlib}"
10579 if test "$orig_target_ranlib" = ""; then
10580 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10582 orig_target_nm="${aros_kernel_nm}"
10583 if test "$orig_target_nm" = ""; then
10584 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10586 orig_target_strip="${aros_kernel_strip}"
10587 if test "$orig_target_strip" = ""; then
10588 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10590 orig_target_objcopy="${aros_kernel_objcopy}"
10591 if test "$orig_target_objcopy" = ""; then
10592 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10594 orig_target_objdump="${aros_kernel_objdump}"
10595 if test "$orig_target_objdump" = ""; then
10596 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10600 # At this point, all aros_kernel_* and aros_target_*
10601 # tools should be set up correctly
10603 CC="$aros_kernel_cc $kernel_tool_flags"
10604 CPP="$aros_kernel_cpp"
10606 #-----------------------------------------------------------------------------
10608 # Disable pointer-signedness warnings if the compiler recognises the option
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
10611 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
10612 save_cflags="$CFLAGS"
10613 if test "$crosstools" != "yes" ; then
10614 CFLAGS="$CFLAGS -Wno-pointer-sign"
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10619 main ()
10623 return 0;
10625 _ACEOF
10626 if ac_fn_c_try_compile "$LINENO"; then :
10627 use_no_sign_warning="yes"
10628 else
10629 use_no_sign_warning="no"
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 else
10633 # we do know it is supported for the smallest version of gcc we are going to build
10634 # we assume it's also supported by later versions
10635 use_no_sign_warning=yes
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
10638 $as_echo "$use_no_sign_warning" >&6; }
10639 if test "x-$use_no_sign_warning" = "x-yes" ; then
10640 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
10642 CFLAGS="$save_cflags"
10644 #-----------------------------------------------------------------------------
10646 # Find all the tools we need to compile. This could be cross-compiling
10647 # though! If that is the case we use the GNU form of the target and
10648 # simply add this to the front of the binary name. This is rather simple,
10649 # but it should work under most circumstances.
10651 # The default tools are to use the same as the host, but only if the
10652 # host and target CPU are the same. With GCC this is normally enough.
10655 aros_cc_pre=""
10656 aros_shared_ld="$aros_host_ld"
10658 aros_target_mkdep="$aros_host_mkdep"
10660 # The default tools executables to be linked to.
10661 if test "$rescomp" != ""; then
10663 if test "" = ""; then
10664 if test "$cross_compiling" = "yes" ; then
10665 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
10666 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10668 $as_echo_n "checking for $ac_word... " >&6; }
10669 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 case $aros_kernel_rescomp in
10673 [\\/]* | ?:[\\/]*)
10674 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10684 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10688 done
10689 done
10690 IFS=$as_save_IFS
10693 esac
10695 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10696 if test -n "$aros_kernel_rescomp"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10698 $as_echo "$aros_kernel_rescomp" >&6; }
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10705 else
10706 if test "$GCC" = "yes"; then
10707 aros_gcc_$rescomp=`$CC -print-prog-name=$rescomp`
10708 # Extract the first word of "`basename $aros_gcc_[$rescomp]`", so it can be a program name with args.
10709 set dummy `basename $aros_gcc_$rescomp`; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 case $aros_kernel_rescomp in
10716 [\\/]* | ?:[\\/]*)
10717 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in `dirname $aros_gcc_$rescomp`
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10727 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10731 done
10732 done
10733 IFS=$as_save_IFS
10736 esac
10738 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10739 if test -n "$aros_kernel_rescomp"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10741 $as_echo "$aros_kernel_rescomp" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10749 if test "$aros_kernel_rescomp" = ""; then
10750 # Extract the first word of "$rescomp", so it can be a program name with args.
10751 set dummy $rescomp; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 case $aros_kernel_rescomp in
10758 [\\/]* | ?:[\\/]*)
10759 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10769 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 break 2
10773 done
10774 done
10775 IFS=$as_save_IFS
10778 esac
10780 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10781 if test -n "$aros_kernel_rescomp"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10783 $as_echo "$aros_kernel_rescomp" >&6; }
10784 else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10792 else
10793 # Extract the first word of "", so it can be a program name with args.
10794 set dummy ; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 case $aros_kernel_rescomp in
10801 [\\/]* | ?:[\\/]*)
10802 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10812 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10816 done
10817 done
10818 IFS=$as_save_IFS
10821 esac
10823 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10824 if test -n "$aros_kernel_rescomp"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10826 $as_echo "$aros_kernel_rescomp" >&6; }
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10835 if test "$aros_kernel_rescomp" = ""; then
10836 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
10840 # Set up the sources for the symlink farm
10841 if test "$crosstools" = "yes"; then
10842 crosstools_target=tools-crosstools
10843 else
10844 crosstools_cxx_target=tools-crosstools
10847 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
10848 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10851 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10852 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10853 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10854 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10855 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10856 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10857 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10859 # aros_cc_pre is a variable that is added to the front of the compiler name
10860 # in the generated aros-gcc shell script. We need this to enable the cache
10861 # to work across cleaned builds. Also, support DISTCC using the correct
10862 # environment variable.
10865 if test "x${DISTCC}" != "x" ; then
10866 if test "x${CCACHE}" != "x" ; then
10867 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10868 else
10869 aros_cc_pre="${DISTCC} "
10871 else
10872 if test "x${CCACHE}" != "x" ; then
10873 aros_cc_pre="${CCACHE} "
10877 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
10879 aros_target_nostdinc_cflags=-nostdinc
10881 aros_target_nostartup_ldflags=-nostartfiles
10883 aros_target_nix_ldflags=-nix
10885 aros_target_detach_ldflags=-detach
10887 aros_target_nostdlib_ldflags=-nostdlib
10890 # Target tools
10891 if test "$crosstools" != "yes"; then
10892 if test "$GCC" = "yes"; then
10893 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10895 else
10896 # We do not know which gcc version we are going to build and what we need to know
10897 # here is different for different versions so this will be set later during the
10898 # build of crosstools.
10899 aros_target_cc_path=@aros_target_cc_path@
10901 aros_target_cpp="${prefix}cpp"
10902 aros_target_cc="${prefix}gcc"
10903 aros_target_cxx="${prefix}g++"
10904 aros_target_as="${prefix}as"
10905 aros_target_ld="${prefix}ld"
10906 aros_target_ar="${prefix}ar $aros_target_ar_flags"
10907 aros_target_objcopy="${prefix}objcopy"
10908 aros_target_objdump="${prefix}objdump"
10909 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
10910 aros_target_nm="${prefix}nm $aros_target_nm_flags"
10911 aros_target_strip="${prefix}strip"
10912 aros_plain_nm="${prefix}nm"
10913 aros_plain_ar="${prefix}ar"
10915 if test "$aros_kernel_includes" != "" ; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10917 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10918 if test "$aros_kernel_cc_includes" = "" ; then
10919 # Try to guess where the directory is.
10920 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10921 if test -d $aros_kernel_cc_includes; then
10922 # Check if there is also an include-fixed directory and add it
10923 # to kernel compiler's include path as it may contain some of
10924 # the headers we need.
10925 if test -d "$aros_kernel_cc_includes"-fixed; then
10926 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10928 # Check for specific includes directory. Neede for Ubuntu 11.10
10929 if test -d "/usr/include/i386-linux-gnu"; then
10930 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
10932 else
10933 # The directory doesn't exist, we need to do some more work.
10934 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10936 # These are the headers we're looking for.
10937 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10938 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10939 zutil.h stdint.h"
10941 dirs=
10942 for h in $headers; do
10943 # Which other headers are needed by each of the above?
10944 deps=$(echo "#include <$h>" | \
10945 $aros_kernel_cc -E -M - 2>/dev/null | \
10946 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10948 # Copy all the needed headers to a directory beneath gendir.
10949 for d in $deps; do
10950 h=$(basename $d)
10951 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10952 sed -n "s,^.*/include\(/.*\),\1,p")
10953 ! test -d $dir && mkdir -p $dir
10954 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10955 done
10956 done
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10960 $as_echo "$aros_kernel_cc_includes" >&6; }
10961 # Adding -nostdinc to kernel includes as they are always used together.
10962 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10965 if test "$crosstools" != "yes"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10967 $as_echo_n "checking for the target compiler's include path... " >&6; }
10968 if test "$aros_target_cc_includes" = "" ; then
10969 #try to guess where the directory is
10970 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10971 if ! test -d $aros_target_cc_includes; then
10972 #the directory doesn't exist, we need to do some more work
10973 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10975 #these are the headers we're looking for
10976 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10977 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10978 zutil.h"
10980 dirs=
10981 for h in $headers; do
10982 #which other headers each of the above headers needs?
10983 deps=$(echo "#include <$h>" | \
10984 $orig_target_cc -E -M - 2>/dev/null | \
10985 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10987 #copy all the needed headers to a directory beneath gendir
10988 for d in $deps; do
10989 h=$(basename $d)
10990 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10991 sed -n "s,^.*/include\(/.*\),\1,p")
10992 ! test -d $dir && mkdir -p $dir
10993 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10994 done
10995 done
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10999 $as_echo "$aros_target_cc_includes" >&6; }
11000 else
11001 # We do not know which gcc version we are going to build and what we need to know
11002 # here is different for different versions so this will be set later during the
11003 # build of crosstools.
11004 aros_target_cc_includes=@aros_target_cc_includes@
11008 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11009 # On GCC >= 4.0 -iquote should be used
11012 save_cc="$CC"
11013 save_cflags="$CFLAGS"
11014 CFLAGS="-iquote."
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11016 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11017 if test "x-$crosstools" != "x-yes"; then
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11022 main ()
11026 return 0;
11028 _ACEOF
11029 if ac_fn_c_try_compile "$LINENO"; then :
11030 has_iquote="yes"
11031 else
11032 has_iquote="no"
11034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035 else
11036 # we do know it is supported for the smallest version of gcc we are going to build
11037 # we assume it's also supported by later versions
11038 has_iquote=yes
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11041 $as_echo "$has_iquote" >&6; }
11042 if test "x-$has_iquote" = "x-yes" ; then
11043 host_cflags_iquote=-iquote
11044 host_cflags_iquote_end=
11045 else
11046 host_cflags_iquote=-I
11047 host_cflags_iquote_end=-I-
11049 kernel_cflags_iquote=$host_cflags_iquote
11050 kernel_cflags_iquote_end=$host_cflags_iquote_end
11051 if test "x-$cross_compiling" = "x-yes"; then
11052 CC="$aros_kernel_cc"
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11054 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11055 if test "x-$crosstools" != "x-yes"; then
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11060 main ()
11064 return 0;
11066 _ACEOF
11067 if ac_fn_c_try_compile "$LINENO"; then :
11068 use_no_stack_protector="yes"
11069 else
11070 use_no_stack_protector="no"
11072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11073 else
11074 # we do know it is supported for the smallest version of gcc we are going to build
11075 # we assume it's also supported by later versions
11076 use_no_stack_protector=yes
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11079 $as_echo "$use_no_stack_protector" >&6; }
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11081 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11082 if test "x-$crosstools" != "x-yes"; then
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11087 main ()
11091 return 0;
11093 _ACEOF
11094 if ac_fn_c_try_compile "$LINENO"; then :
11095 has_iquote="yes"
11096 else
11097 has_iquote="no"
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100 else
11101 # we do know it is supported for the smallest version of gcc we are going to build
11102 # we assume it's also supported by later versions
11103 has_iquote=yes
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11106 $as_echo "$has_iquote" >&6; }
11107 if test "x-$has_iquote" = "x-yes" ; then
11108 kernel_cflags_iquote=-iquote
11109 kernel_cflags_iquote_end=
11110 else
11111 kernel_cflags_iquote=-I
11112 kernel_cflags_iquote_end=-I-
11115 aros_cflags_iquote=$kernel_cflags_iquote
11116 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11117 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11118 CC="$orig_target_cc"
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11120 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11121 if test "x-$crosstools" != "x-yes"; then
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11126 main ()
11130 return 0;
11132 _ACEOF
11133 if ac_fn_c_try_compile "$LINENO"; then :
11134 has_iquote="yes"
11135 else
11136 has_iquote="no"
11138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 else
11140 # we do know it is supported for the smallest version of gcc we are going to build
11141 # we assume it's also supported by later versions
11142 has_iquote=yes
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11145 $as_echo "$has_iquote" >&6; }
11146 if test "x-$has_iquote" = "x-yes" ; then
11147 aros_cflags_iquote=-iquote
11148 aros_cflags_iquote_end=
11149 else
11150 aros_cflags_iquote=-I
11151 aros_cflags_iquote_end=-I-
11154 if test "x-$use_no_stack_protector" = "x-yes" ; then
11155 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11159 #-----------------------------------------------------------------------------
11161 # Check if the target compiler supports some options used for delinting:
11162 # -Wunused-but-set-variable
11163 # -Warray-bounds
11164 # -Wenum-compare
11165 # -Wstrict-overflow
11166 # -Wformat-security
11168 if test "x-$crosstools" != "x-yes"; then
11169 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11170 CC="$orig_target_cc"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11173 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11174 CFLAGS=-Wunused-but-set-variable
11175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11179 main ()
11183 return 0;
11185 _ACEOF
11186 if ac_fn_c_try_compile "$LINENO"; then :
11187 aros_unused_but_set_variable="yes"
11188 else
11189 aros_unused_but_set_variable="no"
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11193 $as_echo "$aros_unused_but_set_variable" >&6; }
11194 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11195 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11199 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11200 CFLAGS=-Warray-bounds
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11205 main ()
11209 return 0;
11211 _ACEOF
11212 if ac_fn_c_try_compile "$LINENO"; then :
11213 aros_array_bounds="yes"
11214 else
11215 aros_array_bounds="no"
11217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11219 $as_echo "$aros_array_bounds" >&6; }
11220 if test "x-$aros_array_bounds" = "x-yes" ; then
11221 aros_cflags_array_bounds=-Wno-array-bounds
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11225 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11226 CFLAGS=-Wenum-compare
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11231 main ()
11235 return 0;
11237 _ACEOF
11238 if ac_fn_c_try_compile "$LINENO"; then :
11239 aros_enum_compare="yes"
11240 else
11241 aros_enum_compare="no"
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11245 $as_echo "$aros_enum_compare" >&6; }
11246 if test "x-$aros_enum_compare" = "x-yes" ; then
11247 aros_cflags_enum_compare=-Wno-enum-compare
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11251 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11252 CFLAGS=-Wstrict-overflow
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11257 main ()
11261 return 0;
11263 _ACEOF
11264 if ac_fn_c_try_compile "$LINENO"; then :
11265 aros_strict_overflow="yes"
11266 else
11267 aros_strict_overflow="no"
11269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11271 $as_echo "$aros_strict_overflow" >&6; }
11272 if test "x-$aros_strict_overflow" = "x-yes" ; then
11273 aros_cflags_strict_overflow=-Wno-strict-overflow
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11277 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11278 CFLAGS=-Wformat-security
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11283 main ()
11287 return 0;
11289 _ACEOF
11290 if ac_fn_c_try_compile "$LINENO"; then :
11291 aros_format_security="yes"
11292 else
11293 aros_format_security="no"
11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11297 $as_echo "$aros_format_security" >&6; }
11298 if test "x-$aros_format_security" = "x-yes" ; then
11299 aros_cflags_format_security=-Wno-format-security
11301 else
11302 # We do not know which gcc version we are going to build and what we need to know
11303 # here is different for different versions so this will be set later during the
11304 # build of crosstools.
11305 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
11306 aros_cflags_array_bounds=@aros_cflags_array_bounds@
11307 aros_cflags_enum_compare=@aros_cflags_enum_compare@
11308 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
11309 aros_cflags_format_security=@aros_cflags_format_security@
11312 #-----------------------------------------------------------------------------
11314 # Check if we can explicitly choose older version of symbol hashing
11316 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11317 CC="$aros_kernel_cc"
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11319 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11324 main ()
11328 return 0;
11330 _ACEOF
11331 if ac_fn_c_try_link "$LINENO"; then :
11332 use_hash_style="yes"
11333 else
11334 use_hash_style="no"
11336 rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11339 $as_echo "$use_hash_style" >&6; }
11340 if test "x-$use_hash_style" = "x-yes" ; then
11341 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11343 CC="$save_cc"
11344 CFLAGS="$save_cflags"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11355 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11357 # Check whether --with-resolution was given.
11358 if test "${with_resolution+set}" = set; then :
11359 withval=$with_resolution; resolution=$withval
11360 else
11361 resolution=none
11364 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11365 if test "$resolution" = "yes" ; then
11366 resolution="none"
11368 if test "$resolution" = "no" ; then
11369 resolution="none"
11371 if test "$resolution" != "none" ; then
11372 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11373 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11374 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11377 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11378 aros_cv_default_wbwidth=$aros_default_wbwidth
11379 aros_cv_default_wbheight=$aros_default_wbheight
11380 aros_cv_default_wbdepth=$aros_default_wbdepth
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11383 $as_echo_n "checking if serial debug is enabled... " >&6; }
11385 # Check whether --with-serial-debug was given.
11386 if test "${with_serial_debug+set}" = set; then :
11387 withval=$with_serial_debug; serial_debug=$withval
11388 else
11389 serial_debug=none
11392 if test "$aros_serial_debug" = 0 ; then
11393 serial_debug_forced=""
11394 if test "$serial_debug" = "yes" ; then
11395 serial_debug="1"
11397 if test "$serial_debug" = "no" ; then
11398 serial_debug="none"
11400 else
11401 serial_debug_forced="(forced)"
11402 serial_debug=$aros_serial_debug
11404 if test "$serial_debug" != "none" ; then
11405 aros_serial_debug=$serial_debug
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11407 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11414 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11415 # Check whether --enable-palm_debug_hack was given.
11416 if test "${enable_palm_debug_hack+set}" = set; then :
11417 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11418 else
11419 palm_debug_hack="no"
11422 if test "$palm_debug_hack" = "yes" ; then
11423 aros_palm_debug_hack="1"
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11426 $as_echo "$palm_debug_hack" >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11429 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11430 # Check whether --enable-usb30_code was given.
11431 if test "${enable_usb30_code+set}" = set; then :
11432 enableval=$enable_usb30_code; usb30_code="yes"
11433 else
11434 usb30_code="no"
11437 if test "$usb30_code" = "yes" ; then
11438 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11439 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11442 $as_echo "$usb30_code" >&6; }
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11445 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11446 # Check whether --enable-nesting_supervisor was given.
11447 if test "${enable_nesting_supervisor+set}" = set; then :
11448 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11449 else
11450 nesting_supervisor="no"
11453 if test "$nesting_supervisor" = "yes" ; then
11454 aros_nesting_supervisor="1"
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11457 $as_echo "$nesting_supervisor" >&6; }
11459 if test "$aros_enable_mmu" = "" ; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11461 $as_echo_n "checking if MMU support is enabled... " >&6; }
11462 # Check whether --enable-mmu was given.
11463 if test "${enable_mmu+set}" = set; then :
11464 enableval=$enable_mmu; aros_enable_mmu=$enableval
11465 else
11466 aros_enable_mmu="yes"
11469 if test "$aros_enable_mmu" = "" ; then
11470 aros_enable_mmu="yes"
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11473 $as_echo "$aros_enable_mmu" >&6; }
11475 if test "$aros_enable_mmu" = "no" ; then
11476 aros_enable_mmu="0"
11477 else
11478 aros_enable_mmu="1"
11482 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11484 if test "x-$need_dlopen" != "x-no" ; then
11485 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11486 if test "x$ac_cv_func_dlopen" = xyes; then :
11487 have_dl="yes"
11488 else
11489 have_dl="no"
11492 if test "x-$have_dl" = "x-no" ; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11494 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11495 if ${ac_cv_lib_dl_dlopen+:} false; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-ldl $LIBS"
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char dlopen ();
11511 main ()
11513 return dlopen ();
11515 return 0;
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519 ac_cv_lib_dl_dlopen=yes
11520 else
11521 ac_cv_lib_dl_dlopen=no
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11528 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11529 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11530 have_dl="yes"
11531 aros_host_ldflags="$aros_host_ldflags -ldl"
11532 else
11533 have_dl="no"
11537 if test "x-$have_dl" = "x-no" ; then
11538 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11543 # Check whether --enable-x11_hidd was given.
11544 if test "${enable_x11_hidd+set}" = set; then :
11545 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11546 else
11547 x11_hidd="$need_x11"
11550 case "x-$x11_hidd" in
11551 x-yes|x-no|x-auto) ;;
11552 *) x11_hidd="$need_x11" ;;
11553 esac
11555 ENABLE_X11=0
11557 if test "x-$x11_hidd" != "x-no" ; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11560 $as_echo_n "checking for X... " >&6; }
11563 # Check whether --with-x was given.
11564 if test "${with_x+set}" = set; then :
11565 withval=$with_x;
11568 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11569 if test "x$with_x" = xno; then
11570 # The user explicitly disabled X.
11571 have_x=disabled
11572 else
11573 case $x_includes,$x_libraries in #(
11574 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11575 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 # One or both of the vars are not set, and there is no cached value.
11579 ac_x_includes=no ac_x_libraries=no
11580 rm -f -r conftest.dir
11581 if mkdir conftest.dir; then
11582 cd conftest.dir
11583 cat >Imakefile <<'_ACEOF'
11584 incroot:
11585 @echo incroot='${INCROOT}'
11586 usrlibdir:
11587 @echo usrlibdir='${USRLIBDIR}'
11588 libdir:
11589 @echo libdir='${LIBDIR}'
11590 _ACEOF
11591 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11592 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11593 for ac_var in incroot usrlibdir libdir; do
11594 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11595 done
11596 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11597 for ac_extension in a so sl dylib la dll; do
11598 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11599 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11600 ac_im_usrlibdir=$ac_im_libdir; break
11602 done
11603 # Screen out bogus values from the imake configuration. They are
11604 # bogus both because they are the default anyway, and because
11605 # using them would break gcc on systems where it needs fixed includes.
11606 case $ac_im_incroot in
11607 /usr/include) ac_x_includes= ;;
11608 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11609 esac
11610 case $ac_im_usrlibdir in
11611 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11612 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11613 esac
11615 cd ..
11616 rm -f -r conftest.dir
11619 # Standard set of common directories for X headers.
11620 # Check X11 before X11Rn because it is often a symlink to the current release.
11621 ac_x_header_dirs='
11622 /usr/X11/include
11623 /usr/X11R7/include
11624 /usr/X11R6/include
11625 /usr/X11R5/include
11626 /usr/X11R4/include
11628 /usr/include/X11
11629 /usr/include/X11R7
11630 /usr/include/X11R6
11631 /usr/include/X11R5
11632 /usr/include/X11R4
11634 /usr/local/X11/include
11635 /usr/local/X11R7/include
11636 /usr/local/X11R6/include
11637 /usr/local/X11R5/include
11638 /usr/local/X11R4/include
11640 /usr/local/include/X11
11641 /usr/local/include/X11R7
11642 /usr/local/include/X11R6
11643 /usr/local/include/X11R5
11644 /usr/local/include/X11R4
11646 /usr/X386/include
11647 /usr/x386/include
11648 /usr/XFree86/include/X11
11650 /usr/include
11651 /usr/local/include
11652 /usr/unsupported/include
11653 /usr/athena/include
11654 /usr/local/x11r5/include
11655 /usr/lpp/Xamples/include
11657 /usr/openwin/include
11658 /usr/openwin/share/include'
11660 if test "$ac_x_includes" = no; then
11661 # Guess where to find include files, by looking for Xlib.h.
11662 # First, try using that file with no special directory specified.
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665 #include <X11/Xlib.h>
11666 _ACEOF
11667 if ac_fn_c_try_cpp "$LINENO"; then :
11668 # We can compile using X headers with no special include directory.
11669 ac_x_includes=
11670 else
11671 for ac_dir in $ac_x_header_dirs; do
11672 if test -r "$ac_dir/X11/Xlib.h"; then
11673 ac_x_includes=$ac_dir
11674 break
11676 done
11678 rm -f conftest.err conftest.i conftest.$ac_ext
11679 fi # $ac_x_includes = no
11681 if test "$ac_x_libraries" = no; then
11682 # Check for the libraries.
11683 # See if we find them without any special options.
11684 # Don't add to $LIBS permanently.
11685 ac_save_LIBS=$LIBS
11686 LIBS="-lX11 $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689 #include <X11/Xlib.h>
11691 main ()
11693 XrmInitialize ()
11695 return 0;
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 LIBS=$ac_save_LIBS
11700 # We can link X programs with no special library path.
11701 ac_x_libraries=
11702 else
11703 LIBS=$ac_save_LIBS
11704 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11706 # Don't even attempt the hair of trying to link an X program!
11707 for ac_extension in a so sl dylib la dll; do
11708 if test -r "$ac_dir/libX11.$ac_extension"; then
11709 ac_x_libraries=$ac_dir
11710 break 2
11712 done
11713 done
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717 fi # $ac_x_libraries = no
11719 case $ac_x_includes,$ac_x_libraries in #(
11720 no,* | *,no | *\'*)
11721 # Didn't find X, or a directory has "'" in its name.
11722 ac_cv_have_x="have_x=no";; #(
11724 # Record where we found X for the cache.
11725 ac_cv_have_x="have_x=yes\
11726 ac_x_includes='$ac_x_includes'\
11727 ac_x_libraries='$ac_x_libraries'"
11728 esac
11730 ;; #(
11731 *) have_x=yes;;
11732 esac
11733 eval "$ac_cv_have_x"
11734 fi # $with_x != no
11736 if test "$have_x" != yes; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11738 $as_echo "$have_x" >&6; }
11739 no_x=yes
11740 else
11741 # If each of the values was on the command line, it overrides each guess.
11742 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11743 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11744 # Update the cache value to reflect the command line values.
11745 ac_cv_have_x="have_x=yes\
11746 ac_x_includes='$x_includes'\
11747 ac_x_libraries='$x_libraries'"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11749 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11753 x_cflags=
11754 for path in $x_libraries
11756 x_cflags="$x_cflags -L$path"
11757 done
11759 for path in $x_includes
11761 x_cflags="$x_cflags -I$path"
11762 done
11764 if test "x-$no_x" = "x-yes" ; then
11766 if test "x-$x11_hidd" != "x-auto" ; then
11767 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11770 else
11771 x11_hidd_target=kernel-x11gfx-kobj
11772 ENABLE_X11=1
11774 # Check whether --enable-x11_shm was given.
11775 if test "${enable_x11_shm+set}" = set; then :
11776 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11777 else
11778 x11_hidd_shm="auto"
11781 case "x-$x11_hidd_shm" in
11782 x-yes|x-no|x-auto) ;;
11783 *) x11_hidd_shm="auto" ;;
11784 esac
11786 have_xshm=no
11788 if test "x-$x11_hidd_shm" != "x-no" ; then
11790 for ac_header in sys/ipc.h
11791 do :
11792 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11793 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_SYS_IPC_H 1
11796 _ACEOF
11800 done
11802 for ac_header in sys/shm.h
11803 do :
11804 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11805 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11806 cat >>confdefs.h <<_ACEOF
11807 #define HAVE_SYS_SHM_H 1
11808 _ACEOF
11812 done
11815 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11817 save_cflags="$CFLAGS"
11818 CFLAGS="$CFLAGS $x_cflags"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11820 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11821 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 ac_check_lib_save_LIBS=$LIBS
11825 LIBS="-lXext $LIBS"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char XShmQueryExtension ();
11837 main ()
11839 return XShmQueryExtension ();
11841 return 0;
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 ac_cv_lib_Xext_XShmQueryExtension=yes
11846 else
11847 ac_cv_lib_Xext_XShmQueryExtension=no
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11854 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11855 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11856 have_xshm=yes
11859 CFLAGS="$save_cflags"
11863 if test "x-$have_xshm" = "x-yes" ; then
11864 DO_XSHM_SUPPORT="1"
11865 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11866 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11867 else
11868 DO_XSHM_SUPPORT="0"
11872 # Check whether --enable-x11_vidmode was given.
11873 if test "${enable_x11_vidmode+set}" = set; then :
11874 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11875 else
11876 x11_hidd_vidmode="auto"
11879 case "x-$x11_hidd_vidmode" in
11880 x-yes|x-no|x-auto) ;;
11881 *) x11_hidd_vidmode="auto" ;;
11882 esac
11884 have_vidmode=no
11886 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11888 save_cflags="$CFLAGS"
11889 CFLAGS="$CFLAGS $x_cflags"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11891 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11892 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 ac_check_lib_save_LIBS=$LIBS
11896 LIBS="-lXxf86vm $LIBS"
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 char XF86VidModeQueryExtension ();
11908 main ()
11910 return XF86VidModeQueryExtension ();
11912 return 0;
11914 _ACEOF
11915 if ac_fn_c_try_link "$LINENO"; then :
11916 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11917 else
11918 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11920 rm -f core conftest.err conftest.$ac_objext \
11921 conftest$ac_exeext conftest.$ac_ext
11922 LIBS=$ac_check_lib_save_LIBS
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11925 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11926 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11927 have_vidmode=yes
11930 CFLAGS="$save_cflags"
11933 if test "x-$have_vidmode" = "x-yes" ; then
11934 DO_VIDMODE_SUPPORT="1"
11935 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11936 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11937 else
11938 DO_VIDMODE_SUPPORT="0"
11942 aros_host_x11_includes=$x_includes
11943 aros_host_x11_libdirs=$x_libraries
11947 # Check whether --enable-sdl_hidd was given.
11948 if test "${enable_sdl_hidd+set}" = set; then :
11949 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11950 else
11951 sdl_hidd="auto"
11954 case "x-$sdl_hidd" in
11955 x-yes|x-no|x-auto) ;;
11956 *) sdl_hidd="auto" ;;
11957 esac
11959 if test "x-$sdl_hidd" != "x-no" ; then
11962 # Check whether --with-sdl-prefix was given.
11963 if test "${with_sdl_prefix+set}" = set; then :
11964 withval=$with_sdl_prefix; sdl_prefix="$withval"
11965 else
11966 sdl_prefix=""
11970 # Check whether --with-sdl-exec-prefix was given.
11971 if test "${with_sdl_exec_prefix+set}" = set; then :
11972 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11973 else
11974 sdl_exec_prefix=""
11977 # Check whether --enable-sdltest was given.
11978 if test "${enable_sdltest+set}" = set; then :
11979 enableval=$enable_sdltest;
11980 else
11981 enable_sdltest=yes
11985 if test x$sdl_exec_prefix != x ; then
11986 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11987 if test x${SDL_CONFIG+set} != xset ; then
11988 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11991 if test x$sdl_prefix != x ; then
11992 sdl_args="$sdl_args --prefix=$sdl_prefix"
11993 if test x${SDL_CONFIG+set} != xset ; then
11994 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11998 if test "x$prefix" != xNONE; then
11999 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12001 # Extract the first word of "sdl-config", so it can be a program name with args.
12002 set dummy sdl-config; ac_word=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if ${ac_cv_path_SDL_CONFIG+:} false; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 case $SDL_CONFIG in
12009 [\\/]* | ?:[\\/]*)
12010 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12020 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12024 done
12025 done
12026 IFS=$as_save_IFS
12028 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12030 esac
12032 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12033 if test -n "$SDL_CONFIG"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12035 $as_echo "$SDL_CONFIG" >&6; }
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12042 min_sdl_version=1.2.10
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12044 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12045 no_sdl=""
12046 if test "$SDL_CONFIG" = "no" ; then
12047 no_sdl=yes
12048 else
12049 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12050 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12052 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12053 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12054 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12055 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12056 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12057 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12058 if test "x$enable_sdltest" = "xyes" ; then
12059 ac_save_CFLAGS="$CFLAGS"
12060 ac_save_CXXFLAGS="$CXXFLAGS"
12061 ac_save_LIBS="$LIBS"
12062 CFLAGS="$CFLAGS $SDL_CFLAGS"
12063 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12064 LIBS="$LIBS $SDL_LIBS"
12065 rm -f conf.sdltest
12066 if test "$cross_compiling" = yes; then :
12067 echo $ac_n "cross compiling; assumed OK... $ac_c"
12068 else
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12072 #include <stdio.h>
12073 #include <stdlib.h>
12074 #include <string.h>
12075 #include "SDL.h"
12077 char*
12078 my_strdup (char *str)
12080 char *new_str;
12082 if (str)
12084 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12085 strcpy (new_str, str);
12087 else
12088 new_str = NULL;
12090 return new_str;
12093 int main (int argc, char *argv[])
12095 int major, minor, micro;
12096 char *tmp_version;
12098 /* This hangs on some systems (?)
12099 system ("touch conf.sdltest");
12101 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12103 /* HP/UX 9 (%@#!) writes to sscanf strings */
12104 tmp_version = my_strdup("$min_sdl_version");
12105 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12106 printf("%s, bad version string\n", "$min_sdl_version");
12107 exit(1);
12110 if (($sdl_major_version > major) ||
12111 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12112 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12114 return 0;
12116 else
12118 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12119 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12120 printf("*** best to upgrade to the required version.\n");
12121 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12122 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12123 printf("*** config.cache before re-running configure\n");
12124 return 1;
12129 _ACEOF
12130 if ac_fn_c_try_run "$LINENO"; then :
12132 else
12133 no_sdl=yes
12135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12136 conftest.$ac_objext conftest.beam conftest.$ac_ext
12139 CFLAGS="$ac_save_CFLAGS"
12140 CXXFLAGS="$ac_save_CXXFLAGS"
12141 LIBS="$ac_save_LIBS"
12144 if test "x$no_sdl" = x ; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12146 $as_echo "yes" >&6; }
12147 have_sdl="yes"
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 if test "$SDL_CONFIG" = "no" ; then
12152 echo "*** The sdl-config script installed by SDL could not be found"
12153 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12154 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12155 echo "*** full path to sdl-config."
12156 else
12157 if test -f conf.sdltest ; then
12159 else
12160 echo "*** Could not run SDL test program, checking why..."
12161 CFLAGS="$CFLAGS $SDL_CFLAGS"
12162 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12163 LIBS="$LIBS $SDL_LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 #include <stdio.h>
12168 #include "SDL.h"
12170 int main(int argc, char *argv[])
12171 { return 0; }
12172 #undef main
12173 #define main K_and_R_C_main
12176 main ()
12178 return 0;
12180 return 0;
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"; then :
12184 echo "*** The test program compiled, but did not run. This usually means"
12185 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12186 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12187 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12188 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12189 echo "*** is required on your system"
12190 echo "***"
12191 echo "*** If you have an old version installed, it is best to remove it, although"
12192 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12193 else
12194 echo "*** The test program failed to compile or link. See the file config.log for the"
12195 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12196 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12197 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12199 rm -f core conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
12201 CFLAGS="$ac_save_CFLAGS"
12202 CXXFLAGS="$ac_save_CXXFLAGS"
12203 LIBS="$ac_save_LIBS"
12206 SDL_CFLAGS=""
12207 SDL_LIBS=""
12208 have_sdl="no"
12212 rm -f conf.sdltest
12215 if test "x-$have_sdl" != "x-yes" ; then
12217 if test "x-$sdl_hidd" != "x-auto" ; then
12218 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12221 else
12222 sdl_hidd_target=kernel-hidd-sdl
12223 aros_host_sdl_cflags=SDL_CFLAGS
12224 aros_host_sdl_libs=SDL_LIBS
12228 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12229 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12234 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12235 oss_library_target=workbench-libs-oss-unix
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12241 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12242 # Check whether --enable-dbus was given.
12243 if test "${enable_dbus+set}" = set; then :
12244 enableval=$enable_dbus; dbus="yes"
12245 else
12246 dbus="no"
12249 if test "$dbus" = "yes" ; then
12250 ENABLE_DBUS=1
12251 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12252 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12253 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12254 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12255 else
12256 ENABLE_DBUS=0
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12259 $as_echo "$dbus" >&6; }
12261 if test "$use_kernel_cc_wrapper" = "yes" ; then
12262 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12265 if test "${crosstools}" != "yes" ; then
12266 aros_target_toolchain=no
12267 else
12268 aros_target_toolchain=yes
12272 # Generic
12284 # Compatability with other Amiga-like operation systems
12287 # Host related
12315 # Target Related
12379 # Delinting target compiler flags
12386 # Graphics Related
12403 # Native version related
12406 # Palm native version related
12409 # USB3.0 code
12412 # Unix/Hosted version related
12415 # MMU related
12418 # Apple iOS related
12423 # Android related
12427 # DBUS related
12434 #X11 related
12437 # Debug related
12443 # Collect-aros stuff: "-ius" to ignore undefined symbols
12446 # C compiler related
12449 case "$aros_flavour" in
12450 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12451 aros_flavour="emulation" ;;
12452 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12453 aros_flavour="emulation" ;;
12454 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12455 aros_flavour="standalone";;
12456 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12457 aros_flavour="standalone";;
12458 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12459 aros_flavour="native" ;;
12460 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12461 aros_flavour="native" ;;
12462 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12463 aros_flavour="linklib" ;;
12464 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12465 aros_flavour="palmnative" ;;
12466 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12467 aros_flavour="mac68knative" ;;
12468 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12469 aros_flavour="ppcnative" ;;
12470 esac
12472 if test ! -d ${aros_inc_dir} ; then
12473 ${MKDIR} ${aros_inc_dir}
12475 if test ! -d ${aros_geninc_dir} ; then
12476 ${MKDIR} ${aros_geninc_dir}
12478 if test ! -d ${aros_hostcfg_dir} ; then
12479 ${MKDIR} ${aros_hostcfg_dir}
12481 if test ! -d ${aros_targetcfg_dir} ; then
12482 ${MKDIR} ${aros_targetcfg_dir}
12484 if test ! -d ${aros_tools_dir} ; then
12485 ${MKDIR} ${aros_tools_dir}
12487 if test ! -d ${aros_scripts_dir} ; then
12488 ${MKDIR} ${aros_scripts_dir}
12491 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12494 ac_config_commands="$ac_config_commands compiler_executable"
12496 ac_config_commands="$ac_config_commands genmf_executable"
12499 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"
12502 cat >confcache <<\_ACEOF
12503 # This file is a shell script that caches the results of configure
12504 # tests run on this system so they can be shared between configure
12505 # scripts and configure runs, see configure's option --config-cache.
12506 # It is not useful on other systems. If it contains results you don't
12507 # want to keep, you may remove or edit it.
12509 # config.status only pays attention to the cache file if you give it
12510 # the --recheck option to rerun configure.
12512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12514 # following values.
12516 _ACEOF
12518 # The following way of writing the cache mishandles newlines in values,
12519 # but we know of no workaround that is simple, portable, and efficient.
12520 # So, we kill variables containing newlines.
12521 # Ultrix sh set writes to stderr and can't be redirected directly,
12522 # and sets the high bit in the cache file unless we assign to the vars.
12524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12525 eval ac_val=\$$ac_var
12526 case $ac_val in #(
12527 *${as_nl}*)
12528 case $ac_var in #(
12529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12531 esac
12532 case $ac_var in #(
12533 _ | IFS | as_nl) ;; #(
12534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12535 *) { eval $ac_var=; unset $ac_var;} ;;
12536 esac ;;
12537 esac
12538 done
12540 (set) 2>&1 |
12541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12542 *${as_nl}ac_space=\ *)
12543 # `set' does not quote correctly, so add quotes: double-quote
12544 # substitution turns \\\\ into \\, and sed turns \\ into \.
12545 sed -n \
12546 "s/'/'\\\\''/g;
12547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12548 ;; #(
12550 # `set' quotes correctly as required by POSIX, so do not add quotes.
12551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12553 esac |
12554 sort
12556 sed '
12557 /^ac_cv_env_/b end
12558 t clear
12559 :clear
12560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12561 t end
12562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12563 :end' >>confcache
12564 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12565 if test -w "$cache_file"; then
12566 if test "x$cache_file" != "x/dev/null"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12568 $as_echo "$as_me: updating cache $cache_file" >&6;}
12569 if test ! -f "$cache_file" || test -h "$cache_file"; then
12570 cat confcache >"$cache_file"
12571 else
12572 case $cache_file in #(
12573 */* | ?:*)
12574 mv -f confcache "$cache_file"$$ &&
12575 mv -f "$cache_file"$$ "$cache_file" ;; #(
12577 mv -f confcache "$cache_file" ;;
12578 esac
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12583 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12586 rm -f confcache
12588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12589 # Let make expand exec_prefix.
12590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12592 DEFS=-DHAVE_CONFIG_H
12594 ac_libobjs=
12595 ac_ltlibobjs=
12597 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12598 # 1. Remove the extension, and $U if already installed.
12599 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12600 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12601 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12602 # will be set to the directory where LIBOBJS objects are built.
12603 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12604 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12605 done
12606 LIBOBJS=$ac_libobjs
12608 LTLIBOBJS=$ac_ltlibobjs
12612 : "${CONFIG_STATUS=./config.status}"
12613 ac_write_fail=0
12614 ac_clean_files_save=$ac_clean_files
12615 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12617 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12618 as_write_fail=0
12619 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12620 #! $SHELL
12621 # Generated by $as_me.
12622 # Run this file to recreate the current configuration.
12623 # Compiler output produced by configure, useful for debugging
12624 # configure, is in config.log if it exists.
12626 debug=false
12627 ac_cs_recheck=false
12628 ac_cs_silent=false
12630 SHELL=\${CONFIG_SHELL-$SHELL}
12631 export SHELL
12632 _ASEOF
12633 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12634 ## -------------------- ##
12635 ## M4sh Initialization. ##
12636 ## -------------------- ##
12638 # Be more Bourne compatible
12639 DUALCASE=1; export DUALCASE # for MKS sh
12640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12641 emulate sh
12642 NULLCMD=:
12643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12644 # is contrary to our usage. Disable this feature.
12645 alias -g '${1+"$@"}'='"$@"'
12646 setopt NO_GLOB_SUBST
12647 else
12648 case `(set -o) 2>/dev/null` in #(
12649 *posix*) :
12650 set -o posix ;; #(
12651 *) :
12653 esac
12657 as_nl='
12659 export as_nl
12660 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12661 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12664 # Prefer a ksh shell builtin over an external printf program on Solaris,
12665 # but without wasting forks for bash or zsh.
12666 if test -z "$BASH_VERSION$ZSH_VERSION" \
12667 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12668 as_echo='print -r --'
12669 as_echo_n='print -rn --'
12670 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12671 as_echo='printf %s\n'
12672 as_echo_n='printf %s'
12673 else
12674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12675 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12676 as_echo_n='/usr/ucb/echo -n'
12677 else
12678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12679 as_echo_n_body='eval
12680 arg=$1;
12681 case $arg in #(
12682 *"$as_nl"*)
12683 expr "X$arg" : "X\\(.*\\)$as_nl";
12684 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12685 esac;
12686 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12688 export as_echo_n_body
12689 as_echo_n='sh -c $as_echo_n_body as_echo'
12691 export as_echo_body
12692 as_echo='sh -c $as_echo_body as_echo'
12695 # The user is always right.
12696 if test "${PATH_SEPARATOR+set}" != set; then
12697 PATH_SEPARATOR=:
12698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12700 PATH_SEPARATOR=';'
12705 # IFS
12706 # We need space, tab and new line, in precisely that order. Quoting is
12707 # there to prevent editors from complaining about space-tab.
12708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12709 # splitting by setting IFS to empty value.)
12710 IFS=" "" $as_nl"
12712 # Find who we are. Look in the path if we contain no directory separator.
12713 as_myself=
12714 case $0 in #((
12715 *[\\/]* ) as_myself=$0 ;;
12716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
12721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12722 done
12723 IFS=$as_save_IFS
12726 esac
12727 # We did not find ourselves, most probably we were run as `sh COMMAND'
12728 # in which case we are not to be found in the path.
12729 if test "x$as_myself" = x; then
12730 as_myself=$0
12732 if test ! -f "$as_myself"; then
12733 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12734 exit 1
12737 # Unset variables that we do not need and which cause bugs (e.g. in
12738 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12739 # suppresses any "Segmentation fault" message there. '((' could
12740 # trigger a bug in pdksh 5.2.14.
12741 for as_var in BASH_ENV ENV MAIL MAILPATH
12742 do eval test x\${$as_var+set} = xset \
12743 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12744 done
12745 PS1='$ '
12746 PS2='> '
12747 PS4='+ '
12749 # NLS nuisances.
12750 LC_ALL=C
12751 export LC_ALL
12752 LANGUAGE=C
12753 export LANGUAGE
12755 # CDPATH.
12756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12759 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12760 # ----------------------------------------
12761 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12762 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12763 # script with STATUS, using 1 if that was 0.
12764 as_fn_error ()
12766 as_status=$1; test $as_status -eq 0 && as_status=1
12767 if test "$4"; then
12768 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12769 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12771 $as_echo "$as_me: error: $2" >&2
12772 as_fn_exit $as_status
12773 } # as_fn_error
12776 # as_fn_set_status STATUS
12777 # -----------------------
12778 # Set $? to STATUS, without forking.
12779 as_fn_set_status ()
12781 return $1
12782 } # as_fn_set_status
12784 # as_fn_exit STATUS
12785 # -----------------
12786 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12787 as_fn_exit ()
12789 set +e
12790 as_fn_set_status $1
12791 exit $1
12792 } # as_fn_exit
12794 # as_fn_unset VAR
12795 # ---------------
12796 # Portably unset VAR.
12797 as_fn_unset ()
12799 { eval $1=; unset $1;}
12801 as_unset=as_fn_unset
12802 # as_fn_append VAR VALUE
12803 # ----------------------
12804 # Append the text in VALUE to the end of the definition contained in VAR. Take
12805 # advantage of any shell optimizations that allow amortized linear growth over
12806 # repeated appends, instead of the typical quadratic growth present in naive
12807 # implementations.
12808 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12809 eval 'as_fn_append ()
12811 eval $1+=\$2
12813 else
12814 as_fn_append ()
12816 eval $1=\$$1\$2
12818 fi # as_fn_append
12820 # as_fn_arith ARG...
12821 # ------------------
12822 # Perform arithmetic evaluation on the ARGs, and store the result in the
12823 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12824 # must be portable across $(()) and expr.
12825 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12826 eval 'as_fn_arith ()
12828 as_val=$(( $* ))
12830 else
12831 as_fn_arith ()
12833 as_val=`expr "$@" || test $? -eq 1`
12835 fi # as_fn_arith
12838 if expr a : '\(a\)' >/dev/null 2>&1 &&
12839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12840 as_expr=expr
12841 else
12842 as_expr=false
12845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12846 as_basename=basename
12847 else
12848 as_basename=false
12851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12852 as_dirname=dirname
12853 else
12854 as_dirname=false
12857 as_me=`$as_basename -- "$0" ||
12858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12859 X"$0" : 'X\(//\)$' \| \
12860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12861 $as_echo X/"$0" |
12862 sed '/^.*\/\([^/][^/]*\)\/*$/{
12863 s//\1/
12866 /^X\/\(\/\/\)$/{
12867 s//\1/
12870 /^X\/\(\/\).*/{
12871 s//\1/
12874 s/.*/./; q'`
12876 # Avoid depending upon Character Ranges.
12877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12880 as_cr_digits='0123456789'
12881 as_cr_alnum=$as_cr_Letters$as_cr_digits
12883 ECHO_C= ECHO_N= ECHO_T=
12884 case `echo -n x` in #(((((
12885 -n*)
12886 case `echo 'xy\c'` in
12887 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12888 xy) ECHO_C='\c';;
12889 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12890 ECHO_T=' ';;
12891 esac;;
12893 ECHO_N='-n';;
12894 esac
12896 rm -f conf$$ conf$$.exe conf$$.file
12897 if test -d conf$$.dir; then
12898 rm -f conf$$.dir/conf$$.file
12899 else
12900 rm -f conf$$.dir
12901 mkdir conf$$.dir 2>/dev/null
12903 if (echo >conf$$.file) 2>/dev/null; then
12904 if ln -s conf$$.file conf$$ 2>/dev/null; then
12905 as_ln_s='ln -s'
12906 # ... but there are two gotchas:
12907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12909 # In both cases, we have to default to `cp -p'.
12910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12911 as_ln_s='cp -p'
12912 elif ln conf$$.file conf$$ 2>/dev/null; then
12913 as_ln_s=ln
12914 else
12915 as_ln_s='cp -p'
12917 else
12918 as_ln_s='cp -p'
12920 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12921 rmdir conf$$.dir 2>/dev/null
12924 # as_fn_mkdir_p
12925 # -------------
12926 # Create "$as_dir" as a directory, including parents if necessary.
12927 as_fn_mkdir_p ()
12930 case $as_dir in #(
12931 -*) as_dir=./$as_dir;;
12932 esac
12933 test -d "$as_dir" || eval $as_mkdir_p || {
12934 as_dirs=
12935 while :; do
12936 case $as_dir in #(
12937 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12938 *) as_qdir=$as_dir;;
12939 esac
12940 as_dirs="'$as_qdir' $as_dirs"
12941 as_dir=`$as_dirname -- "$as_dir" ||
12942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12943 X"$as_dir" : 'X\(//\)[^/]' \| \
12944 X"$as_dir" : 'X\(//\)$' \| \
12945 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12946 $as_echo X"$as_dir" |
12947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12948 s//\1/
12951 /^X\(\/\/\)[^/].*/{
12952 s//\1/
12955 /^X\(\/\/\)$/{
12956 s//\1/
12959 /^X\(\/\).*/{
12960 s//\1/
12963 s/.*/./; q'`
12964 test -d "$as_dir" && break
12965 done
12966 test -z "$as_dirs" || eval "mkdir $as_dirs"
12967 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12970 } # as_fn_mkdir_p
12971 if mkdir -p . 2>/dev/null; then
12972 as_mkdir_p='mkdir -p "$as_dir"'
12973 else
12974 test -d ./-p && rmdir ./-p
12975 as_mkdir_p=false
12978 if test -x / >/dev/null 2>&1; then
12979 as_test_x='test -x'
12980 else
12981 if ls -dL / >/dev/null 2>&1; then
12982 as_ls_L_option=L
12983 else
12984 as_ls_L_option=
12986 as_test_x='
12987 eval sh -c '\''
12988 if test -d "$1"; then
12989 test -d "$1/.";
12990 else
12991 case $1 in #(
12992 -*)set "./$1";;
12993 esac;
12994 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12995 ???[sx]*):;;*)false;;esac;fi
12996 '\'' sh
12999 as_executable_p=$as_test_x
13001 # Sed expression to map a string onto a valid CPP name.
13002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13004 # Sed expression to map a string onto a valid variable name.
13005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13008 exec 6>&1
13009 ## ----------------------------------- ##
13010 ## Main body of $CONFIG_STATUS script. ##
13011 ## ----------------------------------- ##
13012 _ASEOF
13013 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13016 # Save the log message, to keep $0 and so on meaningful, and to
13017 # report actual input values of CONFIG_FILES etc. instead of their
13018 # values after options handling.
13019 ac_log="
13020 This file was extended by $as_me, which was
13021 generated by GNU Autoconf 2.68. Invocation command line was
13023 CONFIG_FILES = $CONFIG_FILES
13024 CONFIG_HEADERS = $CONFIG_HEADERS
13025 CONFIG_LINKS = $CONFIG_LINKS
13026 CONFIG_COMMANDS = $CONFIG_COMMANDS
13027 $ $0 $@
13029 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13032 _ACEOF
13034 case $ac_config_files in *"
13035 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13036 esac
13038 case $ac_config_headers in *"
13039 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13040 esac
13043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13044 # Files that config.status was made for.
13045 config_files="$ac_config_files"
13046 config_headers="$ac_config_headers"
13047 config_commands="$ac_config_commands"
13049 _ACEOF
13051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13052 ac_cs_usage="\
13053 \`$as_me' instantiates files and other configuration actions
13054 from templates according to the current configuration. Unless the files
13055 and actions are specified as TAGs, all are instantiated by default.
13057 Usage: $0 [OPTION]... [TAG]...
13059 -h, --help print this help, then exit
13060 -V, --version print version number and configuration settings, then exit
13061 --config print configuration, then exit
13062 -q, --quiet, --silent
13063 do not print progress messages
13064 -d, --debug don't remove temporary files
13065 --recheck update $as_me by reconfiguring in the same conditions
13066 --file=FILE[:TEMPLATE]
13067 instantiate the configuration file FILE
13068 --header=FILE[:TEMPLATE]
13069 instantiate the configuration header FILE
13071 Configuration files:
13072 $config_files
13074 Configuration headers:
13075 $config_headers
13077 Configuration commands:
13078 $config_commands
13080 Report bugs to the package provider."
13082 _ACEOF
13083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13084 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13085 ac_cs_version="\\
13086 config.status
13087 configured by $0, generated by GNU Autoconf 2.68,
13088 with options \\"\$ac_cs_config\\"
13090 Copyright (C) 2010 Free Software Foundation, Inc.
13091 This config.status script is free software; the Free Software Foundation
13092 gives unlimited permission to copy, distribute and modify it."
13094 ac_pwd='$ac_pwd'
13095 srcdir='$srcdir'
13096 test -n "\$AWK" || AWK=awk
13097 _ACEOF
13099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13100 # The default lists apply if the user does not specify any file.
13101 ac_need_defaults=:
13102 while test $# != 0
13104 case $1 in
13105 --*=?*)
13106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13107 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13108 ac_shift=:
13110 --*=)
13111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13112 ac_optarg=
13113 ac_shift=:
13116 ac_option=$1
13117 ac_optarg=$2
13118 ac_shift=shift
13120 esac
13122 case $ac_option in
13123 # Handling of the options.
13124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13125 ac_cs_recheck=: ;;
13126 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13127 $as_echo "$ac_cs_version"; exit ;;
13128 --config | --confi | --conf | --con | --co | --c )
13129 $as_echo "$ac_cs_config"; exit ;;
13130 --debug | --debu | --deb | --de | --d | -d )
13131 debug=: ;;
13132 --file | --fil | --fi | --f )
13133 $ac_shift
13134 case $ac_optarg in
13135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13136 '') as_fn_error $? "missing file argument" ;;
13137 esac
13138 as_fn_append CONFIG_FILES " '$ac_optarg'"
13139 ac_need_defaults=false;;
13140 --header | --heade | --head | --hea )
13141 $ac_shift
13142 case $ac_optarg in
13143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13144 esac
13145 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13146 ac_need_defaults=false;;
13147 --he | --h)
13148 # Conflict between --help and --header
13149 as_fn_error $? "ambiguous option: \`$1'
13150 Try \`$0 --help' for more information.";;
13151 --help | --hel | -h )
13152 $as_echo "$ac_cs_usage"; exit ;;
13153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13155 ac_cs_silent=: ;;
13157 # This is an error.
13158 -*) as_fn_error $? "unrecognized option: \`$1'
13159 Try \`$0 --help' for more information." ;;
13161 *) as_fn_append ac_config_targets " $1"
13162 ac_need_defaults=false ;;
13164 esac
13165 shift
13166 done
13168 ac_configure_extra_args=
13170 if $ac_cs_silent; then
13171 exec 6>/dev/null
13172 ac_configure_extra_args="$ac_configure_extra_args --silent"
13175 _ACEOF
13176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13177 if \$ac_cs_recheck; then
13178 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13179 shift
13180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13181 CONFIG_SHELL='$SHELL'
13182 export CONFIG_SHELL
13183 exec "\$@"
13186 _ACEOF
13187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13188 exec 5>>config.log
13190 echo
13191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13192 ## Running $as_me. ##
13193 _ASBOX
13194 $as_echo "$ac_log"
13195 } >&5
13197 _ACEOF
13198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13200 # INIT-COMMANDS
13203 aros_host_exe_suffix=${aros_host_exe_suffix}
13204 aros_tools_dir=${aros_tools_dir}
13205 aros_target_cpu=${aros_target_cpu}
13206 aros_target_arch=${aros_target_arch}
13207 aros_target_suffix=${aros_target_suffix}
13208 orig_target_nm=${orig_target_nm}
13209 orig_target_as=${orig_target_as}
13210 orig_target_ar=${orig_target_ar}
13211 orig_target_ranlib=${orig_target_ranlib}
13212 orig_target_objdump=${orig_target_objdump}
13213 orig_target_objcopy=${orig_target_objcopy}
13214 orig_target_strip=${orig_target_strip}
13215 aros_kernel_ld=${aros_kernel_ld}
13218 aros_tools_dir=${aros_tools_dir}
13221 _ACEOF
13223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13225 # Handling of arguments.
13226 for ac_config_target in $ac_config_targets
13228 case $ac_config_target in
13229 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13230 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13231 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13232 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13233 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13234 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13235 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13236 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13237 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13238 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13239 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13240 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13241 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13242 "${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" ;;
13243 "${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" ;;
13244 "${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" ;;
13245 "${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" ;;
13246 "${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" ;;
13247 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13248 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13249 "${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" ;;
13251 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13252 esac
13253 done
13256 # If the user did not use the arguments to specify the items to instantiate,
13257 # then the envvar interface is used. Set only those that are not.
13258 # We use the long form for the default assignment because of an extremely
13259 # bizarre bug on SunOS 4.1.3.
13260 if $ac_need_defaults; then
13261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13263 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13266 # Have a temporary directory for convenience. Make it in the build tree
13267 # simply because there is no reason against having it here, and in addition,
13268 # creating and moving files from /tmp can sometimes cause problems.
13269 # Hook for its removal unless debugging.
13270 # Note that there is a small window in which the directory will not be cleaned:
13271 # after its creation but before its name has been assigned to `$tmp'.
13272 $debug ||
13274 tmp= ac_tmp=
13275 trap 'exit_status=$?
13276 : "${ac_tmp:=$tmp}"
13277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13279 trap 'as_fn_exit 1' 1 2 13 15
13281 # Create a (secure) tmp directory for tmp files.
13284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13285 test -d "$tmp"
13286 } ||
13288 tmp=./conf$$-$RANDOM
13289 (umask 077 && mkdir "$tmp")
13290 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13291 ac_tmp=$tmp
13293 # Set up the scripts for CONFIG_FILES section.
13294 # No need to generate them if there are no CONFIG_FILES.
13295 # This happens for instance with `./config.status config.h'.
13296 if test -n "$CONFIG_FILES"; then
13299 ac_cr=`echo X | tr X '\015'`
13300 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13301 # But we know of no other shell where ac_cr would be empty at this
13302 # point, so we can use a bashism as a fallback.
13303 if test "x$ac_cr" = x; then
13304 eval ac_cr=\$\'\\r\'
13306 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13307 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13308 ac_cs_awk_cr='\\r'
13309 else
13310 ac_cs_awk_cr=$ac_cr
13313 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13314 _ACEOF
13318 echo "cat >conf$$subs.awk <<_ACEOF" &&
13319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13320 echo "_ACEOF"
13321 } >conf$$subs.sh ||
13322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13323 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13324 ac_delim='%!_!# '
13325 for ac_last_try in false false false false false :; do
13326 . ./conf$$subs.sh ||
13327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13330 if test $ac_delim_n = $ac_delim_num; then
13331 break
13332 elif $ac_last_try; then
13333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13334 else
13335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13337 done
13338 rm -f conf$$subs.sh
13340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13341 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13342 _ACEOF
13343 sed -n '
13345 s/^/S["/; s/!.*/"]=/
13348 s/^[^!]*!//
13349 :repl
13350 t repl
13351 s/'"$ac_delim"'$//
13352 t delim
13355 s/\(.\{148\}\)..*/\1/
13356 t more1
13357 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13360 b repl
13361 :more1
13362 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13365 s/.\{148\}//
13366 t nl
13367 :delim
13369 s/\(.\{148\}\)..*/\1/
13370 t more2
13371 s/["\\]/\\&/g; s/^/"/; s/$/"/
13374 :more2
13375 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13378 s/.\{148\}//
13379 t delim
13380 ' <conf$$subs.awk | sed '
13381 /^[^""]/{
13383 s/\n//
13385 ' >>$CONFIG_STATUS || ac_write_fail=1
13386 rm -f conf$$subs.awk
13387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13388 _ACAWK
13389 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13390 for (key in S) S_is_set[key] = 1
13391 FS = "\a"
13395 line = $ 0
13396 nfields = split(line, field, "@")
13397 substed = 0
13398 len = length(field[1])
13399 for (i = 2; i < nfields; i++) {
13400 key = field[i]
13401 keylen = length(key)
13402 if (S_is_set[key]) {
13403 value = S[key]
13404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13405 len += length(value) + length(field[++i])
13406 substed = 1
13407 } else
13408 len += 1 + keylen
13411 print line
13414 _ACAWK
13415 _ACEOF
13416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13417 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13419 else
13421 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13423 _ACEOF
13425 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13426 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13427 # trailing colons and then remove the whole line if VPATH becomes empty
13428 # (actually we leave an empty line to preserve line numbers).
13429 if test "x$srcdir" = x.; then
13430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13432 s///
13433 s/^/:/
13434 s/[ ]*$/:/
13435 s/:\$(srcdir):/:/g
13436 s/:\${srcdir}:/:/g
13437 s/:@srcdir@:/:/g
13438 s/^:*//
13439 s/:*$//
13441 s/\(=[ ]*\).*/\1/
13443 s/\n//
13444 s/^[^=]*=[ ]*$//
13448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13449 fi # test -n "$CONFIG_FILES"
13451 # Set up the scripts for CONFIG_HEADERS section.
13452 # No need to generate them if there are no CONFIG_HEADERS.
13453 # This happens for instance with `./config.status Makefile'.
13454 if test -n "$CONFIG_HEADERS"; then
13455 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13456 BEGIN {
13457 _ACEOF
13459 # Transform confdefs.h into an awk script `defines.awk', embedded as
13460 # here-document in config.status, that substitutes the proper values into
13461 # config.h.in to produce config.h.
13463 # Create a delimiter string that does not exist in confdefs.h, to ease
13464 # handling of long lines.
13465 ac_delim='%!_!# '
13466 for ac_last_try in false false :; do
13467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13468 if test -z "$ac_tt"; then
13469 break
13470 elif $ac_last_try; then
13471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13472 else
13473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13475 done
13477 # For the awk script, D is an array of macro values keyed by name,
13478 # likewise P contains macro parameters if any. Preserve backslash
13479 # newline sequences.
13481 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13482 sed -n '
13483 s/.\{148\}/&'"$ac_delim"'/g
13484 t rset
13485 :rset
13486 s/^[ ]*#[ ]*define[ ][ ]*/ /
13487 t def
13489 :def
13490 s/\\$//
13491 t bsnl
13492 s/["\\]/\\&/g
13493 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13494 D["\1"]=" \3"/p
13495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13497 :bsnl
13498 s/["\\]/\\&/g
13499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13500 D["\1"]=" \3\\\\\\n"\\/p
13501 t cont
13502 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13503 t cont
13505 :cont
13507 s/.\{148\}/&'"$ac_delim"'/g
13508 t clear
13509 :clear
13510 s/\\$//
13511 t bsnlc
13512 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13514 :bsnlc
13515 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13516 b cont
13517 ' <confdefs.h | sed '
13518 s/'"$ac_delim"'/"\\\
13519 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13522 for (key in D) D_is_set[key] = 1
13523 FS = "\a"
13525 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13526 line = \$ 0
13527 split(line, arg, " ")
13528 if (arg[1] == "#") {
13529 defundef = arg[2]
13530 mac1 = arg[3]
13531 } else {
13532 defundef = substr(arg[1], 2)
13533 mac1 = arg[2]
13535 split(mac1, mac2, "(") #)
13536 macro = mac2[1]
13537 prefix = substr(line, 1, index(line, defundef) - 1)
13538 if (D_is_set[macro]) {
13539 # Preserve the white space surrounding the "#".
13540 print prefix "define", macro P[macro] D[macro]
13541 next
13542 } else {
13543 # Replace #undef with comments. This is necessary, for example,
13544 # in the case of _POSIX_SOURCE, which is predefined and required
13545 # on some systems where configure will not decide to define it.
13546 if (defundef == "undef") {
13547 print "/*", prefix defundef, macro, "*/"
13548 next
13552 { print }
13553 _ACAWK
13554 _ACEOF
13555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13557 fi # test -n "$CONFIG_HEADERS"
13560 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13561 shift
13562 for ac_tag
13564 case $ac_tag in
13565 :[FHLC]) ac_mode=$ac_tag; continue;;
13566 esac
13567 case $ac_mode$ac_tag in
13568 :[FHL]*:*);;
13569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13570 :[FH]-) ac_tag=-:-;;
13571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13572 esac
13573 ac_save_IFS=$IFS
13574 IFS=:
13575 set x $ac_tag
13576 IFS=$ac_save_IFS
13577 shift
13578 ac_file=$1
13579 shift
13581 case $ac_mode in
13582 :L) ac_source=$1;;
13583 :[FH])
13584 ac_file_inputs=
13585 for ac_f
13587 case $ac_f in
13588 -) ac_f="$ac_tmp/stdin";;
13589 *) # Look for the file first in the build tree, then in the source tree
13590 # (if the path is not absolute). The absolute path cannot be DOS-style,
13591 # because $ac_f cannot contain `:'.
13592 test -f "$ac_f" ||
13593 case $ac_f in
13594 [\\/$]*) false;;
13595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13596 esac ||
13597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13598 esac
13599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13600 as_fn_append ac_file_inputs " '$ac_f'"
13601 done
13603 # Let's still pretend it is `configure' which instantiates (i.e., don't
13604 # use $as_me), people would be surprised to read:
13605 # /* config.h. Generated by config.status. */
13606 configure_input='Generated from '`
13607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13608 `' by configure.'
13609 if test x"$ac_file" != x-; then
13610 configure_input="$ac_file. $configure_input"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13612 $as_echo "$as_me: creating $ac_file" >&6;}
13614 # Neutralize special characters interpreted by sed in replacement strings.
13615 case $configure_input in #(
13616 *\&* | *\|* | *\\* )
13617 ac_sed_conf_input=`$as_echo "$configure_input" |
13618 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13619 *) ac_sed_conf_input=$configure_input;;
13620 esac
13622 case $ac_tag in
13623 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13625 esac
13627 esac
13629 ac_dir=`$as_dirname -- "$ac_file" ||
13630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13631 X"$ac_file" : 'X\(//\)[^/]' \| \
13632 X"$ac_file" : 'X\(//\)$' \| \
13633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13634 $as_echo X"$ac_file" |
13635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13636 s//\1/
13639 /^X\(\/\/\)[^/].*/{
13640 s//\1/
13643 /^X\(\/\/\)$/{
13644 s//\1/
13647 /^X\(\/\).*/{
13648 s//\1/
13651 s/.*/./; q'`
13652 as_dir="$ac_dir"; as_fn_mkdir_p
13653 ac_builddir=.
13655 case "$ac_dir" in
13656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13659 # A ".." for each directory in $ac_dir_suffix.
13660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13661 case $ac_top_builddir_sub in
13662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13664 esac ;;
13665 esac
13666 ac_abs_top_builddir=$ac_pwd
13667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13668 # for backward compatibility:
13669 ac_top_builddir=$ac_top_build_prefix
13671 case $srcdir in
13672 .) # We are building in place.
13673 ac_srcdir=.
13674 ac_top_srcdir=$ac_top_builddir_sub
13675 ac_abs_top_srcdir=$ac_pwd ;;
13676 [\\/]* | ?:[\\/]* ) # Absolute name.
13677 ac_srcdir=$srcdir$ac_dir_suffix;
13678 ac_top_srcdir=$srcdir
13679 ac_abs_top_srcdir=$srcdir ;;
13680 *) # Relative name.
13681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13682 ac_top_srcdir=$ac_top_build_prefix$srcdir
13683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13684 esac
13685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13688 case $ac_mode in
13691 # CONFIG_FILE
13694 _ACEOF
13696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13697 # If the template does not know about datarootdir, expand it.
13698 # FIXME: This hack should be removed a few years after 2.60.
13699 ac_datarootdir_hack=; ac_datarootdir_seen=
13700 ac_sed_dataroot='
13701 /datarootdir/ {
13705 /@datadir@/p
13706 /@docdir@/p
13707 /@infodir@/p
13708 /@localedir@/p
13709 /@mandir@/p'
13710 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13711 *datarootdir*) ac_datarootdir_seen=yes;;
13712 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13714 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13715 _ACEOF
13716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13717 ac_datarootdir_hack='
13718 s&@datadir@&$datadir&g
13719 s&@docdir@&$docdir&g
13720 s&@infodir@&$infodir&g
13721 s&@localedir@&$localedir&g
13722 s&@mandir@&$mandir&g
13723 s&\\\${datarootdir}&$datarootdir&g' ;;
13724 esac
13725 _ACEOF
13727 # Neutralize VPATH when `$srcdir' = `.'.
13728 # Shell code in configure.ac might set extrasub.
13729 # FIXME: do we really want to maintain this feature?
13730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13731 ac_sed_extra="$ac_vpsub
13732 $extrasub
13733 _ACEOF
13734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13737 s|@configure_input@|$ac_sed_conf_input|;t t
13738 s&@top_builddir@&$ac_top_builddir_sub&;t t
13739 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13740 s&@srcdir@&$ac_srcdir&;t t
13741 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13742 s&@top_srcdir@&$ac_top_srcdir&;t t
13743 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13744 s&@builddir@&$ac_builddir&;t t
13745 s&@abs_builddir@&$ac_abs_builddir&;t t
13746 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13747 $ac_datarootdir_hack
13749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13750 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13752 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13753 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13754 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13755 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13757 which seems to be undefined. Please make sure it is defined" >&5
13758 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13759 which seems to be undefined. Please make sure it is defined" >&2;}
13761 rm -f "$ac_tmp/stdin"
13762 case $ac_file in
13763 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13764 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13765 esac \
13766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13770 # CONFIG_HEADER
13772 if test x"$ac_file" != x-; then
13774 $as_echo "/* $configure_input */" \
13775 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13776 } >"$ac_tmp/config.h" \
13777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13778 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13780 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13781 else
13782 rm -f "$ac_file"
13783 mv "$ac_tmp/config.h" "$ac_file" \
13784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13786 else
13787 $as_echo "/* $configure_input */" \
13788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13789 || as_fn_error $? "could not create -" "$LINENO" 5
13793 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13794 $as_echo "$as_me: executing $ac_file commands" >&6;}
13796 esac
13799 case $ac_file$ac_mode in
13800 "compiler_executable":C)
13801 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13802 mkdir -p $prefix
13803 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13804 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13806 echo ${prefix2}
13807 echo ${prefix3}
13808 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
13810 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13811 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13812 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13813 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13814 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13815 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13816 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13818 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13820 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13822 esac
13823 done # for ac_tag
13826 as_fn_exit 0
13827 _ACEOF
13828 ac_clean_files=$ac_clean_files_save
13830 test $ac_write_fail = 0 ||
13831 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13834 # configure is writing to config.log, and then calls config.status.
13835 # config.status does its own redirection, appending to config.log.
13836 # Unfortunately, on DOS this fails, as config.log is still kept open
13837 # by configure, so config.status won't be able to write to it; its
13838 # output is simply discarded. So we exec the FD to /dev/null,
13839 # effectively closing config.log, so it can be properly (re)opened and
13840 # appended to by config.status. When coming back to configure, we
13841 # need to make the FD available again.
13842 if test "$no_create" != yes; then
13843 ac_cs_success=:
13844 ac_config_status_args=
13845 test "$silent" = yes &&
13846 ac_config_status_args="$ac_config_status_args --quiet"
13847 exec 5>/dev/null
13848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13849 exec 5>>config.log
13850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13851 # would make configure fail if this is the last instruction.
13852 $ac_cs_success || as_fn_exit 1
13854 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13856 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13861 #XXX compatability...
13862 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13864 if test -n "$aros_shared_cflags" ; then
13865 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13866 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg