Moved debug output to a place where tc_ETask is may be initialized.
[AROS.git] / configure
blob2bc85ae87c12da5f7305206747026d626b757c2a
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 aros_target_as
674 aros_target_cpp
675 aros_target_cxx
676 aros_target_cc
677 aros_plain_ar
678 aros_plain_nm
679 aros_target_ranlib
680 aros_target_ar
681 aros_target_suffix
682 aros_target_variant
683 aros_target_cpu
684 aros_target_family
685 aros_target_arch
686 aros_target_bootloader
687 aros_target_iconset
688 aros_target_guitheme
689 aros_tools_dir
690 aros_host_lib_suffix
691 aros_host_exe_suffix
692 aros_host_mkargs
693 aros_host_mkdep
694 aros_host_debug
695 aros_host_ldflags
696 gnu89_inline
697 aros_host_cxxflags
698 aros_host_cflags
699 aros_host_make
700 aros_host_cxx
701 aros_host_cc
702 aros_host_cpp
703 aros_host_cpu
704 aros_host_arch
705 aros_cc_pre
706 aros_amigaos_compliance
707 AROS_PORTSSRCDIR
708 AROS_CROSSTOOLSDIR
709 SRCDIR
710 AROS_BUILDDIR_UNIX
711 AROS_BUILDDIR
712 aros_target_toolchain
713 aros_flavour_uc
714 aros_flavour
715 aros_cpu
716 aros_arch
717 SDL_LIBS
718 SDL_CFLAGS
719 SDL_CONFIG
720 XMKMF
721 aros_cflags_iquote_end
722 aros_cflags_iquote
723 kernel_cflags_iquote_end
724 kernel_cflags_iquote
725 host_cflags_iquote_end
726 host_cflags_iquote
727 aros_target_nostdlib_ldflags
728 aros_target_detach_ldflags
729 aros_target_nix_ldflags
730 aros_target_nostartup_ldflags
731 aros_target_nostdinc_cflags
732 aros_kernel_rescomp
733 orig_target_objdump
734 orig_target_objcopy
735 orig_target_strip
736 orig_target_nm
737 orig_target_ranlib
738 orig_target_ar
739 orig_target_as
740 orig_target_ld
741 orig_target_cxx
742 orig_target_cc
743 orig_target_cpp
744 aros_kernel_objdump
745 aros_kernel_objcopy
746 aros_kernel_strip
747 aros_kernel_nm
748 aros_kernel_ranlib
749 aros_kernel_ar
750 aros_kernel_as
751 aros_kernel_ld
752 aros_kernel_cxx
753 aros_kernel_cc
754 aros_kernel_cpp
756 android_tool
757 CCACHE
758 DISTCC
759 LIBOBJS
760 EGREP
761 GREP
763 TEST
766 pkgpyexecdir
767 pyexecdir
768 pkgpythondir
769 pythondir
770 PYTHON_PLATFORM
771 PYTHON_EXEC_PREFIX
772 PYTHON_PREFIX
773 PYTHON_VERSION
774 PYTHON
775 PATCH
776 CHMOD
778 PPMTOILBM
779 PNGTOPNM
780 FLEX
781 BISON
784 UNIQ
785 SORT
786 TOUCH
787 MKDIR
788 ECHO
792 aros_host_strip
793 aros_host_ranlib
794 aros_host_ar
795 aros_host_automake
796 aros_host_autoheader
797 aros_host_autoconf
798 aros_host_aclocal
799 aros_host_ld
800 MMAKE
803 ac_ct_CXX
804 CXXFLAGS
806 OBJEXT
807 EXEEXT
808 ac_ct_CC
809 CPPFLAGS
810 LDFLAGS
811 CFLAGS
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files=''
860 ac_user_opts='
861 enable_option_checking
862 enable_build_type
863 enable_debug
864 enable_crosstools
865 enable_distcc
866 enable_ccache
867 with_gcc_version
868 with_optimization
869 with_paranoia
870 enable_target_variant
871 with_xcode
872 with_sdk_version
873 with_sdk
874 with_ndk
875 with_ndk_version
876 enable_amigaos_compliance
877 with_crosstools
878 with_kernel_tool_prefix
879 with_cpu
880 with_fpu
881 with_float
882 with_aros_gcc
883 with_portssources
884 with_bootloader
885 with_iconset
886 with_theme
887 with_resolution
888 with_serial_debug
889 enable_palm_debug_hack
890 enable_usb30_code
891 enable_nesting_supervisor
892 enable_mmu
893 enable_x11_hidd
894 with_x
895 enable_x11_shm
896 enable_x11_vidmode
897 enable_sdl_hidd
898 with_sdl_prefix
899 with_sdl_exec_prefix
900 enable_sdltest
901 enable_dbus
903 ac_precious_vars='build_alias
904 host_alias
905 target_alias
907 CFLAGS
908 LDFLAGS
909 LIBS
910 CPPFLAGS
912 CXXFLAGS
915 XMKMF'
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 ac_unrecognized_opts=
922 ac_unrecognized_sep=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
925 cache_file=/dev/null
926 exec_prefix=NONE
927 no_create=
928 no_recursion=
929 prefix=NONE
930 program_prefix=NONE
931 program_suffix=NONE
932 program_transform_name=s,x,x,
933 silent=
934 site=
935 srcdir=
936 verbose=
937 x_includes=NONE
938 x_libraries=NONE
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE}'
957 infodir='${datarootdir}/info'
958 htmldir='${docdir}'
959 dvidir='${docdir}'
960 pdfdir='${docdir}'
961 psdir='${docdir}'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
966 ac_prev=
967 ac_dashdash=
968 for ac_option
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
973 ac_prev=
974 continue
977 case $ac_option in
978 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 *=) ac_optarg= ;;
980 *) ac_optarg=yes ;;
981 esac
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
987 ac_dashdash=yes ;;
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1021 -disable-* | --disable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=no ;;
1037 -docdir | --docdir | --docdi | --doc | --do)
1038 ac_prev=docdir ;;
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 ac_prev=dvidir ;;
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1047 -enable-* | --enable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=\$ac_optarg ;;
1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065 | --exec | --exe | --ex)
1066 ac_prev=exec_prefix ;;
1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069 | --exec=* | --exe=* | --ex=*)
1070 exec_prefix=$ac_optarg ;;
1072 -gas | --gas | --ga | --g)
1073 # Obsolete; use --with-gas.
1074 with_gas=yes ;;
1076 -help | --help | --hel | --he | -h)
1077 ac_init_help=long ;;
1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079 ac_init_help=recursive ;;
1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081 ac_init_help=short ;;
1083 -host | --host | --hos | --ho)
1084 ac_prev=host_alias ;;
1085 -host=* | --host=* | --hos=* | --ho=*)
1086 host_alias=$ac_optarg ;;
1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 ac_prev=htmldir ;;
1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 | --ht=*)
1092 htmldir=$ac_optarg ;;
1094 -includedir | --includedir | --includedi | --included | --include \
1095 | --includ | --inclu | --incl | --inc)
1096 ac_prev=includedir ;;
1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098 | --includ=* | --inclu=* | --incl=* | --inc=*)
1099 includedir=$ac_optarg ;;
1101 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 ac_prev=infodir ;;
1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104 infodir=$ac_optarg ;;
1106 -libdir | --libdir | --libdi | --libd)
1107 ac_prev=libdir ;;
1108 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109 libdir=$ac_optarg ;;
1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112 | --libexe | --libex | --libe)
1113 ac_prev=libexecdir ;;
1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115 | --libexe=* | --libex=* | --libe=*)
1116 libexecdir=$ac_optarg ;;
1118 -localedir | --localedir | --localedi | --localed | --locale)
1119 ac_prev=localedir ;;
1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121 localedir=$ac_optarg ;;
1123 -localstatedir | --localstatedir | --localstatedi | --localstated \
1124 | --localstate | --localstat | --localsta | --localst | --locals)
1125 ac_prev=localstatedir ;;
1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128 localstatedir=$ac_optarg ;;
1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 ac_prev=mandir ;;
1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133 mandir=$ac_optarg ;;
1135 -nfp | --nfp | --nf)
1136 # Obsolete; use --without-fp.
1137 with_fp=no ;;
1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140 | --no-cr | --no-c | -n)
1141 no_create=yes ;;
1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 no_recursion=yes ;;
1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149 | --oldin | --oldi | --old | --ol | --o)
1150 ac_prev=oldincludedir ;;
1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154 oldincludedir=$ac_optarg ;;
1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 ac_prev=prefix ;;
1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159 prefix=$ac_optarg ;;
1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162 | --program-pre | --program-pr | --program-p)
1163 ac_prev=program_prefix ;;
1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166 program_prefix=$ac_optarg ;;
1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169 | --program-suf | --program-su | --program-s)
1170 ac_prev=program_suffix ;;
1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173 program_suffix=$ac_optarg ;;
1175 -program-transform-name | --program-transform-name \
1176 | --program-transform-nam | --program-transform-na \
1177 | --program-transform-n | --program-transform- \
1178 | --program-transform | --program-transfor \
1179 | --program-transfo | --program-transf \
1180 | --program-trans | --program-tran \
1181 | --progr-tra | --program-tr | --program-t)
1182 ac_prev=program_transform_name ;;
1183 -program-transform-name=* | --program-transform-name=* \
1184 | --program-transform-nam=* | --program-transform-na=* \
1185 | --program-transform-n=* | --program-transform-=* \
1186 | --program-transform=* | --program-transfor=* \
1187 | --program-transfo=* | --program-transf=* \
1188 | --program-trans=* | --program-tran=* \
1189 | --progr-tra=* | --program-tr=* | --program-t=*)
1190 program_transform_name=$ac_optarg ;;
1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 ac_prev=pdfdir ;;
1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195 pdfdir=$ac_optarg ;;
1197 -psdir | --psdir | --psdi | --psd | --ps)
1198 ac_prev=psdir ;;
1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 psdir=$ac_optarg ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 silent=yes ;;
1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 ac_prev=sbindir ;;
1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 | --sbi=* | --sb=*)
1210 sbindir=$ac_optarg ;;
1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214 | --sharedst | --shareds | --shared | --share | --shar \
1215 | --sha | --sh)
1216 ac_prev=sharedstatedir ;;
1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 | --sha=* | --sh=*)
1221 sharedstatedir=$ac_optarg ;;
1223 -site | --site | --sit)
1224 ac_prev=site ;;
1225 -site=* | --site=* | --sit=*)
1226 site=$ac_optarg ;;
1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 ac_prev=srcdir ;;
1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231 srcdir=$ac_optarg ;;
1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234 | --syscon | --sysco | --sysc | --sys | --sy)
1235 ac_prev=sysconfdir ;;
1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238 sysconfdir=$ac_optarg ;;
1240 -target | --target | --targe | --targ | --tar | --ta | --t)
1241 ac_prev=target_alias ;;
1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243 target_alias=$ac_optarg ;;
1245 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 verbose=yes ;;
1248 -version | --version | --versio | --versi | --vers | -V)
1249 ac_init_version=: ;;
1251 -with-* | --with-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=\$ac_optarg ;;
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1276 "with_$ac_useropt"
1277 "*) ;;
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1280 esac
1281 eval with_$ac_useropt=no ;;
1283 --x)
1284 # Obsolete; use --with-x.
1285 with_x=yes ;;
1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288 | --x-incl | --x-inc | --x-in | --x-i)
1289 ac_prev=x_includes ;;
1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292 x_includes=$ac_optarg ;;
1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296 ac_prev=x_libraries ;;
1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299 x_libraries=$ac_optarg ;;
1301 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' | [0-9]* | *[!_$as_cr_alnum]* )
1310 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 esac
1312 eval $ac_envvar=\$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 esac
1324 done
1326 if test -n "$ac_prev"; then
1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $? "missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 esac
1339 # Check all directory arguments for consistency.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val=\$$ac_var
1346 # Remove trailing slashes.
1347 case $ac_val in
1348 */ )
1349 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\$ac_val;;
1351 esac
1352 # Be sure to have absolute directory names.
1353 case $ac_val in
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 esac
1357 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1358 done
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used" >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1410 /^X\(\/\/\)$/{
1411 s//\1/
1414 /^X\(\/\).*/{
1415 s//\1/
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1423 else
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
1458 \`configure' configures this package to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1467 Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 [PREFIX]
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1511 _ACEOF
1513 cat <<\_ACEOF
1515 X features:
1516 --x-includes=DIR X include files are in DIR
1517 --x-libraries=DIR X library files are in DIR
1519 System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 _ACEOF
1525 if test -n "$ac_init_help"; then
1527 cat <<\_ACEOF
1529 Optional Features:
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-build-type=TYPE
1534 Select the build type. Available types are:
1535 personal, nightly, snapshot, milestone, release. Do
1536 NOT use this option unless you know what you are
1537 doing! (default=personal)
1538 --enable-debug=list Enable different types of debug. Commas or
1539 whitespaces can be used to separate the items in the
1540 list. Available types of debug are: all, none,
1541 messages, stack, mungwall, modules, symbols. If no
1542 list is provided then "all" is assumed.
1543 (default=none)
1544 --disable-crosstools Do not build cross-compiler toolchain
1545 --enable-distcc Use distcc as a front end to the compiler
1546 (default=no).
1547 --enable-ccache Use ccache as a front end to the compiler
1548 (default=no).
1549 --enable-target-variant=NAME
1550 Enable a specific target variant(default=none)
1551 --enable-amigaos-compliance=VERSION
1552 Enforce userspace AmigaOS compliance to a specific
1553 KickStart version (default=none).
1554 --enable-palm-debug-hack
1555 Enable palm debug output hack in palm native
1556 (default=no)
1557 --enable-usb30-code Enable usb3.0 code (default=no)
1558 --enable-nesting-supervisor
1559 Enable nesting supervisor support in unix
1560 (default=no)
1561 --disable-mmu Disable MMU support (default=enabled)
1562 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1563 --enable-x11-shm use X11 shared memory (default=auto)
1564 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1565 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1566 --disable-sdltest Do not try to compile and run a test SDL program
1567 --enable-dbus Enable DBUS support via dbus.library (default=no)
1569 Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1572 --with-kernel-gcc-version=VERSION
1573 Use host gcc-VERSION for building AROS
1574 --with-gcc-version=VERSION
1575 Use host gcc-VERSION for building AROS
1576 --with-optimization=FLAGS
1577 Use optimization flags FLAGS (default=-O2).
1578 --with-paranoia=FLAGS CC flags to enable paranoia
1579 --with-xcode=PATH Specify XCode path for iOS targets
1580 (default=/Developer).
1581 --with-sdk-version=VERSION
1582 Use iOS SDK version VERSION (default=4.1).
1583 --with-sdk=PATH Specify Android SDK path
1584 (default=$default_android_sdk).
1585 --with-ndk=PATH Specify Android NDK path (default=none).
1586 --with-sdk-version=LEVEL
1587 Use Android SDK for API LEVEL (default=12).
1588 --with-ndk-version=LEVEL
1589 Use Android NDK for API LEVEL (default=9).
1590 --with-crosstools=DIR Where to install or search for cross tools binaries
1591 --with-kernel-tool-prefix=...
1592 Specify crosscompile toolchain prefix for kernel
1593 objects
1594 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1595 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1596 --with-float=<spec> Specify floating point ABI
1597 (default=$gcc_default_float_abi).
1598 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1599 --with-portssources=DIR Where to download sourcecode for external ports
1600 --with-bootloader=NAME Use a specific bootloader
1601 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1602 --with-theme=NAME Use a specific GUI Theme
1603 --with-resolution=XRESxYRESxDEPTH
1604 Default resolution of the initial WorkbenchScreen
1605 --with-serial-debug Enable serial debug output in native (default=no)
1606 --with-x use the X Window System
1607 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1608 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1610 Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1618 CXX C++ compiler command
1619 CXXFLAGS C++ compiler flags
1620 CPP C preprocessor
1621 XMKMF Path to xmkmf, Makefile generator for X Window System
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1626 Report bugs to the package provider.
1627 _ACEOF
1628 ac_status=$?
1631 if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 continue
1637 ac_builddir=.
1639 case "$ac_dir" in
1640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 esac ;;
1649 esac
1650 ac_abs_top_builddir=$ac_pwd
1651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652 # for backward compatibility:
1653 ac_top_builddir=$ac_top_build_prefix
1655 case $srcdir in
1656 .) # We are building in place.
1657 ac_srcdir=.
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
1661 ac_srcdir=$srcdir$ac_dir_suffix;
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1664 *) # Relative name.
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 esac
1669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for guested configure.
1673 if test -f "$ac_srcdir/configure.gnu"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676 elif test -f "$ac_srcdir/configure"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure" --help=recursive
1679 else
1680 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 fi || ac_status=$?
1682 cd "$ac_pwd" || { ac_status=$?; break; }
1683 done
1686 test -n "$ac_init_help" && exit $ac_status
1687 if $ac_init_version; then
1688 cat <<\_ACEOF
1689 configure
1690 generated by GNU Autoconf 2.68
1692 Copyright (C) 2010 Free Software Foundation, Inc.
1693 This configure script is free software; the Free Software Foundation
1694 gives unlimited permission to copy, distribute and modify it.
1695 _ACEOF
1696 exit
1699 ## ------------------------ ##
1700 ## Autoconf initialization. ##
1701 ## ------------------------ ##
1703 # ac_fn_c_try_compile LINENO
1704 # --------------------------
1705 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_compile ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1734 ac_retval=1
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_compile
1741 # ac_fn_cxx_try_compile LINENO
1742 # ----------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_cxx_try_compile ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_cxx_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1772 ac_retval=1
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_cxx_try_compile
1779 # ac_fn_c_try_cpp LINENO
1780 # ----------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_cpp ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_cpp conftest.$ac_ext"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } > conftest.i && {
1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_c_try_cpp
1816 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1819 # the include files in INCLUDES and setting the cache variable VAR
1820 # accordingly.
1821 ac_fn_c_check_header_mongrel ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if eval \${$3+:} false; then :
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 else
1834 # Is the header compilable?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1836 $as_echo_n "checking $2 usability... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_header_compiler=yes
1844 else
1845 ac_header_compiler=no
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1849 $as_echo "$ac_header_compiler" >&6; }
1851 # Is the header present?
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1853 $as_echo_n "checking $2 presence... " >&6; }
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 #include <$2>
1857 _ACEOF
1858 if ac_fn_c_try_cpp "$LINENO"; then :
1859 ac_header_preproc=yes
1860 else
1861 ac_header_preproc=no
1863 rm -f conftest.err conftest.i conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865 $as_echo "$ac_header_preproc" >&6; }
1867 # So? What about this header?
1868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1869 yes:no: )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1871 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 no:yes:* )
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1877 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1879 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1881 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1883 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 esac
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 eval "$3=\$ac_header_compiler"
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 } # ac_fn_c_check_header_mongrel
1903 # ac_fn_c_try_run LINENO
1904 # ----------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1906 # that executables *can* be run.
1907 ac_fn_c_try_run ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if { { ac_try="$ac_link"
1911 case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>&5
1918 ac_status=$?
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1921 { { case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_try") 2>&5
1928 ac_status=$?
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; }; }; then :
1931 ac_retval=0
1932 else
1933 $as_echo "$as_me: program exited with status $ac_status" >&5
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1937 ac_retval=$ac_status
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1943 } # ac_fn_c_try_run
1945 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1946 # -------------------------------------------------------
1947 # Tests whether HEADER exists and can be compiled using the include files in
1948 # INCLUDES, setting the cache variable VAR accordingly.
1949 ac_fn_c_check_header_compile ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 eval "$3=yes"
1964 else
1965 eval "$3=no"
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 } # ac_fn_c_check_header_compile
1976 # ac_fn_c_try_link LINENO
1977 # -----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_c_try_link ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 rm -f conftest.$ac_objext conftest$ac_exeext
1983 if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>conftest.err
1991 ac_status=$?
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && {
1999 test -z "$ac_c_werror_flag" ||
2000 test ! -s conftest.err
2001 } && test -s conftest$ac_exeext && {
2002 test "$cross_compiling" = yes ||
2003 $as_test_x conftest$ac_exeext
2004 }; then :
2005 ac_retval=0
2006 else
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 ac_retval=1
2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014 # interfere with the next link command; also delete a directory that is
2015 # left behind by Apple's compiler. We do this before executing the actions.
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2020 } # ac_fn_c_try_link
2022 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2023 # ----------------------------------------------------
2024 # Tries to find if the field MEMBER exists in type AGGR, after including
2025 # INCLUDES, setting cache variable VAR accordingly.
2026 ac_fn_c_check_member ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2030 $as_echo_n "checking for $2.$3... " >&6; }
2031 if eval \${$4+:} false; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 static $2 ac_aggr;
2041 if (ac_aggr.$3)
2042 return 0;
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 eval "$4=yes"
2049 else
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2054 main ()
2056 static $2 ac_aggr;
2057 if (sizeof ac_aggr.$3)
2058 return 0;
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$4=yes"
2065 else
2066 eval "$4=no"
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 eval ac_res=\$$4
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_member
2079 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2080 # ---------------------------------------------
2081 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2082 # accordingly.
2083 ac_fn_c_check_decl ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 as_decl_name=`echo $2|sed 's/ *(.*//'`
2087 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2089 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2092 else
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2097 main ()
2099 #ifndef $as_decl_name
2100 #ifdef __cplusplus
2101 (void) $as_decl_use;
2102 #else
2103 (void) $as_decl_name;
2104 #endif
2105 #endif
2108 return 0;
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 eval "$3=yes"
2113 else
2114 eval "$3=no"
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_decl
2125 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2126 # -------------------------------------------
2127 # Tests whether TYPE exists after having included INCLUDES, setting cache
2128 # variable VAR accordingly.
2129 ac_fn_c_check_type ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2136 else
2137 eval "$3=no"
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2142 main ()
2144 if (sizeof ($2))
2145 return 0;
2147 return 0;
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 if (sizeof (($2)))
2158 return 0;
2160 return 0;
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2165 else
2166 eval "$3=yes"
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 eval ac_res=\$$3
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 } # ac_fn_c_check_type
2179 # ac_fn_c_check_func LINENO FUNC VAR
2180 # ----------------------------------
2181 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2182 ac_fn_c_check_func ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if eval \${$3+:} false; then :
2188 $as_echo_n "(cached) " >&6
2189 else
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2194 #define $2 innocuous_$2
2196 /* System header to define __stub macros and hopefully few prototypes,
2197 which can conflict with char $2 (); below.
2198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2199 <limits.h> exists even on freestanding compilers. */
2201 #ifdef __STDC__
2202 # include <limits.h>
2203 #else
2204 # include <assert.h>
2205 #endif
2207 #undef $2
2209 /* Override any GCC internal prototype to avoid an error.
2210 Use char because int might match the return type of a GCC
2211 builtin and then its argument prototype would still apply. */
2212 #ifdef __cplusplus
2213 extern "C"
2214 #endif
2215 char $2 ();
2216 /* The GNU C library defines this for functions which it implements
2217 to always fail with ENOSYS. Some functions are actually named
2218 something starting with __ and the normal name is an alias. */
2219 #if defined __stub_$2 || defined __stub___$2
2220 choke me
2221 #endif
2224 main ()
2226 return $2 ();
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_link "$LINENO"; then :
2232 eval "$3=yes"
2233 else
2234 eval "$3=no"
2236 rm -f core conftest.err conftest.$ac_objext \
2237 conftest$ac_exeext conftest.$ac_ext
2239 eval ac_res=\$$3
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 } # ac_fn_c_check_func
2245 cat >config.log <<_ACEOF
2246 This file contains any messages produced by compilers while
2247 running configure, to aid debugging if configure makes a mistake.
2249 It was created by $as_me, which was
2250 generated by GNU Autoconf 2.68. Invocation command line was
2252 $ $0 $@
2254 _ACEOF
2255 exec 5>>config.log
2257 cat <<_ASUNAME
2258 ## --------- ##
2259 ## Platform. ##
2260 ## --------- ##
2262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2269 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2271 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2272 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2274 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2275 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2276 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2277 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2279 _ASUNAME
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 $as_echo "PATH: $as_dir"
2287 done
2288 IFS=$as_save_IFS
2290 } >&5
2292 cat >&5 <<_ACEOF
2295 ## ----------- ##
2296 ## Core tests. ##
2297 ## ----------- ##
2299 _ACEOF
2302 # Keep a trace of the command line.
2303 # Strip out --no-create and --no-recursion so they do not pile up.
2304 # Strip out --silent because we don't want to record it for future runs.
2305 # Also quote any args containing shell meta-characters.
2306 # Make two passes to allow for proper duplicate-argument suppression.
2307 ac_configure_args=
2308 ac_configure_args0=
2309 ac_configure_args1=
2310 ac_must_keep_next=false
2311 for ac_pass in 1 2
2313 for ac_arg
2315 case $ac_arg in
2316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2318 | -silent | --silent | --silen | --sile | --sil)
2319 continue ;;
2320 *\'*)
2321 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2322 esac
2323 case $ac_pass in
2324 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2326 as_fn_append ac_configure_args1 " '$ac_arg'"
2327 if test $ac_must_keep_next = true; then
2328 ac_must_keep_next=false # Got value, back to normal.
2329 else
2330 case $ac_arg in
2331 *=* | --config-cache | -C | -disable-* | --disable-* \
2332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2334 | -with-* | --with-* | -without-* | --without-* | --x)
2335 case "$ac_configure_args0 " in
2336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2337 esac
2339 -* ) ac_must_keep_next=true ;;
2340 esac
2342 as_fn_append ac_configure_args " '$ac_arg'"
2344 esac
2345 done
2346 done
2347 { ac_configure_args0=; unset ac_configure_args0;}
2348 { ac_configure_args1=; unset ac_configure_args1;}
2350 # When interrupted or exit'd, cleanup temporary files, and complete
2351 # config.log. We remove comments because anyway the quotes in there
2352 # would cause problems or look ugly.
2353 # WARNING: Use '\'' to represent an apostrophe within the trap.
2354 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2355 trap 'exit_status=$?
2356 # Save into config.log some information that might help in debugging.
2358 echo
2360 $as_echo "## ---------------- ##
2361 ## Cache variables. ##
2362 ## ---------------- ##"
2363 echo
2364 # The following way of writing the cache mishandles newlines in values,
2366 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in #(
2369 *${as_nl}*)
2370 case $ac_var in #(
2371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373 esac
2374 case $ac_var in #(
2375 _ | IFS | as_nl) ;; #(
2376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377 *) { eval $ac_var=; unset $ac_var;} ;;
2378 esac ;;
2379 esac
2380 done
2381 (set) 2>&1 |
2382 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383 *${as_nl}ac_space=\ *)
2384 sed -n \
2385 "s/'\''/'\''\\\\'\'''\''/g;
2386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387 ;; #(
2389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 esac |
2392 sort
2394 echo
2396 $as_echo "## ----------------- ##
2397 ## Output variables. ##
2398 ## ----------------- ##"
2399 echo
2400 for ac_var in $ac_subst_vars
2402 eval ac_val=\$$ac_var
2403 case $ac_val in
2404 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2405 esac
2406 $as_echo "$ac_var='\''$ac_val'\''"
2407 done | sort
2408 echo
2410 if test -n "$ac_subst_files"; then
2411 $as_echo "## ------------------- ##
2412 ## File substitutions. ##
2413 ## ------------------- ##"
2414 echo
2415 for ac_var in $ac_subst_files
2417 eval ac_val=\$$ac_var
2418 case $ac_val in
2419 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2420 esac
2421 $as_echo "$ac_var='\''$ac_val'\''"
2422 done | sort
2423 echo
2426 if test -s confdefs.h; then
2427 $as_echo "## ----------- ##
2428 ## confdefs.h. ##
2429 ## ----------- ##"
2430 echo
2431 cat confdefs.h
2432 echo
2434 test "$ac_signal" != 0 &&
2435 $as_echo "$as_me: caught signal $ac_signal"
2436 $as_echo "$as_me: exit $exit_status"
2437 } >&5
2438 rm -f core *.core core.conftest.* &&
2439 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2440 exit $exit_status
2442 for ac_signal in 1 2 13 15; do
2443 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2444 done
2445 ac_signal=0
2447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2448 rm -f -r conftest* confdefs.h
2450 $as_echo "/* confdefs.h */" > confdefs.h
2452 # Predefined preprocessor variables.
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_NAME "$PACKAGE_NAME"
2456 _ACEOF
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2460 _ACEOF
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2464 _ACEOF
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_STRING "$PACKAGE_STRING"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_URL "$PACKAGE_URL"
2476 _ACEOF
2479 # Let the site file select an alternate cache file if it wants to.
2480 # Prefer an explicitly selected file to automatically selected ones.
2481 ac_site_file1=NONE
2482 ac_site_file2=NONE
2483 if test -n "$CONFIG_SITE"; then
2484 # We do not want a PATH search for config.site.
2485 case $CONFIG_SITE in #((
2486 -*) ac_site_file1=./$CONFIG_SITE;;
2487 */*) ac_site_file1=$CONFIG_SITE;;
2488 *) ac_site_file1=./$CONFIG_SITE;;
2489 esac
2490 elif test "x$prefix" != xNONE; then
2491 ac_site_file1=$prefix/share/config.site
2492 ac_site_file2=$prefix/etc/config.site
2493 else
2494 ac_site_file1=$ac_default_prefix/share/config.site
2495 ac_site_file2=$ac_default_prefix/etc/config.site
2497 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2499 test "x$ac_site_file" = xNONE && continue
2500 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2502 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2503 sed 's/^/| /' "$ac_site_file" >&5
2504 . "$ac_site_file" \
2505 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 as_fn_error $? "failed to load site script $ac_site_file
2508 See \`config.log' for more details" "$LINENO" 5 ; }
2510 done
2512 if test -r "$cache_file"; then
2513 # Some versions of bash will fail to source /dev/null (special files
2514 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2515 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2517 $as_echo "$as_me: loading cache $cache_file" >&6;}
2518 case $cache_file in
2519 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2520 *) . "./$cache_file";;
2521 esac
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2525 $as_echo "$as_me: creating cache $cache_file" >&6;}
2526 >$cache_file
2529 as_fn_append ac_header_list " stdlib.h"
2530 as_fn_append ac_header_list " unistd.h"
2531 as_fn_append ac_header_list " sys/param.h"
2532 # Check that the precious variables saved in the cache have kept the same
2533 # value.
2534 ac_cache_corrupted=false
2535 for ac_var in $ac_precious_vars; do
2536 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537 eval ac_new_set=\$ac_env_${ac_var}_set
2538 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539 eval ac_new_val=\$ac_env_${ac_var}_value
2540 case $ac_old_set,$ac_new_set in
2541 set,)
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2545 ,set)
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2548 ac_cache_corrupted=: ;;
2549 ,);;
2551 if test "x$ac_old_val" != "x$ac_new_val"; then
2552 # differences in whitespace do not lead to failure.
2553 ac_old_val_w=`echo x $ac_old_val`
2554 ac_new_val_w=`echo x $ac_new_val`
2555 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2557 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2558 ac_cache_corrupted=:
2559 else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2561 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2562 eval $ac_var=\$ac_old_val
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2565 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2567 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2568 fi;;
2569 esac
2570 # Pass precious variables to config.status.
2571 if test "$ac_new_set" = set; then
2572 case $ac_new_val in
2573 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574 *) ac_arg=$ac_var=$ac_new_val ;;
2575 esac
2576 case " $ac_configure_args " in
2577 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2578 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2579 esac
2581 done
2582 if $ac_cache_corrupted; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2587 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589 ## -------------------- ##
2590 ## Main body of script. ##
2591 ## -------------------- ##
2593 ac_ext=c
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 ac_aux_dir=
2602 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2603 if test -f "$ac_dir/install-sh"; then
2604 ac_aux_dir=$ac_dir
2605 ac_install_sh="$ac_aux_dir/install-sh -c"
2606 break
2607 elif test -f "$ac_dir/install.sh"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/install.sh -c"
2610 break
2611 elif test -f "$ac_dir/shtool"; then
2612 ac_aux_dir=$ac_dir
2613 ac_install_sh="$ac_aux_dir/shtool install -c"
2614 break
2616 done
2617 if test -z "$ac_aux_dir"; then
2618 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2621 # These three variables are undocumented and unsupported,
2622 # and are intended to be withdrawn in a future Autoconf release.
2623 # They can cause serious problems if a builder's source tree is in a directory
2624 # whose full name contains unusual characters.
2625 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2626 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2627 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2631 # Check what host we are running on.
2632 # If a target is not suggested, we use this one.
2633 # Note that what we call a target, Autoconf calls a host.
2634 # Make sure we can run config.sub.
2635 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2636 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2639 $as_echo_n "checking build system type... " >&6; }
2640 if ${ac_cv_build+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 ac_build_alias=$build_alias
2644 test "x$ac_build_alias" = x &&
2645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2646 test "x$ac_build_alias" = x &&
2647 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2648 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2653 $as_echo "$ac_cv_build" >&6; }
2654 case $ac_cv_build in
2655 *-*-*) ;;
2656 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2657 esac
2658 build=$ac_cv_build
2659 ac_save_IFS=$IFS; IFS='-'
2660 set x $ac_cv_build
2661 shift
2662 build_cpu=$1
2663 build_vendor=$2
2664 shift; shift
2665 # Remember, the first character of IFS is used to create $*,
2666 # except with old shells:
2667 build_os=$*
2668 IFS=$ac_save_IFS
2669 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2673 $as_echo_n "checking host system type... " >&6; }
2674 if ${ac_cv_host+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test "x$host_alias" = x; then
2678 ac_cv_host=$ac_cv_build
2679 else
2680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2686 $as_echo "$ac_cv_host" >&6; }
2687 case $ac_cv_host in
2688 *-*-*) ;;
2689 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2690 esac
2691 host=$ac_cv_host
2692 ac_save_IFS=$IFS; IFS='-'
2693 set x $ac_cv_host
2694 shift
2695 host_cpu=$1
2696 host_vendor=$2
2697 shift; shift
2698 # Remember, the first character of IFS is used to create $*,
2699 # except with old shells:
2700 host_os=$*
2701 IFS=$ac_save_IFS
2702 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2706 # The AROS target is slightly different to the normal GNU style
2707 # format. We don't have the middle part, and we reverse the order
2708 # of the $(CPU) and $(OS) bits.
2710 # Don't strip the version of the target yet, it might be
2711 # useful on some systems.
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2714 $as_echo_n "checking for AROS style target... " >&6; }
2716 if test "$target" = "NONE" ; then
2717 target=$host_os-$host_cpu
2718 else
2719 if test "$target" = "" ; then
2720 target=$host_os-$host_cpu
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2724 $as_echo "$target" >&6; }
2726 if test "$host_os" = "mingw32" ; then
2727 PWDCMD="pwd -W"
2730 # Don't know where else to put this...
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2732 $as_echo_n "checking building AROS in... " >&6; }
2733 AROS_BUILDDIR=`${PWDCMD-pwd}`
2734 AROS_BUILDDIR_UNIX=${PWD}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2736 $as_echo "$AROS_BUILDDIR" >&6; }
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2739 $as_echo_n "checking AROS source in... " >&6; }
2740 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2741 SRCDIR=${srcpwd}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2743 $as_echo "$SRCDIR" >&6; }
2745 # Parse the target field into something useful.
2747 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2748 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2751 # Some debug output, to be removed again.
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2753 $as_echo_n "checking for target system (debug output)... " >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2755 $as_echo "$target_os" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2757 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2759 $as_echo "$target_cpu" >&6; }
2761 aros_default_wbwidth=800
2762 aros_default_wbheight=600
2763 aros_default_wbdepth=4
2766 # The first step is to find the host binaries.
2767 # Check for a compiler.
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_CC+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2797 IFS=$as_save_IFS
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2804 $as_echo "$CC" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2812 if test -z "$ac_cv_prog_CC"; then
2813 ac_ct_CC=$CC
2814 # Extract the first word of "gcc", so it can be a program name with args.
2815 set dummy gcc; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$ac_ct_CC"; then
2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CC="gcc"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2835 done
2836 done
2837 IFS=$as_save_IFS
2841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2844 $as_echo "$ac_ct_CC" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2850 if test "x$ac_ct_CC" = x; then
2851 CC=""
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857 ac_tool_warned=yes ;;
2858 esac
2859 CC=$ac_ct_CC
2861 else
2862 CC="$ac_cv_prog_CC"
2865 if test -z "$CC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}cc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_CC+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_CC="${ac_tool_prefix}cc"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2890 IFS=$as_save_IFS
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 $as_echo "$CC" >&6; }
2898 else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2906 if test -z "$CC"; then
2907 # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_CC+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917 ac_prog_rejected=no
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926 ac_prog_rejected=yes
2927 continue
2929 ac_cv_prog_CC="cc"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2935 IFS=$as_save_IFS
2937 if test $ac_prog_rejected = yes; then
2938 # We found a bogon in the path, so make sure we never use it.
2939 set dummy $ac_cv_prog_CC
2940 shift
2941 if test $# != 0; then
2942 # We chose a different compiler from the bogus one.
2943 # However, it has the same basename, so the bogon will be chosen
2944 # first if we set CC to just the basename; use the full file name.
2945 shift
2946 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2962 if test -z "$CC"; then
2963 if test -n "$ac_tool_prefix"; then
2964 for ac_prog in cl.exe
2966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2987 done
2988 done
2989 IFS=$as_save_IFS
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3003 test -n "$CC" && break
3004 done
3006 if test -z "$CC"; then
3007 ac_ct_CC=$CC
3008 for ac_prog in cl.exe
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if test -n "$ac_ct_CC"; then
3018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_ac_ct_CC="$ac_prog"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3031 done
3032 done
3033 IFS=$as_save_IFS
3037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038 if test -n "$ac_ct_CC"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3040 $as_echo "$ac_ct_CC" >&6; }
3041 else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3047 test -n "$ac_ct_CC" && break
3048 done
3050 if test "x$ac_ct_CC" = x; then
3051 CC=""
3052 else
3053 case $cross_compiling:$ac_tool_warned in
3054 yes:)
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057 ac_tool_warned=yes ;;
3058 esac
3059 CC=$ac_ct_CC
3066 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error $? "no acceptable C compiler found in \$PATH
3069 See \`config.log' for more details" "$LINENO" 5 ; }
3071 # Provide some information about the compiler.
3072 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3073 set X $ac_compile
3074 ac_compiler=$2
3075 for ac_option in --version -v -V -qversion; do
3076 { { ac_try="$ac_compiler $ac_option >&5"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3084 ac_status=$?
3085 if test -s conftest.err; then
3086 sed '10a\
3087 ... rest of stderr output deleted ...
3088 10q' conftest.err >conftest.er1
3089 cat conftest.er1 >&5
3091 rm -f conftest.er1 conftest.err
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }
3094 done
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3100 main ()
3104 return 0;
3106 _ACEOF
3107 ac_clean_files_save=$ac_clean_files
3108 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3109 # Try to create an executable without -o first, disregard a.out.
3110 # It will help us diagnose broken compilers, and finding out an intuition
3111 # of exeext.
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3113 $as_echo_n "checking whether the C compiler works... " >&6; }
3114 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3116 # The possible output files:
3117 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3119 ac_rmfiles=
3120 for ac_file in $ac_files
3122 case $ac_file in
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3125 esac
3126 done
3127 rm -f $ac_rmfiles
3129 if { { ac_try="$ac_link_default"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135 $as_echo "$ac_try_echo"; } >&5
3136 (eval "$ac_link_default") 2>&5
3137 ac_status=$?
3138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139 test $ac_status = 0; }; then :
3140 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3141 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3142 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3143 # so that the user can short-circuit this test for compilers unknown to
3144 # Autoconf.
3145 for ac_file in $ac_files ''
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3151 [ab].out )
3152 # We found the default executable, but exeext='' is most
3153 # certainly right.
3154 break;;
3155 *.* )
3156 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3157 then :; else
3158 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 # We set ac_cv_exeext here because the later test for it is not
3161 # safe: cross compilers may not add the suffix if given an `-o'
3162 # argument, so we may need to know it at that point already.
3163 # Even if this section looks crufty: it has the advantage of
3164 # actually working.
3165 break;;
3167 break;;
3168 esac
3169 done
3170 test "$ac_cv_exeext" = no && ac_cv_exeext=
3172 else
3173 ac_file=''
3175 if test -z "$ac_file"; then :
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error 77 "C compiler cannot create executables
3184 See \`config.log' for more details" "$LINENO" 5 ; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 $as_echo "yes" >&6; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3190 $as_echo_n "checking for C compiler default output file name... " >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3192 $as_echo "$ac_file" >&6; }
3193 ac_exeext=$ac_cv_exeext
3195 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3196 ac_clean_files=$ac_clean_files_save
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3198 $as_echo_n "checking for suffix of executables... " >&6; }
3199 if { { ac_try="$ac_link"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_link") 2>&5
3207 ac_status=$?
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }; then :
3210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3212 # work properly (i.e., refer to `conftest.exe'), while it won't with
3213 # `rm'.
3214 for ac_file in conftest.exe conftest conftest.*; do
3215 test -f "$ac_file" || continue
3216 case $ac_file in
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 break;;
3220 * ) break;;
3221 esac
3222 done
3223 else
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3227 See \`config.log' for more details" "$LINENO" 5 ; }
3229 rm -f conftest conftest$ac_cv_exeext
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3231 $as_echo "$ac_cv_exeext" >&6; }
3233 rm -f conftest.$ac_ext
3234 EXEEXT=$ac_cv_exeext
3235 ac_exeext=$EXEEXT
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3238 #include <stdio.h>
3240 main ()
3242 FILE *f = fopen ("conftest.out", "w");
3243 return ferror (f) || fclose (f) != 0;
3246 return 0;
3248 _ACEOF
3249 ac_clean_files="$ac_clean_files conftest.out"
3250 # Check that the compiler produces executables we can run. If not, either
3251 # the compiler is broken, or we cross compile.
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3253 $as_echo_n "checking whether we are cross compiling... " >&6; }
3254 if test "$cross_compiling" != yes; then
3255 { { ac_try="$ac_link"
3256 case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_link") 2>&5
3263 ac_status=$?
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }
3266 if { ac_try='./conftest$ac_cv_exeext'
3267 { { case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_try") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; }; then
3277 cross_compiling=no
3278 else
3279 if test "$cross_compiling" = maybe; then
3280 cross_compiling=yes
3281 else
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error $? "cannot run C compiled programs.
3285 If you meant to cross compile, use \`--host'.
3286 See \`config.log' for more details" "$LINENO" 5 ; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3291 $as_echo "$cross_compiling" >&6; }
3293 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3294 ac_clean_files=$ac_clean_files_save
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3296 $as_echo_n "checking for suffix of object files... " >&6; }
3297 if ${ac_cv_objext+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3304 main ()
3308 return 0;
3310 _ACEOF
3311 rm -f conftest.o conftest.obj
3312 if { { ac_try="$ac_compile"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_compile") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
3323 for ac_file in conftest.o conftest.obj conftest.*; do
3324 test -f "$ac_file" || continue;
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3328 break;;
3329 esac
3330 done
3331 else
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error $? "cannot compute suffix of object files: cannot compile
3338 See \`config.log' for more details" "$LINENO" 5 ; }
3340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3343 $as_echo "$ac_cv_objext" >&6; }
3344 OBJEXT=$ac_cv_objext
3345 ac_objext=$OBJEXT
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3347 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3348 if ${ac_cv_c_compiler_gnu+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3355 main ()
3357 #ifndef __GNUC__
3358 choke me
3359 #endif
3362 return 0;
3364 _ACEOF
3365 if ac_fn_c_try_compile "$LINENO"; then :
3366 ac_compiler_gnu=yes
3367 else
3368 ac_compiler_gnu=no
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3375 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3376 if test $ac_compiler_gnu = yes; then
3377 GCC=yes
3378 else
3379 GCC=
3381 ac_test_CFLAGS=${CFLAGS+set}
3382 ac_save_CFLAGS=$CFLAGS
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3384 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3385 if ${ac_cv_prog_cc_g+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 ac_save_c_werror_flag=$ac_c_werror_flag
3389 ac_c_werror_flag=yes
3390 ac_cv_prog_cc_g=no
3391 CFLAGS="-g"
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3396 main ()
3400 return 0;
3402 _ACEOF
3403 if ac_fn_c_try_compile "$LINENO"; then :
3404 ac_cv_prog_cc_g=yes
3405 else
3406 CFLAGS=""
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3411 main ()
3415 return 0;
3417 _ACEOF
3418 if ac_fn_c_try_compile "$LINENO"; then :
3420 else
3421 ac_c_werror_flag=$ac_save_c_werror_flag
3422 CFLAGS="-g"
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3427 main ()
3431 return 0;
3433 _ACEOF
3434 if ac_fn_c_try_compile "$LINENO"; then :
3435 ac_cv_prog_cc_g=yes
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 ac_c_werror_flag=$ac_save_c_werror_flag
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3445 $as_echo "$ac_cv_prog_cc_g" >&6; }
3446 if test "$ac_test_CFLAGS" = set; then
3447 CFLAGS=$ac_save_CFLAGS
3448 elif test $ac_cv_prog_cc_g = yes; then
3449 if test "$GCC" = yes; then
3450 CFLAGS="-g -O2"
3451 else
3452 CFLAGS="-g"
3454 else
3455 if test "$GCC" = yes; then
3456 CFLAGS="-O2"
3457 else
3458 CFLAGS=
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3462 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3463 if ${ac_cv_prog_cc_c89+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 ac_cv_prog_cc_c89=no
3467 ac_save_CC=$CC
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470 #include <stdarg.h>
3471 #include <stdio.h>
3472 #include <sys/types.h>
3473 #include <sys/stat.h>
3474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3475 struct buf { int x; };
3476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3477 static char *e (p, i)
3478 char **p;
3479 int i;
3481 return p[i];
3483 static char *f (char * (*g) (char **, int), char **p, ...)
3485 char *s;
3486 va_list v;
3487 va_start (v,p);
3488 s = g (p, va_arg (v,int));
3489 va_end (v);
3490 return s;
3493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3494 function prototypes and stuff, but not '\xHH' hex character constants.
3495 These don't provoke an error unfortunately, instead are silently treated
3496 as 'x'. The following induces an error, until -std is added to get
3497 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3498 array size at least. It's necessary to write '\x00'==0 to get something
3499 that's true only with -std. */
3500 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3502 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3503 inside strings and character constants. */
3504 #define FOO(x) 'x'
3505 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3507 int test (int i, double x);
3508 struct s1 {int (*f) (int a);};
3509 struct s2 {int (*f) (double a);};
3510 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3511 int argc;
3512 char **argv;
3514 main ()
3516 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3518 return 0;
3520 _ACEOF
3521 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3522 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3524 CC="$ac_save_CC $ac_arg"
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526 ac_cv_prog_cc_c89=$ac_arg
3528 rm -f core conftest.err conftest.$ac_objext
3529 test "x$ac_cv_prog_cc_c89" != "xno" && break
3530 done
3531 rm -f conftest.$ac_ext
3532 CC=$ac_save_CC
3535 # AC_CACHE_VAL
3536 case "x$ac_cv_prog_cc_c89" in
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3539 $as_echo "none needed" >&6; } ;;
3540 xno)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3542 $as_echo "unsupported" >&6; } ;;
3544 CC="$CC $ac_cv_prog_cc_c89"
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3546 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3547 esac
3548 if test "x$ac_cv_prog_cc_c89" != xno; then :
3552 ac_ext=c
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 case $ac_cv_prog_cc_stdc in #(
3559 no) :
3560 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3561 *) :
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3563 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3564 if ${ac_cv_prog_cc_c99+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 ac_cv_prog_cc_c99=no
3568 ac_save_CC=$CC
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571 #include <stdarg.h>
3572 #include <stdbool.h>
3573 #include <stdlib.h>
3574 #include <wchar.h>
3575 #include <stdio.h>
3577 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3578 #define debug(...) fprintf (stderr, __VA_ARGS__)
3579 #define showlist(...) puts (#__VA_ARGS__)
3580 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3581 static void
3582 test_varargs_macros (void)
3584 int x = 1234;
3585 int y = 5678;
3586 debug ("Flag");
3587 debug ("X = %d\n", x);
3588 showlist (The first, second, and third items.);
3589 report (x>y, "x is %d but y is %d", x, y);
3592 // Check long long types.
3593 #define BIG64 18446744073709551615ull
3594 #define BIG32 4294967295ul
3595 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3596 #if !BIG_OK
3597 your preprocessor is broken;
3598 #endif
3599 #if BIG_OK
3600 #else
3601 your preprocessor is broken;
3602 #endif
3603 static long long int bignum = -9223372036854775807LL;
3604 static unsigned long long int ubignum = BIG64;
3606 struct incomplete_array
3608 int datasize;
3609 double data[];
3612 struct named_init {
3613 int number;
3614 const wchar_t *name;
3615 double average;
3618 typedef const char *ccp;
3620 static inline int
3621 test_restrict (ccp restrict text)
3623 // See if C++-style comments work.
3624 // Iterate through items via the restricted pointer.
3625 // Also check for declarations in for loops.
3626 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3627 continue;
3628 return 0;
3631 // Check varargs and va_copy.
3632 static void
3633 test_varargs (const char *format, ...)
3635 va_list args;
3636 va_start (args, format);
3637 va_list args_copy;
3638 va_copy (args_copy, args);
3640 const char *str;
3641 int number;
3642 float fnumber;
3644 while (*format)
3646 switch (*format++)
3648 case 's': // string
3649 str = va_arg (args_copy, const char *);
3650 break;
3651 case 'd': // int
3652 number = va_arg (args_copy, int);
3653 break;
3654 case 'f': // float
3655 fnumber = va_arg (args_copy, double);
3656 break;
3657 default:
3658 break;
3661 va_end (args_copy);
3662 va_end (args);
3666 main ()
3669 // Check bool.
3670 _Bool success = false;
3672 // Check restrict.
3673 if (test_restrict ("String literal") == 0)
3674 success = true;
3675 char *restrict newvar = "Another string";
3677 // Check varargs.
3678 test_varargs ("s, d' f .", "string", 65, 34.234);
3679 test_varargs_macros ();
3681 // Check flexible array members.
3682 struct incomplete_array *ia =
3683 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3684 ia->datasize = 10;
3685 for (int i = 0; i < ia->datasize; ++i)
3686 ia->data[i] = i * 1.234;
3688 // Check named initializers.
3689 struct named_init ni = {
3690 .number = 34,
3691 .name = L"Test wide string",
3692 .average = 543.34343,
3695 ni.number = 58;
3697 int dynamic_array[ni.number];
3698 dynamic_array[ni.number - 1] = 543;
3700 // work around unused variable warnings
3701 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3702 || dynamic_array[ni.number - 1] != 543);
3705 return 0;
3707 _ACEOF
3708 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3710 CC="$ac_save_CC $ac_arg"
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_c99=$ac_arg
3714 rm -f core conftest.err conftest.$ac_objext
3715 test "x$ac_cv_prog_cc_c99" != "xno" && break
3716 done
3717 rm -f conftest.$ac_ext
3718 CC=$ac_save_CC
3721 # AC_CACHE_VAL
3722 case "x$ac_cv_prog_cc_c99" in
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725 $as_echo "none needed" >&6; } ;;
3726 xno)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3728 $as_echo "unsupported" >&6; } ;;
3730 CC="$CC $ac_cv_prog_cc_c99"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3732 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3733 esac
3734 if test "x$ac_cv_prog_cc_c99" != xno; then :
3735 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3738 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3739 if ${ac_cv_prog_cc_c89+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 ac_cv_prog_cc_c89=no
3743 ac_save_CC=$CC
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <stdarg.h>
3747 #include <stdio.h>
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3754 char **p;
3755 int i;
3757 return p[i];
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3761 char *s;
3762 va_list v;
3763 va_start (v,p);
3764 s = g (p, va_arg (v,int));
3765 va_end (v);
3766 return s;
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3779 inside strings and character constants. */
3780 #define FOO(x) 'x'
3781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3783 int test (int i, double x);
3784 struct s1 {int (*f) (int a);};
3785 struct s2 {int (*f) (double a);};
3786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 int argc;
3788 char **argv;
3790 main ()
3792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3794 return 0;
3796 _ACEOF
3797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800 CC="$ac_save_CC $ac_arg"
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_cv_prog_cc_c89=$ac_arg
3804 rm -f core conftest.err conftest.$ac_objext
3805 test "x$ac_cv_prog_cc_c89" != "xno" && break
3806 done
3807 rm -f conftest.$ac_ext
3808 CC=$ac_save_CC
3811 # AC_CACHE_VAL
3812 case "x$ac_cv_prog_cc_c89" in
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3815 $as_echo "none needed" >&6; } ;;
3816 xno)
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3818 $as_echo "unsupported" >&6; } ;;
3820 CC="$CC $ac_cv_prog_cc_c89"
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3823 esac
3824 if test "x$ac_cv_prog_cc_c89" != xno; then :
3825 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3826 else
3827 ac_cv_prog_cc_stdc=no
3832 esac
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3834 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3835 if ${ac_cv_prog_cc_stdc+:} false; then :
3836 $as_echo_n "(cached) " >&6
3839 case $ac_cv_prog_cc_stdc in #(
3840 no) :
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3842 $as_echo "unsupported" >&6; } ;; #(
3843 '') :
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845 $as_echo "none needed" >&6; } ;; #(
3846 *) :
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3848 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3849 esac
3851 ac_ext=cpp
3852 ac_cpp='$CXXCPP $CPPFLAGS'
3853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3856 if test -z "$CXX"; then
3857 if test -n "$CCC"; then
3858 CXX=$CCC
3859 else
3860 if test -n "$ac_tool_prefix"; then
3861 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if ${ac_cv_prog_CXX+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 if test -n "$CXX"; then
3871 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3884 done
3885 done
3886 IFS=$as_save_IFS
3890 CXX=$ac_cv_prog_CXX
3891 if test -n "$CXX"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3893 $as_echo "$CXX" >&6; }
3894 else
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3900 test -n "$CXX" && break
3901 done
3903 if test -z "$CXX"; then
3904 ac_ct_CXX=$CXX
3905 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3907 # Extract the first word of "$ac_prog", so it can be a program name with args.
3908 set dummy $ac_prog; ac_word=$2
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910 $as_echo_n "checking for $ac_word... " >&6; }
3911 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 if test -n "$ac_ct_CXX"; then
3915 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3924 ac_cv_prog_ac_ct_CXX="$ac_prog"
3925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3928 done
3929 done
3930 IFS=$as_save_IFS
3934 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3935 if test -n "$ac_ct_CXX"; then
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3937 $as_echo "$ac_ct_CXX" >&6; }
3938 else
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 $as_echo "no" >&6; }
3944 test -n "$ac_ct_CXX" && break
3945 done
3947 if test "x$ac_ct_CXX" = x; then
3948 CXX="g++"
3949 else
3950 case $cross_compiling:$ac_tool_warned in
3951 yes:)
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3954 ac_tool_warned=yes ;;
3955 esac
3956 CXX=$ac_ct_CXX
3962 # Provide some information about the compiler.
3963 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3964 set X $ac_compile
3965 ac_compiler=$2
3966 for ac_option in --version -v -V -qversion; do
3967 { { ac_try="$ac_compiler $ac_option >&5"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3975 ac_status=$?
3976 if test -s conftest.err; then
3977 sed '10a\
3978 ... rest of stderr output deleted ...
3979 10q' conftest.err >conftest.er1
3980 cat conftest.er1 >&5
3982 rm -f conftest.er1 conftest.err
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }
3985 done
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3988 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3989 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3996 main ()
3998 #ifndef __GNUC__
3999 choke me
4000 #endif
4003 return 0;
4005 _ACEOF
4006 if ac_fn_cxx_try_compile "$LINENO"; then :
4007 ac_compiler_gnu=yes
4008 else
4009 ac_compiler_gnu=no
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4016 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4017 if test $ac_compiler_gnu = yes; then
4018 GXX=yes
4019 else
4020 GXX=
4022 ac_test_CXXFLAGS=${CXXFLAGS+set}
4023 ac_save_CXXFLAGS=$CXXFLAGS
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4025 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4026 if ${ac_cv_prog_cxx_g+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4030 ac_cxx_werror_flag=yes
4031 ac_cv_prog_cxx_g=no
4032 CXXFLAGS="-g"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4037 main ()
4041 return 0;
4043 _ACEOF
4044 if ac_fn_cxx_try_compile "$LINENO"; then :
4045 ac_cv_prog_cxx_g=yes
4046 else
4047 CXXFLAGS=""
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4052 main ()
4056 return 0;
4058 _ACEOF
4059 if ac_fn_cxx_try_compile "$LINENO"; then :
4061 else
4062 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4063 CXXFLAGS="-g"
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4068 main ()
4072 return 0;
4074 _ACEOF
4075 if ac_fn_cxx_try_compile "$LINENO"; then :
4076 ac_cv_prog_cxx_g=yes
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4086 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4087 if test "$ac_test_CXXFLAGS" = set; then
4088 CXXFLAGS=$ac_save_CXXFLAGS
4089 elif test $ac_cv_prog_cxx_g = yes; then
4090 if test "$GXX" = yes; then
4091 CXXFLAGS="-g -O2"
4092 else
4093 CXXFLAGS="-g"
4095 else
4096 if test "$GXX" = yes; then
4097 CXXFLAGS="-O2"
4098 else
4099 CXXFLAGS=
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
4108 ac_ext=c
4109 ac_cpp='$CPP $CPPFLAGS'
4110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4114 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4115 # On Suns, sometimes $CPP names a directory.
4116 if test -n "$CPP" && test -d "$CPP"; then
4117 CPP=
4119 if test -z "$CPP"; then
4120 if ${ac_cv_prog_CPP+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 # Double quotes because CPP needs to be expanded
4124 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4126 ac_preproc_ok=false
4127 for ac_c_preproc_warn_flag in '' yes
4129 # Use a header file that comes with gcc, so configuring glibc
4130 # with a fresh cross-compiler works.
4131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4132 # <limits.h> exists even on freestanding compilers.
4133 # On the NeXT, cc -E runs the code through the compiler's parser,
4134 # not just through cpp. "Syntax error" is here to catch this case.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #ifdef __STDC__
4138 # include <limits.h>
4139 #else
4140 # include <assert.h>
4141 #endif
4142 Syntax error
4143 _ACEOF
4144 if ac_fn_c_try_cpp "$LINENO"; then :
4146 else
4147 # Broken: fails on valid input.
4148 continue
4150 rm -f conftest.err conftest.i conftest.$ac_ext
4152 # OK, works on sane cases. Now check whether nonexistent headers
4153 # can be detected and how.
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 #include <ac_nonexistent.h>
4157 _ACEOF
4158 if ac_fn_c_try_cpp "$LINENO"; then :
4159 # Broken: success on invalid input.
4160 continue
4161 else
4162 # Passes both tests.
4163 ac_preproc_ok=:
4164 break
4166 rm -f conftest.err conftest.i conftest.$ac_ext
4168 done
4169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4170 rm -f conftest.i conftest.err conftest.$ac_ext
4171 if $ac_preproc_ok; then :
4172 break
4175 done
4176 ac_cv_prog_CPP=$CPP
4179 CPP=$ac_cv_prog_CPP
4180 else
4181 ac_cv_prog_CPP=$CPP
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4184 $as_echo "$CPP" >&6; }
4185 ac_preproc_ok=false
4186 for ac_c_preproc_warn_flag in '' yes
4188 # Use a header file that comes with gcc, so configuring glibc
4189 # with a fresh cross-compiler works.
4190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4191 # <limits.h> exists even on freestanding compilers.
4192 # On the NeXT, cc -E runs the code through the compiler's parser,
4193 # not just through cpp. "Syntax error" is here to catch this case.
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 #ifdef __STDC__
4197 # include <limits.h>
4198 #else
4199 # include <assert.h>
4200 #endif
4201 Syntax error
4202 _ACEOF
4203 if ac_fn_c_try_cpp "$LINENO"; then :
4205 else
4206 # Broken: fails on valid input.
4207 continue
4209 rm -f conftest.err conftest.i conftest.$ac_ext
4211 # OK, works on sane cases. Now check whether nonexistent headers
4212 # can be detected and how.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <ac_nonexistent.h>
4216 _ACEOF
4217 if ac_fn_c_try_cpp "$LINENO"; then :
4218 # Broken: success on invalid input.
4219 continue
4220 else
4221 # Passes both tests.
4222 ac_preproc_ok=:
4223 break
4225 rm -f conftest.err conftest.i conftest.$ac_ext
4227 done
4228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4229 rm -f conftest.i conftest.err conftest.$ac_ext
4230 if $ac_preproc_ok; then :
4232 else
4233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4235 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4236 See \`config.log' for more details" "$LINENO" 5 ; }
4239 ac_ext=c
4240 ac_cpp='$CPP $CPPFLAGS'
4241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246 # Check for a compatible awk
4247 for ac_prog in gawk nawk
4249 # Extract the first word of "$ac_prog", so it can be a program name with args.
4250 set dummy $ac_prog; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if ${ac_cv_prog_AWK+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -n "$AWK"; then
4257 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4258 else
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266 ac_cv_prog_AWK="$ac_prog"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4270 done
4271 done
4272 IFS=$as_save_IFS
4276 AWK=$ac_cv_prog_AWK
4277 if test -n "$AWK"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4279 $as_echo "$AWK" >&6; }
4280 else
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4286 test -n "$AWK" && break
4287 done
4289 if test "$AWK" = ""; then
4290 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4292 # Extract the first word of "mmake", so it can be a program name with args.
4293 set dummy mmake; ac_word=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if ${ac_cv_prog_MMAKE+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if test -n "$MMAKE"; then
4300 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309 ac_cv_prog_MMAKE="mmake "
4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 break 2
4313 done
4314 done
4315 IFS=$as_save_IFS
4319 MMAKE=$ac_cv_prog_MMAKE
4320 if test -n "$MMAKE"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4322 $as_echo "$MMAKE" >&6; }
4323 else
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4330 # Perform some default variable assignments. Note all of these will be
4331 # Regenerated from the script, so there is no need to cache them.
4333 aros_host_cpp="$CPP"
4334 aros_host_cc="$CC"
4335 aros_host_cxx="$CXX"
4336 if test "$GCC" = "yes"; then
4337 aros_gcc_ld=`$CC -print-prog-name=ld`
4338 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4339 set dummy `basename $aros_gcc_ld`; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_path_aros_host_ld+:} false; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 case $aros_host_ld in
4346 [\\/]* | ?:[\\/]*)
4347 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in `dirname $aros_gcc_ld`
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4361 done
4362 done
4363 IFS=$as_save_IFS
4366 esac
4368 aros_host_ld=$ac_cv_path_aros_host_ld
4369 if test -n "$aros_host_ld"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4371 $as_echo "$aros_host_ld" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4379 if test "$aros_host_ld" = ""; then
4380 # Extract the first word of "ld", so it can be a program name with args.
4381 set dummy ld; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_path_aros_host_ld+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 case $aros_host_ld in
4388 [\\/]* | ?:[\\/]*)
4389 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4403 done
4404 done
4405 IFS=$as_save_IFS
4408 esac
4410 aros_host_ld=$ac_cv_path_aros_host_ld
4411 if test -n "$aros_host_ld"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4413 $as_echo "$aros_host_ld" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4421 if test "$aros_host_ld" = ""; then
4422 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4424 aros_host_make="make"
4425 aros_host_cflags=$CFLAGS
4426 aros_host_cxxflags=$CXXFLAGS
4427 aros_host_ldflags=$LDFLAGS
4428 aros_host_debug="-g -O0"
4429 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4430 aros_host_mkargs="--no-print-directory"
4431 aros_host_exe_suffix="$EXEEXT"
4432 aros_host_lib_suffix=""
4434 # Ignore all compliance, AROS ROMs = 0
4435 # KickStart v1.0 = 30
4436 # KickStart v1.3 = 34
4437 # KickStart v2.0 = 37
4438 # KickStart v3.0 = 39
4439 # KickStart v3.1 = 40
4440 # AmigaOS v3.5 = 44
4441 aros_amigaos_compliance=0
4443 for ac_prog in aclocal aclocal19 aclocal-1.9
4445 # Extract the first word of "$ac_prog", so it can be a program name with args.
4446 set dummy $ac_prog; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 if test -n "$aros_host_aclocal"; then
4453 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_aros_host_aclocal="$ac_prog"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4466 done
4467 done
4468 IFS=$as_save_IFS
4472 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4473 if test -n "$aros_host_aclocal"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4475 $as_echo "$aros_host_aclocal" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4482 test -n "$aros_host_aclocal" && break
4483 done
4485 for ac_prog in autoconf autoconf259 autoconf253
4487 # Extract the first word of "$ac_prog", so it can be a program name with args.
4488 set dummy $ac_prog; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test -n "$aros_host_autoconf"; then
4495 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_prog_aros_host_autoconf="$ac_prog"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4508 done
4509 done
4510 IFS=$as_save_IFS
4514 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4515 if test -n "$aros_host_autoconf"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4517 $as_echo "$aros_host_autoconf" >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4524 test -n "$aros_host_autoconf" && break
4525 done
4527 for ac_prog in autoheader autoheader259 autoheader253
4529 # Extract the first word of "$ac_prog", so it can be a program name with args.
4530 set dummy $ac_prog; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test -n "$aros_host_autoheader"; then
4537 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_aros_host_autoheader="$ac_prog"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4550 done
4551 done
4552 IFS=$as_save_IFS
4556 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4557 if test -n "$aros_host_autoheader"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4559 $as_echo "$aros_host_autoheader" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4566 test -n "$aros_host_autoheader" && break
4567 done
4569 for ac_prog in automake automake19 automake-1.9
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if ${ac_cv_prog_aros_host_automake+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -n "$aros_host_automake"; then
4579 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 ac_cv_prog_aros_host_automake="$ac_prog"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4592 done
4593 done
4594 IFS=$as_save_IFS
4598 aros_host_automake=$ac_cv_prog_aros_host_automake
4599 if test -n "$aros_host_automake"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4601 $as_echo "$aros_host_automake" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4608 test -n "$aros_host_automake" && break
4609 done
4612 if test "$aros_host_aclocal" = ""; then
4613 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4615 if test "$aros_host_automake" = ""; then
4616 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4619 case "$aros_host_cc" in
4620 *gcc*)
4621 aros_host_cc_pipe="-pipe"
4623 icc)
4624 aros_host_cc_pipe=""
4627 aros_host_cc_pipe=""
4629 esac
4631 aros_kernel_cc_includes=""
4632 aros_target_cc_includes=""
4634 # ----------------------------------------------------------------------------------------
4635 # Host-specific defaults
4637 # This is the main host configuration section. It is where the host
4638 # can change the values of any variables it needs to change. We do
4639 # not look at anything that compiles to the target yet, we'll get
4640 # to that later.
4642 case "$host_os" in
4643 aros*)
4644 aros_host_arch="aros"
4645 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4646 case "$host_cpu" in
4647 *i?86*)
4648 aros_host_cpu="i386"
4650 *x86_64*)
4651 aros_host_cpu="x86_64"
4653 *powerpc*)
4654 aros_host_cpu="ppc"
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4658 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4659 aros_host_cpu="$host_cpu"
4661 esac
4664 linux*)
4665 aros_host_arch="linux"
4666 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4667 android_build_os="linux-x86"
4668 android_tool="android"
4669 default_android_sdk="/opt/android-sdk-linux_x86"
4670 case "$host_cpu" in
4671 *i?86*)
4672 aros_host_cpu="i386"
4674 *x86_64*)
4675 aros_host_cpu="x86_64"
4677 *m68k*)
4678 aros_host_cpu="m68k"
4680 *powerpc*)
4681 aros_host_cpu="ppc"
4683 *arm*)
4684 aros_host_cpu="arm"
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4688 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4689 aros_host_cpu="$host_cpu"
4691 esac
4694 freebsd*)
4695 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4696 aros_host_make="gmake"
4697 aros_host_arch="freebsd"
4698 aros_host_cpu="i386"
4700 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4702 case $host_os in
4703 freebsd[234]*)
4704 aros_object_format="elf_i386"
4708 aros_object_format="elf_i386_fbsd"
4710 esac
4714 darwin*)
4715 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4716 aros_host_arch="darwin"
4717 android_build_os="darwin-x86"
4718 android_tool="android"
4719 default_android_sdk="/android-sdk-mac_x86"
4720 case "$host_cpu" in
4721 *i?86*)
4722 aros_host_cpu="i386"
4724 *x86_64*)
4725 aros_host_cpu="x86_64"
4727 *powerpc*)
4728 aros_host_cpu="ppc"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4732 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4733 aros_host_cpu="$host_cpu"
4735 esac
4737 aros_host_ldflags="$aros_host_ldflags -liconv"
4741 dragonfly*)
4742 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4743 aros_host_make="gmake"
4744 aros_host_arch="dragonfly"
4745 case $host_cpu in
4746 *i?86*)
4747 aros_host_cpu="i386"
4749 *amd64*)
4750 aros_host_cpu="x86_64"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4754 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4755 aros_host_cpu="$host_cpu"
4757 esac
4760 netbsd*)
4761 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4762 aros_host_make="gmake"
4763 aros_host_arch="netbsd"
4764 case "$host_cpu" in
4765 *i?86*)
4766 aros_host_cpu="i386"
4768 *m68k*)
4769 aros_host_cpu="m68k"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4773 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4774 aros_host_cpu="$host_cpu"
4776 esac
4777 aros_host_lib_suffix=".0.0"
4780 openbsd*)
4781 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4782 aros_host_make="gmake"
4783 aros_host_arch="openbsd"
4784 case "$host_cpu" in
4785 *i?86*)
4786 aros_host_cpu="i386"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4790 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4791 aros_host_cpu="$host_cpu"
4793 esac
4796 solaris*)
4797 aros_host_arch="solaris"
4798 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4799 case "$host_cpu" in
4800 *i?86*)
4801 aros_host_cpu="i386"
4803 *sparc*)
4804 aros_host_cpu="sparc"
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4808 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4809 aros_host_cpu="$host_cpu"
4811 esac
4814 morphos*)
4815 aros_host_arch="morphos"
4816 aros_host_cpu="ppc"
4819 amiga*)
4820 aros_host_arch="amiga"
4821 SORT="/gg/bin/sort"
4822 TEST="/gg/bin/test"
4823 UNIQ="/gg/bin/uniq"
4824 FOR="for"
4825 TOUCH="/gg/bin/touch"
4826 case "$host_cpu" in
4827 *m68k*)
4828 aros_host_cpu="m68k"
4830 *powerpc*)
4831 aros_host_cpu="ppc"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4835 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4836 aros_host_cpu="$host_cpu"
4838 esac
4841 cygwin*)
4842 aros_host_arch="cygwin"
4843 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4844 android_build_os="windows"
4845 android_tool="android.bat"
4846 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4848 case "$host_cpu" in
4849 *i?86*)
4850 aros_host_cpu="i386"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4854 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4855 aros_host_cpu="$host_cpu"
4857 esac
4860 mingw32*)
4861 aros_host_arch="mingw32"
4862 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4863 android_build_os="windows"
4864 android_tool="android.bat"
4865 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4867 case "$host_cpu" in
4868 *i?86*)
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4871 $as_echo_n "checking for Windows native gcc target... " >&6; }
4872 host_cpu=`gcc -dumpmachine`
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4874 $as_echo "$host_cpu" >&6; }
4877 esac
4879 case "$host_cpu" in
4880 *i?86*)
4881 aros_host_cpu="i386"
4884 mingw32*)
4885 aros_host_cpu="i386"
4888 *x86_64*)
4889 aros_host_cpu="x86_64"
4890 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4895 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4896 aros_host_cpu="$host_cpu"
4898 esac
4901 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4903 esac
4905 # Extract the first word of "ar", so it can be a program name with args.
4906 set dummy ar; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if ${ac_cv_prog_aros_host_ar+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$aros_host_ar"; then
4913 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_aros_host_ar="ar cr"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
4932 aros_host_ar=$ac_cv_prog_aros_host_ar
4933 if test -n "$aros_host_ar"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4935 $as_echo "$aros_host_ar" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4942 if test "$aros_host_ar" = ""; then
4943 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4945 # Extract the first word of "ranlib", so it can be a program name with args.
4946 set dummy ranlib; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$aros_host_ranlib"; then
4953 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_aros_host_ranlib="ranlib "
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4973 if test -n "$aros_host_ranlib"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4975 $as_echo "$aros_host_ranlib" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 if test "$aros_host_ranlib" = ""; then
4983 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4985 # Extract the first word of "strip", so it can be a program name with args.
4986 set dummy strip; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if ${ac_cv_prog_aros_host_strip+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$aros_host_strip"; then
4993 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_aros_host_strip="strip "
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5008 IFS=$as_save_IFS
5012 aros_host_strip=$ac_cv_prog_aros_host_strip
5013 if test -n "$aros_host_strip"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5015 $as_echo "$aros_host_strip" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5022 if test "$aros_host_strip" = ""; then
5023 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5026 # Extract the first word of "rm", so it can be a program name with args.
5027 set dummy rm; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_prog_RM+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -n "$RM"; then
5034 ac_cv_prog_RM="$RM" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043 ac_cv_prog_RM="rm -rf"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5047 done
5048 done
5049 IFS=$as_save_IFS
5053 RM=$ac_cv_prog_RM
5054 if test -n "$RM"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5056 $as_echo "$RM" >&6; }
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5063 if test "$RM" = ""; then
5064 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5066 # Extract the first word of "cp", so it can be a program name with args.
5067 set dummy cp; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_CP+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$CP"; then
5074 ac_cv_prog_CP="$CP" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_CP="cp "
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5087 done
5088 done
5089 IFS=$as_save_IFS
5093 CP=$ac_cv_prog_CP
5094 if test -n "$CP"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5096 $as_echo "$CP" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 if test "$CP" = ""; then
5104 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5106 # Extract the first word of "mv", so it can be a program name with args.
5107 set dummy mv; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_MV+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$MV"; then
5114 ac_cv_prog_MV="$MV" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_MV="mv "
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5127 done
5128 done
5129 IFS=$as_save_IFS
5133 MV=$ac_cv_prog_MV
5134 if test -n "$MV"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5136 $as_echo "$MV" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5143 if test "$MV" = ""; then
5144 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5146 # Extract the first word of "echo", so it can be a program name with args.
5147 set dummy echo; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_ECHO+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$ECHO"; then
5154 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_ECHO="echo "
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5173 ECHO=$ac_cv_prog_ECHO
5174 if test -n "$ECHO"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5176 $as_echo "$ECHO" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 if test "$ECHO" = ""; then
5184 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5186 # Extract the first word of "mkdir", so it can be a program name with args.
5187 set dummy mkdir; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_MKDIR+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$MKDIR"; then
5194 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_MKDIR="mkdir -p"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5209 IFS=$as_save_IFS
5213 MKDIR=$ac_cv_prog_MKDIR
5214 if test -n "$MKDIR"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5216 $as_echo "$MKDIR" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 if test "$MKDIR" = ""; then
5224 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5226 # Extract the first word of "touch", so it can be a program name with args.
5227 set dummy touch; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_TOUCH+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 if test -n "$TOUCH"; then
5234 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_TOUCH="touch "
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5249 IFS=$as_save_IFS
5253 TOUCH=$ac_cv_prog_TOUCH
5254 if test -n "$TOUCH"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5256 $as_echo "$TOUCH" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5263 if test "$TOUCH" = ""; then
5264 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5266 # Extract the first word of "sort", so it can be a program name with args.
5267 set dummy sort; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_SORT+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 if test -n "$SORT"; then
5274 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_SORT="sort "
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 SORT=$ac_cv_prog_SORT
5294 if test -n "$SORT"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5296 $as_echo "$SORT" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 if test "$SORT" = ""; then
5304 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5306 # Extract the first word of "uniq", so it can be a program name with args.
5307 set dummy uniq; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_prog_UNIQ+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 if test -n "$UNIQ"; then
5314 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323 ac_cv_prog_UNIQ="uniq "
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5327 done
5328 done
5329 IFS=$as_save_IFS
5333 UNIQ=$ac_cv_prog_UNIQ
5334 if test -n "$UNIQ"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5336 $as_echo "$UNIQ" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5343 if test "$UNIQ" = ""; then
5344 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5346 # Extract the first word of "true", so it can be a program name with args.
5347 set dummy true; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_NOP+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$NOP"; then
5354 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_NOP="true "
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5367 done
5368 done
5369 IFS=$as_save_IFS
5373 NOP=$ac_cv_prog_NOP
5374 if test -n "$NOP"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5376 $as_echo "$NOP" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 if test "$NOP" = ""; then
5384 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5386 # Extract the first word of "cat", so it can be a program name with args.
5387 set dummy cat; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_CAT+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$CAT"; then
5394 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_CAT="cat "
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5413 CAT=$ac_cv_prog_CAT
5414 if test -n "$CAT"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5416 $as_echo "$CAT" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5423 if test "$CAT" = ""; then
5424 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5426 # Extract the first word of "bison", so it can be a program name with args.
5427 set dummy bison; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_prog_BISON+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$BISON"; then
5434 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_BISON="bison "
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5447 done
5448 done
5449 IFS=$as_save_IFS
5453 BISON=$ac_cv_prog_BISON
5454 if test -n "$BISON"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5456 $as_echo "$BISON" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 if test "$BISON" = ""; then
5464 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5466 # Extract the first word of "flex", so it can be a program name with args.
5467 set dummy flex; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_prog_FLEX+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -n "$FLEX"; then
5474 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483 ac_cv_prog_FLEX="flex "
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5487 done
5488 done
5489 IFS=$as_save_IFS
5493 FLEX=$ac_cv_prog_FLEX
5494 if test -n "$FLEX"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5496 $as_echo "$FLEX" >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5503 if test "$FLEX" = ""; then
5504 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5506 # Extract the first word of "pngtopnm", so it can be a program name with args.
5507 set dummy pngtopnm; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 if test -n "$PNGTOPNM"; then
5514 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_PNGTOPNM="pngtopnm "
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5527 done
5528 done
5529 IFS=$as_save_IFS
5533 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5534 if test -n "$PNGTOPNM"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5536 $as_echo "$PNGTOPNM" >&6; }
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5543 if test "$PNGTOPNM" = ""; then
5544 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5546 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5547 set dummy ppmtoilbm; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$PPMTOILBM"; then
5554 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5567 done
5568 done
5569 IFS=$as_save_IFS
5573 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5574 if test -n "$PPMTOILBM"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5576 $as_echo "$PPMTOILBM" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5583 if test "$PPMTOILBM" = ""; then
5584 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5586 # Extract the first word of "sed", so it can be a program name with args.
5587 set dummy sed; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if ${ac_cv_prog_SED+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -n "$SED"; then
5594 ac_cv_prog_SED="$SED" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_SED="sed "
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5607 done
5608 done
5609 IFS=$as_save_IFS
5613 SED=$ac_cv_prog_SED
5614 if test -n "$SED"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5616 $as_echo "$SED" >&6; }
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5623 if test "$SED" = ""; then
5624 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5626 # Extract the first word of "chmod", so it can be a program name with args.
5627 set dummy chmod; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_prog_CHMOD+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test -n "$CHMOD"; then
5634 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643 ac_cv_prog_CHMOD="chmod "
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 break 2
5647 done
5648 done
5649 IFS=$as_save_IFS
5653 CHMOD=$ac_cv_prog_CHMOD
5654 if test -n "$CHMOD"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5656 $as_echo "$CHMOD" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5663 if test "$CHMOD" = ""; then
5664 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5666 # Extract the first word of "patch", so it can be a program name with args.
5667 set dummy patch; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_PATCH+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$PATCH"; then
5674 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_prog_PATCH="patch "
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5689 IFS=$as_save_IFS
5693 PATCH=$ac_cv_prog_PATCH
5694 if test -n "$PATCH"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5696 $as_echo "$PATCH" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5703 if test "$PATCH" = ""; then
5704 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5711 if test -n "$PYTHON"; then
5712 # If the user set $PYTHON, use it and don't search something else.
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5714 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5715 prog="import sys, string
5716 # split strings by '.' and convert to numeric. Append some zeros
5717 # because we need at least 4 digits for the hex conversion.
5718 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5719 minverhex = 0
5720 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5721 sys.exit(sys.hexversion < minverhex)"
5722 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5723 ($PYTHON -c "$prog") >&5 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; then :
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5728 $as_echo "yes" >&6; }
5729 else
5730 as_fn_error $? "too old" "$LINENO" 5
5732 am_display_PYTHON=$PYTHON
5733 else
5734 # Otherwise, try each interpreter until we find one that satisfies
5735 # VERSION.
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5737 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5738 if ${am_cv_pathless_PYTHON+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5742 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
5743 test "$am_cv_pathless_PYTHON" = none && break
5744 prog="import sys, string
5745 # split strings by '.' and convert to numeric. Append some zeros
5746 # because we need at least 4 digits for the hex conversion.
5747 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5748 minverhex = 0
5749 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5750 sys.exit(sys.hexversion < minverhex)"
5751 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5752 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; then :
5756 break
5758 done
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5761 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5762 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5763 if test "$am_cv_pathless_PYTHON" = none; then
5764 PYTHON=:
5765 else
5766 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5767 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if ${ac_cv_path_PYTHON+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 case $PYTHON in
5774 [\\/]* | ?:[\\/]*)
5775 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5789 done
5790 done
5791 IFS=$as_save_IFS
5794 esac
5796 PYTHON=$ac_cv_path_PYTHON
5797 if test -n "$PYTHON"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5799 $as_echo "$PYTHON" >&6; }
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5807 am_display_PYTHON=$am_cv_pathless_PYTHON
5811 if test "$PYTHON" = :; then
5812 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5813 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5817 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5818 if ${am_cv_python_version+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5824 $as_echo "$am_cv_python_version" >&6; }
5825 PYTHON_VERSION=$am_cv_python_version
5829 PYTHON_PREFIX='${prefix}'
5831 PYTHON_EXEC_PREFIX='${exec_prefix}'
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5836 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5837 if ${am_cv_python_platform+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5843 $as_echo "$am_cv_python_platform" >&6; }
5844 PYTHON_PLATFORM=$am_cv_python_platform
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5850 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5851 if ${am_cv_python_pythondir+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5855 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5858 $as_echo "$am_cv_python_pythondir" >&6; }
5859 pythondir=$am_cv_python_pythondir
5863 pkgpythondir=\${pythondir}/$PACKAGE
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5867 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5868 if ${am_cv_python_pyexecdir+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5872 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5875 $as_echo "$am_cv_python_pyexecdir" >&6; }
5876 pyexecdir=$am_cv_python_pyexecdir
5880 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5888 FOR=for
5890 IF=if
5892 TEST=test
5894 CMP=cmp
5898 # Check for some includes for the X11 HIDD and the kernel
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5902 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5903 if ${ac_cv_path_GREP+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if test -z "$GREP"; then
5907 ac_path_GREP_found=false
5908 # Loop through the user's path and test for each of PROGNAME-LIST
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_prog in grep ggrep; do
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5917 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5918 # Check for GNU ac_path_GREP and select it if it is found.
5919 # Check for GNU $ac_path_GREP
5920 case `"$ac_path_GREP" --version 2>&1` in
5921 *GNU*)
5922 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5924 ac_count=0
5925 $as_echo_n 0123456789 >"conftest.in"
5926 while :
5928 cat "conftest.in" "conftest.in" >"conftest.tmp"
5929 mv "conftest.tmp" "conftest.in"
5930 cp "conftest.in" "conftest.nl"
5931 $as_echo 'GREP' >> "conftest.nl"
5932 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5934 as_fn_arith $ac_count + 1 && ac_count=$as_val
5935 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5936 # Best one so far, save it but keep looking for a better one
5937 ac_cv_path_GREP="$ac_path_GREP"
5938 ac_path_GREP_max=$ac_count
5940 # 10*(2^10) chars as input seems more than enough
5941 test $ac_count -gt 10 && break
5942 done
5943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5944 esac
5946 $ac_path_GREP_found && break 3
5947 done
5948 done
5949 done
5950 IFS=$as_save_IFS
5951 if test -z "$ac_cv_path_GREP"; then
5952 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5954 else
5955 ac_cv_path_GREP=$GREP
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5960 $as_echo "$ac_cv_path_GREP" >&6; }
5961 GREP="$ac_cv_path_GREP"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5965 $as_echo_n "checking for egrep... " >&6; }
5966 if ${ac_cv_path_EGREP+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5970 then ac_cv_path_EGREP="$GREP -E"
5971 else
5972 if test -z "$EGREP"; then
5973 ac_path_EGREP_found=false
5974 # Loop through the user's path and test for each of PROGNAME-LIST
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_prog in egrep; do
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5983 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5984 # Check for GNU ac_path_EGREP and select it if it is found.
5985 # Check for GNU $ac_path_EGREP
5986 case `"$ac_path_EGREP" --version 2>&1` in
5987 *GNU*)
5988 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5990 ac_count=0
5991 $as_echo_n 0123456789 >"conftest.in"
5992 while :
5994 cat "conftest.in" "conftest.in" >"conftest.tmp"
5995 mv "conftest.tmp" "conftest.in"
5996 cp "conftest.in" "conftest.nl"
5997 $as_echo 'EGREP' >> "conftest.nl"
5998 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6000 as_fn_arith $ac_count + 1 && ac_count=$as_val
6001 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6002 # Best one so far, save it but keep looking for a better one
6003 ac_cv_path_EGREP="$ac_path_EGREP"
6004 ac_path_EGREP_max=$ac_count
6006 # 10*(2^10) chars as input seems more than enough
6007 test $ac_count -gt 10 && break
6008 done
6009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6010 esac
6012 $ac_path_EGREP_found && break 3
6013 done
6014 done
6015 done
6016 IFS=$as_save_IFS
6017 if test -z "$ac_cv_path_EGREP"; then
6018 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6020 else
6021 ac_cv_path_EGREP=$EGREP
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6027 $as_echo "$ac_cv_path_EGREP" >&6; }
6028 EGREP="$ac_cv_path_EGREP"
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6032 $as_echo_n "checking for ANSI C header files... " >&6; }
6033 if ${ac_cv_header_stdc+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <stdlib.h>
6039 #include <stdarg.h>
6040 #include <string.h>
6041 #include <float.h>
6044 main ()
6048 return 0;
6050 _ACEOF
6051 if ac_fn_c_try_compile "$LINENO"; then :
6052 ac_cv_header_stdc=yes
6053 else
6054 ac_cv_header_stdc=no
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 if test $ac_cv_header_stdc = yes; then
6059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 #include <string.h>
6064 _ACEOF
6065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6066 $EGREP "memchr" >/dev/null 2>&1; then :
6068 else
6069 ac_cv_header_stdc=no
6071 rm -f conftest*
6075 if test $ac_cv_header_stdc = yes; then
6076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #include <stdlib.h>
6081 _ACEOF
6082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6083 $EGREP "free" >/dev/null 2>&1; then :
6085 else
6086 ac_cv_header_stdc=no
6088 rm -f conftest*
6092 if test $ac_cv_header_stdc = yes; then
6093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6094 if test "$cross_compiling" = yes; then :
6096 else
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #include <ctype.h>
6100 #include <stdlib.h>
6101 #if ((' ' & 0x0FF) == 0x020)
6102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6103 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6104 #else
6105 # define ISLOWER(c) \
6106 (('a' <= (c) && (c) <= 'i') \
6107 || ('j' <= (c) && (c) <= 'r') \
6108 || ('s' <= (c) && (c) <= 'z'))
6109 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6110 #endif
6112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6114 main ()
6116 int i;
6117 for (i = 0; i < 256; i++)
6118 if (XOR (islower (i), ISLOWER (i))
6119 || toupper (i) != TOUPPER (i))
6120 return 2;
6121 return 0;
6123 _ACEOF
6124 if ac_fn_c_try_run "$LINENO"; then :
6126 else
6127 ac_cv_header_stdc=no
6129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6130 conftest.$ac_objext conftest.beam conftest.$ac_ext
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6136 $as_echo "$ac_cv_header_stdc" >&6; }
6137 if test $ac_cv_header_stdc = yes; then
6139 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6143 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6144 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6145 inttypes.h stdint.h unistd.h
6146 do :
6147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6150 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6151 cat >>confdefs.h <<_ACEOF
6152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6153 _ACEOF
6157 done
6160 for ac_header in sys/ipc.h sys/shm.h \
6161 sys/mmap.h sys/mman.h sysexits.h \
6162 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6164 do :
6165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6166 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6167 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6168 cat >>confdefs.h <<_ACEOF
6169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6170 _ACEOF
6174 done
6177 for ac_header in sys/mount.h
6178 do :
6179 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6181 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6182 cat >>confdefs.h <<_ACEOF
6183 #define HAVE_SYS_MOUNT_H 1
6184 _ACEOF
6188 done
6191 ac_header_dirent=no
6192 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6193 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6195 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6196 if eval \${$as_ac_Header+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 #include <sys/types.h>
6202 #include <$ac_hdr>
6205 main ()
6207 if ((DIR *) 0)
6208 return 0;
6210 return 0;
6212 _ACEOF
6213 if ac_fn_c_try_compile "$LINENO"; then :
6214 eval "$as_ac_Header=yes"
6215 else
6216 eval "$as_ac_Header=no"
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 eval ac_res=\$$as_ac_Header
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6222 $as_echo "$ac_res" >&6; }
6223 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6224 cat >>confdefs.h <<_ACEOF
6225 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6226 _ACEOF
6228 ac_header_dirent=$ac_hdr; break
6231 done
6232 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6233 if test $ac_header_dirent = dirent.h; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6235 $as_echo_n "checking for library containing opendir... " >&6; }
6236 if ${ac_cv_search_opendir+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 ac_func_search_save_LIBS=$LIBS
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6243 /* Override any GCC internal prototype to avoid an error.
6244 Use char because int might match the return type of a GCC
6245 builtin and then its argument prototype would still apply. */
6246 #ifdef __cplusplus
6247 extern "C"
6248 #endif
6249 char opendir ();
6251 main ()
6253 return opendir ();
6255 return 0;
6257 _ACEOF
6258 for ac_lib in '' dir; do
6259 if test -z "$ac_lib"; then
6260 ac_res="none required"
6261 else
6262 ac_res=-l$ac_lib
6263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6265 if ac_fn_c_try_link "$LINENO"; then :
6266 ac_cv_search_opendir=$ac_res
6268 rm -f core conftest.err conftest.$ac_objext \
6269 conftest$ac_exeext
6270 if ${ac_cv_search_opendir+:} false; then :
6271 break
6273 done
6274 if ${ac_cv_search_opendir+:} false; then :
6276 else
6277 ac_cv_search_opendir=no
6279 rm conftest.$ac_ext
6280 LIBS=$ac_func_search_save_LIBS
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6283 $as_echo "$ac_cv_search_opendir" >&6; }
6284 ac_res=$ac_cv_search_opendir
6285 if test "$ac_res" != no; then :
6286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6290 else
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6292 $as_echo_n "checking for library containing opendir... " >&6; }
6293 if ${ac_cv_search_opendir+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 ac_func_search_save_LIBS=$LIBS
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6300 /* Override any GCC internal prototype to avoid an error.
6301 Use char because int might match the return type of a GCC
6302 builtin and then its argument prototype would still apply. */
6303 #ifdef __cplusplus
6304 extern "C"
6305 #endif
6306 char opendir ();
6308 main ()
6310 return opendir ();
6312 return 0;
6314 _ACEOF
6315 for ac_lib in '' x; do
6316 if test -z "$ac_lib"; then
6317 ac_res="none required"
6318 else
6319 ac_res=-l$ac_lib
6320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6322 if ac_fn_c_try_link "$LINENO"; then :
6323 ac_cv_search_opendir=$ac_res
6325 rm -f core conftest.err conftest.$ac_objext \
6326 conftest$ac_exeext
6327 if ${ac_cv_search_opendir+:} false; then :
6328 break
6330 done
6331 if ${ac_cv_search_opendir+:} false; then :
6333 else
6334 ac_cv_search_opendir=no
6336 rm conftest.$ac_ext
6337 LIBS=$ac_func_search_save_LIBS
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6340 $as_echo "$ac_cv_search_opendir" >&6; }
6341 ac_res=$ac_cv_search_opendir
6342 if test "$ac_res" != no; then :
6343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6350 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6351 if ${ac_cv_header_stat_broken+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 #include <sys/types.h>
6357 #include <sys/stat.h>
6359 #if defined S_ISBLK && defined S_IFDIR
6360 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6361 #endif
6363 #if defined S_ISBLK && defined S_IFCHR
6364 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6365 #endif
6367 #if defined S_ISLNK && defined S_IFREG
6368 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6369 #endif
6371 #if defined S_ISSOCK && defined S_IFREG
6372 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6373 #endif
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 ac_cv_header_stat_broken=no
6378 else
6379 ac_cv_header_stat_broken=yes
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6384 $as_echo "$ac_cv_header_stat_broken" >&6; }
6385 if test $ac_cv_header_stat_broken = yes; then
6387 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6392 $as_echo_n "checking for ANSI C header files... " >&6; }
6393 if ${ac_cv_header_stdc+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398 #include <stdlib.h>
6399 #include <stdarg.h>
6400 #include <string.h>
6401 #include <float.h>
6404 main ()
6408 return 0;
6410 _ACEOF
6411 if ac_fn_c_try_compile "$LINENO"; then :
6412 ac_cv_header_stdc=yes
6413 else
6414 ac_cv_header_stdc=no
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 if test $ac_cv_header_stdc = yes; then
6419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 #include <string.h>
6424 _ACEOF
6425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6426 $EGREP "memchr" >/dev/null 2>&1; then :
6428 else
6429 ac_cv_header_stdc=no
6431 rm -f conftest*
6435 if test $ac_cv_header_stdc = yes; then
6436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 #include <stdlib.h>
6441 _ACEOF
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443 $EGREP "free" >/dev/null 2>&1; then :
6445 else
6446 ac_cv_header_stdc=no
6448 rm -f conftest*
6452 if test $ac_cv_header_stdc = yes; then
6453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6454 if test "$cross_compiling" = yes; then :
6456 else
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 #include <ctype.h>
6460 #include <stdlib.h>
6461 #if ((' ' & 0x0FF) == 0x020)
6462 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6463 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6464 #else
6465 # define ISLOWER(c) \
6466 (('a' <= (c) && (c) <= 'i') \
6467 || ('j' <= (c) && (c) <= 'r') \
6468 || ('s' <= (c) && (c) <= 'z'))
6469 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6470 #endif
6472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6474 main ()
6476 int i;
6477 for (i = 0; i < 256; i++)
6478 if (XOR (islower (i), ISLOWER (i))
6479 || toupper (i) != TOUPPER (i))
6480 return 2;
6481 return 0;
6483 _ACEOF
6484 if ac_fn_c_try_run "$LINENO"; then :
6486 else
6487 ac_cv_header_stdc=no
6489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6490 conftest.$ac_objext conftest.beam conftest.$ac_ext
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6496 $as_echo "$ac_cv_header_stdc" >&6; }
6497 if test $ac_cv_header_stdc = yes; then
6499 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6504 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6505 if ${ac_cv_header_sys_wait_h+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <sys/types.h>
6511 #include <sys/wait.h>
6512 #ifndef WEXITSTATUS
6513 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6514 #endif
6515 #ifndef WIFEXITED
6516 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6517 #endif
6520 main ()
6522 int s;
6523 wait (&s);
6524 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6526 return 0;
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_header_sys_wait_h=yes
6531 else
6532 ac_cv_header_sys_wait_h=no
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6537 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6538 if test $ac_cv_header_sys_wait_h = yes; then
6540 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6545 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6546 if ${ac_cv_header_time+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #include <sys/types.h>
6552 #include <sys/time.h>
6553 #include <time.h>
6556 main ()
6558 if ((struct tm *) 0)
6559 return 0;
6561 return 0;
6563 _ACEOF
6564 if ac_fn_c_try_compile "$LINENO"; then :
6565 ac_cv_header_time=yes
6566 else
6567 ac_cv_header_time=no
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6572 $as_echo "$ac_cv_header_time" >&6; }
6573 if test $ac_cv_header_time = yes; then
6575 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6579 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6580 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6582 cat >>confdefs.h <<_ACEOF
6583 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6584 _ACEOF
6587 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6592 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6593 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6595 cat >>confdefs.h <<_ACEOF
6596 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6597 _ACEOF
6600 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6602 else
6603 case " $LIBOBJS " in
6604 *" fileblocks.$ac_objext "* ) ;;
6605 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6607 esac
6612 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6613 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6615 cat >>confdefs.h <<_ACEOF
6616 #define HAVE_STRUCT_STAT_ST_RDEV 1
6617 _ACEOF
6620 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6626 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6627 if ${ac_cv_struct_tm+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 #include <sys/types.h>
6633 #include <time.h>
6636 main ()
6638 struct tm tm;
6639 int *p = &tm.tm_sec;
6640 return !p;
6642 return 0;
6644 _ACEOF
6645 if ac_fn_c_try_compile "$LINENO"; then :
6646 ac_cv_struct_tm=time.h
6647 else
6648 ac_cv_struct_tm=sys/time.h
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6653 $as_echo "$ac_cv_struct_tm" >&6; }
6654 if test $ac_cv_struct_tm = sys/time.h; then
6656 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6660 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6661 #include <$ac_cv_struct_tm>
6664 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6666 cat >>confdefs.h <<_ACEOF
6667 #define HAVE_STRUCT_TM_TM_ZONE 1
6668 _ACEOF
6673 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6675 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6677 else
6678 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6680 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6681 ac_have_decl=1
6682 else
6683 ac_have_decl=0
6686 cat >>confdefs.h <<_ACEOF
6687 #define HAVE_DECL_TZNAME $ac_have_decl
6688 _ACEOF
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6691 $as_echo_n "checking for tzname... " >&6; }
6692 if ${ac_cv_var_tzname+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <time.h>
6698 #if !HAVE_DECL_TZNAME
6699 extern char *tzname[];
6700 #endif
6703 main ()
6705 return tzname[0][0];
6707 return 0;
6709 _ACEOF
6710 if ac_fn_c_try_link "$LINENO"; then :
6711 ac_cv_var_tzname=yes
6712 else
6713 ac_cv_var_tzname=no
6715 rm -f core conftest.err conftest.$ac_objext \
6716 conftest$ac_exeext conftest.$ac_ext
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6719 $as_echo "$ac_cv_var_tzname" >&6; }
6720 if test $ac_cv_var_tzname = yes; then
6722 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6727 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6728 if test "x$ac_cv_type_off_t" = xyes; then :
6730 else
6732 cat >>confdefs.h <<_ACEOF
6733 #define off_t long int
6734 _ACEOF
6738 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6739 if test "x$ac_cv_type_pid_t" = xyes; then :
6741 else
6743 cat >>confdefs.h <<_ACEOF
6744 #define pid_t int
6745 _ACEOF
6749 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6750 if test "x$ac_cv_type_size_t" = xyes; then :
6752 else
6754 cat >>confdefs.h <<_ACEOF
6755 #define size_t unsigned int
6756 _ACEOF
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6761 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6762 if ${ac_cv_type_uid_t+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #include <sys/types.h>
6769 _ACEOF
6770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771 $EGREP "uid_t" >/dev/null 2>&1; then :
6772 ac_cv_type_uid_t=yes
6773 else
6774 ac_cv_type_uid_t=no
6776 rm -f conftest*
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6780 $as_echo "$ac_cv_type_uid_t" >&6; }
6781 if test $ac_cv_type_uid_t = no; then
6783 $as_echo "#define uid_t int" >>confdefs.h
6786 $as_echo "#define gid_t int" >>confdefs.h
6791 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6792 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6794 cat >>confdefs.h <<_ACEOF
6795 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6796 _ACEOF
6802 # Look for some functions
6803 for ac_func in getpagesize kqueue statfs statvfs \
6804 clone kse_create rfork_thread thr_create sa_register \
6805 getcontext makecontext setcontext sigaltstack swapcontext
6806 do :
6807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6809 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6810 cat >>confdefs.h <<_ACEOF
6811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6812 _ACEOF
6815 done
6821 for ac_header in $ac_header_list
6822 do :
6823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6824 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6827 cat >>confdefs.h <<_ACEOF
6828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6829 _ACEOF
6833 done
6842 for ac_func in getpagesize
6843 do :
6844 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6845 if test "x$ac_cv_func_getpagesize" = xyes; then :
6846 cat >>confdefs.h <<_ACEOF
6847 #define HAVE_GETPAGESIZE 1
6848 _ACEOF
6851 done
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6854 $as_echo_n "checking for working mmap... " >&6; }
6855 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test "$cross_compiling" = yes; then :
6859 ac_cv_func_mmap_fixed_mapped=no
6860 else
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 $ac_includes_default
6864 /* malloc might have been renamed as rpl_malloc. */
6865 #undef malloc
6867 /* Thanks to Mike Haertel and Jim Avera for this test.
6868 Here is a matrix of mmap possibilities:
6869 mmap private not fixed
6870 mmap private fixed at somewhere currently unmapped
6871 mmap private fixed at somewhere already mapped
6872 mmap shared not fixed
6873 mmap shared fixed at somewhere currently unmapped
6874 mmap shared fixed at somewhere already mapped
6875 For private mappings, we should verify that changes cannot be read()
6876 back from the file, nor mmap's back from the file at a different
6877 address. (There have been systems where private was not correctly
6878 implemented like the infamous i386 svr4.0, and systems where the
6879 VM page cache was not coherent with the file system buffer cache
6880 like early versions of FreeBSD and possibly contemporary NetBSD.)
6881 For shared mappings, we should conversely verify that changes get
6882 propagated back to all the places they're supposed to be.
6884 Grep wants private fixed already mapped.
6885 The main things grep needs to know about mmap are:
6886 * does it exist and is it safe to write into the mmap'd area
6887 * how to use it (BSD variants) */
6889 #include <fcntl.h>
6890 #include <sys/mman.h>
6892 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6893 char *malloc ();
6894 #endif
6896 /* This mess was copied from the GNU getpagesize.h. */
6897 #ifndef HAVE_GETPAGESIZE
6898 # ifdef _SC_PAGESIZE
6899 # define getpagesize() sysconf(_SC_PAGESIZE)
6900 # else /* no _SC_PAGESIZE */
6901 # ifdef HAVE_SYS_PARAM_H
6902 # include <sys/param.h>
6903 # ifdef EXEC_PAGESIZE
6904 # define getpagesize() EXEC_PAGESIZE
6905 # else /* no EXEC_PAGESIZE */
6906 # ifdef NBPG
6907 # define getpagesize() NBPG * CLSIZE
6908 # ifndef CLSIZE
6909 # define CLSIZE 1
6910 # endif /* no CLSIZE */
6911 # else /* no NBPG */
6912 # ifdef NBPC
6913 # define getpagesize() NBPC
6914 # else /* no NBPC */
6915 # ifdef PAGESIZE
6916 # define getpagesize() PAGESIZE
6917 # endif /* PAGESIZE */
6918 # endif /* no NBPC */
6919 # endif /* no NBPG */
6920 # endif /* no EXEC_PAGESIZE */
6921 # else /* no HAVE_SYS_PARAM_H */
6922 # define getpagesize() 8192 /* punt totally */
6923 # endif /* no HAVE_SYS_PARAM_H */
6924 # endif /* no _SC_PAGESIZE */
6926 #endif /* no HAVE_GETPAGESIZE */
6929 main ()
6931 char *data, *data2, *data3;
6932 const char *cdata2;
6933 int i, pagesize;
6934 int fd, fd2;
6936 pagesize = getpagesize ();
6938 /* First, make a file with some known garbage in it. */
6939 data = (char *) malloc (pagesize);
6940 if (!data)
6941 return 1;
6942 for (i = 0; i < pagesize; ++i)
6943 *(data + i) = rand ();
6944 umask (0);
6945 fd = creat ("conftest.mmap", 0600);
6946 if (fd < 0)
6947 return 2;
6948 if (write (fd, data, pagesize) != pagesize)
6949 return 3;
6950 close (fd);
6952 /* Next, check that the tail of a page is zero-filled. File must have
6953 non-zero length, otherwise we risk SIGBUS for entire page. */
6954 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6955 if (fd2 < 0)
6956 return 4;
6957 cdata2 = "";
6958 if (write (fd2, cdata2, 1) != 1)
6959 return 5;
6960 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6961 if (data2 == MAP_FAILED)
6962 return 6;
6963 for (i = 0; i < pagesize; ++i)
6964 if (*(data2 + i))
6965 return 7;
6966 close (fd2);
6967 if (munmap (data2, pagesize))
6968 return 8;
6970 /* Next, try to mmap the file at a fixed address which already has
6971 something else allocated at it. If we can, also make sure that
6972 we see the same garbage. */
6973 fd = open ("conftest.mmap", O_RDWR);
6974 if (fd < 0)
6975 return 9;
6976 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6977 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6978 return 10;
6979 for (i = 0; i < pagesize; ++i)
6980 if (*(data + i) != *(data2 + i))
6981 return 11;
6983 /* Finally, make sure that changes to the mapped area do not
6984 percolate back to the file as seen by read(). (This is a bug on
6985 some variants of i386 svr4.0.) */
6986 for (i = 0; i < pagesize; ++i)
6987 *(data2 + i) = *(data2 + i) + 1;
6988 data3 = (char *) malloc (pagesize);
6989 if (!data3)
6990 return 12;
6991 if (read (fd, data3, pagesize) != pagesize)
6992 return 13;
6993 for (i = 0; i < pagesize; ++i)
6994 if (*(data + i) != *(data3 + i))
6995 return 14;
6996 close (fd);
6997 return 0;
6999 _ACEOF
7000 if ac_fn_c_try_run "$LINENO"; then :
7001 ac_cv_func_mmap_fixed_mapped=yes
7002 else
7003 ac_cv_func_mmap_fixed_mapped=no
7005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7006 conftest.$ac_objext conftest.beam conftest.$ac_ext
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7011 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7012 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7014 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7017 rm -f conftest.mmap conftest.txt
7022 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7023 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7024 aros_config_ldflags=""
7026 aros_shared_default=yes
7028 aros_shared_cflags="-fPIC"
7029 aros_shared_aflags=""
7030 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7031 aros_kernel_ldflags="-Wl,-rpath,./lib"
7033 aros_kernel_ar_flags="cr"
7034 aros_target_ar_flags="cr"
7035 aros_target_nm_flags="-C -ul"
7036 aros_target_strip_flags="--strip-unneeded -R.comment"
7038 aros_compiler_libs=
7039 aros_arch_libs=
7041 aros_target_genmap="-Wl,-Map -Xlinker"
7043 # Native flavour stuff
7044 aros_serial_debug="0"
7046 # Palm native flavour stuff
7047 aros_palm_debug_hack="0"
7049 # Unix flavour stuff
7050 aros_nesting_supervisor="0"
7052 # Collect-aros stuff: "-ius" to ignore undefined symbols
7053 ignore_undefined_symbols=""
7055 # Check for X11 by default
7056 need_x11="auto"
7058 # Leave at 'none' for no external toolchain
7059 kernel_tool_prefix="none"
7061 #-----------------------------------------------------------------------------
7064 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7065 # it switched on by default, and we use the host compiler, so it compiles AROS
7066 # code with this enabled resulting in link failures as we don't have support
7067 # for it.
7069 # We use two methods to disable it. For the host compiler (used to compile
7070 # some hosted modules), we test to see if the compiler supports stack
7071 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7072 # work on all platforms.
7074 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7075 # (this is done unconditionally, as it should have no effect on compilers
7076 # without the stack protection feature). This may be specific to the way that
7077 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7078 # strong enough to disable it in a generic way though, so we'll live with it
7079 # until another vendor ships GCC with it enabled in a different way, and deal
7080 # with it then.
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7084 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7085 save_cflags="$CFLAGS"
7086 CFLAGS="$CFLAGS -fno-stack-protector"
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7091 main ()
7095 return 0;
7097 _ACEOF
7098 if ac_fn_c_try_compile "$LINENO"; then :
7099 use_no_stack_protector="yes"
7100 else
7101 use_no_stack_protector="no"
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7105 $as_echo "$use_no_stack_protector" >&6; }
7106 if test "x-$use_no_stack_protector" = "x-yes" ; then
7107 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7109 CFLAGS="$save_cflags"
7111 #-----------------------------------------------------------------------------
7113 # Disable pointer-signedness warnings if the compiler recognises the option
7114 # (this only works for the host compiler at the moment)
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7117 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7118 save_cflags="$CFLAGS"
7119 CFLAGS="$CFLAGS -Wno-pointer-sign"
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7124 main ()
7128 return 0;
7130 _ACEOF
7131 if ac_fn_c_try_compile "$LINENO"; then :
7132 use_no_sign_warning="yes"
7133 else
7134 use_no_sign_warning="no"
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7138 $as_echo "$use_no_sign_warning" >&6; }
7139 if test "x-$use_no_sign_warning" = "x-yes" ; then
7140 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7142 CFLAGS="$save_cflags"
7144 #-----------------------------------------------------------------------------
7146 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7149 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7150 save_cflags="$CFLAGS"
7151 CFLAGS="$CFLAGS -fgnu89-inline"
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7156 main ()
7160 return 0;
7162 _ACEOF
7163 if ac_fn_c_try_compile "$LINENO"; then :
7164 use_gnu89_inline="yes"
7165 else
7166 use_gnu89_inline="no"
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7170 $as_echo "$use_gnu89_inline" >&6; }
7171 if test "x-$use_gnu89_inline" = "x-yes" ; then
7172 gnu89_inline="-fgnu89-inline"
7174 CFLAGS="$save_cflags"
7176 #-----------------------------------------------------------------------------
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7179 $as_echo_n "checking for type of build... " >&6; }
7180 # Check whether --enable-build_type was given.
7181 if test "${enable_build_type+set}" = set; then :
7182 enableval=$enable_build_type; build_type=$enableval
7183 else
7184 build_type="personal"
7188 if test "$build_type" = "nightly"; then
7189 build_type_string="NIGHTLY"
7190 elif test "$build_type" = "snapshot"; then
7191 build_type_string="SNAPSHOT"
7192 elif test "$build_type" = "milestone"; then
7193 build_type_string="MILESTONE"
7194 elif test "$build_type" = "release"; then
7195 build_type_string="RELEASE"
7196 else
7197 build_type_string="PERSONAL"
7198 build_type="personal"
7201 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7204 $as_echo "$build_type" >&6; }
7206 #-----------------------------------------------------------------------------
7207 all_debug_types="messages stack modules mungwall symbols"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7210 $as_echo_n "checking which debug types to enable... " >&6; }
7211 # Check whether --enable-debug was given.
7212 if test "${enable_debug+set}" = set; then :
7213 enableval=$enable_debug; debug="$enableval"
7214 else
7215 debug=""
7219 if test "$debug" = "" -o "$debug" = "no"; then
7220 debug="none"
7221 elif test "$debug" = "yes"; then
7222 debug="all"
7225 if test "$debug" = "all" ; then
7226 debug="messages stack modules symbols"
7227 for d in $all_debug_types; do
7228 export aros_${d}_debug="1"
7229 done
7230 else
7231 for d in $all_debug_types; do
7232 export aros_${d}_debug="0"
7233 done
7236 if test "$debug" != "none"; then
7237 debug=`echo $debug | sed s/,/\ /g`
7238 for d in $debug; do
7239 found="0"
7240 for d2 in $all_debug_types; do
7241 if test "$d2" = "$d"; then
7242 found="1"
7243 break
7245 done
7246 if test "$found" = "0"; then
7247 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7249 export aros_${d}_debug="1"
7250 done
7251 aros_debug="yes"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7254 $as_echo "$debug" >&6; }
7256 if test "$aros_messages_debug" = "1"; then
7257 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7258 else
7259 aros_messages_debug=""
7261 if test "$aros_symbols_debug" = "1"; then
7262 aros_symbols_debug="-g"
7263 else
7264 aros_symbols_debug=""
7267 # These are the flags to pass when compiling debugged programs
7268 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7269 aros_debug_aflags=""
7270 aros_debug_ldflags="$aros_symbols_debug"
7272 #-----------------------------------------------------------------------------
7273 # Checking if we should build crosstools..
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
7275 $as_echo_n "checking whether to build crosstools... " >&6; }
7276 # Check whether --enable-crosstools was given.
7277 if test "${enable_crosstools+set}" = set; then :
7278 enableval=$enable_crosstools; crosstools="$enableval"
7279 else
7280 crosstools="yes"
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
7284 $as_echo "$crosstools" >&6; }
7286 #-----------------------------------------------------------------------------
7287 # Checking for distcc and ccache.
7289 # Always apply the transforms in this particular order. Basically you should
7290 # always run 'ccache distcc compiler' in that order for the best performance.
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7293 $as_echo_n "checking whether to enable distcc... " >&6; }
7294 # Check whether --enable-distcc was given.
7295 if test "${enable_distcc+set}" = set; then :
7296 enableval=$enable_distcc; distcc="$enableval"
7297 else
7298 distcc="no"
7301 if test "$distcc" != "" -a "$distcc" != "no"; then
7302 # AC_CHECK_PROG will print out the result in this case
7303 # Extract the first word of "distcc", so it can be a program name with args.
7304 set dummy distcc; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_path_DISTCC+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 case $DISTCC in
7311 [\\/]* | ?:[\\/]*)
7312 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7326 done
7327 done
7328 IFS=$as_save_IFS
7330 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7332 esac
7334 DISTCC=$ac_cv_path_DISTCC
7335 if test -n "$DISTCC"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7337 $as_echo "$DISTCC" >&6; }
7338 else
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7350 $as_echo_n "checking whether to enable ccache... " >&6; }
7351 # Check whether --enable-ccache was given.
7352 if test "${enable_ccache+set}" = set; then :
7353 enableval=$enable_ccache; ccache="$enableval"
7354 else
7355 ccache="no"
7358 if test "$ccache" != "" -a "$ccache" != "no"; then
7359 # AC_CHECK_PROG will print out the result in this case
7360 # Extract the first word of "ccache", so it can be a program name with args.
7361 set dummy ccache; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_CCACHE+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$CCACHE"; then
7368 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_CCACHE="ccache"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7383 IFS=$as_save_IFS
7387 CCACHE=$ac_cv_prog_CCACHE
7388 if test -n "$CCACHE"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7390 $as_echo "$CCACHE" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7397 else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7402 #-----------------------------------------------------------------------------
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7404 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7406 # Check whether --with-gcc-version was given.
7407 if test "${with_gcc_version+set}" = set; then :
7408 withval=$with_gcc_version; kernel_tool_version="$withval"
7409 else
7410 kernel_tool_version="default"
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7414 $as_echo "$kernel_tool_version" >&6; }
7416 #-----------------------------------------------------------------------------
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7418 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7420 # Check whether --with-gcc-version was given.
7421 if test "${with_gcc_version+set}" = set; then :
7422 withval=$with_gcc_version; target_tool_version="$withval"
7423 else
7424 target_tool_version="default"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7428 $as_echo "$target_tool_version" >&6; }
7430 #-----------------------------------------------------------------------------
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7432 $as_echo_n "checking what optimization flags to use... " >&6; }
7434 # Check whether --with-optimization was given.
7435 if test "${with_optimization+set}" = set; then :
7436 withval=$with_optimization; optimization="$withval"
7437 else
7438 optimization="unknown"
7441 if test "$optimization" = "unknown"; then
7442 if test "$debug" != "none"; then
7443 optimization="-O0"
7444 else
7445 optimization="-O2"
7448 aros_config_cflags="$aros_config_cflags $optimization"
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7450 $as_echo "$optimization" >&6; }
7452 #-----------------------------------------------------------------------------
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7454 $as_echo_n "checking what paranoia flags to use... " >&6; }
7456 # Check whether --with-paranoia was given.
7457 if test "${with_paranoia+set}" = set; then :
7458 withval=$with_paranoia; paranoia_flags="$withval"
7459 else
7460 paranoia_flags="default"
7463 if test "$paranoia_flags" = "default"; then
7464 paranoia_flags=""
7465 else if test "$paranoia_flags" = "yes"; then
7466 paranoia_flags="-Wall -Werror"
7467 fi fi
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7469 $as_echo "$paranoia_flags" >&6; }
7470 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7472 #-----------------------------------------------------------------------------
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7474 $as_echo_n "checking what target variant to enable... " >&6; }
7475 # Check whether --enable-target_variant was given.
7476 if test "${enable_target_variant+set}" = set; then :
7477 enableval=$enable_target_variant; target_variant=$enableval
7478 else
7479 target_variant=""
7482 if test "$target_variant" = ""; then
7483 aros_target_variant=""
7484 aros_target_suffix=""
7485 enableval="none"
7486 else
7487 aros_target_variant="$target_variant"
7488 aros_target_suffix="-$target_variant"
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7491 $as_echo "$enableval" >&6; }
7493 #-----------------------------------------------------------------------------
7494 # Target-specific defaults. You can override then on a per-target basis.
7496 # Bootloader name. Currently used by PC target.
7497 target_bootloader="none"
7499 #-----------------------------------------------------------------------------
7500 # Additional options for some specific targets
7502 case "$aros_target_variant" in
7503 ios)
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7505 $as_echo_n "checking XCode path... " >&6; }
7507 # Check whether --with-xcode was given.
7508 if test "${with_xcode+set}" = set; then :
7509 withval=$with_xcode; aros_xcode_path="$withval"
7510 else
7511 aros_xcode_path="/Developer"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7515 $as_echo "$aros_xcode_path" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7518 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7520 # Check whether --with-sdk-version was given.
7521 if test "${with_sdk_version+set}" = set; then :
7522 withval=$with_sdk_version; aros_sdk_version="$withval"
7523 else
7524 aros_sdk_version="4.1"
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7528 $as_echo "$aros_sdk_version" >&6; }
7532 "android")
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7534 $as_echo_n "checking Android SDK path... " >&6; }
7536 # Check whether --with-sdk was given.
7537 if test "${with_sdk+set}" = set; then :
7538 withval=$with_sdk; aros_android_sdk="$withval"
7539 else
7540 aros_android_sdk=$default_android_sdk
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7544 $as_echo "$aros_android_sdk" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7547 $as_echo_n "checking Android NDK path... " >&6; }
7549 # Check whether --with-ndk was given.
7550 if test "${with_ndk+set}" = set; then :
7551 withval=$with_ndk; aros_android_ndk="$withval"
7552 else
7553 aros_android_ndk="none"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7557 $as_echo "$aros_android_ndk" >&6; }
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7560 $as_echo_n "checking what Android SDK version to use... " >&6; }
7562 # Check whether --with-sdk-version was given.
7563 if test "${with_sdk_version+set}" = set; then :
7564 withval=$with_sdk_version; aros_sdk_version="$withval"
7565 else
7566 aros_sdk_version="12"
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7570 $as_echo "$aros_sdk_version" >&6; }
7572 if test "$aros_android_ndk" != "none"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7574 $as_echo_n "checking what Android NDK version to use... " >&6; }
7576 # Check whether --with-ndk-version was given.
7577 if test "${with_ndk_version+set}" = set; then :
7578 withval=$with_ndk_version; aros_ndk_version="$withval"
7579 else
7580 aros_ndk_version="9"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7584 $as_echo "$aros_ndk_version" >&6; }
7587 export PATH="$aros_android_sdk/tools:$PATH"
7588 # Extract the first word of "$android_tool", so it can be a program name with args.
7589 set dummy $android_tool; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_path_android_tool+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 case $android_tool in
7596 [\\/]* | ?:[\\/]*)
7597 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7611 done
7612 done
7613 IFS=$as_save_IFS
7616 esac
7618 android_tool=$ac_cv_path_android_tool
7619 if test -n "$android_tool"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7621 $as_echo "$android_tool" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7628 if test "$android_tool" = ""; then
7629 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7632 aros_android_level=android-$aros_sdk_version
7633 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7634 echo "Platform $aros_android_level is not installed in your SDK"
7635 echo "Use --with-sdk-version=<API level number> to select another platform version"
7636 echo "You can check what plaform versions are installed in your SDK"
7637 echo "by examining contents of $aros_android_sdk/platforms directory"
7638 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7641 # Extract the first word of "ant", so it can be a program name with args.
7642 set dummy ant; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_path_ant+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 case $ant in
7649 [\\/]* | ?:[\\/]*)
7650 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 break 2
7664 done
7665 done
7666 IFS=$as_save_IFS
7669 esac
7671 ant=$ac_cv_path_ant
7672 if test -n "$ant"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7674 $as_echo "$ant" >&6; }
7675 else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7681 if test "$ant" = ""; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7683 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7686 if test "$host_os" = "mingw32"; then
7687 android_tool="cmd //c $android_tool"
7691 esac
7693 #-----------------------------------------------------------------------------
7695 # This is the target configuration switch.
7696 case "$target_os" in
7697 linux*)
7698 aros_target_arch="linux"
7699 aros_target_family="unix"
7700 case "$target_cpu" in
7701 *m68k*)
7702 aros_target_cpu="m68k"
7703 aros_object_format="m68kelf"
7704 aros_flavour="emulcompat"
7705 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7706 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7707 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7708 gcc_target_cpu="mc68000"
7710 *i?86*)
7711 aros_target_cpu="i386"
7712 aros_object_format="elf_i386"
7713 aros_flavour="emulation"
7714 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7715 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7716 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7717 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7718 aros_config_ldflags="-m32 -march=i486"
7719 aros_kernel_ldflags="-melf_i386"
7720 aros_default_wbdepth=8
7721 gcc_target_cpu="i386"
7722 pci_hidd_target="hidd-pci-linux"
7723 android_tool_dir_prefix="x86"
7724 android_tool_prefix="i686-android-linux"
7725 android_ndk_arch="x86"
7727 *x86_64*)
7728 aros_target_cpu="x86_64"
7729 aros_object_format="elf_x86_64"
7730 aros_flavour="emulation"
7731 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7732 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7733 aros_default_wbdepth=8
7734 pci_hidd_target="hidd-pci-linux"
7736 *powerpc*)
7737 aros_target_cpu="ppc"
7738 aros_object_format="elf32ppc"
7739 aros_flavour="emulation"
7740 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7741 aros_default_wbdepth=8
7742 gcc_target_cpu="ppc"
7744 # TODO
7745 # Same as powerpc, but I need this for the nightly build to work again.
7746 # Actually, the nightly should be made working with powerpc target.
7747 # That just was too much work for the moment, another week or two.
7748 *ppc*)
7749 aros_target_cpu="ppc"
7750 aros_object_format="elf32ppc"
7751 aros_flavour="emulation"
7752 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7753 aros_default_wbdepth=8
7754 gcc_target_cpu="ppc"
7756 *arm*)
7757 aros_target_cpu="arm"
7758 aros_object_format="armelf_linux_eabi"
7759 aros_flavour="emulation"
7760 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7761 gcc_target_cpu="arm"
7762 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7763 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7764 aros_arch_libs="-laeabi"
7765 android_tool_dir_prefix="arm-linux-androideabi"
7766 android_tool_prefix="arm-linux-androideabi"
7767 android_ndk_arch="arm"
7768 if test "$aros_host_cpu" != "arm" ; then
7769 kernel_tool_prefix="arm-linux-gnueabi-"
7773 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7775 esac
7776 case "$aros_target_variant" in
7777 android)
7779 if test "$android_ndk_arch" = ""; then
7780 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7783 aros_default_wbwidth=320
7784 aros_default_wbheight=480
7785 if test "$aros_android_ndk" = "none"; then
7786 aros_kernel_cflags="-mandroid"
7787 aros_kernel_ldflags="-mandroid"
7788 CFLAGS="-mandroid"
7789 else
7790 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7791 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7792 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7793 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7794 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7795 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7797 need_x11=no
7798 x11_hidd_target=kernel-hidd-androidgfx-kobj
7799 # Disable implicit PIC mode
7800 aros_target_cflags="$aros_target_cflags -fno-pic"
7801 kernel_tool_prefix="$android_tool_prefix-"
7803 esac
7807 aros_target_arch="pc"
7808 aros_shared_default="no"
7809 target_bootloader="grub2"
7810 case "$target_cpu" in
7811 *i?86*)
7812 aros_target_cpu="i386"
7815 if test "$aros_object_format" = "" ; then
7816 aros_object_format="elf_i386"
7818 aros_flavour="standalone"
7819 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7820 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7821 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7822 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7823 aros_config_ldflags="-m32 -march=i486"
7824 aros_kernel_ldflags="-melf_i386"
7825 aros_default_wbwidth=640
7826 aros_default_wbheight=480
7827 gcc_target_cpu="i386"
7829 *x86_64*)
7830 aros_target_cpu="x86_64"
7831 aros_serial_debug=1
7832 if test "$aros_object_format" = "" ; then
7833 aros_object_format="elf_x86_64"
7835 aros_flavour="standalone"
7836 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7837 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7838 aros_kernel_ldflags=""
7839 aros_default_wbwidth=640
7840 aros_default_wbheight=480
7843 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7845 esac
7848 prep)
7849 aros_target_arch="prep"
7850 aros_shared_default="no"
7851 aros_target_cpu="ppc"
7852 aros_object_format="elf32ppc"
7853 aros_flavour="ppcnative"
7854 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7855 aros_kernel_ldflags=""
7856 aros_default_wbwidth=640
7857 aros_default_wbheight=480
7858 gcc_target_cpu="ppc"
7861 freebsd*)
7862 aros_target_arch="freebsd"
7863 aros_target_family="unix"
7864 aros_target_cpu="i386"
7865 aros_flavour="emulation"
7866 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7867 gcc_target_cpu="i386"
7869 aros_target_strip_flags="-x"
7872 darwin*)
7873 aros_target_arch="darwin"
7874 aros_target_family="unix"
7875 aros_flavour="emulation"
7876 case "$target_cpu" in
7877 *i?86*)
7878 aros_ios_platform="iPhoneSimulator"
7879 aros_target_cpu="i386"
7880 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7881 aros_kernel_ldflags=""
7882 aros_macosx_version="10.4"
7883 aros_default_wbdepth=8
7884 gcc_target_cpu="i386"
7885 aros_object_format="elf_i386"
7886 aros_kernel_ar_flags="-cr"
7887 aros_target_strip_flags="-x"
7888 kernel_tool_flags="-m32"
7890 *x86_64*)
7891 aros_target_cpu="x86_64"
7892 aros_object_format="elf_x86_64"
7893 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7894 aros_macosx_version="10.6"
7895 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7896 aros_kernel_cflags="-m64"
7897 aros_kernel_ldflags="-m64"
7898 aros_target_cflags="-mcmodel=large"
7899 aros_default_wbdepth=8
7900 aros_kernel_ar="ar"
7901 aros_kernel_ar_flags="-cr"
7902 aros_kernel_ld="ld"
7903 aros_kernel_ranlib="ranlib"
7905 *ppc*)
7906 aros_target_cpu="ppc"
7907 aros_object_format="elf32ppc"
7908 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7909 aros_kernel_ldflags=""
7910 aros_macosx_version="10.0"
7911 aros_default_wbdepth=8
7912 gcc_target_cpu="ppc"
7913 aros_kernel_ar="ar"
7914 aros_kernel_ar_flags="-cr"
7915 aros_kernel_ld="ld -arch ppc"
7916 aros_kernel_ranlib="ranlib -arch ppc"
7917 kernel_tool_prefix="powerpc-apple-darwin10-"
7919 *arm*)
7920 aros_ios_platform="iPhoneOS"
7921 aros_target_cpu="arm"
7922 aros_object_format="armelf_linux_eabi"
7923 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7924 aros_arch_libs="-laeabi"
7925 aros_default_wbdepth=8
7926 gcc_target_cpu="arm"
7927 aros_kernel_ar="ar"
7928 aros_kernel_ar_flags="-cr"
7929 aros_kernel_ld="ld -arch arm"
7930 aros_kernel_ranlib="ranlib -arch arm"
7931 kernel_tool_prefix="arm-apple-darwin10-"
7932 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7935 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7937 esac
7938 case "$aros_target_variant" in
7939 ios)
7940 aros_ios_version="3.0"
7941 aros_default_wbwidth=320
7942 aros_default_wbheight=480
7943 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7944 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7945 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7946 need_x11=no
7947 # This is here because it may depend on iOS or SDK version
7948 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7949 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7950 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7953 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7954 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7956 esac
7959 dragonfly*)
7960 aros_target_arch="dragonfly"
7961 aros_target_family="unix"
7962 aros_flavour="emulation"
7963 case "$target_cpu" in
7964 *i?86*)
7965 aros_target_cpu="i386"
7966 aros_object_format="elf_i386"
7967 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7969 *x86_64*)
7970 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7971 aros_target_cpu="x86_64"
7972 aros_object_format="elf_x86_64"
7973 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7976 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7978 esac
7981 netbsd*)
7982 aros_target_arch="netbsd"
7983 aros_target_family="unix"
7984 case "$target_cpu" in
7985 *m68k*)
7986 aros_target_cpu="m68k"
7987 aros_object_format="m68kelf"
7988 aros_flavour="emulcompat"
7989 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7990 gcc_target_cpu="mc68000"
7992 *i?86*)
7993 aros_target_cpu="i386"
7994 aros_object_format="elf_i386"
7995 aros_flavour="emulation"
7996 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7997 aros_default_wbdepth=8
7998 gcc_target_cpu="i386"
8001 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8003 esac
8004 aros_target_genmap="-Wl,-M -Xlinker >"
8005 aros_flavour="emulation"
8006 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8009 openbsd*)
8010 aros_target_arch="openbsd"
8011 aros_target_family="unix"
8012 case "$target_cpu" in
8013 *i?86*)
8014 aros_target_cpu="i386"
8015 aros_object_format="elf_i386"
8016 aros_flavour="emulation"
8017 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8018 gcc_target_cpu="i386"
8021 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8023 esac
8024 aros_target_genmap="-Wl,-M -Xlinker >"
8025 aros_target_nm_flags="-u"
8026 aros_flavour="emulation"
8029 solaris*)
8030 aros_target_arch="solaris"
8031 aros_target_family="unix"
8032 case "$target_cpu" in
8033 *i?86*)
8034 aros_target_cpu="i386"
8035 aros_object_format="elf_i386"
8036 aros_flavour="emulation"
8037 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8038 aros_default_wbdepth=8
8039 gcc_target_cpu="i386"
8041 *sparc*)
8042 aros_target_cpu="sparc"
8043 aros_object_format="elf_sparc"
8044 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8045 gcc_target_cpu="sparc"
8048 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8050 esac
8051 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8052 aros_flavour="emulation"
8055 morphos*)
8056 aros_target_arch="morphos"
8057 aros_shared_default="no"
8058 aros_target_cpu="ppc"
8059 aros_object_format="elf_ppc"
8060 aros_flavour="nativecompat"
8061 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8062 gcc_target_cpu="ppc"
8065 sam440)
8066 aros_target_arch="sam440"
8067 aros_shared_default="no"
8068 aros_target_cpu="ppc"
8069 aros_object_format="elf32ppc"
8070 aros_flavour="ppcnative"
8071 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8072 aros_kernel_ldflags=""
8073 aros_default_wbwidth=1024
8074 aros_default_wbheight=768
8075 aros_default_wbdepth=24
8076 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8077 gcc_target_cpu="powerpc"
8080 efika)
8081 aros_target_arch="efika"
8082 aros_shared_default="no"
8083 aros_target_cpu="arm"
8084 aros_object_format="armelf_linux_eabi"
8085 aros_flavour="standalone"
8086 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8087 aros_kernel_ldflags=""
8088 aros_default_wbwidth=1024
8089 aros_default_wbheight=600
8090 aros_arch_libs="-laeabi"
8091 gcc_default_cpu="armv7-a"
8092 gcc_default_fpu="vfpv3"
8093 gcc_default_float_abi="softfp"
8094 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8095 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8098 chrp)
8099 aros_target_arch="chrp"
8100 aros_shared_default="no"
8101 aros_target_cpu="ppc"
8102 aros_object_format="elf32ppc"
8103 aros_flavour="ppcnative"
8104 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8105 aros_kernel_ldflags=""
8106 aros_default_wbwidth=640
8107 aros_default_wbheight=480
8108 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8109 gcc_target_cpu="powerpc"
8110 case "$aros_target_variant" in
8111 efika)
8112 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8114 esac
8117 amiga*)
8118 aros_target_arch="amiga"
8119 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8120 aros_shared_default="no"
8122 case "$target_cpu" in
8123 *m68k*)
8124 # Check whether --enable-amigaos_compliance was given.
8125 if test "${enable_amigaos_compliance+set}" = set; then :
8126 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8129 aros_enable_mmu=no
8130 aros_target_cpu="m68k"
8131 aros_object_format="m68kelf"
8132 aros_flavour="standcompat"
8133 gcc_target_cpu="m68000"
8134 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8135 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8136 # Needed to get the correct multilib
8137 aros_config_ldflags="-${gcc_target_cpu}"
8138 aros_shared_ldflags="-${gcc_target_cpu}"
8139 aros_kernel_ldflags="-${gcc_target_cpu}"
8140 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8141 aros_target_strip_flags="-R.comment --strip-debug"
8142 aros_default_wbwidth=640
8143 aros_default_wbheight=256
8144 aros_default_wbdepth=2
8146 *ppc*)
8147 aros_cpu="ppc"
8148 aros_flavour="native"
8149 gcc_target_cpu="ppc"
8152 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8154 esac
8157 mingw*)
8158 aros_target_arch="mingw32"
8159 aros_shared_default="no"
8160 aros_flavour="emulation"
8161 aros_shared_cflags=""
8162 need_crosstools="yes"
8163 need_dlopen="no"
8164 rescomp="windres"
8165 case "$target_cpu" in
8166 *i?86*)
8167 aros_target_cpu="i386"
8168 aros_object_format="elf_i386"
8169 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8170 aros_default_wbdepth=8
8171 gcc_target_cpu="i386"
8173 kernel_tool_prefix="i386-mingw32-"
8175 *x86_64*)
8176 aros_target_cpu="x86_64"
8177 aros_object_format="elf_x86_64"
8178 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8179 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8180 aros_default_wbdepth=8
8181 kernel_tool_prefix="x86_64-w64-mingw32-"
8183 *arm*)
8184 aros_target_cpu="arm"
8185 aros_object_format="armelf_linux_eabi"
8186 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8187 aros_arch_libs="-laeabi"
8188 aros_default_wbdepth=8
8189 gcc_target_cpu="arm"
8190 gcc_default_float_abi="soft"
8191 kernel_tool_prefix="arm-mingw32ce-"
8192 aros_default_wbwidth=160
8193 aros_default_wbheight=160
8196 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8198 esac
8199 if test $host_os = "cygwin"; then
8200 aros_kernel_cflags="-mno-cygwin"
8203 pp*)
8204 aros_target_arch="pp"
8205 aros_shared_default="no"
8206 case "$target_cpu" in
8207 *m68k*)
8208 aros_target_cpu="m68k"
8209 aros_object_format="m68kelf"
8210 aros_flavour="palmnative"
8211 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8212 aros_default_wbwidth=160
8213 aros_default_wbheight=160
8214 aros_default_wbdepth=1
8215 aros_target_ar_flags="cru"
8216 aros_compiler_libs="-lgcc1"
8217 aros_shared_default=no
8218 aros_shared_cflags="-fpic"
8219 aros_shared_aflags=""
8220 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8221 aros_kernel_ldflags="-Wl,-rpath,./lib"
8222 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8223 aros_debug_aflags=""
8224 aros_debug_ldflags="$aros_symbols_debug"
8225 aros_mungwall_debug="0"
8226 aros_modules_debug="0"
8227 gcc_target_cpu="mc68000"
8228 ignore_undefined_symbols="-ius"
8231 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8233 esac
8236 mac*)
8237 aros_target_arch="mac"
8238 aros_shared_default="no"
8239 case "$target_cpu" in
8240 *m68k*)
8241 aros_target_cpu="m68k"
8242 aros_object_format="m68kelf"
8243 aros_flavour="mac68knative"
8244 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8245 aros_default_wbwidth=512
8246 aros_default_wbheight=384
8247 aros_default_wbdepth=8
8248 aros_target_ar_flags="cru"
8249 aros_compiler_libs="-lgcc1"
8250 aros_shared_default=no
8251 aros_shared_cflags="-fpic"
8252 aros_shared_aflags=""
8253 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8254 aros_kernel_ldflags="-Wl,-rpath,./lib"
8255 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8256 aros_debug_aflags=""
8257 aros_debug_ldflags="$aros_symbols_debug"
8258 aros_mungwall_debug="0"
8259 aros_modules_debug="0"
8260 gcc_target_cpu="mc68000"
8261 ignore_undefined_symbols="-ius"
8264 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8266 esac
8270 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8272 esac
8274 #-----------------------------------------------------------------------------
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8276 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8278 # Check whether --with-crosstools was given.
8279 if test "${with_crosstools+set}" = set; then :
8280 withval=$with_crosstools; with_crosstools=$withval
8281 else
8282 with_crosstools="default"
8285 if test "$with_crosstools" = "default"; then
8286 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8287 else
8288 # Disable building crosstools if we are using an external set - otherwise
8289 # we may attempt to overwrite them if the tools-crosstools target is made!
8290 crosstools=no
8291 AROS_CROSSTOOLSDIR="$with_crosstools"
8292 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8295 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
8298 $as_echo_n "checking Kernel tool prefix... " >&6; }
8300 # Check whether --with-kernel-tool-prefix was given.
8301 if test "${with_kernel_tool_prefix+set}" = set; then :
8302 withval=$with_kernel_tool_prefix; kernel_tool_prefix="$withval"
8303 else
8304 kernel_tool_prefix="$kernel_tool_prefix"
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8308 $as_echo "$kernel_tool_prefix" >&6; }
8310 target_tool_prefix=${target_cpu}-aros-
8312 # Now process extra architecture-specific options.
8313 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8314 # as well as floating-point ABI.
8315 case "$aros_target_cpu" in
8316 arm)
8317 if test "$gcc_default_cpu" = ""; then
8318 gcc_default_cpu="armv6"
8320 if test "$gcc_default_fpu" = ""; then
8321 gcc_default_fpu="vfp"
8323 if test "$gcc_default_float_abi" = ""; then
8324 gcc_default_float_abi="softfp"
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8328 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8330 # Check whether --with-cpu was given.
8331 if test "${with_cpu+set}" = set; then :
8332 withval=$with_cpu; aros_gcc_cpu="$withval"
8333 else
8334 aros_gcc_cpu=$gcc_default_cpu
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8338 $as_echo "$aros_gcc_cpu" >&6; }
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8341 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8343 # Check whether --with-fpu was given.
8344 if test "${with_fpu+set}" = set; then :
8345 withval=$with_fpu; aros_gcc_fpu="$withval"
8346 else
8347 aros_gcc_fpu=$gcc_default_fpu
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8351 $as_echo "$aros_gcc_fpu" >&6; }
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8354 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8356 # Check whether --with-float was given.
8357 if test "${with_float+set}" = set; then :
8358 withval=$with_float; aros_gcc_float_abi="$withval"
8359 else
8360 aros_gcc_float_abi=$gcc_default_float_abi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8364 $as_echo "$aros_gcc_float_abi" >&6; }
8366 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"
8367 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"
8369 esac
8371 # Some formats need custom ELF specs.
8372 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8373 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8374 elf_specs_in=config/${aros_object_format}-specs.in
8375 else
8376 elf_specs_in=config/elf-specs.in
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8380 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8382 # Check whether --with-aros-gcc was given.
8383 if test "${with_aros_gcc+set}" = set; then :
8384 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8385 else
8386 aros_gcc_version=""
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8390 $as_echo "$aros_gcc_version" >&6; }
8392 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8393 # Since we override specs, we may need to put these defines there
8394 if test "$gcc_target_cpu" != ""; then
8395 gcc_target_cpu="-D__${gcc_target_cpu}__"
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8399 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8401 # Check whether --with-portssources was given.
8402 if test "${with_portssources+set}" = set; then :
8403 withval=$with_portssources; with_portssrcdir=$withval
8404 else
8405 with_portssrcdir="default"
8408 if test "$with_portssrcdir" = "default"; then
8409 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8410 else
8411 AROS_PORTSSRCDIR="$with_portssrcdir"
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8414 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8417 $as_echo_n "checking which bootloader to use... " >&6; }
8419 # Check whether --with-bootloader was given.
8420 if test "${with_bootloader+set}" = set; then :
8421 withval=$with_bootloader; target_bootloader=$withval
8422 else
8423 target_bootloader=$target_bootloader
8426 if test "$target_bootloader" = "none"; then
8427 aros_target_bootloader=""
8428 else
8429 aros_target_bootloader="$target_bootloader"
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8432 $as_echo "$target_bootloader" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8435 $as_echo_n "checking which icon-set to use... " >&6; }
8437 # Check whether --with-iconset was given.
8438 if test "${with_iconset+set}" = set; then :
8439 withval=$with_iconset; target_iconset=$withval
8440 else
8441 target_iconset="default"
8444 if test "$target_iconset" = "default"; then
8445 aros_target_iconset="Gorilla"
8446 target_iconset="default (Gorilla)"
8447 else
8448 aros_target_iconset="$target_iconset"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8451 $as_echo "$target_iconset" >&6; }
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8454 $as_echo_n "checking which GUI Theme to use... " >&6; }
8456 # Check whether --with-theme was given.
8457 if test "${with_theme+set}" = set; then :
8458 withval=$with_theme; target_guitheme=$withval
8459 else
8460 target_guitheme="default"
8463 if test "$target_guitheme" = "default"; then
8464 aros_target_guitheme="Ice"
8465 else
8466 aros_target_guitheme="$target_guitheme"
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8469 $as_echo "$aros_target_guitheme" >&6; }
8471 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8472 # for target code)
8473 cross_compiling=no
8474 if test "$aros_host_cpu" = "$aros_target_cpu" ; then
8475 # If host = target CPU, let's try to use the
8476 # host's toolchains if no others were requested
8477 if test "$kernel_tool_prefix" = "none" ; then
8478 kernel_tool_prefix=""
8480 else
8481 cross_compiling=yes
8484 if test "$aros_host_cpu" == "x86_64" ; then
8485 if test "$aros_target_cpu" == "i386" ; then
8486 if test "$aros_target_arch" != "mingw32"; then
8487 cross_compiling=no
8488 kernel_tool_prefix=""
8493 if test "$aros_host_arch" == "darwin" ; then
8494 if test "$aros_target_arch" != "darwin" ; then
8495 cross_compiling=yes
8496 else
8497 cross_compiling=no
8498 kernel_tool_prefix=""
8502 if test "$aros_host_arch" == "mingw32" ; then
8503 if test "$aros_target_arch" != "mingw32" ; then
8504 cross_compiling=yes
8505 else
8506 cross_compiling=no
8507 kernel_tool_prefix=""
8511 #######################################################################
8512 ## Compute what toolchains to use, and their paths ##
8513 #######################################################################
8515 # This takes, as input:
8516 # crosstools {yes,no}
8517 # aros_gcc_version {default,[version]}
8518 # kernel_tool_prefix {none,[some-arch-os-]}
8519 # target_tool_prefix ${target_cpu}-aros-
8521 # The output is
8522 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8523 # Where the 'kernel' binaries are located
8524 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8525 # Where the 'target' binaries are located
8526 # (not the symlink farm - that is aros_target_*!)
8528 # The rules are:
8529 # if crosstools then
8530 # if kernel_tools_prefix = "no-kernel-prefix-"
8531 # aros_kernel_* = crosstools cc paths
8532 # aros_kernel_cc = elf cc wrapper around crosstools cc
8533 # else
8534 # VALIDATE(${kernel_tools_prefix}*)
8535 # aros_kernel_* = ${kernel_tools_prefix}*
8536 # if ${kernel_tools_prefix}cc is an AROS gcc
8537 # aros_kernel_cc = ${kernel_tools_prefix}cc
8538 # else
8539 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8540 # fi
8541 # fi
8543 # orig_target_* = aros built crosstools
8544 # orig_target_cc = elf cc wrapper around crosstools cc
8545 # else
8546 # VALIDATE(${kernel_tools_prefix}*)
8548 # orig_target_* = aros_kernel_*
8549 # if aros_kernel_cc is an AROS gcc
8550 # orig_target_cc = aros_kernel_cc
8551 # else
8552 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8553 # fi
8554 # fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external toolchain" >&5
8558 $as_echo_n "checking whether to use external toolchain... " >&6; }
8559 if test "$kernel_tool_prefix" = "none" ; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; };
8562 if test "$crosstools" != "yes"; then
8563 as_fn_error $? "--disable-crosstools requires --with-kernel-tool-prefix= for this arch" "$LINENO" 5
8565 # We are building AROS crosstools, and no kernel
8566 # tools specified - assume target tools == kernel tools
8567 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
8568 aros_kernel_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
8569 aros_kernel_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
8570 aros_kernel_cpp="${tmp_tool_prefix}cpp"
8571 aros_kernel_ld="${tmp_tool_prefix}ld"
8572 aros_kernel_as="${tmp_tool_prefix}as"
8573 aros_kernel_ar="${tmp_tool_prefix}ar"
8574 aros_kernel_ranlib="${tmp_tool_prefix}ranlib"
8575 aros_kernel_nm="${tmp_tool_prefix}nm"
8576 aros_kernel_strip="${tmp_tool_prefix}strip"
8577 aros_kernel_objcopy="${tmp_tool_prefix}objcopy"
8578 aros_kernel_objdump="${tmp_tool_prefix}objdump"
8579 else
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8581 $as_echo "yes" >&6; };
8582 # Kernel tools specified - find them
8583 # Note that 'normally', aros_kernel_* overrides will
8584 # empty, unless specified in the per-arch sections above.
8587 if test "$aros_kernel_cpp" = ""; then
8588 if test "$cross_compiling" = "yes" ; then
8589 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8590 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 case $aros_kernel_cpp in
8597 [\\/]* | ?:[\\/]*)
8598 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8608 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8612 done
8613 done
8614 IFS=$as_save_IFS
8617 esac
8619 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8620 if test -n "$aros_kernel_cpp"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8622 $as_echo "$aros_kernel_cpp" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8629 else
8630 if test "$GCC" = "yes"; then
8631 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8632 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8633 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 case $aros_kernel_cpp in
8640 [\\/]* | ?:[\\/]*)
8641 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in `dirname $aros_gcc_cpp`
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8655 done
8656 done
8657 IFS=$as_save_IFS
8660 esac
8662 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8663 if test -n "$aros_kernel_cpp"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8665 $as_echo "$aros_kernel_cpp" >&6; }
8666 else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8673 if test "$aros_kernel_cpp" = ""; then
8674 # Extract the first word of "cpp", so it can be a program name with args.
8675 set dummy cpp; ac_word=$2
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 $as_echo_n "checking for $ac_word... " >&6; }
8678 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 case $aros_kernel_cpp in
8682 [\\/]* | ?:[\\/]*)
8683 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8697 done
8698 done
8699 IFS=$as_save_IFS
8702 esac
8704 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8705 if test -n "$aros_kernel_cpp"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8707 $as_echo "$aros_kernel_cpp" >&6; }
8708 else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8716 else
8717 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8718 set dummy $aros_kernel_cpp; ac_word=$2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720 $as_echo_n "checking for $ac_word... " >&6; }
8721 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 case $aros_kernel_cpp in
8725 [\\/]* | ?:[\\/]*)
8726 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8736 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8740 done
8741 done
8742 IFS=$as_save_IFS
8745 esac
8747 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8748 if test -n "$aros_kernel_cpp"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8750 $as_echo "$aros_kernel_cpp" >&6; }
8751 else
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8759 if test "$aros_kernel_cpp" = ""; then
8760 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8762 if test "x$aros_kernel_cc" = "x"; then
8763 aros_kernel_cc=${kernel_tool_prefix}gcc
8766 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8767 if test "$cross_compiling" = "yes" ; then
8768 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8769 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 case $aros_kernel_cc in
8776 [\\/]* | ?:[\\/]*)
8777 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8783 IFS=$as_save_IFS
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 break 2
8791 done
8792 done
8793 IFS=$as_save_IFS
8796 esac
8798 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8799 if test -n "$aros_kernel_cc"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8801 $as_echo "$aros_kernel_cc" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8808 else
8809 if test "$GCC" = "yes"; then
8810 aros_gcc_cc=`$CC -print-prog-name=cc`
8811 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8812 set dummy `basename $aros_gcc_cc`; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 case $aros_kernel_cc in
8819 [\\/]* | ?:[\\/]*)
8820 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in `dirname $aros_gcc_cc`
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8830 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8834 done
8835 done
8836 IFS=$as_save_IFS
8839 esac
8841 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8842 if test -n "$aros_kernel_cc"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8844 $as_echo "$aros_kernel_cc" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8852 if test "$aros_kernel_cc" = ""; then
8853 # Extract the first word of "cc", so it can be a program name with args.
8854 set dummy cc; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 case $aros_kernel_cc in
8861 [\\/]* | ?:[\\/]*)
8862 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8872 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8876 done
8877 done
8878 IFS=$as_save_IFS
8881 esac
8883 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8884 if test -n "$aros_kernel_cc"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8886 $as_echo "$aros_kernel_cc" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8895 else
8896 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8897 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 case $aros_kernel_cc in
8904 [\\/]* | ?:[\\/]*)
8905 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8919 done
8920 done
8921 IFS=$as_save_IFS
8924 esac
8926 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8927 if test -n "$aros_kernel_cc"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8929 $as_echo "$aros_kernel_cc" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8938 if test "$aros_kernel_cc" = ""; then
8939 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8941 if test "x$aros_kernel_cxx" = "x"; then
8942 aros_kernel_cxx=${kernel_tool_prefix}g++
8945 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8946 if test "$cross_compiling" = "yes" ; then
8947 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8948 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950 $as_echo_n "checking for $ac_word... " >&6; }
8951 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 case $aros_kernel_cxx in
8955 [\\/]* | ?:[\\/]*)
8956 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 for as_dir in $PATH
8962 IFS=$as_save_IFS
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 break 2
8970 done
8971 done
8972 IFS=$as_save_IFS
8975 esac
8977 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8978 if test -n "$aros_kernel_cxx"; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8980 $as_echo "$aros_kernel_cxx" >&6; }
8981 else
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8987 else
8988 if test "$GCC" = "yes"; then
8989 aros_gcc_cxx=`$CC -print-prog-name=cxx`
8990 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
8991 set dummy `basename $aros_gcc_cxx`; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 case $aros_kernel_cxx in
8998 [\\/]* | ?:[\\/]*)
8999 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003 for as_dir in `dirname $aros_gcc_cxx`
9005 IFS=$as_save_IFS
9006 test -z "$as_dir" && as_dir=.
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9009 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011 break 2
9013 done
9014 done
9015 IFS=$as_save_IFS
9018 esac
9020 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9021 if test -n "$aros_kernel_cxx"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9023 $as_echo "$aros_kernel_cxx" >&6; }
9024 else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9031 if test "$aros_kernel_cxx" = ""; then
9032 # Extract the first word of "cxx", so it can be a program name with args.
9033 set dummy cxx; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 case $aros_kernel_cxx in
9040 [\\/]* | ?:[\\/]*)
9041 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9051 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 break 2
9055 done
9056 done
9057 IFS=$as_save_IFS
9060 esac
9062 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9063 if test -n "$aros_kernel_cxx"; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9065 $as_echo "$aros_kernel_cxx" >&6; }
9066 else
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068 $as_echo "no" >&6; }
9074 else
9075 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9076 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078 $as_echo_n "checking for $ac_word... " >&6; }
9079 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 case $aros_kernel_cxx in
9083 [\\/]* | ?:[\\/]*)
9084 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $PATH
9090 IFS=$as_save_IFS
9091 test -z "$as_dir" && as_dir=.
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9094 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 break 2
9098 done
9099 done
9100 IFS=$as_save_IFS
9103 esac
9105 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9106 if test -n "$aros_kernel_cxx"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9108 $as_echo "$aros_kernel_cxx" >&6; }
9109 else
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9117 # If it's set, make sure it's really there
9118 if test "x$aros_kernel_cxx" != "x" ; then
9119 if test "$aros_kernel_cxx" = ""; then
9120 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9124 if test "$aros_kernel_ld" = ""; then
9125 if test "$cross_compiling" = "yes" ; then
9126 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9127 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 case $aros_kernel_ld in
9134 [\\/]* | ?:[\\/]*)
9135 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9141 IFS=$as_save_IFS
9142 test -z "$as_dir" && as_dir=.
9143 for ac_exec_ext in '' $ac_executable_extensions; do
9144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9145 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 break 2
9149 done
9150 done
9151 IFS=$as_save_IFS
9154 esac
9156 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9157 if test -n "$aros_kernel_ld"; then
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9159 $as_echo "$aros_kernel_ld" >&6; }
9160 else
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }
9166 else
9167 if test "$GCC" = "yes"; then
9168 aros_gcc_ld=`$CC -print-prog-name=ld`
9169 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9170 set dummy `basename $aros_gcc_ld`; ac_word=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 case $aros_kernel_ld in
9177 [\\/]* | ?:[\\/]*)
9178 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182 for as_dir in `dirname $aros_gcc_ld`
9184 IFS=$as_save_IFS
9185 test -z "$as_dir" && as_dir=.
9186 for ac_exec_ext in '' $ac_executable_extensions; do
9187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9188 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190 break 2
9192 done
9193 done
9194 IFS=$as_save_IFS
9197 esac
9199 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9200 if test -n "$aros_kernel_ld"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9202 $as_echo "$aros_kernel_ld" >&6; }
9203 else
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9210 if test "$aros_kernel_ld" = ""; then
9211 # Extract the first word of "ld", so it can be a program name with args.
9212 set dummy ld; ac_word=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 case $aros_kernel_ld in
9219 [\\/]* | ?:[\\/]*)
9220 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 for as_dir in $PATH
9226 IFS=$as_save_IFS
9227 test -z "$as_dir" && as_dir=.
9228 for ac_exec_ext in '' $ac_executable_extensions; do
9229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9230 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9232 break 2
9234 done
9235 done
9236 IFS=$as_save_IFS
9239 esac
9241 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9242 if test -n "$aros_kernel_ld"; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9244 $as_echo "$aros_kernel_ld" >&6; }
9245 else
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247 $as_echo "no" >&6; }
9253 else
9254 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9255 set dummy $aros_kernel_ld; ac_word=$2
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257 $as_echo_n "checking for $ac_word... " >&6; }
9258 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 case $aros_kernel_ld in
9262 [\\/]* | ?:[\\/]*)
9263 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267 for as_dir in $PATH
9269 IFS=$as_save_IFS
9270 test -z "$as_dir" && as_dir=.
9271 for ac_exec_ext in '' $ac_executable_extensions; do
9272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9273 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 break 2
9277 done
9278 done
9279 IFS=$as_save_IFS
9282 esac
9284 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9285 if test -n "$aros_kernel_ld"; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9287 $as_echo "$aros_kernel_ld" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9296 if test "$aros_kernel_ld" = ""; then
9297 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9300 if test "$aros_kernel_as" = ""; then
9301 if test "$cross_compiling" = "yes" ; then
9302 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9303 set dummy ${kernel_tool_prefix}as; ac_word=$2
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305 $as_echo_n "checking for $ac_word... " >&6; }
9306 if ${ac_cv_path_aros_kernel_as+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 case $aros_kernel_as in
9310 [\\/]* | ?:[\\/]*)
9311 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 for as_dir in $PATH
9317 IFS=$as_save_IFS
9318 test -z "$as_dir" && as_dir=.
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9321 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9323 break 2
9325 done
9326 done
9327 IFS=$as_save_IFS
9330 esac
9332 aros_kernel_as=$ac_cv_path_aros_kernel_as
9333 if test -n "$aros_kernel_as"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9335 $as_echo "$aros_kernel_as" >&6; }
9336 else
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9342 else
9343 if test "$GCC" = "yes"; then
9344 aros_gcc_as=`$CC -print-prog-name=as`
9345 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9346 set dummy `basename $aros_gcc_as`; ac_word=$2
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348 $as_echo_n "checking for $ac_word... " >&6; }
9349 if ${ac_cv_path_aros_kernel_as+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 case $aros_kernel_as in
9353 [\\/]* | ?:[\\/]*)
9354 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in `dirname $aros_gcc_as`
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
9362 for ac_exec_ext in '' $ac_executable_extensions; do
9363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9364 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 break 2
9368 done
9369 done
9370 IFS=$as_save_IFS
9373 esac
9375 aros_kernel_as=$ac_cv_path_aros_kernel_as
9376 if test -n "$aros_kernel_as"; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9378 $as_echo "$aros_kernel_as" >&6; }
9379 else
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9386 if test "$aros_kernel_as" = ""; then
9387 # Extract the first word of "as", so it can be a program name with args.
9388 set dummy as; ac_word=$2
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 $as_echo_n "checking for $ac_word... " >&6; }
9391 if ${ac_cv_path_aros_kernel_as+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 case $aros_kernel_as in
9395 [\\/]* | ?:[\\/]*)
9396 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9410 done
9411 done
9412 IFS=$as_save_IFS
9415 esac
9417 aros_kernel_as=$ac_cv_path_aros_kernel_as
9418 if test -n "$aros_kernel_as"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9420 $as_echo "$aros_kernel_as" >&6; }
9421 else
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9429 else
9430 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9431 set dummy $aros_kernel_as; ac_word=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if ${ac_cv_path_aros_kernel_as+:} false; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 case $aros_kernel_as in
9438 [\\/]* | ?:[\\/]*)
9439 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443 for as_dir in $PATH
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 break 2
9453 done
9454 done
9455 IFS=$as_save_IFS
9458 esac
9460 aros_kernel_as=$ac_cv_path_aros_kernel_as
9461 if test -n "$aros_kernel_as"; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9463 $as_echo "$aros_kernel_as" >&6; }
9464 else
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466 $as_echo "no" >&6; }
9472 if test "$aros_kernel_as" = ""; then
9473 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9476 if test "$aros_kernel_ar" = ""; then
9477 if test "$cross_compiling" = "yes" ; then
9478 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9479 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481 $as_echo_n "checking for $ac_word... " >&6; }
9482 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9483 $as_echo_n "(cached) " >&6
9484 else
9485 case $aros_kernel_ar in
9486 [\\/]* | ?:[\\/]*)
9487 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9501 done
9502 done
9503 IFS=$as_save_IFS
9506 esac
9508 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9509 if test -n "$aros_kernel_ar"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9511 $as_echo "$aros_kernel_ar" >&6; }
9512 else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9518 else
9519 if test "$GCC" = "yes"; then
9520 aros_gcc_ar=`$CC -print-prog-name=ar`
9521 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9522 set dummy `basename $aros_gcc_ar`; ac_word=$2
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524 $as_echo_n "checking for $ac_word... " >&6; }
9525 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 case $aros_kernel_ar in
9529 [\\/]* | ?:[\\/]*)
9530 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in `dirname $aros_gcc_ar`
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9540 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9544 done
9545 done
9546 IFS=$as_save_IFS
9549 esac
9551 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9552 if test -n "$aros_kernel_ar"; then
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9554 $as_echo "$aros_kernel_ar" >&6; }
9555 else
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 $as_echo "no" >&6; }
9562 if test "$aros_kernel_ar" = ""; then
9563 # Extract the first word of "ar", so it can be a program name with args.
9564 set dummy ar; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 case $aros_kernel_ar in
9571 [\\/]* | ?:[\\/]*)
9572 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576 for as_dir in $PATH
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9582 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9586 done
9587 done
9588 IFS=$as_save_IFS
9591 esac
9593 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9594 if test -n "$aros_kernel_ar"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9596 $as_echo "$aros_kernel_ar" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9605 else
9606 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9607 set dummy $aros_kernel_ar; ac_word=$2
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 case $aros_kernel_ar in
9614 [\\/]* | ?:[\\/]*)
9615 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 break 2
9629 done
9630 done
9631 IFS=$as_save_IFS
9634 esac
9636 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9637 if test -n "$aros_kernel_ar"; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9639 $as_echo "$aros_kernel_ar" >&6; }
9640 else
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 $as_echo "no" >&6; }
9648 if test "$aros_kernel_ar" = ""; then
9649 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9652 if test "$aros_kernel_ranlib" = ""; then
9653 if test "$cross_compiling" = "yes" ; then
9654 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9655 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 case $aros_kernel_ranlib in
9662 [\\/]* | ?:[\\/]*)
9663 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675 break 2
9677 done
9678 done
9679 IFS=$as_save_IFS
9682 esac
9684 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9685 if test -n "$aros_kernel_ranlib"; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9687 $as_echo "$aros_kernel_ranlib" >&6; }
9688 else
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9694 else
9695 if test "$GCC" = "yes"; then
9696 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9697 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9698 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9700 $as_echo_n "checking for $ac_word... " >&6; }
9701 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 case $aros_kernel_ranlib in
9705 [\\/]* | ?:[\\/]*)
9706 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in `dirname $aros_gcc_ranlib`
9712 IFS=$as_save_IFS
9713 test -z "$as_dir" && as_dir=.
9714 for ac_exec_ext in '' $ac_executable_extensions; do
9715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9716 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 break 2
9720 done
9721 done
9722 IFS=$as_save_IFS
9725 esac
9727 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9728 if test -n "$aros_kernel_ranlib"; then
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9730 $as_echo "$aros_kernel_ranlib" >&6; }
9731 else
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9738 if test "$aros_kernel_ranlib" = ""; then
9739 # Extract the first word of "ranlib", so it can be a program name with args.
9740 set dummy ranlib; ac_word=$2
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 case $aros_kernel_ranlib in
9747 [\\/]* | ?:[\\/]*)
9748 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9762 done
9763 done
9764 IFS=$as_save_IFS
9767 esac
9769 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9770 if test -n "$aros_kernel_ranlib"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9772 $as_echo "$aros_kernel_ranlib" >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9781 else
9782 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9783 set dummy $aros_kernel_ranlib; ac_word=$2
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9785 $as_echo_n "checking for $ac_word... " >&6; }
9786 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 case $aros_kernel_ranlib in
9790 [\\/]* | ?:[\\/]*)
9791 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9801 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 break 2
9805 done
9806 done
9807 IFS=$as_save_IFS
9810 esac
9812 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9813 if test -n "$aros_kernel_ranlib"; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9815 $as_echo "$aros_kernel_ranlib" >&6; }
9816 else
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818 $as_echo "no" >&6; }
9824 if test "$aros_kernel_ranlib" = ""; then
9825 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9828 if test "$aros_kernel_nm" = ""; then
9829 if test "$cross_compiling" = "yes" ; then
9830 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9831 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833 $as_echo_n "checking for $ac_word... " >&6; }
9834 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 case $aros_kernel_nm in
9838 [\\/]* | ?:[\\/]*)
9839 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843 for as_dir in $PATH
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
9847 for ac_exec_ext in '' $ac_executable_extensions; do
9848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9849 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 break 2
9853 done
9854 done
9855 IFS=$as_save_IFS
9858 esac
9860 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9861 if test -n "$aros_kernel_nm"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9863 $as_echo "$aros_kernel_nm" >&6; }
9864 else
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9870 else
9871 if test "$GCC" = "yes"; then
9872 aros_gcc_nm=`$CC -print-prog-name=nm`
9873 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9874 set dummy `basename $aros_gcc_nm`; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 case $aros_kernel_nm in
9881 [\\/]* | ?:[\\/]*)
9882 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in `dirname $aros_gcc_nm`
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9892 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9896 done
9897 done
9898 IFS=$as_save_IFS
9901 esac
9903 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9904 if test -n "$aros_kernel_nm"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9906 $as_echo "$aros_kernel_nm" >&6; }
9907 else
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9914 if test "$aros_kernel_nm" = ""; then
9915 # Extract the first word of "nm", so it can be a program name with args.
9916 set dummy nm; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 case $aros_kernel_nm in
9923 [\\/]* | ?:[\\/]*)
9924 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $PATH
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936 break 2
9938 done
9939 done
9940 IFS=$as_save_IFS
9943 esac
9945 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9946 if test -n "$aros_kernel_nm"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9948 $as_echo "$aros_kernel_nm" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9957 else
9958 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9959 set dummy $aros_kernel_nm; ac_word=$2
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961 $as_echo_n "checking for $ac_word... " >&6; }
9962 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9963 $as_echo_n "(cached) " >&6
9964 else
9965 case $aros_kernel_nm in
9966 [\\/]* | ?:[\\/]*)
9967 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 for as_dir in $PATH
9973 IFS=$as_save_IFS
9974 test -z "$as_dir" && as_dir=.
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9977 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 break 2
9981 done
9982 done
9983 IFS=$as_save_IFS
9986 esac
9988 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9989 if test -n "$aros_kernel_nm"; then
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9991 $as_echo "$aros_kernel_nm" >&6; }
9992 else
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994 $as_echo "no" >&6; }
10000 if test "$aros_kernel_nm" = ""; then
10001 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10004 if test "$aros_kernel_strip" = ""; then
10005 if test "$cross_compiling" = "yes" ; then
10006 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10007 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 case $aros_kernel_strip in
10014 [\\/]* | ?:[\\/]*)
10015 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10029 done
10030 done
10031 IFS=$as_save_IFS
10034 esac
10036 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10037 if test -n "$aros_kernel_strip"; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10039 $as_echo "$aros_kernel_strip" >&6; }
10040 else
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10046 else
10047 if test "$GCC" = "yes"; then
10048 aros_gcc_strip=`$CC -print-prog-name=strip`
10049 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10050 set dummy `basename $aros_gcc_strip`; ac_word=$2
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 case $aros_kernel_strip in
10057 [\\/]* | ?:[\\/]*)
10058 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062 for as_dir in `dirname $aros_gcc_strip`
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10068 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 break 2
10072 done
10073 done
10074 IFS=$as_save_IFS
10077 esac
10079 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10080 if test -n "$aros_kernel_strip"; then
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10082 $as_echo "$aros_kernel_strip" >&6; }
10083 else
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085 $as_echo "no" >&6; }
10090 if test "$aros_kernel_strip" = ""; then
10091 # Extract the first word of "strip", so it can be a program name with args.
10092 set dummy strip; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 case $aros_kernel_strip in
10099 [\\/]* | ?:[\\/]*)
10100 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10110 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10114 done
10115 done
10116 IFS=$as_save_IFS
10119 esac
10121 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10122 if test -n "$aros_kernel_strip"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10124 $as_echo "$aros_kernel_strip" >&6; }
10125 else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10133 else
10134 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10135 set dummy $aros_kernel_strip; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 case $aros_kernel_strip in
10142 [\\/]* | ?:[\\/]*)
10143 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10153 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10157 done
10158 done
10159 IFS=$as_save_IFS
10162 esac
10164 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10165 if test -n "$aros_kernel_strip"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10167 $as_echo "$aros_kernel_strip" >&6; }
10168 else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10176 if test "$aros_kernel_strip" = ""; then
10177 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10180 # Objcopy and objdump are not required for the kernel
10181 # toolchain on many architectures.
10182 # So we'll look for them, but not make them strictly required.
10184 if test "$aros_kernel_objcopy" = ""; then
10185 if test "$cross_compiling" = "yes" ; then
10186 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10187 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 case $aros_kernel_objcopy in
10194 [\\/]* | ?:[\\/]*)
10195 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10205 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 break 2
10209 done
10210 done
10211 IFS=$as_save_IFS
10214 esac
10216 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10217 if test -n "$aros_kernel_objcopy"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10219 $as_echo "$aros_kernel_objcopy" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10226 else
10227 if test "$GCC" = "yes"; then
10228 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10229 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10230 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 case $aros_kernel_objcopy in
10237 [\\/]* | ?:[\\/]*)
10238 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in `dirname $aros_gcc_objcopy`
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10248 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10252 done
10253 done
10254 IFS=$as_save_IFS
10257 esac
10259 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10260 if test -n "$aros_kernel_objcopy"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10262 $as_echo "$aros_kernel_objcopy" >&6; }
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10270 if test "$aros_kernel_objcopy" = ""; then
10271 # Extract the first word of "objcopy", so it can be a program name with args.
10272 set dummy objcopy; ac_word=$2
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10274 $as_echo_n "checking for $ac_word... " >&6; }
10275 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 case $aros_kernel_objcopy in
10279 [\\/]* | ?:[\\/]*)
10280 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in $PATH
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10290 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10294 done
10295 done
10296 IFS=$as_save_IFS
10299 esac
10301 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10302 if test -n "$aros_kernel_objcopy"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10304 $as_echo "$aros_kernel_objcopy" >&6; }
10305 else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307 $as_echo "no" >&6; }
10313 else
10314 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10315 set dummy $aros_kernel_objcopy; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 case $aros_kernel_objcopy in
10322 [\\/]* | ?:[\\/]*)
10323 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10333 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10337 done
10338 done
10339 IFS=$as_save_IFS
10342 esac
10344 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10345 if test -n "$aros_kernel_objcopy"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10347 $as_echo "$aros_kernel_objcopy" >&6; }
10348 else
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10357 if test "$aros_kernel_objdump" = ""; then
10358 if test "$cross_compiling" = "yes" ; then
10359 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10360 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 case $aros_kernel_objdump in
10367 [\\/]* | ?:[\\/]*)
10368 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372 for as_dir in $PATH
10374 IFS=$as_save_IFS
10375 test -z "$as_dir" && as_dir=.
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10378 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 break 2
10382 done
10383 done
10384 IFS=$as_save_IFS
10387 esac
10389 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10390 if test -n "$aros_kernel_objdump"; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10392 $as_echo "$aros_kernel_objdump" >&6; }
10393 else
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10399 else
10400 if test "$GCC" = "yes"; then
10401 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10402 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10403 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10405 $as_echo_n "checking for $ac_word... " >&6; }
10406 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 case $aros_kernel_objdump in
10410 [\\/]* | ?:[\\/]*)
10411 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in `dirname $aros_gcc_objdump`
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10421 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10425 done
10426 done
10427 IFS=$as_save_IFS
10430 esac
10432 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10433 if test -n "$aros_kernel_objdump"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10435 $as_echo "$aros_kernel_objdump" >&6; }
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10443 if test "$aros_kernel_objdump" = ""; then
10444 # Extract the first word of "objdump", so it can be a program name with args.
10445 set dummy objdump; ac_word=$2
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447 $as_echo_n "checking for $ac_word... " >&6; }
10448 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 case $aros_kernel_objdump in
10452 [\\/]* | ?:[\\/]*)
10453 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10463 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 break 2
10467 done
10468 done
10469 IFS=$as_save_IFS
10472 esac
10474 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10475 if test -n "$aros_kernel_objdump"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10477 $as_echo "$aros_kernel_objdump" >&6; }
10478 else
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10486 else
10487 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10488 set dummy $aros_kernel_objdump; ac_word=$2
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10490 $as_echo_n "checking for $ac_word... " >&6; }
10491 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 case $aros_kernel_objdump in
10495 [\\/]* | ?:[\\/]*)
10496 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10510 done
10511 done
10512 IFS=$as_save_IFS
10515 esac
10517 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10518 if test -n "$aros_kernel_objdump"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10520 $as_echo "$aros_kernel_objdump" >&6; }
10521 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10529 if test "x${crosstools}" != "xyes" ; then
10530 if test "$aros_kernel_objcopy" = ""; then
10531 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10533 if test "$aros_kernel_objdump" = ""; then
10534 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10540 $as_echo_n "checking which target tools to use... " >&6; }
10541 if test "$crosstools" = "yes"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10543 $as_echo "$target_tool_prefix" >&6; }
10544 # We are are building AROS crosstools
10545 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10546 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10547 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10548 orig_target_cpp="${tmp_tool_prefix}cpp"
10549 orig_target_ld="${tmp_tool_prefix}ld"
10550 orig_target_as="${tmp_tool_prefix}as"
10551 orig_target_ar="${tmp_tool_prefix}ar"
10552 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10553 orig_target_nm="${tmp_tool_prefix}nm"
10554 orig_target_strip="${tmp_tool_prefix}strip"
10555 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10556 orig_target_objdump="${tmp_tool_prefix}objdump"
10557 else
10558 # We are *not* building AROS crosstools - use the kernel tools
10559 # However some ports (Windows-hosted for example) can't use kernel tools
10560 # to build AROS for sure. In this case we search for preinstalled AROS gcc
10561 # CHECKME: Currently i set need_crosstools only for mingw target, however
10562 # the same should be true for Android and Darwin ports.
10563 if test "$need_crosstools" = "yes" ; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu-aros" >&5
10565 $as_echo "$aros_target_cpu-aros" >&6; }
10566 # Extract the first word of ""$aros_target_cpu-aros-cpp"", so it can be a program name with args.
10567 set dummy "$aros_target_cpu-aros-cpp"; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if ${ac_cv_path_orig_target_cpp+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 case $orig_target_cpp in
10574 [\\/]* | ?:[\\/]*)
10575 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10585 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10589 done
10590 done
10591 IFS=$as_save_IFS
10594 esac
10596 orig_target_cpp=$ac_cv_path_orig_target_cpp
10597 if test -n "$orig_target_cpp"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10599 $as_echo "$orig_target_cpp" >&6; }
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10606 # Extract the first word of ""$aros_target_cpu-aros-gcc"", so it can be a program name with args.
10607 set dummy "$aros_target_cpu-aros-gcc"; ac_word=$2
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609 $as_echo_n "checking for $ac_word... " >&6; }
10610 if ${ac_cv_path_orig_target_cc+:} false; then :
10611 $as_echo_n "(cached) " >&6
10612 else
10613 case $orig_target_cc in
10614 [\\/]* | ?:[\\/]*)
10615 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10621 IFS=$as_save_IFS
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10625 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10629 done
10630 done
10631 IFS=$as_save_IFS
10634 esac
10636 orig_target_cc=$ac_cv_path_orig_target_cc
10637 if test -n "$orig_target_cc"; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10639 $as_echo "$orig_target_cc" >&6; }
10640 else
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10646 # Extract the first word of ""$aros_target_cpu-aros-g++"", so it can be a program name with args.
10647 set dummy "$aros_target_cpu-aros-g++"; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if ${ac_cv_path_orig_target_cxx+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 case $orig_target_cxx in
10654 [\\/]* | ?:[\\/]*)
10655 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10665 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10669 done
10670 done
10671 IFS=$as_save_IFS
10674 esac
10676 orig_target_cxx=$ac_cv_path_orig_target_cxx
10677 if test -n "$orig_target_cxx"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
10679 $as_echo "$orig_target_cxx" >&6; }
10680 else
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10686 # Extract the first word of ""$aros_target_cpu-aros-ld"", so it can be a program name with args.
10687 set dummy "$aros_target_cpu-aros-ld"; ac_word=$2
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689 $as_echo_n "checking for $ac_word... " >&6; }
10690 if ${ac_cv_path_orig_target_ld+:} false; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 case $orig_target_ld in
10694 [\\/]* | ?:[\\/]*)
10695 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10701 IFS=$as_save_IFS
10702 test -z "$as_dir" && as_dir=.
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10705 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
10706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707 break 2
10709 done
10710 done
10711 IFS=$as_save_IFS
10714 esac
10716 orig_target_ld=$ac_cv_path_orig_target_ld
10717 if test -n "$orig_target_ld"; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
10719 $as_echo "$orig_target_ld" >&6; }
10720 else
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722 $as_echo "no" >&6; }
10726 # Extract the first word of ""$aros_target_cpu-aros-as"", so it can be a program name with args.
10727 set dummy "$aros_target_cpu-aros-as"; ac_word=$2
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729 $as_echo_n "checking for $ac_word... " >&6; }
10730 if ${ac_cv_path_orig_target_as+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 case $orig_target_as in
10734 [\\/]* | ?:[\\/]*)
10735 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
10738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10739 for as_dir in $PATH
10741 IFS=$as_save_IFS
10742 test -z "$as_dir" && as_dir=.
10743 for ac_exec_ext in '' $ac_executable_extensions; do
10744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10745 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
10746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10747 break 2
10749 done
10750 done
10751 IFS=$as_save_IFS
10754 esac
10756 orig_target_as=$ac_cv_path_orig_target_as
10757 if test -n "$orig_target_as"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
10759 $as_echo "$orig_target_as" >&6; }
10760 else
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762 $as_echo "no" >&6; }
10766 # Extract the first word of ""$aros_target_cpu-aros-ar"", so it can be a program name with args.
10767 set dummy "$aros_target_cpu-aros-ar"; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if ${ac_cv_path_orig_target_ar+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 case $orig_target_ar in
10774 [\\/]* | ?:[\\/]*)
10775 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
10786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10789 done
10790 done
10791 IFS=$as_save_IFS
10794 esac
10796 orig_target_ar=$ac_cv_path_orig_target_ar
10797 if test -n "$orig_target_ar"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
10799 $as_echo "$orig_target_ar" >&6; }
10800 else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10806 # Extract the first word of ""$aros_target_cpu-aros-ranlib"", so it can be a program name with args.
10807 set dummy "$aros_target_cpu-aros-ranlib"; ac_word=$2
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10809 $as_echo_n "checking for $ac_word... " >&6; }
10810 if ${ac_cv_path_orig_target_ranlib+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 case $orig_target_ranlib in
10814 [\\/]* | ?:[\\/]*)
10815 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
10818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819 for as_dir in $PATH
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10825 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
10826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10827 break 2
10829 done
10830 done
10831 IFS=$as_save_IFS
10834 esac
10836 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
10837 if test -n "$orig_target_ranlib"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
10839 $as_echo "$orig_target_ranlib" >&6; }
10840 else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10846 # Extract the first word of ""$aros_target_cpu-aros-nm"", so it can be a program name with args.
10847 set dummy "$aros_target_cpu-aros-nm"; ac_word=$2
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 $as_echo_n "checking for $ac_word... " >&6; }
10850 if ${ac_cv_path_orig_target_nm+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 case $orig_target_nm in
10854 [\\/]* | ?:[\\/]*)
10855 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10865 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10869 done
10870 done
10871 IFS=$as_save_IFS
10874 esac
10876 orig_target_nm=$ac_cv_path_orig_target_nm
10877 if test -n "$orig_target_nm"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
10879 $as_echo "$orig_target_nm" >&6; }
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10886 # Extract the first word of ""$aros_target_cpu-aros-strip"", so it can be a program name with args.
10887 set dummy "$aros_target_cpu-aros-strip"; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if ${ac_cv_path_orig_target_strip+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 case $orig_target_strip in
10894 [\\/]* | ?:[\\/]*)
10895 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10901 IFS=$as_save_IFS
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907 break 2
10909 done
10910 done
10911 IFS=$as_save_IFS
10914 esac
10916 orig_target_strip=$ac_cv_path_orig_target_strip
10917 if test -n "$orig_target_strip"; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
10919 $as_echo "$orig_target_strip" >&6; }
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10926 # Extract the first word of ""$aros_target_cpu-aros-objcopy"", so it can be a program name with args.
10927 set dummy "$aros_target_cpu-aros-objcopy"; ac_word=$2
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929 $as_echo_n "checking for $ac_word... " >&6; }
10930 if ${ac_cv_path_orig_target_objcopy+:} false; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 case $orig_target_objcopy in
10934 [\\/]* | ?:[\\/]*)
10935 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10945 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 break 2
10949 done
10950 done
10951 IFS=$as_save_IFS
10954 esac
10956 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
10957 if test -n "$orig_target_objcopy"; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
10959 $as_echo "$orig_target_objcopy" >&6; }
10960 else
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962 $as_echo "no" >&6; }
10966 # Extract the first word of ""$aros_target_cpu-aros-objdump"", so it can be a program name with args.
10967 set dummy "$aros_target_cpu-aros-objdump"; ac_word=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969 $as_echo_n "checking for $ac_word... " >&6; }
10970 if ${ac_cv_path_orig_target_objdump+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 case $orig_target_objdump in
10974 [\\/]* | ?:[\\/]*)
10975 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10989 done
10990 done
10991 IFS=$as_save_IFS
10994 esac
10996 orig_target_objdump=$ac_cv_path_orig_target_objdump
10997 if test -n "$orig_target_objdump"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
10999 $as_echo "$orig_target_objdump" >&6; }
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11006 if test "$aros_gcc_version" != ""; then
11007 orig_target_cpp="$orig_target_cpp-$aros_gcc_version"
11008 orig_target_cc="$orig_target_cc-$aros_gcc_version"
11009 orig_target_cxx="$orig_target_cxx-$aros_gcc_version"
11011 else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
11013 $as_echo "$kernel_tool_prefix" >&6; }
11014 orig_target_cpp="${aros_kernel_cpp}"
11015 orig_target_cc="${aros_kernel_cc}"
11016 orig_target_cxx="${aros_kernel_cxx}"
11017 orig_target_ld="${aros_kernel_ld}"
11018 orig_target_as="${aros_kernel_as}"
11019 orig_target_ar="${aros_kernel_ar}"
11020 orig_target_ranlib="${aros_kernel_ranlib}"
11021 orig_target_nm="${aros_kernel_nm}"
11022 orig_target_strip="${aros_kernel_strip}"
11023 orig_target_objcopy="${aros_kernel_objcopy}"
11024 orig_target_objdump="${aros_kernel_objdump}"
11027 if test "$orig_target_cpp" = ""; then
11028 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11030 if test "$orig_target_cc" = ""; then
11031 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11033 if test "x$orig_target_cxx" != "x" ; then
11034 if test "$orig_target_cxx" = ""; then
11035 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11038 if test "$orig_target_ld" = ""; then
11039 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11041 if test "$orig_target_as" = ""; then
11042 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11044 if test "$orig_target_ar" = ""; then
11045 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11047 if test "$orig_target_ranlib" = ""; then
11048 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11050 if test "$orig_target_nm" = ""; then
11051 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11053 if test "$orig_target_strip" = ""; then
11054 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11056 if test "$orig_target_objcopy" = ""; then
11057 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11059 if test "$orig_target_objdump" = ""; then
11060 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11064 # At this point, all aros_kernel_* and aros_target_*
11065 # tools should be set up correctly
11067 CC="$aros_kernel_cc $kernel_tool_flags"
11068 CPP="$aros_kernel_cpp"
11070 #-----------------------------------------------------------------------------
11072 # Disable pointer-signedness warnings if the compiler recognises the option
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
11075 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
11076 save_cflags="$CFLAGS"
11077 if test "$crosstools" != "yes" ; then
11078 CFLAGS="$CFLAGS -Wno-pointer-sign"
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11083 main ()
11087 return 0;
11089 _ACEOF
11090 if ac_fn_c_try_compile "$LINENO"; then :
11091 use_no_sign_warning="yes"
11092 else
11093 use_no_sign_warning="no"
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 else
11097 # we do know it is supported for the smallest version of gcc we are going to build
11098 # we assume it's also supported by later versions
11099 use_no_sign_warning=yes
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
11102 $as_echo "$use_no_sign_warning" >&6; }
11103 if test "x-$use_no_sign_warning" = "x-yes" ; then
11104 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
11106 CFLAGS="$save_cflags"
11108 #-----------------------------------------------------------------------------
11110 # Find all the tools we need to compile. This could be cross-compiling
11111 # though! If that is the case we use the GNU form of the target and
11112 # simply add this to the front of the binary name. This is rather simple,
11113 # but it should work under most circumstances.
11115 # The default tools are to use the same as the host, but only if the
11116 # host and target CPU are the same. With GCC this is normally enough.
11119 aros_cc_pre=""
11120 aros_shared_ld="$aros_host_ld"
11122 aros_target_mkdep="$aros_host_mkdep"
11124 # The default tools executables to be linked to.
11125 if test "$rescomp" != ""; then
11126 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
11127 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 case $aros_kernel_rescomp in
11134 [\\/]* | ?:[\\/]*)
11135 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11145 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11149 done
11150 done
11151 IFS=$as_save_IFS
11154 esac
11156 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
11157 if test -n "$aros_kernel_rescomp"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
11159 $as_echo "$aros_kernel_rescomp" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11166 if test "$aros_kernel_rescomp" = ""; then
11167 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
11171 # Set up the sources for the symlink farm
11172 if test "$crosstools" = "yes"; then
11173 crosstools_target=tools-crosstools
11174 else
11175 crosstools_cxx_target=tools-crosstools
11178 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
11179 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
11182 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
11183 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
11184 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
11185 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
11186 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
11187 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
11188 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
11190 # aros_cc_pre is a variable that is added to the front of the compiler name
11191 # in the generated aros-gcc shell script. We need this to enable the cache
11192 # to work across cleaned builds. Also, support DISTCC using the correct
11193 # environment variable.
11196 if test "x${DISTCC}" != "x" ; then
11197 if test "x${CCACHE}" != "x" ; then
11198 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
11199 else
11200 aros_cc_pre="${DISTCC} "
11202 else
11203 if test "x${CCACHE}" != "x" ; then
11204 aros_cc_pre="${CCACHE} "
11208 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
11210 aros_target_nostdinc_cflags=-nostdinc
11212 aros_target_nostartup_ldflags=-nostartfiles
11214 aros_target_nix_ldflags=-nix
11216 aros_target_detach_ldflags=-detach
11218 aros_target_nostdlib_ldflags=-nostdlib
11221 # Target tools
11222 if test "$crosstools" != "yes"; then
11223 if test "$GCC" = "yes"; then
11224 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
11226 else
11227 # We do not know which gcc version we are going to build and what we need to know
11228 # here is different for different versions so this will be set later during the
11229 # build of crosstools.
11230 aros_target_cc_path=@aros_target_cc_path@
11232 aros_target_cpp="${prefix}cpp"
11233 aros_target_cc="${prefix}gcc"
11234 aros_target_cxx="${prefix}g++"
11235 aros_target_as="${prefix}as"
11236 aros_target_ld="${prefix}ld"
11237 aros_target_ar="${prefix}ar $aros_target_ar_flags"
11238 aros_target_objcopy="${prefix}objcopy"
11239 aros_target_objdump="${prefix}objdump"
11240 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
11241 aros_target_nm="${prefix}nm $aros_target_nm_flags"
11242 aros_target_strip="${prefix}strip"
11243 aros_plain_nm="${prefix}nm"
11244 aros_plain_ar="${prefix}ar"
11246 if test "$aros_kernel_includes" != "" ; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
11248 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
11249 if test "$aros_kernel_cc_includes" = "" ; then
11250 # Try to guess where the directory is.
11251 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
11252 if test -d $aros_kernel_cc_includes; then
11253 # Check if there is also an include-fixed directory and add it
11254 # to kernel compiler's include path as it may contain some of
11255 # the headers we need.
11256 if test -d "$aros_kernel_cc_includes"-fixed; then
11257 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
11259 # Check for specific includes directory. Neede for Ubuntu 11.10
11260 if test -d "/usr/include/i386-linux-gnu"; then
11261 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
11263 else
11264 # The directory doesn't exist, we need to do some more work.
11265 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
11267 # These are the headers we're looking for.
11268 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11269 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11270 zutil.h stdint.h"
11272 dirs=
11273 for h in $headers; do
11274 # Which other headers are needed by each of the above?
11275 deps=$(echo "#include <$h>" | \
11276 $aros_kernel_cc -E -M - 2>/dev/null | \
11277 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11279 # Copy all the needed headers to a directory beneath gendir.
11280 for d in $deps; do
11281 h=$(basename $d)
11282 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
11283 sed -n "s,^.*/include\(/.*\),\1,p")
11284 ! test -d $dir && mkdir -p $dir
11285 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11286 done
11287 done
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
11291 $as_echo "$aros_kernel_cc_includes" >&6; }
11292 # Adding -nostdinc to kernel includes as they are always used together.
11293 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
11296 if test "$crosstools" != "yes"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
11298 $as_echo_n "checking for the target compiler's include path... " >&6; }
11299 if test "$aros_target_cc_includes" = "" ; then
11300 #try to guess where the directory is
11301 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11302 if ! test -d $aros_target_cc_includes; then
11303 #the directory doesn't exist, we need to do some more work
11304 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11306 #these are the headers we're looking for
11307 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11308 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11309 zutil.h"
11311 dirs=
11312 for h in $headers; do
11313 #which other headers each of the above headers needs?
11314 deps=$(echo "#include <$h>" | \
11315 $orig_target_cc -E -M - 2>/dev/null | \
11316 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11318 #copy all the needed headers to a directory beneath gendir
11319 for d in $deps; do
11320 h=$(basename $d)
11321 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11322 sed -n "s,^.*/include\(/.*\),\1,p")
11323 ! test -d $dir && mkdir -p $dir
11324 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11325 done
11326 done
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
11330 $as_echo "$aros_target_cc_includes" >&6; }
11331 else
11332 # We do not know which gcc version we are going to build and what we need to know
11333 # here is different for different versions so this will be set later during the
11334 # build of crosstools.
11335 aros_target_cc_includes=@aros_target_cc_includes@
11339 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11340 # On GCC >= 4.0 -iquote should be used
11343 save_cc="$CC"
11344 save_cflags="$CFLAGS"
11345 CFLAGS="-iquote."
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11347 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11348 if test "x-$crosstools" != "x-yes"; then
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11353 main ()
11357 return 0;
11359 _ACEOF
11360 if ac_fn_c_try_compile "$LINENO"; then :
11361 has_iquote="yes"
11362 else
11363 has_iquote="no"
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 else
11367 # we do know it is supported for the smallest version of gcc we are going to build
11368 # we assume it's also supported by later versions
11369 has_iquote=yes
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11372 $as_echo "$has_iquote" >&6; }
11373 if test "x-$has_iquote" = "x-yes" ; then
11374 host_cflags_iquote=-iquote
11375 host_cflags_iquote_end=
11376 else
11377 host_cflags_iquote=-I
11378 host_cflags_iquote_end=-I-
11380 kernel_cflags_iquote=$host_cflags_iquote
11381 kernel_cflags_iquote_end=$host_cflags_iquote_end
11382 if test "x-$cross_compiling" = "x-yes"; then
11383 CC="$aros_kernel_cc"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11385 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11386 if test "x-$crosstools" != "x-yes"; then
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11391 main ()
11395 return 0;
11397 _ACEOF
11398 if ac_fn_c_try_compile "$LINENO"; then :
11399 use_no_stack_protector="yes"
11400 else
11401 use_no_stack_protector="no"
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 else
11405 # we do know it is supported for the smallest version of gcc we are going to build
11406 # we assume it's also supported by later versions
11407 use_no_stack_protector=yes
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11410 $as_echo "$use_no_stack_protector" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11412 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11413 if test "x-$crosstools" != "x-yes"; then
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11418 main ()
11422 return 0;
11424 _ACEOF
11425 if ac_fn_c_try_compile "$LINENO"; then :
11426 has_iquote="yes"
11427 else
11428 has_iquote="no"
11430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 else
11432 # we do know it is supported for the smallest version of gcc we are going to build
11433 # we assume it's also supported by later versions
11434 has_iquote=yes
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11437 $as_echo "$has_iquote" >&6; }
11438 if test "x-$has_iquote" = "x-yes" ; then
11439 kernel_cflags_iquote=-iquote
11440 kernel_cflags_iquote_end=
11441 else
11442 kernel_cflags_iquote=-I
11443 kernel_cflags_iquote_end=-I-
11446 aros_cflags_iquote=$kernel_cflags_iquote
11447 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11448 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11449 CC="$orig_target_cc"
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11451 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11452 if test "x-$crosstools" != "x-yes"; then
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11457 main ()
11461 return 0;
11463 _ACEOF
11464 if ac_fn_c_try_compile "$LINENO"; then :
11465 has_iquote="yes"
11466 else
11467 has_iquote="no"
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 else
11471 # we do know it is supported for the smallest version of gcc we are going to build
11472 # we assume it's also supported by later versions
11473 has_iquote=yes
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11476 $as_echo "$has_iquote" >&6; }
11477 if test "x-$has_iquote" = "x-yes" ; then
11478 aros_cflags_iquote=-iquote
11479 aros_cflags_iquote_end=
11480 else
11481 aros_cflags_iquote=-I
11482 aros_cflags_iquote_end=-I-
11485 if test "x-$use_no_stack_protector" = "x-yes" ; then
11486 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11490 #-----------------------------------------------------------------------------
11492 # Check if the target compiler supports some options used for delinting:
11493 # -Wunused-but-set-variable
11494 # -Warray-bounds
11495 # -Wenum-compare
11496 # -Wstrict-overflow
11497 # -Wformat-security
11499 if test "x-$crosstools" != "x-yes"; then
11500 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11501 CC="$orig_target_cc"
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11504 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11505 CFLAGS=-Wunused-but-set-variable
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11510 main ()
11514 return 0;
11516 _ACEOF
11517 if ac_fn_c_try_compile "$LINENO"; then :
11518 aros_unused_but_set_variable="yes"
11519 else
11520 aros_unused_but_set_variable="no"
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11524 $as_echo "$aros_unused_but_set_variable" >&6; }
11525 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11526 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11530 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11531 CFLAGS=-Warray-bounds
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11536 main ()
11540 return 0;
11542 _ACEOF
11543 if ac_fn_c_try_compile "$LINENO"; then :
11544 aros_array_bounds="yes"
11545 else
11546 aros_array_bounds="no"
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11550 $as_echo "$aros_array_bounds" >&6; }
11551 if test "x-$aros_array_bounds" = "x-yes" ; then
11552 aros_cflags_array_bounds=-Wno-array-bounds
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11556 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11557 CFLAGS=-Wenum-compare
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11562 main ()
11566 return 0;
11568 _ACEOF
11569 if ac_fn_c_try_compile "$LINENO"; then :
11570 aros_enum_compare="yes"
11571 else
11572 aros_enum_compare="no"
11574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11576 $as_echo "$aros_enum_compare" >&6; }
11577 if test "x-$aros_enum_compare" = "x-yes" ; then
11578 aros_cflags_enum_compare=-Wno-enum-compare
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11582 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11583 CFLAGS=-Wstrict-overflow
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11588 main ()
11592 return 0;
11594 _ACEOF
11595 if ac_fn_c_try_compile "$LINENO"; then :
11596 aros_strict_overflow="yes"
11597 else
11598 aros_strict_overflow="no"
11600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11602 $as_echo "$aros_strict_overflow" >&6; }
11603 if test "x-$aros_strict_overflow" = "x-yes" ; then
11604 aros_cflags_strict_overflow=-Wno-strict-overflow
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11608 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11609 CFLAGS=-Wformat-security
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11614 main ()
11618 return 0;
11620 _ACEOF
11621 if ac_fn_c_try_compile "$LINENO"; then :
11622 aros_format_security="yes"
11623 else
11624 aros_format_security="no"
11626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11628 $as_echo "$aros_format_security" >&6; }
11629 if test "x-$aros_format_security" = "x-yes" ; then
11630 aros_cflags_format_security=-Wno-format-security
11632 else
11633 # We do not know which gcc version we are going to build and what we need to know
11634 # here is different for different versions so this will be set later during the
11635 # build of crosstools.
11636 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
11637 aros_cflags_array_bounds=@aros_cflags_array_bounds@
11638 aros_cflags_enum_compare=@aros_cflags_enum_compare@
11639 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
11640 aros_cflags_format_security=@aros_cflags_format_security@
11643 #-----------------------------------------------------------------------------
11645 # Check if we can explicitly choose older version of symbol hashing
11647 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11648 CC="$aros_kernel_cc"
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11650 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11655 main ()
11659 return 0;
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 use_hash_style="yes"
11664 else
11665 use_hash_style="no"
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11670 $as_echo "$use_hash_style" >&6; }
11671 if test "x-$use_hash_style" = "x-yes" ; then
11672 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11674 CC="$save_cc"
11675 CFLAGS="$save_cflags"
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11686 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11688 # Check whether --with-resolution was given.
11689 if test "${with_resolution+set}" = set; then :
11690 withval=$with_resolution; resolution=$withval
11691 else
11692 resolution=none
11695 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11696 if test "$resolution" = "yes" ; then
11697 resolution="none"
11699 if test "$resolution" = "no" ; then
11700 resolution="none"
11702 if test "$resolution" != "none" ; then
11703 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11704 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11705 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11708 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11709 aros_cv_default_wbwidth=$aros_default_wbwidth
11710 aros_cv_default_wbheight=$aros_default_wbheight
11711 aros_cv_default_wbdepth=$aros_default_wbdepth
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11714 $as_echo_n "checking if serial debug is enabled... " >&6; }
11716 # Check whether --with-serial-debug was given.
11717 if test "${with_serial_debug+set}" = set; then :
11718 withval=$with_serial_debug; serial_debug=$withval
11719 else
11720 serial_debug=none
11723 if test "$aros_serial_debug" = 0 ; then
11724 serial_debug_forced=""
11725 if test "$serial_debug" = "yes" ; then
11726 serial_debug="1"
11728 if test "$serial_debug" = "no" ; then
11729 serial_debug="none"
11731 else
11732 serial_debug_forced="(forced)"
11733 serial_debug=$aros_serial_debug
11735 if test "$serial_debug" != "none" ; then
11736 aros_serial_debug=$serial_debug
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11738 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11745 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11746 # Check whether --enable-palm_debug_hack was given.
11747 if test "${enable_palm_debug_hack+set}" = set; then :
11748 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11749 else
11750 palm_debug_hack="no"
11753 if test "$palm_debug_hack" = "yes" ; then
11754 aros_palm_debug_hack="1"
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11757 $as_echo "$palm_debug_hack" >&6; }
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11760 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11761 # Check whether --enable-usb30_code was given.
11762 if test "${enable_usb30_code+set}" = set; then :
11763 enableval=$enable_usb30_code; usb30_code="yes"
11764 else
11765 usb30_code="no"
11768 if test "$usb30_code" = "yes" ; then
11769 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11770 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11773 $as_echo "$usb30_code" >&6; }
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11776 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11777 # Check whether --enable-nesting_supervisor was given.
11778 if test "${enable_nesting_supervisor+set}" = set; then :
11779 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11780 else
11781 nesting_supervisor="no"
11784 if test "$nesting_supervisor" = "yes" ; then
11785 aros_nesting_supervisor="1"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11788 $as_echo "$nesting_supervisor" >&6; }
11790 if test "$aros_enable_mmu" = "" ; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11792 $as_echo_n "checking if MMU support is enabled... " >&6; }
11793 # Check whether --enable-mmu was given.
11794 if test "${enable_mmu+set}" = set; then :
11795 enableval=$enable_mmu; aros_enable_mmu=$enableval
11796 else
11797 aros_enable_mmu="yes"
11800 if test "$aros_enable_mmu" = "" ; then
11801 aros_enable_mmu="yes"
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11804 $as_echo "$aros_enable_mmu" >&6; }
11806 if test "$aros_enable_mmu" = "no" ; then
11807 aros_enable_mmu="0"
11808 else
11809 aros_enable_mmu="1"
11813 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11815 if test "x-$need_dlopen" != "x-no" ; then
11816 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11817 if test "x$ac_cv_func_dlopen" = xyes; then :
11818 have_dl="yes"
11819 else
11820 have_dl="no"
11823 if test "x-$have_dl" = "x-no" ; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11825 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11826 if ${ac_cv_lib_dl_dlopen+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 ac_check_lib_save_LIBS=$LIBS
11830 LIBS="-ldl $LIBS"
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11834 /* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11837 #ifdef __cplusplus
11838 extern "C"
11839 #endif
11840 char dlopen ();
11842 main ()
11844 return dlopen ();
11846 return 0;
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850 ac_cv_lib_dl_dlopen=yes
11851 else
11852 ac_cv_lib_dl_dlopen=no
11854 rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 LIBS=$ac_check_lib_save_LIBS
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11859 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11860 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11861 have_dl="yes"
11862 aros_host_ldflags="$aros_host_ldflags -ldl"
11863 else
11864 have_dl="no"
11868 if test "x-$have_dl" = "x-no" ; then
11869 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11874 # Check whether --enable-x11_hidd was given.
11875 if test "${enable_x11_hidd+set}" = set; then :
11876 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11877 else
11878 x11_hidd="$need_x11"
11881 case "x-$x11_hidd" in
11882 x-yes|x-no|x-auto) ;;
11883 *) x11_hidd="$need_x11" ;;
11884 esac
11886 ENABLE_X11=0
11888 if test "x-$x11_hidd" != "x-no" ; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11891 $as_echo_n "checking for X... " >&6; }
11894 # Check whether --with-x was given.
11895 if test "${with_x+set}" = set; then :
11896 withval=$with_x;
11899 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11900 if test "x$with_x" = xno; then
11901 # The user explicitly disabled X.
11902 have_x=disabled
11903 else
11904 case $x_includes,$x_libraries in #(
11905 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
11906 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 # One or both of the vars are not set, and there is no cached value.
11910 ac_x_includes=no ac_x_libraries=no
11911 rm -f -r conftest.dir
11912 if mkdir conftest.dir; then
11913 cd conftest.dir
11914 cat >Imakefile <<'_ACEOF'
11915 incroot:
11916 @echo incroot='${INCROOT}'
11917 usrlibdir:
11918 @echo usrlibdir='${USRLIBDIR}'
11919 libdir:
11920 @echo libdir='${LIBDIR}'
11921 _ACEOF
11922 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11923 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11924 for ac_var in incroot usrlibdir libdir; do
11925 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11926 done
11927 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11928 for ac_extension in a so sl dylib la dll; do
11929 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11930 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11931 ac_im_usrlibdir=$ac_im_libdir; break
11933 done
11934 # Screen out bogus values from the imake configuration. They are
11935 # bogus both because they are the default anyway, and because
11936 # using them would break gcc on systems where it needs fixed includes.
11937 case $ac_im_incroot in
11938 /usr/include) ac_x_includes= ;;
11939 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11940 esac
11941 case $ac_im_usrlibdir in
11942 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11943 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11944 esac
11946 cd ..
11947 rm -f -r conftest.dir
11950 # Standard set of common directories for X headers.
11951 # Check X11 before X11Rn because it is often a symlink to the current release.
11952 ac_x_header_dirs='
11953 /usr/X11/include
11954 /usr/X11R7/include
11955 /usr/X11R6/include
11956 /usr/X11R5/include
11957 /usr/X11R4/include
11959 /usr/include/X11
11960 /usr/include/X11R7
11961 /usr/include/X11R6
11962 /usr/include/X11R5
11963 /usr/include/X11R4
11965 /usr/local/X11/include
11966 /usr/local/X11R7/include
11967 /usr/local/X11R6/include
11968 /usr/local/X11R5/include
11969 /usr/local/X11R4/include
11971 /usr/local/include/X11
11972 /usr/local/include/X11R7
11973 /usr/local/include/X11R6
11974 /usr/local/include/X11R5
11975 /usr/local/include/X11R4
11977 /usr/X386/include
11978 /usr/x386/include
11979 /usr/XFree86/include/X11
11981 /usr/include
11982 /usr/local/include
11983 /usr/unsupported/include
11984 /usr/athena/include
11985 /usr/local/x11r5/include
11986 /usr/lpp/Xamples/include
11988 /usr/openwin/include
11989 /usr/openwin/share/include'
11991 if test "$ac_x_includes" = no; then
11992 # Guess where to find include files, by looking for Xlib.h.
11993 # First, try using that file with no special directory specified.
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #include <X11/Xlib.h>
11997 _ACEOF
11998 if ac_fn_c_try_cpp "$LINENO"; then :
11999 # We can compile using X headers with no special include directory.
12000 ac_x_includes=
12001 else
12002 for ac_dir in $ac_x_header_dirs; do
12003 if test -r "$ac_dir/X11/Xlib.h"; then
12004 ac_x_includes=$ac_dir
12005 break
12007 done
12009 rm -f conftest.err conftest.i conftest.$ac_ext
12010 fi # $ac_x_includes = no
12012 if test "$ac_x_libraries" = no; then
12013 # Check for the libraries.
12014 # See if we find them without any special options.
12015 # Don't add to $LIBS permanently.
12016 ac_save_LIBS=$LIBS
12017 LIBS="-lX11 $LIBS"
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 #include <X11/Xlib.h>
12022 main ()
12024 XrmInitialize ()
12026 return 0;
12028 _ACEOF
12029 if ac_fn_c_try_link "$LINENO"; then :
12030 LIBS=$ac_save_LIBS
12031 # We can link X programs with no special library path.
12032 ac_x_libraries=
12033 else
12034 LIBS=$ac_save_LIBS
12035 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12037 # Don't even attempt the hair of trying to link an X program!
12038 for ac_extension in a so sl dylib la dll; do
12039 if test -r "$ac_dir/libX11.$ac_extension"; then
12040 ac_x_libraries=$ac_dir
12041 break 2
12043 done
12044 done
12046 rm -f core conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12048 fi # $ac_x_libraries = no
12050 case $ac_x_includes,$ac_x_libraries in #(
12051 no,* | *,no | *\'*)
12052 # Didn't find X, or a directory has "'" in its name.
12053 ac_cv_have_x="have_x=no";; #(
12055 # Record where we found X for the cache.
12056 ac_cv_have_x="have_x=yes\
12057 ac_x_includes='$ac_x_includes'\
12058 ac_x_libraries='$ac_x_libraries'"
12059 esac
12061 ;; #(
12062 *) have_x=yes;;
12063 esac
12064 eval "$ac_cv_have_x"
12065 fi # $with_x != no
12067 if test "$have_x" != yes; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12069 $as_echo "$have_x" >&6; }
12070 no_x=yes
12071 else
12072 # If each of the values was on the command line, it overrides each guess.
12073 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12074 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12075 # Update the cache value to reflect the command line values.
12076 ac_cv_have_x="have_x=yes\
12077 ac_x_includes='$x_includes'\
12078 ac_x_libraries='$x_libraries'"
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12080 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12084 x_cflags=
12085 for path in $x_libraries
12087 x_cflags="$x_cflags -L$path"
12088 done
12090 for path in $x_includes
12092 x_cflags="$x_cflags -I$path"
12093 done
12095 if test "x-$no_x" = "x-yes" ; then
12097 if test "x-$x11_hidd" != "x-auto" ; then
12098 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
12101 else
12102 x11_hidd_target=kernel-x11gfx-kobj
12103 ENABLE_X11=1
12105 # Check whether --enable-x11_shm was given.
12106 if test "${enable_x11_shm+set}" = set; then :
12107 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
12108 else
12109 x11_hidd_shm="auto"
12112 case "x-$x11_hidd_shm" in
12113 x-yes|x-no|x-auto) ;;
12114 *) x11_hidd_shm="auto" ;;
12115 esac
12117 have_xshm=no
12119 if test "x-$x11_hidd_shm" != "x-no" ; then
12121 for ac_header in sys/ipc.h
12122 do :
12123 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
12124 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
12125 cat >>confdefs.h <<_ACEOF
12126 #define HAVE_SYS_IPC_H 1
12127 _ACEOF
12131 done
12133 for ac_header in sys/shm.h
12134 do :
12135 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
12136 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
12137 cat >>confdefs.h <<_ACEOF
12138 #define HAVE_SYS_SHM_H 1
12139 _ACEOF
12143 done
12146 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12148 save_cflags="$CFLAGS"
12149 CFLAGS="$CFLAGS $x_cflags"
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
12151 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
12152 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 ac_check_lib_save_LIBS=$LIBS
12156 LIBS="-lXext $LIBS"
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char XShmQueryExtension ();
12168 main ()
12170 return XShmQueryExtension ();
12172 return 0;
12174 _ACEOF
12175 if ac_fn_c_try_link "$LINENO"; then :
12176 ac_cv_lib_Xext_XShmQueryExtension=yes
12177 else
12178 ac_cv_lib_Xext_XShmQueryExtension=no
12180 rm -f core conftest.err conftest.$ac_objext \
12181 conftest$ac_exeext conftest.$ac_ext
12182 LIBS=$ac_check_lib_save_LIBS
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12185 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12186 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
12187 have_xshm=yes
12190 CFLAGS="$save_cflags"
12194 if test "x-$have_xshm" = "x-yes" ; then
12195 DO_XSHM_SUPPORT="1"
12196 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12197 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
12198 else
12199 DO_XSHM_SUPPORT="0"
12203 # Check whether --enable-x11_vidmode was given.
12204 if test "${enable_x11_vidmode+set}" = set; then :
12205 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12206 else
12207 x11_hidd_vidmode="auto"
12210 case "x-$x11_hidd_vidmode" in
12211 x-yes|x-no|x-auto) ;;
12212 *) x11_hidd_vidmode="auto" ;;
12213 esac
12215 have_vidmode=no
12217 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12219 save_cflags="$CFLAGS"
12220 CFLAGS="$CFLAGS $x_cflags"
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12222 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
12223 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 ac_check_lib_save_LIBS=$LIBS
12227 LIBS="-lXxf86vm $LIBS"
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12231 /* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12234 #ifdef __cplusplus
12235 extern "C"
12236 #endif
12237 char XF86VidModeQueryExtension ();
12239 main ()
12241 return XF86VidModeQueryExtension ();
12243 return 0;
12245 _ACEOF
12246 if ac_fn_c_try_link "$LINENO"; then :
12247 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12248 else
12249 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12251 rm -f core conftest.err conftest.$ac_objext \
12252 conftest$ac_exeext conftest.$ac_ext
12253 LIBS=$ac_check_lib_save_LIBS
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12256 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12257 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
12258 have_vidmode=yes
12261 CFLAGS="$save_cflags"
12264 if test "x-$have_vidmode" = "x-yes" ; then
12265 DO_VIDMODE_SUPPORT="1"
12266 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12267 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
12268 else
12269 DO_VIDMODE_SUPPORT="0"
12273 aros_host_x11_includes=$x_includes
12274 aros_host_x11_libdirs=$x_libraries
12278 # Check whether --enable-sdl_hidd was given.
12279 if test "${enable_sdl_hidd+set}" = set; then :
12280 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12281 else
12282 sdl_hidd="auto"
12285 case "x-$sdl_hidd" in
12286 x-yes|x-no|x-auto) ;;
12287 *) sdl_hidd="auto" ;;
12288 esac
12290 if test "x-$sdl_hidd" != "x-no" ; then
12293 # Check whether --with-sdl-prefix was given.
12294 if test "${with_sdl_prefix+set}" = set; then :
12295 withval=$with_sdl_prefix; sdl_prefix="$withval"
12296 else
12297 sdl_prefix=""
12301 # Check whether --with-sdl-exec-prefix was given.
12302 if test "${with_sdl_exec_prefix+set}" = set; then :
12303 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12304 else
12305 sdl_exec_prefix=""
12308 # Check whether --enable-sdltest was given.
12309 if test "${enable_sdltest+set}" = set; then :
12310 enableval=$enable_sdltest;
12311 else
12312 enable_sdltest=yes
12316 if test x$sdl_exec_prefix != x ; then
12317 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12318 if test x${SDL_CONFIG+set} != xset ; then
12319 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12322 if test x$sdl_prefix != x ; then
12323 sdl_args="$sdl_args --prefix=$sdl_prefix"
12324 if test x${SDL_CONFIG+set} != xset ; then
12325 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12329 if test "x$prefix" != xNONE; then
12330 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12332 # Extract the first word of "sdl-config", so it can be a program name with args.
12333 set dummy sdl-config; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_path_SDL_CONFIG+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 case $SDL_CONFIG in
12340 [\\/]* | ?:[\\/]*)
12341 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12347 IFS=$as_save_IFS
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12351 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 break 2
12355 done
12356 done
12357 IFS=$as_save_IFS
12359 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12361 esac
12363 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12364 if test -n "$SDL_CONFIG"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12366 $as_echo "$SDL_CONFIG" >&6; }
12367 else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12373 min_sdl_version=1.2.10
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12375 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12376 no_sdl=""
12377 if test "$SDL_CONFIG" = "no" ; then
12378 no_sdl=yes
12379 else
12380 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12381 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12383 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12384 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12385 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12386 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12387 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12388 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12389 if test "x$enable_sdltest" = "xyes" ; then
12390 ac_save_CFLAGS="$CFLAGS"
12391 ac_save_CXXFLAGS="$CXXFLAGS"
12392 ac_save_LIBS="$LIBS"
12393 CFLAGS="$CFLAGS $SDL_CFLAGS"
12394 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12395 LIBS="$LIBS $SDL_LIBS"
12396 rm -f conf.sdltest
12397 if test "$cross_compiling" = yes; then :
12398 echo $ac_n "cross compiling; assumed OK... $ac_c"
12399 else
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12403 #include <stdio.h>
12404 #include <stdlib.h>
12405 #include <string.h>
12406 #include "SDL.h"
12408 char*
12409 my_strdup (char *str)
12411 char *new_str;
12413 if (str)
12415 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12416 strcpy (new_str, str);
12418 else
12419 new_str = NULL;
12421 return new_str;
12424 int main (int argc, char *argv[])
12426 int major, minor, micro;
12427 char *tmp_version;
12429 /* This hangs on some systems (?)
12430 system ("touch conf.sdltest");
12432 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12434 /* HP/UX 9 (%@#!) writes to sscanf strings */
12435 tmp_version = my_strdup("$min_sdl_version");
12436 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12437 printf("%s, bad version string\n", "$min_sdl_version");
12438 exit(1);
12441 if (($sdl_major_version > major) ||
12442 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12443 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12445 return 0;
12447 else
12449 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12450 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12451 printf("*** best to upgrade to the required version.\n");
12452 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12453 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12454 printf("*** config.cache before re-running configure\n");
12455 return 1;
12460 _ACEOF
12461 if ac_fn_c_try_run "$LINENO"; then :
12463 else
12464 no_sdl=yes
12466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12467 conftest.$ac_objext conftest.beam conftest.$ac_ext
12470 CFLAGS="$ac_save_CFLAGS"
12471 CXXFLAGS="$ac_save_CXXFLAGS"
12472 LIBS="$ac_save_LIBS"
12475 if test "x$no_sdl" = x ; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12477 $as_echo "yes" >&6; }
12478 have_sdl="yes"
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 if test "$SDL_CONFIG" = "no" ; then
12483 echo "*** The sdl-config script installed by SDL could not be found"
12484 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12485 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12486 echo "*** full path to sdl-config."
12487 else
12488 if test -f conf.sdltest ; then
12490 else
12491 echo "*** Could not run SDL test program, checking why..."
12492 CFLAGS="$CFLAGS $SDL_CFLAGS"
12493 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12494 LIBS="$LIBS $SDL_LIBS"
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12498 #include <stdio.h>
12499 #include "SDL.h"
12501 int main(int argc, char *argv[])
12502 { return 0; }
12503 #undef main
12504 #define main K_and_R_C_main
12507 main ()
12509 return 0;
12511 return 0;
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"; then :
12515 echo "*** The test program compiled, but did not run. This usually means"
12516 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12517 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12518 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12519 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12520 echo "*** is required on your system"
12521 echo "***"
12522 echo "*** If you have an old version installed, it is best to remove it, although"
12523 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12524 else
12525 echo "*** The test program failed to compile or link. See the file config.log for the"
12526 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12527 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12528 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12530 rm -f core conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12532 CFLAGS="$ac_save_CFLAGS"
12533 CXXFLAGS="$ac_save_CXXFLAGS"
12534 LIBS="$ac_save_LIBS"
12537 SDL_CFLAGS=""
12538 SDL_LIBS=""
12539 have_sdl="no"
12543 rm -f conf.sdltest
12546 if test "x-$have_sdl" != "x-yes" ; then
12548 if test "x-$sdl_hidd" != "x-auto" ; then
12549 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12552 else
12553 sdl_hidd_target=kernel-hidd-sdl
12554 aros_host_sdl_cflags=SDL_CFLAGS
12555 aros_host_sdl_libs=SDL_LIBS
12559 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12560 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12565 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12566 oss_library_target=workbench-libs-oss-unix
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12572 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12573 # Check whether --enable-dbus was given.
12574 if test "${enable_dbus+set}" = set; then :
12575 enableval=$enable_dbus; dbus="yes"
12576 else
12577 dbus="no"
12580 if test "$dbus" = "yes" ; then
12581 ENABLE_DBUS=1
12582 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12583 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12584 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12585 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12586 else
12587 ENABLE_DBUS=0
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12590 $as_echo "$dbus" >&6; }
12592 if test "$use_kernel_cc_wrapper" = "yes" ; then
12593 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12596 if test "${crosstools}" != "yes" ; then
12597 aros_target_toolchain=no
12598 else
12599 aros_target_toolchain=yes
12603 # Generic
12615 # Compatability with other Amiga-like operation systems
12618 # Host related
12646 # Target Related
12710 # Delinting target compiler flags
12717 # Graphics Related
12734 # Native version related
12737 # Palm native version related
12740 # USB3.0 code
12743 # Unix/Hosted version related
12746 # MMU related
12749 # Apple iOS related
12754 # Android related
12758 # DBUS related
12765 #X11 related
12768 # Debug related
12774 # Collect-aros stuff: "-ius" to ignore undefined symbols
12777 # C compiler related
12780 case "$aros_flavour" in
12781 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12782 aros_flavour="emulation" ;;
12783 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12784 aros_flavour="emulation" ;;
12785 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12786 aros_flavour="standalone";;
12787 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12788 aros_flavour="standalone";;
12789 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12790 aros_flavour="native" ;;
12791 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12792 aros_flavour="native" ;;
12793 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12794 aros_flavour="linklib" ;;
12795 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12796 aros_flavour="palmnative" ;;
12797 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12798 aros_flavour="mac68knative" ;;
12799 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12800 aros_flavour="ppcnative" ;;
12801 esac
12803 if test ! -d ${aros_inc_dir} ; then
12804 ${MKDIR} ${aros_inc_dir}
12806 if test ! -d ${aros_geninc_dir} ; then
12807 ${MKDIR} ${aros_geninc_dir}
12809 if test ! -d ${aros_hostcfg_dir} ; then
12810 ${MKDIR} ${aros_hostcfg_dir}
12812 if test ! -d ${aros_targetcfg_dir} ; then
12813 ${MKDIR} ${aros_targetcfg_dir}
12815 if test ! -d ${aros_tools_dir} ; then
12816 ${MKDIR} ${aros_tools_dir}
12818 if test ! -d ${aros_scripts_dir} ; then
12819 ${MKDIR} ${aros_scripts_dir}
12822 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12825 ac_config_commands="$ac_config_commands compiler_executable"
12827 ac_config_commands="$ac_config_commands genmf_executable"
12830 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"
12833 cat >confcache <<\_ACEOF
12834 # This file is a shell script that caches the results of configure
12835 # tests run on this system so they can be shared between configure
12836 # scripts and configure runs, see configure's option --config-cache.
12837 # It is not useful on other systems. If it contains results you don't
12838 # want to keep, you may remove or edit it.
12840 # config.status only pays attention to the cache file if you give it
12841 # the --recheck option to rerun configure.
12843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12845 # following values.
12847 _ACEOF
12849 # The following way of writing the cache mishandles newlines in values,
12850 # but we know of no workaround that is simple, portable, and efficient.
12851 # So, we kill variables containing newlines.
12852 # Ultrix sh set writes to stderr and can't be redirected directly,
12853 # and sets the high bit in the cache file unless we assign to the vars.
12855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12856 eval ac_val=\$$ac_var
12857 case $ac_val in #(
12858 *${as_nl}*)
12859 case $ac_var in #(
12860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12862 esac
12863 case $ac_var in #(
12864 _ | IFS | as_nl) ;; #(
12865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12866 *) { eval $ac_var=; unset $ac_var;} ;;
12867 esac ;;
12868 esac
12869 done
12871 (set) 2>&1 |
12872 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12873 *${as_nl}ac_space=\ *)
12874 # `set' does not quote correctly, so add quotes: double-quote
12875 # substitution turns \\\\ into \\, and sed turns \\ into \.
12876 sed -n \
12877 "s/'/'\\\\''/g;
12878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12879 ;; #(
12881 # `set' quotes correctly as required by POSIX, so do not add quotes.
12882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12884 esac |
12885 sort
12887 sed '
12888 /^ac_cv_env_/b end
12889 t clear
12890 :clear
12891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12892 t end
12893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12894 :end' >>confcache
12895 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12896 if test -w "$cache_file"; then
12897 if test "x$cache_file" != "x/dev/null"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12899 $as_echo "$as_me: updating cache $cache_file" >&6;}
12900 if test ! -f "$cache_file" || test -h "$cache_file"; then
12901 cat confcache >"$cache_file"
12902 else
12903 case $cache_file in #(
12904 */* | ?:*)
12905 mv -f confcache "$cache_file"$$ &&
12906 mv -f "$cache_file"$$ "$cache_file" ;; #(
12908 mv -f confcache "$cache_file" ;;
12909 esac
12912 else
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12914 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12917 rm -f confcache
12919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12920 # Let make expand exec_prefix.
12921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12923 DEFS=-DHAVE_CONFIG_H
12925 ac_libobjs=
12926 ac_ltlibobjs=
12928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12929 # 1. Remove the extension, and $U if already installed.
12930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12931 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12933 # will be set to the directory where LIBOBJS objects are built.
12934 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12935 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12936 done
12937 LIBOBJS=$ac_libobjs
12939 LTLIBOBJS=$ac_ltlibobjs
12943 : "${CONFIG_STATUS=./config.status}"
12944 ac_write_fail=0
12945 ac_clean_files_save=$ac_clean_files
12946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12948 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12949 as_write_fail=0
12950 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12951 #! $SHELL
12952 # Generated by $as_me.
12953 # Run this file to recreate the current configuration.
12954 # Compiler output produced by configure, useful for debugging
12955 # configure, is in config.log if it exists.
12957 debug=false
12958 ac_cs_recheck=false
12959 ac_cs_silent=false
12961 SHELL=\${CONFIG_SHELL-$SHELL}
12962 export SHELL
12963 _ASEOF
12964 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12965 ## -------------------- ##
12966 ## M4sh Initialization. ##
12967 ## -------------------- ##
12969 # Be more Bourne compatible
12970 DUALCASE=1; export DUALCASE # for MKS sh
12971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12972 emulate sh
12973 NULLCMD=:
12974 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12975 # is contrary to our usage. Disable this feature.
12976 alias -g '${1+"$@"}'='"$@"'
12977 setopt NO_GLOB_SUBST
12978 else
12979 case `(set -o) 2>/dev/null` in #(
12980 *posix*) :
12981 set -o posix ;; #(
12982 *) :
12984 esac
12988 as_nl='
12990 export as_nl
12991 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12992 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12993 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12995 # Prefer a ksh shell builtin over an external printf program on Solaris,
12996 # but without wasting forks for bash or zsh.
12997 if test -z "$BASH_VERSION$ZSH_VERSION" \
12998 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12999 as_echo='print -r --'
13000 as_echo_n='print -rn --'
13001 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13002 as_echo='printf %s\n'
13003 as_echo_n='printf %s'
13004 else
13005 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13006 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13007 as_echo_n='/usr/ucb/echo -n'
13008 else
13009 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13010 as_echo_n_body='eval
13011 arg=$1;
13012 case $arg in #(
13013 *"$as_nl"*)
13014 expr "X$arg" : "X\\(.*\\)$as_nl";
13015 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13016 esac;
13017 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13019 export as_echo_n_body
13020 as_echo_n='sh -c $as_echo_n_body as_echo'
13022 export as_echo_body
13023 as_echo='sh -c $as_echo_body as_echo'
13026 # The user is always right.
13027 if test "${PATH_SEPARATOR+set}" != set; then
13028 PATH_SEPARATOR=:
13029 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13030 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13031 PATH_SEPARATOR=';'
13036 # IFS
13037 # We need space, tab and new line, in precisely that order. Quoting is
13038 # there to prevent editors from complaining about space-tab.
13039 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13040 # splitting by setting IFS to empty value.)
13041 IFS=" "" $as_nl"
13043 # Find who we are. Look in the path if we contain no directory separator.
13044 as_myself=
13045 case $0 in #((
13046 *[\\/]* ) as_myself=$0 ;;
13047 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13053 done
13054 IFS=$as_save_IFS
13057 esac
13058 # We did not find ourselves, most probably we were run as `sh COMMAND'
13059 # in which case we are not to be found in the path.
13060 if test "x$as_myself" = x; then
13061 as_myself=$0
13063 if test ! -f "$as_myself"; then
13064 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13065 exit 1
13068 # Unset variables that we do not need and which cause bugs (e.g. in
13069 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13070 # suppresses any "Segmentation fault" message there. '((' could
13071 # trigger a bug in pdksh 5.2.14.
13072 for as_var in BASH_ENV ENV MAIL MAILPATH
13073 do eval test x\${$as_var+set} = xset \
13074 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13075 done
13076 PS1='$ '
13077 PS2='> '
13078 PS4='+ '
13080 # NLS nuisances.
13081 LC_ALL=C
13082 export LC_ALL
13083 LANGUAGE=C
13084 export LANGUAGE
13086 # CDPATH.
13087 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13090 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13091 # ----------------------------------------
13092 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13093 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13094 # script with STATUS, using 1 if that was 0.
13095 as_fn_error ()
13097 as_status=$1; test $as_status -eq 0 && as_status=1
13098 if test "$4"; then
13099 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13100 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13102 $as_echo "$as_me: error: $2" >&2
13103 as_fn_exit $as_status
13104 } # as_fn_error
13107 # as_fn_set_status STATUS
13108 # -----------------------
13109 # Set $? to STATUS, without forking.
13110 as_fn_set_status ()
13112 return $1
13113 } # as_fn_set_status
13115 # as_fn_exit STATUS
13116 # -----------------
13117 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13118 as_fn_exit ()
13120 set +e
13121 as_fn_set_status $1
13122 exit $1
13123 } # as_fn_exit
13125 # as_fn_unset VAR
13126 # ---------------
13127 # Portably unset VAR.
13128 as_fn_unset ()
13130 { eval $1=; unset $1;}
13132 as_unset=as_fn_unset
13133 # as_fn_append VAR VALUE
13134 # ----------------------
13135 # Append the text in VALUE to the end of the definition contained in VAR. Take
13136 # advantage of any shell optimizations that allow amortized linear growth over
13137 # repeated appends, instead of the typical quadratic growth present in naive
13138 # implementations.
13139 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13140 eval 'as_fn_append ()
13142 eval $1+=\$2
13144 else
13145 as_fn_append ()
13147 eval $1=\$$1\$2
13149 fi # as_fn_append
13151 # as_fn_arith ARG...
13152 # ------------------
13153 # Perform arithmetic evaluation on the ARGs, and store the result in the
13154 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13155 # must be portable across $(()) and expr.
13156 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13157 eval 'as_fn_arith ()
13159 as_val=$(( $* ))
13161 else
13162 as_fn_arith ()
13164 as_val=`expr "$@" || test $? -eq 1`
13166 fi # as_fn_arith
13169 if expr a : '\(a\)' >/dev/null 2>&1 &&
13170 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13171 as_expr=expr
13172 else
13173 as_expr=false
13176 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13177 as_basename=basename
13178 else
13179 as_basename=false
13182 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13183 as_dirname=dirname
13184 else
13185 as_dirname=false
13188 as_me=`$as_basename -- "$0" ||
13189 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13190 X"$0" : 'X\(//\)$' \| \
13191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13192 $as_echo X/"$0" |
13193 sed '/^.*\/\([^/][^/]*\)\/*$/{
13194 s//\1/
13197 /^X\/\(\/\/\)$/{
13198 s//\1/
13201 /^X\/\(\/\).*/{
13202 s//\1/
13205 s/.*/./; q'`
13207 # Avoid depending upon Character Ranges.
13208 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13209 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13210 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13211 as_cr_digits='0123456789'
13212 as_cr_alnum=$as_cr_Letters$as_cr_digits
13214 ECHO_C= ECHO_N= ECHO_T=
13215 case `echo -n x` in #(((((
13216 -n*)
13217 case `echo 'xy\c'` in
13218 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13219 xy) ECHO_C='\c';;
13220 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13221 ECHO_T=' ';;
13222 esac;;
13224 ECHO_N='-n';;
13225 esac
13227 rm -f conf$$ conf$$.exe conf$$.file
13228 if test -d conf$$.dir; then
13229 rm -f conf$$.dir/conf$$.file
13230 else
13231 rm -f conf$$.dir
13232 mkdir conf$$.dir 2>/dev/null
13234 if (echo >conf$$.file) 2>/dev/null; then
13235 if ln -s conf$$.file conf$$ 2>/dev/null; then
13236 as_ln_s='ln -s'
13237 # ... but there are two gotchas:
13238 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13239 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13240 # In both cases, we have to default to `cp -p'.
13241 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13242 as_ln_s='cp -p'
13243 elif ln conf$$.file conf$$ 2>/dev/null; then
13244 as_ln_s=ln
13245 else
13246 as_ln_s='cp -p'
13248 else
13249 as_ln_s='cp -p'
13251 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13252 rmdir conf$$.dir 2>/dev/null
13255 # as_fn_mkdir_p
13256 # -------------
13257 # Create "$as_dir" as a directory, including parents if necessary.
13258 as_fn_mkdir_p ()
13261 case $as_dir in #(
13262 -*) as_dir=./$as_dir;;
13263 esac
13264 test -d "$as_dir" || eval $as_mkdir_p || {
13265 as_dirs=
13266 while :; do
13267 case $as_dir in #(
13268 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13269 *) as_qdir=$as_dir;;
13270 esac
13271 as_dirs="'$as_qdir' $as_dirs"
13272 as_dir=`$as_dirname -- "$as_dir" ||
13273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13274 X"$as_dir" : 'X\(//\)[^/]' \| \
13275 X"$as_dir" : 'X\(//\)$' \| \
13276 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13277 $as_echo X"$as_dir" |
13278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13279 s//\1/
13282 /^X\(\/\/\)[^/].*/{
13283 s//\1/
13286 /^X\(\/\/\)$/{
13287 s//\1/
13290 /^X\(\/\).*/{
13291 s//\1/
13294 s/.*/./; q'`
13295 test -d "$as_dir" && break
13296 done
13297 test -z "$as_dirs" || eval "mkdir $as_dirs"
13298 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13301 } # as_fn_mkdir_p
13302 if mkdir -p . 2>/dev/null; then
13303 as_mkdir_p='mkdir -p "$as_dir"'
13304 else
13305 test -d ./-p && rmdir ./-p
13306 as_mkdir_p=false
13309 if test -x / >/dev/null 2>&1; then
13310 as_test_x='test -x'
13311 else
13312 if ls -dL / >/dev/null 2>&1; then
13313 as_ls_L_option=L
13314 else
13315 as_ls_L_option=
13317 as_test_x='
13318 eval sh -c '\''
13319 if test -d "$1"; then
13320 test -d "$1/.";
13321 else
13322 case $1 in #(
13323 -*)set "./$1";;
13324 esac;
13325 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13326 ???[sx]*):;;*)false;;esac;fi
13327 '\'' sh
13330 as_executable_p=$as_test_x
13332 # Sed expression to map a string onto a valid CPP name.
13333 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13335 # Sed expression to map a string onto a valid variable name.
13336 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13339 exec 6>&1
13340 ## ----------------------------------- ##
13341 ## Main body of $CONFIG_STATUS script. ##
13342 ## ----------------------------------- ##
13343 _ASEOF
13344 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13347 # Save the log message, to keep $0 and so on meaningful, and to
13348 # report actual input values of CONFIG_FILES etc. instead of their
13349 # values after options handling.
13350 ac_log="
13351 This file was extended by $as_me, which was
13352 generated by GNU Autoconf 2.68. Invocation command line was
13354 CONFIG_FILES = $CONFIG_FILES
13355 CONFIG_HEADERS = $CONFIG_HEADERS
13356 CONFIG_LINKS = $CONFIG_LINKS
13357 CONFIG_COMMANDS = $CONFIG_COMMANDS
13358 $ $0 $@
13360 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13363 _ACEOF
13365 case $ac_config_files in *"
13366 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13367 esac
13369 case $ac_config_headers in *"
13370 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13371 esac
13374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13375 # Files that config.status was made for.
13376 config_files="$ac_config_files"
13377 config_headers="$ac_config_headers"
13378 config_commands="$ac_config_commands"
13380 _ACEOF
13382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13383 ac_cs_usage="\
13384 \`$as_me' instantiates files and other configuration actions
13385 from templates according to the current configuration. Unless the files
13386 and actions are specified as TAGs, all are instantiated by default.
13388 Usage: $0 [OPTION]... [TAG]...
13390 -h, --help print this help, then exit
13391 -V, --version print version number and configuration settings, then exit
13392 --config print configuration, then exit
13393 -q, --quiet, --silent
13394 do not print progress messages
13395 -d, --debug don't remove temporary files
13396 --recheck update $as_me by reconfiguring in the same conditions
13397 --file=FILE[:TEMPLATE]
13398 instantiate the configuration file FILE
13399 --header=FILE[:TEMPLATE]
13400 instantiate the configuration header FILE
13402 Configuration files:
13403 $config_files
13405 Configuration headers:
13406 $config_headers
13408 Configuration commands:
13409 $config_commands
13411 Report bugs to the package provider."
13413 _ACEOF
13414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13415 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13416 ac_cs_version="\\
13417 config.status
13418 configured by $0, generated by GNU Autoconf 2.68,
13419 with options \\"\$ac_cs_config\\"
13421 Copyright (C) 2010 Free Software Foundation, Inc.
13422 This config.status script is free software; the Free Software Foundation
13423 gives unlimited permission to copy, distribute and modify it."
13425 ac_pwd='$ac_pwd'
13426 srcdir='$srcdir'
13427 test -n "\$AWK" || AWK=awk
13428 _ACEOF
13430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13431 # The default lists apply if the user does not specify any file.
13432 ac_need_defaults=:
13433 while test $# != 0
13435 case $1 in
13436 --*=?*)
13437 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13438 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13439 ac_shift=:
13441 --*=)
13442 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13443 ac_optarg=
13444 ac_shift=:
13447 ac_option=$1
13448 ac_optarg=$2
13449 ac_shift=shift
13451 esac
13453 case $ac_option in
13454 # Handling of the options.
13455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13456 ac_cs_recheck=: ;;
13457 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13458 $as_echo "$ac_cs_version"; exit ;;
13459 --config | --confi | --conf | --con | --co | --c )
13460 $as_echo "$ac_cs_config"; exit ;;
13461 --debug | --debu | --deb | --de | --d | -d )
13462 debug=: ;;
13463 --file | --fil | --fi | --f )
13464 $ac_shift
13465 case $ac_optarg in
13466 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13467 '') as_fn_error $? "missing file argument" ;;
13468 esac
13469 as_fn_append CONFIG_FILES " '$ac_optarg'"
13470 ac_need_defaults=false;;
13471 --header | --heade | --head | --hea )
13472 $ac_shift
13473 case $ac_optarg in
13474 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13475 esac
13476 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13477 ac_need_defaults=false;;
13478 --he | --h)
13479 # Conflict between --help and --header
13480 as_fn_error $? "ambiguous option: \`$1'
13481 Try \`$0 --help' for more information.";;
13482 --help | --hel | -h )
13483 $as_echo "$ac_cs_usage"; exit ;;
13484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13485 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13486 ac_cs_silent=: ;;
13488 # This is an error.
13489 -*) as_fn_error $? "unrecognized option: \`$1'
13490 Try \`$0 --help' for more information." ;;
13492 *) as_fn_append ac_config_targets " $1"
13493 ac_need_defaults=false ;;
13495 esac
13496 shift
13497 done
13499 ac_configure_extra_args=
13501 if $ac_cs_silent; then
13502 exec 6>/dev/null
13503 ac_configure_extra_args="$ac_configure_extra_args --silent"
13506 _ACEOF
13507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13508 if \$ac_cs_recheck; then
13509 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13510 shift
13511 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13512 CONFIG_SHELL='$SHELL'
13513 export CONFIG_SHELL
13514 exec "\$@"
13517 _ACEOF
13518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13519 exec 5>>config.log
13521 echo
13522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13523 ## Running $as_me. ##
13524 _ASBOX
13525 $as_echo "$ac_log"
13526 } >&5
13528 _ACEOF
13529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13531 # INIT-COMMANDS
13534 aros_host_exe_suffix=${aros_host_exe_suffix}
13535 aros_tools_dir=${aros_tools_dir}
13536 aros_target_cpu=${aros_target_cpu}
13537 aros_target_arch=${aros_target_arch}
13538 aros_target_suffix=${aros_target_suffix}
13539 orig_target_nm=${orig_target_nm}
13540 orig_target_as=${orig_target_as}
13541 orig_target_ar=${orig_target_ar}
13542 orig_target_ranlib=${orig_target_ranlib}
13543 orig_target_objdump=${orig_target_objdump}
13544 orig_target_objcopy=${orig_target_objcopy}
13545 orig_target_strip=${orig_target_strip}
13546 aros_kernel_ld=${aros_kernel_ld}
13549 aros_tools_dir=${aros_tools_dir}
13552 _ACEOF
13554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13556 # Handling of arguments.
13557 for ac_config_target in $ac_config_targets
13559 case $ac_config_target in
13560 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13561 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13562 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13563 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13564 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13565 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13566 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13567 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13568 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13569 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13570 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13571 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13572 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13573 "${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" ;;
13574 "${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" ;;
13575 "${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" ;;
13576 "${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" ;;
13577 "${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" ;;
13578 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13579 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13580 "${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" ;;
13582 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13583 esac
13584 done
13587 # If the user did not use the arguments to specify the items to instantiate,
13588 # then the envvar interface is used. Set only those that are not.
13589 # We use the long form for the default assignment because of an extremely
13590 # bizarre bug on SunOS 4.1.3.
13591 if $ac_need_defaults; then
13592 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13593 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13594 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13597 # Have a temporary directory for convenience. Make it in the build tree
13598 # simply because there is no reason against having it here, and in addition,
13599 # creating and moving files from /tmp can sometimes cause problems.
13600 # Hook for its removal unless debugging.
13601 # Note that there is a small window in which the directory will not be cleaned:
13602 # after its creation but before its name has been assigned to `$tmp'.
13603 $debug ||
13605 tmp= ac_tmp=
13606 trap 'exit_status=$?
13607 : "${ac_tmp:=$tmp}"
13608 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13610 trap 'as_fn_exit 1' 1 2 13 15
13612 # Create a (secure) tmp directory for tmp files.
13615 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13616 test -d "$tmp"
13617 } ||
13619 tmp=./conf$$-$RANDOM
13620 (umask 077 && mkdir "$tmp")
13621 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13622 ac_tmp=$tmp
13624 # Set up the scripts for CONFIG_FILES section.
13625 # No need to generate them if there are no CONFIG_FILES.
13626 # This happens for instance with `./config.status config.h'.
13627 if test -n "$CONFIG_FILES"; then
13630 ac_cr=`echo X | tr X '\015'`
13631 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13632 # But we know of no other shell where ac_cr would be empty at this
13633 # point, so we can use a bashism as a fallback.
13634 if test "x$ac_cr" = x; then
13635 eval ac_cr=\$\'\\r\'
13637 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13638 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13639 ac_cs_awk_cr='\\r'
13640 else
13641 ac_cs_awk_cr=$ac_cr
13644 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13645 _ACEOF
13649 echo "cat >conf$$subs.awk <<_ACEOF" &&
13650 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13651 echo "_ACEOF"
13652 } >conf$$subs.sh ||
13653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13654 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13655 ac_delim='%!_!# '
13656 for ac_last_try in false false false false false :; do
13657 . ./conf$$subs.sh ||
13658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13660 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13661 if test $ac_delim_n = $ac_delim_num; then
13662 break
13663 elif $ac_last_try; then
13664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13665 else
13666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13668 done
13669 rm -f conf$$subs.sh
13671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13672 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13673 _ACEOF
13674 sed -n '
13676 s/^/S["/; s/!.*/"]=/
13679 s/^[^!]*!//
13680 :repl
13681 t repl
13682 s/'"$ac_delim"'$//
13683 t delim
13686 s/\(.\{148\}\)..*/\1/
13687 t more1
13688 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13691 b repl
13692 :more1
13693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13696 s/.\{148\}//
13697 t nl
13698 :delim
13700 s/\(.\{148\}\)..*/\1/
13701 t more2
13702 s/["\\]/\\&/g; s/^/"/; s/$/"/
13705 :more2
13706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13709 s/.\{148\}//
13710 t delim
13711 ' <conf$$subs.awk | sed '
13712 /^[^""]/{
13714 s/\n//
13716 ' >>$CONFIG_STATUS || ac_write_fail=1
13717 rm -f conf$$subs.awk
13718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719 _ACAWK
13720 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13721 for (key in S) S_is_set[key] = 1
13722 FS = "\a"
13726 line = $ 0
13727 nfields = split(line, field, "@")
13728 substed = 0
13729 len = length(field[1])
13730 for (i = 2; i < nfields; i++) {
13731 key = field[i]
13732 keylen = length(key)
13733 if (S_is_set[key]) {
13734 value = S[key]
13735 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13736 len += length(value) + length(field[++i])
13737 substed = 1
13738 } else
13739 len += 1 + keylen
13742 print line
13745 _ACAWK
13746 _ACEOF
13747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13748 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13749 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13750 else
13752 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13753 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13754 _ACEOF
13756 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13757 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13758 # trailing colons and then remove the whole line if VPATH becomes empty
13759 # (actually we leave an empty line to preserve line numbers).
13760 if test "x$srcdir" = x.; then
13761 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13763 s///
13764 s/^/:/
13765 s/[ ]*$/:/
13766 s/:\$(srcdir):/:/g
13767 s/:\${srcdir}:/:/g
13768 s/:@srcdir@:/:/g
13769 s/^:*//
13770 s/:*$//
13772 s/\(=[ ]*\).*/\1/
13774 s/\n//
13775 s/^[^=]*=[ ]*$//
13779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13780 fi # test -n "$CONFIG_FILES"
13782 # Set up the scripts for CONFIG_HEADERS section.
13783 # No need to generate them if there are no CONFIG_HEADERS.
13784 # This happens for instance with `./config.status Makefile'.
13785 if test -n "$CONFIG_HEADERS"; then
13786 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13787 BEGIN {
13788 _ACEOF
13790 # Transform confdefs.h into an awk script `defines.awk', embedded as
13791 # here-document in config.status, that substitutes the proper values into
13792 # config.h.in to produce config.h.
13794 # Create a delimiter string that does not exist in confdefs.h, to ease
13795 # handling of long lines.
13796 ac_delim='%!_!# '
13797 for ac_last_try in false false :; do
13798 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13799 if test -z "$ac_tt"; then
13800 break
13801 elif $ac_last_try; then
13802 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13803 else
13804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13806 done
13808 # For the awk script, D is an array of macro values keyed by name,
13809 # likewise P contains macro parameters if any. Preserve backslash
13810 # newline sequences.
13812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13813 sed -n '
13814 s/.\{148\}/&'"$ac_delim"'/g
13815 t rset
13816 :rset
13817 s/^[ ]*#[ ]*define[ ][ ]*/ /
13818 t def
13820 :def
13821 s/\\$//
13822 t bsnl
13823 s/["\\]/\\&/g
13824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13825 D["\1"]=" \3"/p
13826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13828 :bsnl
13829 s/["\\]/\\&/g
13830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13831 D["\1"]=" \3\\\\\\n"\\/p
13832 t cont
13833 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13834 t cont
13836 :cont
13838 s/.\{148\}/&'"$ac_delim"'/g
13839 t clear
13840 :clear
13841 s/\\$//
13842 t bsnlc
13843 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13845 :bsnlc
13846 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13847 b cont
13848 ' <confdefs.h | sed '
13849 s/'"$ac_delim"'/"\\\
13850 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13853 for (key in D) D_is_set[key] = 1
13854 FS = "\a"
13856 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13857 line = \$ 0
13858 split(line, arg, " ")
13859 if (arg[1] == "#") {
13860 defundef = arg[2]
13861 mac1 = arg[3]
13862 } else {
13863 defundef = substr(arg[1], 2)
13864 mac1 = arg[2]
13866 split(mac1, mac2, "(") #)
13867 macro = mac2[1]
13868 prefix = substr(line, 1, index(line, defundef) - 1)
13869 if (D_is_set[macro]) {
13870 # Preserve the white space surrounding the "#".
13871 print prefix "define", macro P[macro] D[macro]
13872 next
13873 } else {
13874 # Replace #undef with comments. This is necessary, for example,
13875 # in the case of _POSIX_SOURCE, which is predefined and required
13876 # on some systems where configure will not decide to define it.
13877 if (defundef == "undef") {
13878 print "/*", prefix defundef, macro, "*/"
13879 next
13883 { print }
13884 _ACAWK
13885 _ACEOF
13886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13887 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13888 fi # test -n "$CONFIG_HEADERS"
13891 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13892 shift
13893 for ac_tag
13895 case $ac_tag in
13896 :[FHLC]) ac_mode=$ac_tag; continue;;
13897 esac
13898 case $ac_mode$ac_tag in
13899 :[FHL]*:*);;
13900 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13901 :[FH]-) ac_tag=-:-;;
13902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13903 esac
13904 ac_save_IFS=$IFS
13905 IFS=:
13906 set x $ac_tag
13907 IFS=$ac_save_IFS
13908 shift
13909 ac_file=$1
13910 shift
13912 case $ac_mode in
13913 :L) ac_source=$1;;
13914 :[FH])
13915 ac_file_inputs=
13916 for ac_f
13918 case $ac_f in
13919 -) ac_f="$ac_tmp/stdin";;
13920 *) # Look for the file first in the build tree, then in the source tree
13921 # (if the path is not absolute). The absolute path cannot be DOS-style,
13922 # because $ac_f cannot contain `:'.
13923 test -f "$ac_f" ||
13924 case $ac_f in
13925 [\\/$]*) false;;
13926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13927 esac ||
13928 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13929 esac
13930 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13931 as_fn_append ac_file_inputs " '$ac_f'"
13932 done
13934 # Let's still pretend it is `configure' which instantiates (i.e., don't
13935 # use $as_me), people would be surprised to read:
13936 # /* config.h. Generated by config.status. */
13937 configure_input='Generated from '`
13938 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13939 `' by configure.'
13940 if test x"$ac_file" != x-; then
13941 configure_input="$ac_file. $configure_input"
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13943 $as_echo "$as_me: creating $ac_file" >&6;}
13945 # Neutralize special characters interpreted by sed in replacement strings.
13946 case $configure_input in #(
13947 *\&* | *\|* | *\\* )
13948 ac_sed_conf_input=`$as_echo "$configure_input" |
13949 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13950 *) ac_sed_conf_input=$configure_input;;
13951 esac
13953 case $ac_tag in
13954 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13956 esac
13958 esac
13960 ac_dir=`$as_dirname -- "$ac_file" ||
13961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13962 X"$ac_file" : 'X\(//\)[^/]' \| \
13963 X"$ac_file" : 'X\(//\)$' \| \
13964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13965 $as_echo X"$ac_file" |
13966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13967 s//\1/
13970 /^X\(\/\/\)[^/].*/{
13971 s//\1/
13974 /^X\(\/\/\)$/{
13975 s//\1/
13978 /^X\(\/\).*/{
13979 s//\1/
13982 s/.*/./; q'`
13983 as_dir="$ac_dir"; as_fn_mkdir_p
13984 ac_builddir=.
13986 case "$ac_dir" in
13987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13989 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13990 # A ".." for each directory in $ac_dir_suffix.
13991 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13992 case $ac_top_builddir_sub in
13993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13995 esac ;;
13996 esac
13997 ac_abs_top_builddir=$ac_pwd
13998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13999 # for backward compatibility:
14000 ac_top_builddir=$ac_top_build_prefix
14002 case $srcdir in
14003 .) # We are building in place.
14004 ac_srcdir=.
14005 ac_top_srcdir=$ac_top_builddir_sub
14006 ac_abs_top_srcdir=$ac_pwd ;;
14007 [\\/]* | ?:[\\/]* ) # Absolute name.
14008 ac_srcdir=$srcdir$ac_dir_suffix;
14009 ac_top_srcdir=$srcdir
14010 ac_abs_top_srcdir=$srcdir ;;
14011 *) # Relative name.
14012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14013 ac_top_srcdir=$ac_top_build_prefix$srcdir
14014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14015 esac
14016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14019 case $ac_mode in
14022 # CONFIG_FILE
14025 _ACEOF
14027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14028 # If the template does not know about datarootdir, expand it.
14029 # FIXME: This hack should be removed a few years after 2.60.
14030 ac_datarootdir_hack=; ac_datarootdir_seen=
14031 ac_sed_dataroot='
14032 /datarootdir/ {
14036 /@datadir@/p
14037 /@docdir@/p
14038 /@infodir@/p
14039 /@localedir@/p
14040 /@mandir@/p'
14041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14042 *datarootdir*) ac_datarootdir_seen=yes;;
14043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14045 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14046 _ACEOF
14047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14048 ac_datarootdir_hack='
14049 s&@datadir@&$datadir&g
14050 s&@docdir@&$docdir&g
14051 s&@infodir@&$infodir&g
14052 s&@localedir@&$localedir&g
14053 s&@mandir@&$mandir&g
14054 s&\\\${datarootdir}&$datarootdir&g' ;;
14055 esac
14056 _ACEOF
14058 # Neutralize VPATH when `$srcdir' = `.'.
14059 # Shell code in configure.ac might set extrasub.
14060 # FIXME: do we really want to maintain this feature?
14061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14062 ac_sed_extra="$ac_vpsub
14063 $extrasub
14064 _ACEOF
14065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14068 s|@configure_input@|$ac_sed_conf_input|;t t
14069 s&@top_builddir@&$ac_top_builddir_sub&;t t
14070 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14071 s&@srcdir@&$ac_srcdir&;t t
14072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14073 s&@top_srcdir@&$ac_top_srcdir&;t t
14074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14075 s&@builddir@&$ac_builddir&;t t
14076 s&@abs_builddir@&$ac_abs_builddir&;t t
14077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14078 $ac_datarootdir_hack
14080 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14081 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14083 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14084 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14086 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14088 which seems to be undefined. Please make sure it is defined" >&5
14089 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14090 which seems to be undefined. Please make sure it is defined" >&2;}
14092 rm -f "$ac_tmp/stdin"
14093 case $ac_file in
14094 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14095 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14096 esac \
14097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14101 # CONFIG_HEADER
14103 if test x"$ac_file" != x-; then
14105 $as_echo "/* $configure_input */" \
14106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14107 } >"$ac_tmp/config.h" \
14108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14109 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14111 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14112 else
14113 rm -f "$ac_file"
14114 mv "$ac_tmp/config.h" "$ac_file" \
14115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14117 else
14118 $as_echo "/* $configure_input */" \
14119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14120 || as_fn_error $? "could not create -" "$LINENO" 5
14124 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14125 $as_echo "$as_me: executing $ac_file commands" >&6;}
14127 esac
14130 case $ac_file$ac_mode in
14131 "compiler_executable":C)
14132 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14133 mkdir -p $prefix
14134 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14135 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
14137 echo ${prefix2}
14138 echo ${prefix3}
14139 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
14141 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
14142 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
14143 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
14144 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
14145 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
14146 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
14147 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
14149 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
14151 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14153 esac
14154 done # for ac_tag
14157 as_fn_exit 0
14158 _ACEOF
14159 ac_clean_files=$ac_clean_files_save
14161 test $ac_write_fail = 0 ||
14162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14165 # configure is writing to config.log, and then calls config.status.
14166 # config.status does its own redirection, appending to config.log.
14167 # Unfortunately, on DOS this fails, as config.log is still kept open
14168 # by configure, so config.status won't be able to write to it; its
14169 # output is simply discarded. So we exec the FD to /dev/null,
14170 # effectively closing config.log, so it can be properly (re)opened and
14171 # appended to by config.status. When coming back to configure, we
14172 # need to make the FD available again.
14173 if test "$no_create" != yes; then
14174 ac_cs_success=:
14175 ac_config_status_args=
14176 test "$silent" = yes &&
14177 ac_config_status_args="$ac_config_status_args --quiet"
14178 exec 5>/dev/null
14179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14180 exec 5>>config.log
14181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14182 # would make configure fail if this is the last instruction.
14183 $ac_cs_success || as_fn_exit 1
14185 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14187 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14192 #XXX compatability...
14193 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14195 if test -n "$aros_shared_cflags" ; then
14196 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14197 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg