Pass AROS magic value from boot loader to kernel start and check for it
[AROS.git] / configure
blob40b620f9d2287e48510394d6fdee5610b7e500a8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_android_level
609 aros_ios_sdk
610 aros_ios_version
611 aros_ios_platform
612 aros_enable_mmu
613 aros_nesting_supervisor
614 aros_usb30_code
615 aros_palm_debug_hack
616 aros_serial_debug
617 aros_host_sdl_libs
618 aros_host_sdl_cflags
619 aros_host_x11_libdirs
620 aros_host_x11_includes
621 DO_VIDMODE_SUPPORT
622 DO_XSHM_SUPPORT
623 aros_default_wbdepth
624 aros_default_wbheight
625 aros_default_wbwidth
626 oss_library_target
627 pci_hidd_target
628 sdl_hidd_target
629 x11_hidd_target
630 crosstools_cxx_target
631 crosstools_target
632 aros_target_strip_flags
633 aros_target_genmap
634 aros_debug_ldflags
635 aros_debug_aflags
636 aros_debug_cflags
637 aros_target_cflags
638 aros_kernel_ldflags
639 aros_kernel_objcflags
640 aros_kernel_includes
641 aros_kernel_cflags
642 aros_shared_ldflags
643 aros_shared_aflags
644 aros_shared_cflags
645 aros_config_ldflags
646 aros_config_aflags
647 aros_config_cflags
648 aros_arch_libs
649 aros_compiler_libs
650 aros_object_format
651 aros_shared_ld
652 aros_shared_default
653 aros_target_nm
654 aros_target_strip
655 aros_target_objcopy
656 aros_target_objdump
657 aros_target_cc_path
658 aros_target_cc_includes
659 orig_target_ld
660 aros_target_as
661 aros_kernel_cc
662 orig_target_cc
663 aros_plain_ar
664 aros_plain_nm
665 aros_target_ranlib
666 aros_target_ar
667 aros_target_incl
668 aros_target_suffix
669 aros_target_variant
670 aros_target_cpu
671 aros_target_family
672 aros_target_arch
673 aros_target_bootloader
674 aros_target_iconset
675 aros_target_guitheme
676 aros_tools_dir
677 aros_host_lib_suffix
678 aros_host_exe_suffix
679 aros_host_mkargs
680 aros_host_mkdep
681 aros_host_debug
682 aros_host_ldflags
683 gnu89_inline
684 aros_host_cflags
685 aros_host_make
686 aros_host_cc
687 aros_host_cpu
688 aros_host_arch
689 aros_cc_pre
690 aros_amigaos_compliance
691 AROS_PORTSSRCDIR
692 AROS_CROSSTOOLSDIR
693 SRCDIR
694 AROS_BUILDDIR_UNIX
695 AROS_BUILDDIR
696 aros_flavour_uc
697 aros_flavour
698 aros_cpu
699 aros_arch
700 SDL_LIBS
701 SDL_CFLAGS
702 SDL_CONFIG
703 XMKMF
704 aros_cflags_iquote_end
705 aros_cflags_iquote
706 kernel_cflags_iquote_end
707 kernel_cflags_iquote
708 host_cflags_iquote_end
709 host_cflags_iquote
710 aros_target_nostdlib_ldflags
711 aros_target_detach_ldflags
712 aros_target_nix_ldflags
713 aros_target_nostartup_ldflags
714 aros_target_nostdinc_cflags
715 aros_target_ld
716 aros_target_cc
717 aros_target_cxx
718 aros_target_strip_ln
719 aros_target_ranlib_ln
720 aros_target_objdump_ln
721 aros_target_objcopy_ln
722 aros_target_nm_ln
723 aros_target_ar_ln
724 aros_target_as_ln
725 aros_kernel_ranlib
726 aros_kernel_ar
727 aros_kernel_ld
728 aros_kernel_rescomp
729 android_tool
730 CCACHE
731 DISTCC
732 LIBOBJS
733 EGREP
734 GREP
736 TEST
739 pkgpyexecdir
740 pyexecdir
741 pkgpythondir
742 pythondir
743 PYTHON_PLATFORM
744 PYTHON_EXEC_PREFIX
745 PYTHON_PREFIX
746 PYTHON_VERSION
747 PYTHON
748 PATCH
749 CHMOD
751 PPMTOILBM
752 PNGTOPNM
753 FLEX
754 BISON
757 UNIQ
758 SORT
759 TOUCH
760 MKDIR
761 ECHO
765 aros_host_strip
766 aros_host_ranlib
767 aros_host_ar
768 aros_host_automake
769 aros_host_autoheader
770 aros_host_autoconf
771 aros_host_aclocal
772 aros_host_ld
773 MMAKE
776 OBJEXT
777 EXEEXT
778 ac_ct_CC
779 CPPFLAGS
780 LDFLAGS
781 CFLAGS
783 host_os
784 host_vendor
785 host_cpu
786 host
787 build_os
788 build_vendor
789 build_cpu
790 build
791 target_alias
792 host_alias
793 build_alias
794 LIBS
795 ECHO_T
796 ECHO_N
797 ECHO_C
798 DEFS
799 mandir
800 localedir
801 libdir
802 psdir
803 pdfdir
804 dvidir
805 htmldir
806 infodir
807 docdir
808 oldincludedir
809 includedir
810 localstatedir
811 sharedstatedir
812 sysconfdir
813 datadir
814 datarootdir
815 libexecdir
816 sbindir
817 bindir
818 program_transform_name
819 prefix
820 exec_prefix
821 PACKAGE_URL
822 PACKAGE_BUGREPORT
823 PACKAGE_STRING
824 PACKAGE_VERSION
825 PACKAGE_TARNAME
826 PACKAGE_NAME
827 PATH_SEPARATOR
828 SHELL'
829 ac_subst_files=''
830 ac_user_opts='
831 enable_option_checking
832 enable_build_type
833 enable_debug
834 enable_crosstools
835 enable_distcc
836 enable_ccache
837 with_gcc_version
838 with_optimization
839 with_paranoia
840 enable_target_variant
841 with_xcode
842 with_ios_version
843 with_ios_sdk
844 with_sdk
845 with_ndk
846 with_sdk_version
847 with_ndk_version
848 enable_amigaos_compliance
849 with_crosstools
850 with_aros_gcc
851 with_portssources
852 with_bootloader
853 with_iconset
854 with_theme
855 enable_includes
856 with_resolution
857 with_serial_debug
858 enable_palm_debug_hack
859 enable_usb30_code
860 enable_nesting_supervisor
861 enable_mmu
862 enable_x11_hidd
863 with_x
864 enable_x11_shm
865 enable_x11_vidmode
866 enable_sdl_hidd
867 with_sdl_prefix
868 with_sdl_exec_prefix
869 enable_sdltest
870 enable_dbus
872 ac_precious_vars='build_alias
873 host_alias
874 target_alias
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
881 XMKMF'
884 # Initialize some variables set by options.
885 ac_init_help=
886 ac_init_version=false
887 ac_unrecognized_opts=
888 ac_unrecognized_sep=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
891 cache_file=/dev/null
892 exec_prefix=NONE
893 no_create=
894 no_recursion=
895 prefix=NONE
896 program_prefix=NONE
897 program_suffix=NONE
898 program_transform_name=s,x,x,
899 silent=
900 site=
901 srcdir=
902 verbose=
903 x_includes=NONE
904 x_libraries=NONE
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
932 ac_prev=
933 ac_dashdash=
934 for ac_option
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
952 ac_dashdash=yes ;;
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
971 --config-cache | -C)
972 cache_file=config.cache ;;
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1216 -with-* | --with-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) as_fn_error "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information."
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1276 esac
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 esac
1289 done
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error "missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
1299 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1323 done
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used." >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346 test "$silent" = yes && exec 6>/dev/null
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 as_fn_error "working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 as_fn_error "pwd does not report name of working directory"
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 $as_echo X"$as_myself" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 s//\1/
1371 /^X\(\/\/\)[^/].*/{
1372 s//\1/
1375 /^X\(\/\/\)$/{
1376 s//\1/
1379 /^X\(\/\).*/{
1380 s//\1/
1383 s/.*/./; q'`
1384 srcdir=$ac_confdir
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 srcdir=..
1388 else
1389 ac_srcdir_defaulted=no
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1398 pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1417 # Report the --help message.
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423 \`configure' configures this package to adapt to many kinds of systems.
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1430 Defaults for the options are specified in brackets.
1432 Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 [PREFIX]
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1454 For better control, use the options below.
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
1476 _ACEOF
1478 cat <<\_ACEOF
1480 X features:
1481 --x-includes=DIR X include files are in DIR
1482 --x-libraries=DIR X library files are in DIR
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1490 if test -n "$ac_init_help"; then
1492 cat <<\_ACEOF
1494 Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --enable-build-type=TYPE
1499 Select the build type. Available types are:
1500 personal, nightly, snapshot, milestone, release. Do
1501 NOT use this option unless you know what you are
1502 doing! (default=personal)
1503 --enable-debug=list Enable different types of debug. Commas or
1504 whitespaces can be used to separate the items in the
1505 list. Available types of debug are: all, none,
1506 messages, stack, mungwall, modules, symbols. If no
1507 list is provided then "all" is assumed.
1508 (default=none)
1509 --enable-crosstools Build cross-compiler toolchains if necessary
1510 (default=no).
1511 --enable-distcc Use distcc as a front end to the compiler
1512 (default=no).
1513 --enable-ccache Use ccache as a front end to the compiler
1514 (default=no).
1515 --enable-target-variant=NAME
1516 Enable a specific target variant(default=none)
1517 --enable-amigaos-compliance=VERSION
1518 Enforce userspace AmigaOS compliance to a specific
1519 KickStart version (default=none).
1520 --enable-includes=dir Alternative system include directory
1521 --enable-palm-debug-hack
1522 Enable palm debug output hack in palm native
1523 (default=no)
1524 --enable-usb30-code Enable usb3.0 code (default=no)
1525 --enable-nesting-supervisor
1526 Enable nesting supervisor support in unix
1527 (default=no)
1528 --disable-mmu Disable MMU support (default=enabled)
1529 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1530 --enable-x11-shm use X11 shared memory (default=auto)
1531 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1532 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1533 --disable-sdltest Do not try to compile and run a test SDL program
1534 --enable-dbus Enable DBUS support via dbus.library (default=no)
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-gcc-version=VERSION
1540 Use host gcc-VERSION for building AROS
1541 --with-optimization=FLAGS
1542 Use optimization flags FLAGS (default=-O2).
1543 --with-paranoia=FLAGS CC flags to enable paranoia
1544 --with-xcode=PATH Specify XCode path for iOS targets
1545 (default=/Developer).
1546 --with-ios-version=VERSION
1547 Specify minimum supported iOS version (default=3.0).
1548 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1549 --with-sdk=PATH Specify Android SDK path
1550 (default=$default_android_sdk).
1551 --with-ndk=PATH Specify Android NDK path
1552 (default=$default_android_ndk).
1553 --with-sdk-version=LEVEL
1554 Use Android SDK for API LEVEL (default=8).
1555 --with-ndk-version=LEVEL
1556 Use Android NDK for API LEVEL (default=9).
1557 --with-crosstools=DIR Where to install or search for cross tools binaries
1558 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1559 --with-portssources=DIR Where to download sourcecode for external ports
1560 --with-bootloader=NAME Use a specific bootloader
1561 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1562 --with-theme=NAME Use a specific GUI Theme
1563 --with-resolution=XRESxYRESxDEPTH
1564 Default resolution of the initial WorkbenchScreen
1565 --with-serial-debug Enable serial debug output in native (default=no)
1566 --with-x use the X Window System
1567 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1568 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CPP C preprocessor
1579 XMKMF Path to xmkmf, Makefile generator for X Window System
1581 Use these variables to override the choices made by `configure' or to help
1582 it to find libraries and programs with nonstandard names/locations.
1584 Report bugs to the package provider.
1585 _ACEOF
1586 ac_status=$?
1589 if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 continue
1595 ac_builddir=.
1597 case "$ac_dir" in
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 esac ;;
1607 esac
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1613 case $srcdir in
1614 .) # We are building in place.
1615 ac_srcdir=.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1622 *) # Relative name.
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 esac
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1637 else
1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1641 done
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646 cat <<\_ACEOF
1647 configure
1648 generated by GNU Autoconf 2.65
1650 Copyright (C) 2009 Free Software Foundation, Inc.
1651 This configure script is free software; the Free Software Foundation
1652 gives unlimited permission to copy, distribute and modify it.
1653 _ACEOF
1654 exit
1657 ## ------------------------ ##
1658 ## Autoconf initialization. ##
1659 ## ------------------------ ##
1661 # ac_fn_c_try_compile LINENO
1662 # --------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_compile ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1692 ac_retval=1
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 as_fn_set_status $ac_retval
1697 } # ac_fn_c_try_compile
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_cpp ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } >/dev/null && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1729 ac_retval=1
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 as_fn_set_status $ac_retval
1734 } # ac_fn_c_try_cpp
1736 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1739 # the include files in INCLUDES and setting the cache variable VAR
1740 # accordingly.
1741 ac_fn_c_check_header_mongrel ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748 $as_echo_n "(cached) " >&6
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 else
1754 # Is the header compilable?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1756 $as_echo_n "checking $2 usability... " >&6; }
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 ac_header_compiler=yes
1764 else
1765 ac_header_compiler=no
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1769 $as_echo "$ac_header_compiler" >&6; }
1771 # Is the header present?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1773 $as_echo_n "checking $2 presence... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_cpp "$LINENO"; then :
1779 ac_header_preproc=yes
1780 else
1781 ac_header_preproc=no
1783 rm -f conftest.err conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1785 $as_echo "$ac_header_preproc" >&6; }
1787 # So? What about this header?
1788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1789 yes:no: )
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1791 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 no:yes:* )
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1797 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1799 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1801 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1803 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807 esac
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 eval "$3=\$ac_header_compiler"
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 } # ac_fn_c_check_header_mongrel
1823 # ac_fn_c_try_run LINENO
1824 # ----------------------
1825 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826 # that executables *can* be run.
1827 ac_fn_c_try_run ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_link"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_link") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841 { { case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_try") 2>&5
1848 ac_status=$?
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; }; }; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: program exited with status $ac_status" >&5
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 ac_retval=$ac_status
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 as_fn_set_status $ac_retval
1863 } # ac_fn_c_try_run
1865 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists and can be compiled using the include files in
1868 # INCLUDES, setting the cache variable VAR accordingly.
1869 ac_fn_c_check_header_compile ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1880 #include <$2>
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 eval "$3=yes"
1884 else
1885 eval "$3=no"
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 } # ac_fn_c_check_header_compile
1896 # ac_fn_c_try_link LINENO
1897 # -----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_link ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext conftest$ac_exeext
1903 if { { ac_try="$ac_link"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 $as_test_x conftest$ac_exeext
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=1
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 as_fn_set_status $ac_retval
1940 } # ac_fn_c_try_link
1942 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1943 # ----------------------------------------------------
1944 # Tries to find if the field MEMBER exists in type AGGR, after including
1945 # INCLUDES, setting cache variable VAR accordingly.
1946 ac_fn_c_check_member ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1950 $as_echo_n "checking for $2.$3... " >&6; }
1951 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1952 $as_echo_n "(cached) " >&6
1953 else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1958 main ()
1960 static $2 ac_aggr;
1961 if (ac_aggr.$3)
1962 return 0;
1964 return 0;
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 eval "$4=yes"
1969 else
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1974 main ()
1976 static $2 ac_aggr;
1977 if (sizeof ac_aggr.$3)
1978 return 0;
1980 return 0;
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 eval "$4=yes"
1985 else
1986 eval "$4=no"
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 eval ac_res=\$$4
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_check_member
1999 # ac_fn_c_check_decl LINENO SYMBOL VAR
2000 # ------------------------------------
2001 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2002 ac_fn_c_check_decl ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2006 $as_echo_n "checking whether $2 is declared... " >&6; }
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2014 main ()
2016 #ifndef $2
2017 (void) $2;
2018 #endif
2021 return 0;
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$3=yes"
2026 else
2027 eval "$3=no"
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036 } # ac_fn_c_check_decl
2038 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2039 # -------------------------------------------
2040 # Tests whether TYPE exists after having included INCLUDES, setting cache
2041 # variable VAR accordingly.
2042 ac_fn_c_check_type ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048 $as_echo_n "(cached) " >&6
2049 else
2050 eval "$3=no"
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2055 main ()
2057 if (sizeof ($2))
2058 return 0;
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 if (sizeof (($2)))
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2078 else
2079 eval "$3=yes"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090 } # ac_fn_c_check_type
2092 # ac_fn_c_check_func LINENO FUNC VAR
2093 # ----------------------------------
2094 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2095 ac_fn_c_check_func ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099 $as_echo_n "checking for $2... " >&6; }
2100 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2101 $as_echo_n "(cached) " >&6
2102 else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2107 #define $2 innocuous_$2
2109 /* System header to define __stub macros and hopefully few prototypes,
2110 which can conflict with char $2 (); below.
2111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2112 <limits.h> exists even on freestanding compilers. */
2114 #ifdef __STDC__
2115 # include <limits.h>
2116 #else
2117 # include <assert.h>
2118 #endif
2120 #undef $2
2122 /* Override any GCC internal prototype to avoid an error.
2123 Use char because int might match the return type of a GCC
2124 builtin and then its argument prototype would still apply. */
2125 #ifdef __cplusplus
2126 extern "C"
2127 #endif
2128 char $2 ();
2129 /* The GNU C library defines this for functions which it implements
2130 to always fail with ENOSYS. Some functions are actually named
2131 something starting with __ and the normal name is an alias. */
2132 #if defined __stub_$2 || defined __stub___$2
2133 choke me
2134 #endif
2137 main ()
2139 return $2 ();
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_link "$LINENO"; then :
2145 eval "$3=yes"
2146 else
2147 eval "$3=no"
2149 rm -f core conftest.err conftest.$ac_objext \
2150 conftest$ac_exeext conftest.$ac_ext
2152 eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2157 } # ac_fn_c_check_func
2158 cat >config.log <<_ACEOF
2159 This file contains any messages produced by compilers while
2160 running configure, to aid debugging if configure makes a mistake.
2162 It was created by $as_me, which was
2163 generated by GNU Autoconf 2.65. Invocation command line was
2165 $ $0 $@
2167 _ACEOF
2168 exec 5>>config.log
2170 cat <<_ASUNAME
2171 ## --------- ##
2172 ## Platform. ##
2173 ## --------- ##
2175 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2176 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2177 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2178 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2179 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2182 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2184 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2185 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2186 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2187 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2188 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2189 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2190 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2192 _ASUNAME
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 $as_echo "PATH: $as_dir"
2200 done
2201 IFS=$as_save_IFS
2203 } >&5
2205 cat >&5 <<_ACEOF
2208 ## ----------- ##
2209 ## Core tests. ##
2210 ## ----------- ##
2212 _ACEOF
2215 # Keep a trace of the command line.
2216 # Strip out --no-create and --no-recursion so they do not pile up.
2217 # Strip out --silent because we don't want to record it for future runs.
2218 # Also quote any args containing shell meta-characters.
2219 # Make two passes to allow for proper duplicate-argument suppression.
2220 ac_configure_args=
2221 ac_configure_args0=
2222 ac_configure_args1=
2223 ac_must_keep_next=false
2224 for ac_pass in 1 2
2226 for ac_arg
2228 case $ac_arg in
2229 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2231 | -silent | --silent | --silen | --sile | --sil)
2232 continue ;;
2233 *\'*)
2234 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 esac
2236 case $ac_pass in
2237 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2239 as_fn_append ac_configure_args1 " '$ac_arg'"
2240 if test $ac_must_keep_next = true; then
2241 ac_must_keep_next=false # Got value, back to normal.
2242 else
2243 case $ac_arg in
2244 *=* | --config-cache | -C | -disable-* | --disable-* \
2245 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2246 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2247 | -with-* | --with-* | -without-* | --without-* | --x)
2248 case "$ac_configure_args0 " in
2249 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2250 esac
2252 -* ) ac_must_keep_next=true ;;
2253 esac
2255 as_fn_append ac_configure_args " '$ac_arg'"
2257 esac
2258 done
2259 done
2260 { ac_configure_args0=; unset ac_configure_args0;}
2261 { ac_configure_args1=; unset ac_configure_args1;}
2263 # When interrupted or exit'd, cleanup temporary files, and complete
2264 # config.log. We remove comments because anyway the quotes in there
2265 # would cause problems or look ugly.
2266 # WARNING: Use '\'' to represent an apostrophe within the trap.
2267 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2268 trap 'exit_status=$?
2269 # Save into config.log some information that might help in debugging.
2271 echo
2273 cat <<\_ASBOX
2274 ## ---------------- ##
2275 ## Cache variables. ##
2276 ## ---------------- ##
2277 _ASBOX
2278 echo
2279 # The following way of writing the cache mishandles newlines in values,
2281 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2282 eval ac_val=\$$ac_var
2283 case $ac_val in #(
2284 *${as_nl}*)
2285 case $ac_var in #(
2286 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2287 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2288 esac
2289 case $ac_var in #(
2290 _ | IFS | as_nl) ;; #(
2291 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2292 *) { eval $ac_var=; unset $ac_var;} ;;
2293 esac ;;
2294 esac
2295 done
2296 (set) 2>&1 |
2297 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298 *${as_nl}ac_space=\ *)
2299 sed -n \
2300 "s/'\''/'\''\\\\'\'''\''/g;
2301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2302 ;; #(
2304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306 esac |
2307 sort
2309 echo
2311 cat <<\_ASBOX
2312 ## ----------------- ##
2313 ## Output variables. ##
2314 ## ----------------- ##
2315 _ASBOX
2316 echo
2317 for ac_var in $ac_subst_vars
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2327 if test -n "$ac_subst_files"; then
2328 cat <<\_ASBOX
2329 ## ------------------- ##
2330 ## File substitutions. ##
2331 ## ------------------- ##
2332 _ASBOX
2333 echo
2334 for ac_var in $ac_subst_files
2336 eval ac_val=\$$ac_var
2337 case $ac_val in
2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 esac
2340 $as_echo "$ac_var='\''$ac_val'\''"
2341 done | sort
2342 echo
2345 if test -s confdefs.h; then
2346 cat <<\_ASBOX
2347 ## ----------- ##
2348 ## confdefs.h. ##
2349 ## ----------- ##
2350 _ASBOX
2351 echo
2352 cat confdefs.h
2353 echo
2355 test "$ac_signal" != 0 &&
2356 $as_echo "$as_me: caught signal $ac_signal"
2357 $as_echo "$as_me: exit $exit_status"
2358 } >&5
2359 rm -f core *.core core.conftest.* &&
2360 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2361 exit $exit_status
2363 for ac_signal in 1 2 13 15; do
2364 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2365 done
2366 ac_signal=0
2368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2369 rm -f -r conftest* confdefs.h
2371 $as_echo "/* confdefs.h */" > confdefs.h
2373 # Predefined preprocessor variables.
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_NAME "$PACKAGE_NAME"
2377 _ACEOF
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2381 _ACEOF
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2385 _ACEOF
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_STRING "$PACKAGE_STRING"
2389 _ACEOF
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2393 _ACEOF
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_URL "$PACKAGE_URL"
2397 _ACEOF
2400 # Let the site file select an alternate cache file if it wants to.
2401 # Prefer an explicitly selected file to automatically selected ones.
2402 ac_site_file1=NONE
2403 ac_site_file2=NONE
2404 if test -n "$CONFIG_SITE"; then
2405 ac_site_file1=$CONFIG_SITE
2406 elif test "x$prefix" != xNONE; then
2407 ac_site_file1=$prefix/share/config.site
2408 ac_site_file2=$prefix/etc/config.site
2409 else
2410 ac_site_file1=$ac_default_prefix/share/config.site
2411 ac_site_file2=$ac_default_prefix/etc/config.site
2413 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415 test "x$ac_site_file" = xNONE && continue
2416 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2418 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2419 sed 's/^/| /' "$ac_site_file" >&5
2420 . "$ac_site_file"
2422 done
2424 if test -r "$cache_file"; then
2425 # Some versions of bash will fail to source /dev/null (special files
2426 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2427 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2429 $as_echo "$as_me: loading cache $cache_file" >&6;}
2430 case $cache_file in
2431 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432 *) . "./$cache_file";;
2433 esac
2435 else
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2437 $as_echo "$as_me: creating cache $cache_file" >&6;}
2438 >$cache_file
2441 as_fn_append ac_header_list " stdlib.h"
2442 as_fn_append ac_header_list " unistd.h"
2443 as_fn_append ac_header_list " sys/param.h"
2444 # Check that the precious variables saved in the cache have kept the same
2445 # value.
2446 ac_cache_corrupted=false
2447 for ac_var in $ac_precious_vars; do
2448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449 eval ac_new_set=\$ac_env_${ac_var}_set
2450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451 eval ac_new_val=\$ac_env_${ac_var}_value
2452 case $ac_old_set,$ac_new_set in
2453 set,)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,set)
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2461 ,);;
2463 if test "x$ac_old_val" != "x$ac_new_val"; then
2464 # differences in whitespace do not lead to failure.
2465 ac_old_val_w=`echo x $ac_old_val`
2466 ac_new_val_w=`echo x $ac_new_val`
2467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2469 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2470 ac_cache_corrupted=:
2471 else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2473 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2474 eval $ac_var=\$ac_old_val
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2477 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2479 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2480 fi;;
2481 esac
2482 # Pass precious variables to config.status.
2483 if test "$ac_new_set" = set; then
2484 case $ac_new_val in
2485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 *) ac_arg=$ac_var=$ac_new_val ;;
2487 esac
2488 case " $ac_configure_args " in
2489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2491 esac
2493 done
2494 if $ac_cache_corrupted; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2499 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501 ## -------------------- ##
2502 ## Main body of script. ##
2503 ## -------------------- ##
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513 ac_aux_dir=
2514 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2515 for ac_t in install-sh install.sh shtool; do
2516 if test -f "$ac_dir/$ac_t"; then
2517 ac_aux_dir=$ac_dir
2518 ac_install_sh="$ac_aux_dir/$ac_t -c"
2519 break 2
2521 done
2522 done
2523 if test -z "$ac_aux_dir"; then
2524 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2527 # These three variables are undocumented and unsupported,
2528 # and are intended to be withdrawn in a future Autoconf release.
2529 # They can cause serious problems if a builder's source tree is in a directory
2530 # whose full name contains unusual characters.
2531 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2532 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2533 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2537 # Check what host we are running on.
2538 # If a target is not suggested, we use this one.
2539 # Note that what we call a target, Autoconf calls a host.
2540 # Make sure we can run config.sub.
2541 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2542 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2545 $as_echo_n "checking build system type... " >&6; }
2546 if test "${ac_cv_build+set}" = set; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 ac_build_alias=$build_alias
2550 test "x$ac_build_alias" = x &&
2551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2552 test "x$ac_build_alias" = x &&
2553 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2554 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2555 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2559 $as_echo "$ac_cv_build" >&6; }
2560 case $ac_cv_build in
2561 *-*-*) ;;
2562 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2563 esac
2564 build=$ac_cv_build
2565 ac_save_IFS=$IFS; IFS='-'
2566 set x $ac_cv_build
2567 shift
2568 build_cpu=$1
2569 build_vendor=$2
2570 shift; shift
2571 # Remember, the first character of IFS is used to create $*,
2572 # except with old shells:
2573 build_os=$*
2574 IFS=$ac_save_IFS
2575 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2579 $as_echo_n "checking host system type... " >&6; }
2580 if test "${ac_cv_host+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 if test "x$host_alias" = x; then
2584 ac_cv_host=$ac_cv_build
2585 else
2586 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2587 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2592 $as_echo "$ac_cv_host" >&6; }
2593 case $ac_cv_host in
2594 *-*-*) ;;
2595 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2596 esac
2597 host=$ac_cv_host
2598 ac_save_IFS=$IFS; IFS='-'
2599 set x $ac_cv_host
2600 shift
2601 host_cpu=$1
2602 host_vendor=$2
2603 shift; shift
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2606 host_os=$*
2607 IFS=$ac_save_IFS
2608 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2612 # The AROS target is slightly different to the normal GNU style
2613 # format. We don't have the middle part, and we reverse the order
2614 # of the $(CPU) and $(OS) bits.
2616 # Don't strip the version of the target yet, it might be
2617 # useful on some systems.
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2620 $as_echo_n "checking for AROS style target... " >&6; }
2622 if test "$target" = "NONE" ; then
2623 target=$host_os-$host_cpu
2624 else
2625 if test "$target" = "" ; then
2626 target=$host_os-$host_cpu
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2630 $as_echo "$target" >&6; }
2632 if test "$host_os" = "mingw32" ; then
2633 PWDCMD="pwd -W"
2636 #don't know where else to put this...
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2638 $as_echo_n "checking building AROS in... " >&6; }
2639 AROS_BUILDDIR=`${PWDCMD-pwd}`
2640 AROS_BUILDDIR_UNIX=${PWD}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2642 $as_echo "$AROS_BUILDDIR" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2645 $as_echo_n "checking AROS source in... " >&6; }
2646 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2647 SRCDIR=${srcpwd}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2649 $as_echo "$SRCDIR" >&6; }
2651 # Parse the target field into something useful.
2653 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2654 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2657 aros_default_wbwidth=800
2658 aros_default_wbheight=600
2659 aros_default_wbdepth=4
2662 # The first step is to find the host binaries.
2663 # Check for a compiler.
2664 ac_ext=c
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669 if test -n "$ac_tool_prefix"; then
2670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2671 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if test "${ac_cv_prog_CC+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2697 CC=$ac_cv_prog_CC
2698 if test -n "$CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2708 if test -z "$ac_cv_prog_CC"; then
2709 ac_ct_CC=$CC
2710 # Extract the first word of "gcc", so it can be a program name with args.
2711 set dummy gcc; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 if test -n "$ac_ct_CC"; then
2718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_ac_ct_CC="gcc"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2731 done
2732 done
2733 IFS=$as_save_IFS
2737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2738 if test -n "$ac_ct_CC"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2740 $as_echo "$ac_ct_CC" >&6; }
2741 else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2746 if test "x$ac_ct_CC" = x; then
2747 CC=""
2748 else
2749 case $cross_compiling:$ac_tool_warned in
2750 yes:)
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753 ac_tool_warned=yes ;;
2754 esac
2755 CC=$ac_ct_CC
2757 else
2758 CC="$ac_cv_prog_CC"
2761 if test -z "$CC"; then
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2764 set dummy ${ac_tool_prefix}cc; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if test "${ac_cv_prog_CC+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_CC="${ac_tool_prefix}cc"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 CC=$ac_cv_prog_CC
2791 if test -n "$CC"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2793 $as_echo "$CC" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2802 if test -z "$CC"; then
2803 # Extract the first word of "cc", so it can be a program name with args.
2804 set dummy cc; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if test "${ac_cv_prog_CC+set}" = set; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 ac_prog_rejected=no
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2822 ac_prog_rejected=yes
2823 continue
2825 ac_cv_prog_CC="cc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2829 done
2830 done
2831 IFS=$as_save_IFS
2833 if test $ac_prog_rejected = yes; then
2834 # We found a bogon in the path, so make sure we never use it.
2835 set dummy $ac_cv_prog_CC
2836 shift
2837 if test $# != 0; then
2838 # We chose a different compiler from the bogus one.
2839 # However, it has the same basename, so the bogon will be chosen
2840 # first if we set CC to just the basename; use the full file name.
2841 shift
2842 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2847 CC=$ac_cv_prog_CC
2848 if test -n "$CC"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2850 $as_echo "$CC" >&6; }
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2858 if test -z "$CC"; then
2859 if test -n "$ac_tool_prefix"; then
2860 for ac_prog in cl.exe
2862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_CC+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2885 IFS=$as_save_IFS
2889 CC=$ac_cv_prog_CC
2890 if test -n "$CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2899 test -n "$CC" && break
2900 done
2902 if test -z "$CC"; then
2903 ac_ct_CC=$CC
2904 for ac_prog in cl.exe
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907 set dummy $ac_prog; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 if test -n "$ac_ct_CC"; then
2914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_ac_ct_CC="$ac_prog"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2927 done
2928 done
2929 IFS=$as_save_IFS
2933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2934 if test -n "$ac_ct_CC"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2936 $as_echo "$ac_ct_CC" >&6; }
2937 else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2943 test -n "$ac_ct_CC" && break
2944 done
2946 if test "x$ac_ct_CC" = x; then
2947 CC=""
2948 else
2949 case $cross_compiling:$ac_tool_warned in
2950 yes:)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953 ac_tool_warned=yes ;;
2954 esac
2955 CC=$ac_ct_CC
2962 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964 as_fn_error "no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details." "$LINENO" 5; }
2967 # Provide some information about the compiler.
2968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2969 set X $ac_compile
2970 ac_compiler=$2
2971 for ac_option in --version -v -V -qversion; do
2972 { { ac_try="$ac_compiler $ac_option >&5"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 $as_echo "$ac_try_echo"; } >&5
2979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2980 ac_status=$?
2981 if test -s conftest.err; then
2982 sed '10a\
2983 ... rest of stderr output deleted ...
2984 10q' conftest.err >conftest.er1
2985 cat conftest.er1 >&5
2987 rm -f conftest.er1 conftest.err
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }
2990 done
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2996 main ()
3000 return 0;
3002 _ACEOF
3003 ac_clean_files_save=$ac_clean_files
3004 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3005 # Try to create an executable without -o first, disregard a.out.
3006 # It will help us diagnose broken compilers, and finding out an intuition
3007 # of exeext.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3009 $as_echo_n "checking whether the C compiler works... " >&6; }
3010 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3012 # The possible output files:
3013 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3015 ac_rmfiles=
3016 for ac_file in $ac_files
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3021 esac
3022 done
3023 rm -f $ac_rmfiles
3025 if { { ac_try="$ac_link_default"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_link_default") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; then :
3036 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3037 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3038 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3039 # so that the user can short-circuit this test for compilers unknown to
3040 # Autoconf.
3041 for ac_file in $ac_files ''
3043 test -f "$ac_file" || continue
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3047 [ab].out )
3048 # We found the default executable, but exeext='' is most
3049 # certainly right.
3050 break;;
3051 *.* )
3052 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3053 then :; else
3054 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056 # We set ac_cv_exeext here because the later test for it is not
3057 # safe: cross compilers may not add the suffix if given an `-o'
3058 # argument, so we may need to know it at that point already.
3059 # Even if this section looks crufty: it has the advantage of
3060 # actually working.
3061 break;;
3063 break;;
3064 esac
3065 done
3066 test "$ac_cv_exeext" = no && ac_cv_exeext=
3068 else
3069 ac_file=''
3071 if test -z "$ac_file"; then :
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 $as_echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079 { as_fn_set_status 77
3080 as_fn_error "C compiler cannot create executables
3081 See \`config.log' for more details." "$LINENO" 5; }; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3087 $as_echo_n "checking for C compiler default output file name... " >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3089 $as_echo "$ac_file" >&6; }
3090 ac_exeext=$ac_cv_exeext
3092 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3093 ac_clean_files=$ac_clean_files_save
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3095 $as_echo_n "checking for suffix of executables... " >&6; }
3096 if { { ac_try="$ac_link"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_link") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }; then :
3107 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3108 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3109 # work properly (i.e., refer to `conftest.exe'), while it won't with
3110 # `rm'.
3111 for ac_file in conftest.exe conftest conftest.*; do
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116 break;;
3117 * ) break;;
3118 esac
3119 done
3120 else
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 as_fn_error "cannot compute suffix of executables: cannot compile and link
3124 See \`config.log' for more details." "$LINENO" 5; }
3126 rm -f conftest conftest$ac_cv_exeext
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3128 $as_echo "$ac_cv_exeext" >&6; }
3130 rm -f conftest.$ac_ext
3131 EXEEXT=$ac_cv_exeext
3132 ac_exeext=$EXEEXT
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3135 #include <stdio.h>
3137 main ()
3139 FILE *f = fopen ("conftest.out", "w");
3140 return ferror (f) || fclose (f) != 0;
3143 return 0;
3145 _ACEOF
3146 ac_clean_files="$ac_clean_files conftest.out"
3147 # Check that the compiler produces executables we can run. If not, either
3148 # the compiler is broken, or we cross compile.
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3150 $as_echo_n "checking whether we are cross compiling... " >&6; }
3151 if test "$cross_compiling" != yes; then
3152 { { ac_try="$ac_link"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_link") 2>&5
3160 ac_status=$?
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }
3163 if { ac_try='./conftest$ac_cv_exeext'
3164 { { case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_try") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; }; then
3174 cross_compiling=no
3175 else
3176 if test "$cross_compiling" = maybe; then
3177 cross_compiling=yes
3178 else
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error "cannot run C compiled programs.
3182 If you meant to cross compile, use \`--host'.
3183 See \`config.log' for more details." "$LINENO" 5; }
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3188 $as_echo "$cross_compiling" >&6; }
3190 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3191 ac_clean_files=$ac_clean_files_save
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3193 $as_echo_n "checking for suffix of object files... " >&6; }
3194 if test "${ac_cv_objext+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3201 main ()
3205 return 0;
3207 _ACEOF
3208 rm -f conftest.o conftest.obj
3209 if { { ac_try="$ac_compile"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compile") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 for ac_file in conftest.o conftest.obj conftest.*; do
3221 test -f "$ac_file" || continue;
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3224 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3225 break;;
3226 esac
3227 done
3228 else
3229 $as_echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error "cannot compute suffix of object files: cannot compile
3235 See \`config.log' for more details." "$LINENO" 5; }
3237 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3240 $as_echo "$ac_cv_objext" >&6; }
3241 OBJEXT=$ac_cv_objext
3242 ac_objext=$OBJEXT
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3244 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3245 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3252 main ()
3254 #ifndef __GNUC__
3255 choke me
3256 #endif
3259 return 0;
3261 _ACEOF
3262 if ac_fn_c_try_compile "$LINENO"; then :
3263 ac_compiler_gnu=yes
3264 else
3265 ac_compiler_gnu=no
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3272 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3273 if test $ac_compiler_gnu = yes; then
3274 GCC=yes
3275 else
3276 GCC=
3278 ac_test_CFLAGS=${CFLAGS+set}
3279 ac_save_CFLAGS=$CFLAGS
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3281 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3282 if test "${ac_cv_prog_cc_g+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 ac_save_c_werror_flag=$ac_c_werror_flag
3286 ac_c_werror_flag=yes
3287 ac_cv_prog_cc_g=no
3288 CFLAGS="-g"
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 if ac_fn_c_try_compile "$LINENO"; then :
3301 ac_cv_prog_cc_g=yes
3302 else
3303 CFLAGS=""
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3308 main ()
3312 return 0;
3314 _ACEOF
3315 if ac_fn_c_try_compile "$LINENO"; then :
3317 else
3318 ac_c_werror_flag=$ac_save_c_werror_flag
3319 CFLAGS="-g"
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3324 main ()
3328 return 0;
3330 _ACEOF
3331 if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_g=yes
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3342 $as_echo "$ac_cv_prog_cc_g" >&6; }
3343 if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345 elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
3348 else
3349 CFLAGS="-g"
3351 else
3352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
3354 else
3355 CFLAGS=
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3359 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3360 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 ac_cv_prog_cc_c89=no
3364 ac_save_CC=$CC
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdarg.h>
3368 #include <stdio.h>
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3375 char **p;
3376 int i;
3378 return p[i];
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3382 char *s;
3383 va_list v;
3384 va_start (v,p);
3385 s = g (p, va_arg (v,int));
3386 va_end (v);
3387 return s;
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3400 inside strings and character constants. */
3401 #define FOO(x) 'x'
3402 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404 int test (int i, double x);
3405 struct s1 {int (*f) (int a);};
3406 struct s2 {int (*f) (double a);};
3407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408 int argc;
3409 char **argv;
3411 main ()
3413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3415 return 0;
3417 _ACEOF
3418 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 CC="$ac_save_CC $ac_arg"
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_cv_prog_cc_c89=$ac_arg
3425 rm -f core conftest.err conftest.$ac_objext
3426 test "x$ac_cv_prog_cc_c89" != "xno" && break
3427 done
3428 rm -f conftest.$ac_ext
3429 CC=$ac_save_CC
3432 # AC_CACHE_VAL
3433 case "x$ac_cv_prog_cc_c89" in
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3436 $as_echo "none needed" >&6; } ;;
3437 xno)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3439 $as_echo "unsupported" >&6; } ;;
3441 CC="$CC $ac_cv_prog_cc_c89"
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3443 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3444 esac
3445 if test "x$ac_cv_prog_cc_c89" != xno; then :
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 case $ac_cv_prog_cc_stdc in #(
3456 no) :
3457 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3458 *) :
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3460 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3461 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 ac_cv_prog_cc_c99=no
3465 ac_save_CC=$CC
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468 #include <stdarg.h>
3469 #include <stdbool.h>
3470 #include <stdlib.h>
3471 #include <wchar.h>
3472 #include <stdio.h>
3474 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3475 #define debug(...) fprintf (stderr, __VA_ARGS__)
3476 #define showlist(...) puts (#__VA_ARGS__)
3477 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3478 static void
3479 test_varargs_macros (void)
3481 int x = 1234;
3482 int y = 5678;
3483 debug ("Flag");
3484 debug ("X = %d\n", x);
3485 showlist (The first, second, and third items.);
3486 report (x>y, "x is %d but y is %d", x, y);
3489 // Check long long types.
3490 #define BIG64 18446744073709551615ull
3491 #define BIG32 4294967295ul
3492 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3493 #if !BIG_OK
3494 your preprocessor is broken;
3495 #endif
3496 #if BIG_OK
3497 #else
3498 your preprocessor is broken;
3499 #endif
3500 static long long int bignum = -9223372036854775807LL;
3501 static unsigned long long int ubignum = BIG64;
3503 struct incomplete_array
3505 int datasize;
3506 double data[];
3509 struct named_init {
3510 int number;
3511 const wchar_t *name;
3512 double average;
3515 typedef const char *ccp;
3517 static inline int
3518 test_restrict (ccp restrict text)
3520 // See if C++-style comments work.
3521 // Iterate through items via the restricted pointer.
3522 // Also check for declarations in for loops.
3523 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3524 continue;
3525 return 0;
3528 // Check varargs and va_copy.
3529 static void
3530 test_varargs (const char *format, ...)
3532 va_list args;
3533 va_start (args, format);
3534 va_list args_copy;
3535 va_copy (args_copy, args);
3537 const char *str;
3538 int number;
3539 float fnumber;
3541 while (*format)
3543 switch (*format++)
3545 case 's': // string
3546 str = va_arg (args_copy, const char *);
3547 break;
3548 case 'd': // int
3549 number = va_arg (args_copy, int);
3550 break;
3551 case 'f': // float
3552 fnumber = va_arg (args_copy, double);
3553 break;
3554 default:
3555 break;
3558 va_end (args_copy);
3559 va_end (args);
3563 main ()
3566 // Check bool.
3567 _Bool success = false;
3569 // Check restrict.
3570 if (test_restrict ("String literal") == 0)
3571 success = true;
3572 char *restrict newvar = "Another string";
3574 // Check varargs.
3575 test_varargs ("s, d' f .", "string", 65, 34.234);
3576 test_varargs_macros ();
3578 // Check flexible array members.
3579 struct incomplete_array *ia =
3580 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3581 ia->datasize = 10;
3582 for (int i = 0; i < ia->datasize; ++i)
3583 ia->data[i] = i * 1.234;
3585 // Check named initializers.
3586 struct named_init ni = {
3587 .number = 34,
3588 .name = L"Test wide string",
3589 .average = 543.34343,
3592 ni.number = 58;
3594 int dynamic_array[ni.number];
3595 dynamic_array[ni.number - 1] = 543;
3597 // work around unused variable warnings
3598 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3599 || dynamic_array[ni.number - 1] != 543);
3602 return 0;
3604 _ACEOF
3605 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3607 CC="$ac_save_CC $ac_arg"
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609 ac_cv_prog_cc_c99=$ac_arg
3611 rm -f core conftest.err conftest.$ac_objext
3612 test "x$ac_cv_prog_cc_c99" != "xno" && break
3613 done
3614 rm -f conftest.$ac_ext
3615 CC=$ac_save_CC
3618 # AC_CACHE_VAL
3619 case "x$ac_cv_prog_cc_c99" in
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3622 $as_echo "none needed" >&6; } ;;
3623 xno)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3625 $as_echo "unsupported" >&6; } ;;
3627 CC="$CC $ac_cv_prog_cc_c99"
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3629 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3630 esac
3631 if test "x$ac_cv_prog_cc_c99" != xno; then :
3632 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3635 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 ac_cv_prog_cc_c89=no
3640 ac_save_CC=$CC
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 #include <stdarg.h>
3644 #include <stdio.h>
3645 #include <sys/types.h>
3646 #include <sys/stat.h>
3647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3648 struct buf { int x; };
3649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3650 static char *e (p, i)
3651 char **p;
3652 int i;
3654 return p[i];
3656 static char *f (char * (*g) (char **, int), char **p, ...)
3658 char *s;
3659 va_list v;
3660 va_start (v,p);
3661 s = g (p, va_arg (v,int));
3662 va_end (v);
3663 return s;
3666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3667 function prototypes and stuff, but not '\xHH' hex character constants.
3668 These don't provoke an error unfortunately, instead are silently treated
3669 as 'x'. The following induces an error, until -std is added to get
3670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3671 array size at least. It's necessary to write '\x00'==0 to get something
3672 that's true only with -std. */
3673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3676 inside strings and character constants. */
3677 #define FOO(x) 'x'
3678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3680 int test (int i, double x);
3681 struct s1 {int (*f) (int a);};
3682 struct s2 {int (*f) (double a);};
3683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3684 int argc;
3685 char **argv;
3687 main ()
3689 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 return 0;
3693 _ACEOF
3694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3697 CC="$ac_save_CC $ac_arg"
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_prog_cc_c89=$ac_arg
3701 rm -f core conftest.err conftest.$ac_objext
3702 test "x$ac_cv_prog_cc_c89" != "xno" && break
3703 done
3704 rm -f conftest.$ac_ext
3705 CC=$ac_save_CC
3708 # AC_CACHE_VAL
3709 case "x$ac_cv_prog_cc_c89" in
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3712 $as_echo "none needed" >&6; } ;;
3713 xno)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3715 $as_echo "unsupported" >&6; } ;;
3717 CC="$CC $ac_cv_prog_cc_c89"
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3720 esac
3721 if test "x$ac_cv_prog_cc_c89" != xno; then :
3722 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3723 else
3724 ac_cv_prog_cc_stdc=no
3729 esac
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3731 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3732 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3736 case $ac_cv_prog_cc_stdc in #(
3737 no) :
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739 $as_echo "unsupported" >&6; } ;; #(
3740 '') :
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3742 $as_echo "none needed" >&6; } ;; #(
3743 *) :
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3745 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3746 esac
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3754 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3755 # On Suns, sometimes $CPP names a directory.
3756 if test -n "$CPP" && test -d "$CPP"; then
3757 CPP=
3759 if test -z "$CPP"; then
3760 if test "${ac_cv_prog_CPP+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 # Double quotes because CPP needs to be expanded
3764 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3766 ac_preproc_ok=false
3767 for ac_c_preproc_warn_flag in '' yes
3769 # Use a header file that comes with gcc, so configuring glibc
3770 # with a fresh cross-compiler works.
3771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3772 # <limits.h> exists even on freestanding compilers.
3773 # On the NeXT, cc -E runs the code through the compiler's parser,
3774 # not just through cpp. "Syntax error" is here to catch this case.
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #ifdef __STDC__
3778 # include <limits.h>
3779 #else
3780 # include <assert.h>
3781 #endif
3782 Syntax error
3783 _ACEOF
3784 if ac_fn_c_try_cpp "$LINENO"; then :
3786 else
3787 # Broken: fails on valid input.
3788 continue
3790 rm -f conftest.err conftest.$ac_ext
3792 # OK, works on sane cases. Now check whether nonexistent headers
3793 # can be detected and how.
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796 #include <ac_nonexistent.h>
3797 _ACEOF
3798 if ac_fn_c_try_cpp "$LINENO"; then :
3799 # Broken: success on invalid input.
3800 continue
3801 else
3802 # Passes both tests.
3803 ac_preproc_ok=:
3804 break
3806 rm -f conftest.err conftest.$ac_ext
3808 done
3809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3810 rm -f conftest.err conftest.$ac_ext
3811 if $ac_preproc_ok; then :
3812 break
3815 done
3816 ac_cv_prog_CPP=$CPP
3819 CPP=$ac_cv_prog_CPP
3820 else
3821 ac_cv_prog_CPP=$CPP
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3824 $as_echo "$CPP" >&6; }
3825 ac_preproc_ok=false
3826 for ac_c_preproc_warn_flag in '' yes
3828 # Use a header file that comes with gcc, so configuring glibc
3829 # with a fresh cross-compiler works.
3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3831 # <limits.h> exists even on freestanding compilers.
3832 # On the NeXT, cc -E runs the code through the compiler's parser,
3833 # not just through cpp. "Syntax error" is here to catch this case.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #ifdef __STDC__
3837 # include <limits.h>
3838 #else
3839 # include <assert.h>
3840 #endif
3841 Syntax error
3842 _ACEOF
3843 if ac_fn_c_try_cpp "$LINENO"; then :
3845 else
3846 # Broken: fails on valid input.
3847 continue
3849 rm -f conftest.err conftest.$ac_ext
3851 # OK, works on sane cases. Now check whether nonexistent headers
3852 # can be detected and how.
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855 #include <ac_nonexistent.h>
3856 _ACEOF
3857 if ac_fn_c_try_cpp "$LINENO"; then :
3858 # Broken: success on invalid input.
3859 continue
3860 else
3861 # Passes both tests.
3862 ac_preproc_ok=:
3863 break
3865 rm -f conftest.err conftest.$ac_ext
3867 done
3868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869 rm -f conftest.err conftest.$ac_ext
3870 if $ac_preproc_ok; then :
3872 else
3873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3875 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3876 See \`config.log' for more details." "$LINENO" 5; }
3879 ac_ext=c
3880 ac_cpp='$CPP $CPPFLAGS'
3881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886 # Check for a compatible awk
3887 for ac_prog in gawk nawk
3889 # Extract the first word of "$ac_prog", so it can be a program name with args.
3890 set dummy $ac_prog; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if test "${ac_cv_prog_AWK+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 if test -n "$AWK"; then
3897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_prog_AWK="$ac_prog"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3910 done
3911 done
3912 IFS=$as_save_IFS
3916 AWK=$ac_cv_prog_AWK
3917 if test -n "$AWK"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3919 $as_echo "$AWK" >&6; }
3920 else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3926 test -n "$AWK" && break
3927 done
3929 if test "$AWK" = ""; then
3930 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3932 # Extract the first word of "mmake", so it can be a program name with args.
3933 set dummy mmake; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$MMAKE"; then
3940 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 ac_cv_prog_MMAKE="mmake "
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3953 done
3954 done
3955 IFS=$as_save_IFS
3959 MMAKE=$ac_cv_prog_MMAKE
3960 if test -n "$MMAKE"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3962 $as_echo "$MMAKE" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3970 # Perform some default variable assignments. Note all of these will be
3971 # Regenerated from the script, so there is no need to cache them.
3973 aros_host_cc="$CC"
3974 if test "$GCC" = "yes"; then
3975 aros_gcc_ld=`$CC -print-prog-name=ld`
3976 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3977 set dummy `basename $aros_gcc_ld`; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 case $aros_host_ld in
3984 [\\/]* | ?:[\\/]*)
3985 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in `dirname $aros_gcc_ld`
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4001 IFS=$as_save_IFS
4004 esac
4006 aros_host_ld=$ac_cv_path_aros_host_ld
4007 if test -n "$aros_host_ld"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4009 $as_echo "$aros_host_ld" >&6; }
4010 else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4017 if test "$aros_host_ld" = ""; then
4018 # Extract the first word of "ld", so it can be a program name with args.
4019 set dummy ld; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 case $aros_host_ld in
4026 [\\/]* | ?:[\\/]*)
4027 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4037 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4043 IFS=$as_save_IFS
4046 esac
4048 aros_host_ld=$ac_cv_path_aros_host_ld
4049 if test -n "$aros_host_ld"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4051 $as_echo "$aros_host_ld" >&6; }
4052 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4059 if test "$aros_host_ld" = ""; then
4060 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4062 aros_host_make="make"
4063 aros_host_cflags=$CFLAGS
4064 aros_host_ldflags=$LDFLAGS
4065 aros_host_debug="-g -O0"
4066 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4067 aros_host_mkargs="--no-print-directory"
4068 aros_host_incl="/usr/include"
4069 aros_host_exe_suffix="$EXEEXT"
4070 aros_host_lib_suffix=""
4072 # Ignore all compliance, AROS ROMs = 0
4073 # KickStart v1.0 = 30
4074 # KickStart v1.3 = 34
4075 # KickStart v2.0 = 37
4076 # KickStart v3.0 = 39
4077 # KickStart v3.1 = 40
4078 # AmigaOS v3.5 = 44
4079 aros_amigaos_compliance=0
4081 for ac_prog in aclocal aclocal19 aclocal-1.9
4083 # Extract the first word of "$ac_prog", so it can be a program name with args.
4084 set dummy $ac_prog; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -n "$aros_host_aclocal"; then
4091 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_prog_aros_host_aclocal="$ac_prog"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4104 done
4105 done
4106 IFS=$as_save_IFS
4110 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4111 if test -n "$aros_host_aclocal"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4113 $as_echo "$aros_host_aclocal" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4120 test -n "$aros_host_aclocal" && break
4121 done
4123 for ac_prog in autoconf autoconf259 autoconf253
4125 # Extract the first word of "$ac_prog", so it can be a program name with args.
4126 set dummy $ac_prog; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -n "$aros_host_autoconf"; then
4133 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_prog_aros_host_autoconf="$ac_prog"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4146 done
4147 done
4148 IFS=$as_save_IFS
4152 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4153 if test -n "$aros_host_autoconf"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4155 $as_echo "$aros_host_autoconf" >&6; }
4156 else
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4162 test -n "$aros_host_autoconf" && break
4163 done
4165 for ac_prog in autoheader autoheader259 autoheader253
4167 # Extract the first word of "$ac_prog", so it can be a program name with args.
4168 set dummy $ac_prog; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$aros_host_autoheader"; then
4175 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_aros_host_autoheader="$ac_prog"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4195 if test -n "$aros_host_autoheader"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4197 $as_echo "$aros_host_autoheader" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4204 test -n "$aros_host_autoheader" && break
4205 done
4207 for ac_prog in automake automake19 automake-1.9
4209 # Extract the first word of "$ac_prog", so it can be a program name with args.
4210 set dummy $ac_prog; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$aros_host_automake"; then
4217 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_aros_host_automake="$ac_prog"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4236 aros_host_automake=$ac_cv_prog_aros_host_automake
4237 if test -n "$aros_host_automake"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4239 $as_echo "$aros_host_automake" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4246 test -n "$aros_host_automake" && break
4247 done
4250 if test "$aros_host_aclocal" = ""; then
4251 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4253 if test "$aros_host_automake" = ""; then
4254 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4257 case "$aros_host_cc" in
4258 *gcc*)
4259 aros_host_cc_pipe="-pipe"
4261 icc)
4262 aros_host_cc_pipe=""
4265 aros_host_cc_pipe=""
4267 esac
4269 aros_kernel_cc_includes=""
4270 aros_target_cc_includes=""
4272 # ----------------------------------------------------------------------------------------
4273 # Host-specific defaults
4275 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4276 # instead of a wrapper script.
4277 # Useful for non-ELF hosts (like Windows and Darwin).
4278 # Can also be overriden in target section below
4279 use_aros_gcc="no"
4281 # This is the main host configuration section. It is where the host
4282 # can change the values of any variables it needs to change. We do
4283 # not look at anything that compiles to the target yet, we'll get
4284 # to that later.
4286 case "$host_os" in
4287 aros*)
4288 aros_host_arch="aros"
4289 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4290 case "$host_cpu" in
4291 *i?86*)
4292 aros_host_cpu="i386"
4294 *x86_64*)
4295 aros_host_cpu="x86_64"
4297 *powerpc*)
4298 aros_host_cpu="ppc"
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4302 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4303 aros_host_cpu="$host_cpu"
4305 esac
4308 linux*)
4309 aros_host_arch="linux"
4310 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4311 case "$host_cpu" in
4312 *i?86*)
4313 aros_host_cpu="i386"
4315 *x86_64*)
4316 aros_host_cpu="x86_64"
4318 *m68k*)
4319 aros_host_cpu="m68k"
4321 *powerpc*)
4322 aros_host_cpu="ppc"
4324 *arm*)
4325 aros_host_cpu="arm"
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4329 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4330 aros_host_cpu="$host_cpu"
4332 esac
4335 freebsd*)
4336 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4337 aros_host_make="gmake"
4338 aros_host_arch="freebsd"
4339 aros_host_cpu="i386"
4341 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4343 case $host_os in
4344 freebsd[234]*)
4345 aros_object_format="elf_i386"
4349 aros_object_format="elf_i386_fbsd"
4351 esac
4355 darwin*)
4356 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4357 aros_host_arch="darwin"
4358 use_aros_gcc="yes"
4359 android_build_os="darwin-x86"
4360 android_tool="android"
4361 default_android_sdk="/android-sdk-mac_x86"
4362 default_android_ndk="/android-ndk-r5b"
4363 case "$host_cpu" in
4364 *i?86*)
4365 aros_host_cpu="i386"
4367 *x86_64*)
4368 aros_host_cpu="x86_64"
4370 *powerpc*)
4371 aros_host_cpu="ppc"
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4375 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4376 aros_host_cpu="$host_cpu"
4378 esac
4380 aros_host_ldflags="$aros_host_ldflags -liconv"
4384 dragonfly*)
4385 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4386 aros_host_make="gmake"
4387 aros_host_arch="dragonfly"
4388 case $host_cpu in
4389 *i?86*)
4390 aros_host_cpu="i386"
4392 *amd64*)
4393 aros_host_cpu="x86_64"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4397 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4398 aros_host_cpu="$host_cpu"
4400 esac
4403 netbsd*)
4404 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4405 aros_host_make="gmake"
4406 aros_host_arch="netbsd"
4407 case "$host_cpu" in
4408 *i?86*)
4409 aros_host_cpu="i386"
4411 *m68k*)
4412 aros_host_cpu="m68k"
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4416 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4417 aros_host_cpu="$host_cpu"
4419 esac
4420 aros_host_lib_suffix=".0.0"
4423 openbsd*)
4424 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4425 aros_host_make="gmake"
4426 aros_host_arch="openbsd"
4427 case "$host_cpu" in
4428 *i?86*)
4429 aros_host_cpu="i386"
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4433 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4434 aros_host_cpu="$host_cpu"
4436 esac
4439 solaris*)
4440 aros_host_arch="solaris"
4441 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4442 case "$host_cpu" in
4443 *i?86*)
4444 aros_host_cpu="i386"
4446 *sparc*)
4447 aros_host_cpu="sparc"
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4451 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4452 aros_host_cpu="$host_cpu"
4454 esac
4457 morphos*)
4458 aros_host_arch="morphos"
4459 aros_host_cpu="ppc"
4462 amiga*)
4463 aros_host_arch="amiga"
4464 SORT="/gg/bin/sort"
4465 TEST="/gg/bin/test"
4466 UNIQ="/gg/bin/uniq"
4467 FOR="for"
4468 TOUCH="/gg/bin/touch"
4469 case "$host_cpu" in
4470 *m68k*)
4471 aros_host_cpu="m68k"
4473 *powerpc*)
4474 aros_host_cpu="ppc"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4478 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4479 aros_host_cpu="$host_cpu"
4481 esac
4484 cygwin*)
4485 aros_host_arch="cygwin"
4486 use_aros_gcc="yes"
4487 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4488 android_build_os="windows"
4489 android_tool="android.bat"
4490 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4492 case "$host_cpu" in
4493 *i?86*)
4494 aros_host_cpu="i386"
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4498 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4499 aros_host_cpu="$host_cpu"
4501 esac
4504 mingw32*)
4505 aros_host_arch="mingw32"
4506 use_aros_gcc="yes"
4507 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4508 android_build_os="windows"
4509 android_tool="android.bat"
4510 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4512 case "$host_cpu" in
4513 *i?86*)
4514 aros_host_cpu="i386"
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4518 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4519 aros_host_cpu="$host_cpu"
4521 esac
4524 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4526 esac
4528 # Extract the first word of "ar", so it can be a program name with args.
4529 set dummy ar; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 if test -n "$aros_host_ar"; then
4536 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_prog_aros_host_ar="ar cr"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4549 done
4550 done
4551 IFS=$as_save_IFS
4555 aros_host_ar=$ac_cv_prog_aros_host_ar
4556 if test -n "$aros_host_ar"; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4558 $as_echo "$aros_host_ar" >&6; }
4559 else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4565 if test "$aros_host_ar" = ""; then
4566 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4568 # Extract the first word of "ranlib", so it can be a program name with args.
4569 set dummy ranlib; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -n "$aros_host_ranlib"; then
4576 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_aros_host_ranlib="ranlib "
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4589 done
4590 done
4591 IFS=$as_save_IFS
4595 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4596 if test -n "$aros_host_ranlib"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4598 $as_echo "$aros_host_ranlib" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4605 if test "$aros_host_ranlib" = ""; then
4606 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4608 # Extract the first word of "strip", so it can be a program name with args.
4609 set dummy strip; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$aros_host_strip"; then
4616 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_aros_host_strip="strip "
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4635 aros_host_strip=$ac_cv_prog_aros_host_strip
4636 if test -n "$aros_host_strip"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4638 $as_echo "$aros_host_strip" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4645 if test "$aros_host_strip" = ""; then
4646 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4649 # Extract the first word of "rm", so it can be a program name with args.
4650 set dummy rm; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if test "${ac_cv_prog_RM+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if test -n "$RM"; then
4657 ac_cv_prog_RM="$RM" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_RM="rm -rf"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4670 done
4671 done
4672 IFS=$as_save_IFS
4676 RM=$ac_cv_prog_RM
4677 if test -n "$RM"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4679 $as_echo "$RM" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4686 if test "$RM" = ""; then
4687 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4689 # Extract the first word of "cp", so it can be a program name with args.
4690 set dummy cp; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if test "${ac_cv_prog_CP+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if test -n "$CP"; then
4697 ac_cv_prog_CP="$CP" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_CP="cp "
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4710 done
4711 done
4712 IFS=$as_save_IFS
4716 CP=$ac_cv_prog_CP
4717 if test -n "$CP"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4719 $as_echo "$CP" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4726 if test "$CP" = ""; then
4727 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4729 # Extract the first word of "mv", so it can be a program name with args.
4730 set dummy mv; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_MV+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 if test -n "$MV"; then
4737 ac_cv_prog_MV="$MV" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_MV="mv "
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4750 done
4751 done
4752 IFS=$as_save_IFS
4756 MV=$ac_cv_prog_MV
4757 if test -n "$MV"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4759 $as_echo "$MV" >&6; }
4760 else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4766 if test "$MV" = ""; then
4767 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4769 # Extract the first word of "echo", so it can be a program name with args.
4770 set dummy echo; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_ECHO+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$ECHO"; then
4777 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_ECHO="echo "
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4790 done
4791 done
4792 IFS=$as_save_IFS
4796 ECHO=$ac_cv_prog_ECHO
4797 if test -n "$ECHO"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4799 $as_echo "$ECHO" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4806 if test "$ECHO" = ""; then
4807 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4809 # Extract the first word of "mkdir", so it can be a program name with args.
4810 set dummy mkdir; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$MKDIR"; then
4817 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_MKDIR="mkdir -p"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4832 IFS=$as_save_IFS
4836 MKDIR=$ac_cv_prog_MKDIR
4837 if test -n "$MKDIR"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4839 $as_echo "$MKDIR" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4846 if test "$MKDIR" = ""; then
4847 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4849 # Extract the first word of "touch", so it can be a program name with args.
4850 set dummy touch; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$TOUCH"; then
4857 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_TOUCH="touch "
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 TOUCH=$ac_cv_prog_TOUCH
4877 if test -n "$TOUCH"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4879 $as_echo "$TOUCH" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4886 if test "$TOUCH" = ""; then
4887 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4889 # Extract the first word of "sort", so it can be a program name with args.
4890 set dummy sort; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_SORT+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$SORT"; then
4897 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_SORT="sort "
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4910 done
4911 done
4912 IFS=$as_save_IFS
4916 SORT=$ac_cv_prog_SORT
4917 if test -n "$SORT"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4919 $as_echo "$SORT" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4926 if test "$SORT" = ""; then
4927 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4929 # Extract the first word of "uniq", so it can be a program name with args.
4930 set dummy uniq; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$UNIQ"; then
4937 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_UNIQ="uniq "
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4950 done
4951 done
4952 IFS=$as_save_IFS
4956 UNIQ=$ac_cv_prog_UNIQ
4957 if test -n "$UNIQ"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4959 $as_echo "$UNIQ" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4966 if test "$UNIQ" = ""; then
4967 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4969 # Extract the first word of "true", so it can be a program name with args.
4970 set dummy true; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_prog_NOP+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$NOP"; then
4977 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_NOP="true "
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 NOP=$ac_cv_prog_NOP
4997 if test -n "$NOP"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4999 $as_echo "$NOP" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5006 if test "$NOP" = ""; then
5007 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5009 # Extract the first word of "cat", so it can be a program name with args.
5010 set dummy cat; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if test "${ac_cv_prog_CAT+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$CAT"; then
5017 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_CAT="cat "
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5032 IFS=$as_save_IFS
5036 CAT=$ac_cv_prog_CAT
5037 if test -n "$CAT"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5039 $as_echo "$CAT" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5046 if test "$CAT" = ""; then
5047 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5049 # Extract the first word of "bison", so it can be a program name with args.
5050 set dummy bison; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if test "${ac_cv_prog_BISON+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 if test -n "$BISON"; then
5057 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_BISON="bison "
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5070 done
5071 done
5072 IFS=$as_save_IFS
5076 BISON=$ac_cv_prog_BISON
5077 if test -n "$BISON"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5079 $as_echo "$BISON" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5086 if test "$BISON" = ""; then
5087 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5089 # Extract the first word of "flex", so it can be a program name with args.
5090 set dummy flex; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if test "${ac_cv_prog_FLEX+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$FLEX"; then
5097 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 ac_cv_prog_FLEX="flex "
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5110 done
5111 done
5112 IFS=$as_save_IFS
5116 FLEX=$ac_cv_prog_FLEX
5117 if test -n "$FLEX"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5119 $as_echo "$FLEX" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5126 if test "$FLEX" = ""; then
5127 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5129 # Extract the first word of "pngtopnm", so it can be a program name with args.
5130 set dummy pngtopnm; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$PNGTOPNM"; then
5137 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_prog_PNGTOPNM="pngtopnm "
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5150 done
5151 done
5152 IFS=$as_save_IFS
5156 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5157 if test -n "$PNGTOPNM"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5159 $as_echo "$PNGTOPNM" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5166 if test "$PNGTOPNM" = ""; then
5167 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5169 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5170 set dummy ppmtoilbm; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$PPMTOILBM"; then
5177 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5190 done
5191 done
5192 IFS=$as_save_IFS
5196 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5197 if test -n "$PPMTOILBM"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5199 $as_echo "$PPMTOILBM" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5206 if test "$PPMTOILBM" = ""; then
5207 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5209 # Extract the first word of "sed", so it can be a program name with args.
5210 set dummy sed; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if test "${ac_cv_prog_SED+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test -n "$SED"; then
5217 ac_cv_prog_SED="$SED" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_SED="sed "
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5230 done
5231 done
5232 IFS=$as_save_IFS
5236 SED=$ac_cv_prog_SED
5237 if test -n "$SED"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5239 $as_echo "$SED" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5246 if test "$SED" = ""; then
5247 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5249 # Extract the first word of "chmod", so it can be a program name with args.
5250 set dummy chmod; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -n "$CHMOD"; then
5257 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_CHMOD="chmod "
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5270 done
5271 done
5272 IFS=$as_save_IFS
5276 CHMOD=$ac_cv_prog_CHMOD
5277 if test -n "$CHMOD"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5279 $as_echo "$CHMOD" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5286 if test "$CHMOD" = ""; then
5287 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5289 # Extract the first word of "patch", so it can be a program name with args.
5290 set dummy patch; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if test "${ac_cv_prog_PATCH+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 if test -n "$PATCH"; then
5297 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_prog_PATCH="patch "
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5312 IFS=$as_save_IFS
5316 PATCH=$ac_cv_prog_PATCH
5317 if test -n "$PATCH"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5319 $as_echo "$PATCH" >&6; }
5320 else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5326 if test "$PATCH" = ""; then
5327 as_fn_error "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5334 if test -n "$PYTHON"; then
5335 # If the user set $PYTHON, use it and don't search something else.
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5337 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5338 prog="import sys, string
5339 # split strings by '.' and convert to numeric. Append some zeros
5340 # because we need at least 4 digits for the hex conversion.
5341 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5342 minverhex = 0
5343 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5344 sys.exit(sys.hexversion < minverhex)"
5345 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5346 ($PYTHON -c "$prog") >&5 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 else
5353 as_fn_error "too old" "$LINENO" 5
5355 am_display_PYTHON=$PYTHON
5356 else
5357 # Otherwise, try each interpreter until we find one that satisfies
5358 # VERSION.
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5360 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5361 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5365 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
5366 test "$am_cv_pathless_PYTHON" = none && break
5367 prog="import sys, string
5368 # split strings by '.' and convert to numeric. Append some zeros
5369 # because we need at least 4 digits for the hex conversion.
5370 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5371 minverhex = 0
5372 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5373 sys.exit(sys.hexversion < minverhex)"
5374 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5375 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; then :
5379 break
5381 done
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5384 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5385 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5386 if test "$am_cv_pathless_PYTHON" = none; then
5387 PYTHON=:
5388 else
5389 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5390 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if test "${ac_cv_path_PYTHON+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 case $PYTHON in
5397 [\\/]* | ?:[\\/]*)
5398 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5412 done
5413 done
5414 IFS=$as_save_IFS
5417 esac
5419 PYTHON=$ac_cv_path_PYTHON
5420 if test -n "$PYTHON"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5422 $as_echo "$PYTHON" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5430 am_display_PYTHON=$am_cv_pathless_PYTHON
5434 if test "$PYTHON" = :; then
5435 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5436 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5440 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5441 if test "${am_cv_python_version+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5447 $as_echo "$am_cv_python_version" >&6; }
5448 PYTHON_VERSION=$am_cv_python_version
5452 PYTHON_PREFIX='${prefix}'
5454 PYTHON_EXEC_PREFIX='${exec_prefix}'
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5459 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5460 if test "${am_cv_python_platform+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5466 $as_echo "$am_cv_python_platform" >&6; }
5467 PYTHON_PLATFORM=$am_cv_python_platform
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5473 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5474 if test "${am_cv_python_pythondir+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5478 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5481 $as_echo "$am_cv_python_pythondir" >&6; }
5482 pythondir=$am_cv_python_pythondir
5486 pkgpythondir=\${pythondir}/$PACKAGE
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5490 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5491 if test "${am_cv_python_pyexecdir+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5495 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5498 $as_echo "$am_cv_python_pyexecdir" >&6; }
5499 pyexecdir=$am_cv_python_pyexecdir
5503 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5511 FOR=for
5513 IF=if
5515 TEST=test
5517 CMP=cmp
5521 # Check for some includes for the X11 HIDD and the kernel
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5525 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5526 if test "${ac_cv_path_GREP+set}" = set; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 if test -z "$GREP"; then
5530 ac_path_GREP_found=false
5531 # Loop through the user's path and test for each of PROGNAME-LIST
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_prog in grep ggrep; do
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5540 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5541 # Check for GNU ac_path_GREP and select it if it is found.
5542 # Check for GNU $ac_path_GREP
5543 case `"$ac_path_GREP" --version 2>&1` in
5544 *GNU*)
5545 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5547 ac_count=0
5548 $as_echo_n 0123456789 >"conftest.in"
5549 while :
5551 cat "conftest.in" "conftest.in" >"conftest.tmp"
5552 mv "conftest.tmp" "conftest.in"
5553 cp "conftest.in" "conftest.nl"
5554 $as_echo 'GREP' >> "conftest.nl"
5555 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5557 as_fn_arith $ac_count + 1 && ac_count=$as_val
5558 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5559 # Best one so far, save it but keep looking for a better one
5560 ac_cv_path_GREP="$ac_path_GREP"
5561 ac_path_GREP_max=$ac_count
5563 # 10*(2^10) chars as input seems more than enough
5564 test $ac_count -gt 10 && break
5565 done
5566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5567 esac
5569 $ac_path_GREP_found && break 3
5570 done
5571 done
5572 done
5573 IFS=$as_save_IFS
5574 if test -z "$ac_cv_path_GREP"; then
5575 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5577 else
5578 ac_cv_path_GREP=$GREP
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5583 $as_echo "$ac_cv_path_GREP" >&6; }
5584 GREP="$ac_cv_path_GREP"
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5588 $as_echo_n "checking for egrep... " >&6; }
5589 if test "${ac_cv_path_EGREP+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5593 then ac_cv_path_EGREP="$GREP -E"
5594 else
5595 if test -z "$EGREP"; then
5596 ac_path_EGREP_found=false
5597 # Loop through the user's path and test for each of PROGNAME-LIST
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_prog in egrep; do
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5606 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5607 # Check for GNU ac_path_EGREP and select it if it is found.
5608 # Check for GNU $ac_path_EGREP
5609 case `"$ac_path_EGREP" --version 2>&1` in
5610 *GNU*)
5611 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5613 ac_count=0
5614 $as_echo_n 0123456789 >"conftest.in"
5615 while :
5617 cat "conftest.in" "conftest.in" >"conftest.tmp"
5618 mv "conftest.tmp" "conftest.in"
5619 cp "conftest.in" "conftest.nl"
5620 $as_echo 'EGREP' >> "conftest.nl"
5621 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5623 as_fn_arith $ac_count + 1 && ac_count=$as_val
5624 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5625 # Best one so far, save it but keep looking for a better one
5626 ac_cv_path_EGREP="$ac_path_EGREP"
5627 ac_path_EGREP_max=$ac_count
5629 # 10*(2^10) chars as input seems more than enough
5630 test $ac_count -gt 10 && break
5631 done
5632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5633 esac
5635 $ac_path_EGREP_found && break 3
5636 done
5637 done
5638 done
5639 IFS=$as_save_IFS
5640 if test -z "$ac_cv_path_EGREP"; then
5641 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5643 else
5644 ac_cv_path_EGREP=$EGREP
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5650 $as_echo "$ac_cv_path_EGREP" >&6; }
5651 EGREP="$ac_cv_path_EGREP"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5655 $as_echo_n "checking for ANSI C header files... " >&6; }
5656 if test "${ac_cv_header_stdc+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <stdlib.h>
5662 #include <stdarg.h>
5663 #include <string.h>
5664 #include <float.h>
5667 main ()
5671 return 0;
5673 _ACEOF
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 ac_cv_header_stdc=yes
5676 else
5677 ac_cv_header_stdc=no
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 if test $ac_cv_header_stdc = yes; then
5682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 #include <string.h>
5687 _ACEOF
5688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5689 $EGREP "memchr" >/dev/null 2>&1; then :
5691 else
5692 ac_cv_header_stdc=no
5694 rm -f conftest*
5698 if test $ac_cv_header_stdc = yes; then
5699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #include <stdlib.h>
5704 _ACEOF
5705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5706 $EGREP "free" >/dev/null 2>&1; then :
5708 else
5709 ac_cv_header_stdc=no
5711 rm -f conftest*
5715 if test $ac_cv_header_stdc = yes; then
5716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5717 if test "$cross_compiling" = yes; then :
5719 else
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #include <ctype.h>
5723 #include <stdlib.h>
5724 #if ((' ' & 0x0FF) == 0x020)
5725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5727 #else
5728 # define ISLOWER(c) \
5729 (('a' <= (c) && (c) <= 'i') \
5730 || ('j' <= (c) && (c) <= 'r') \
5731 || ('s' <= (c) && (c) <= 'z'))
5732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5733 #endif
5735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5737 main ()
5739 int i;
5740 for (i = 0; i < 256; i++)
5741 if (XOR (islower (i), ISLOWER (i))
5742 || toupper (i) != TOUPPER (i))
5743 return 2;
5744 return 0;
5746 _ACEOF
5747 if ac_fn_c_try_run "$LINENO"; then :
5749 else
5750 ac_cv_header_stdc=no
5752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5753 conftest.$ac_objext conftest.beam conftest.$ac_ext
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5759 $as_echo "$ac_cv_header_stdc" >&6; }
5760 if test $ac_cv_header_stdc = yes; then
5762 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5768 inttypes.h stdint.h unistd.h
5769 do :
5770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5771 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5773 eval as_val=\$$as_ac_Header
5774 if test "x$as_val" = x""yes; then :
5775 cat >>confdefs.h <<_ACEOF
5776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5777 _ACEOF
5781 done
5784 for ac_header in sys/ipc.h sys/shm.h \
5785 sys/mmap.h sys/mman.h sysexits.h \
5786 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5788 do :
5789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5790 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5791 eval as_val=\$$as_ac_Header
5792 if test "x$as_val" = x""yes; then :
5793 cat >>confdefs.h <<_ACEOF
5794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5795 _ACEOF
5799 done
5802 for ac_header in sys/mount.h
5803 do :
5804 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5806 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5807 cat >>confdefs.h <<_ACEOF
5808 #define HAVE_SYS_MOUNT_H 1
5809 _ACEOF
5813 done
5816 ac_header_dirent=no
5817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5818 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5820 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 #include <sys/types.h>
5827 #include <$ac_hdr>
5830 main ()
5832 if ((DIR *) 0)
5833 return 0;
5835 return 0;
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"; then :
5839 eval "$as_ac_Header=yes"
5840 else
5841 eval "$as_ac_Header=no"
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 eval ac_res=\$$as_ac_Header
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5847 $as_echo "$ac_res" >&6; }
5848 eval as_val=\$$as_ac_Header
5849 if test "x$as_val" = x""yes; then :
5850 cat >>confdefs.h <<_ACEOF
5851 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5852 _ACEOF
5854 ac_header_dirent=$ac_hdr; break
5857 done
5858 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5859 if test $ac_header_dirent = dirent.h; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5861 $as_echo_n "checking for library containing opendir... " >&6; }
5862 if test "${ac_cv_search_opendir+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 ac_func_search_save_LIBS=$LIBS
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5869 /* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 char opendir ();
5877 main ()
5879 return opendir ();
5881 return 0;
5883 _ACEOF
5884 for ac_lib in '' dir; do
5885 if test -z "$ac_lib"; then
5886 ac_res="none required"
5887 else
5888 ac_res=-l$ac_lib
5889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5891 if ac_fn_c_try_link "$LINENO"; then :
5892 ac_cv_search_opendir=$ac_res
5894 rm -f core conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext
5896 if test "${ac_cv_search_opendir+set}" = set; then :
5897 break
5899 done
5900 if test "${ac_cv_search_opendir+set}" = set; then :
5902 else
5903 ac_cv_search_opendir=no
5905 rm conftest.$ac_ext
5906 LIBS=$ac_func_search_save_LIBS
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5909 $as_echo "$ac_cv_search_opendir" >&6; }
5910 ac_res=$ac_cv_search_opendir
5911 if test "$ac_res" != no; then :
5912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5918 $as_echo_n "checking for library containing opendir... " >&6; }
5919 if test "${ac_cv_search_opendir+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 ac_func_search_save_LIBS=$LIBS
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5926 /* Override any GCC internal prototype to avoid an error.
5927 Use char because int might match the return type of a GCC
5928 builtin and then its argument prototype would still apply. */
5929 #ifdef __cplusplus
5930 extern "C"
5931 #endif
5932 char opendir ();
5934 main ()
5936 return opendir ();
5938 return 0;
5940 _ACEOF
5941 for ac_lib in '' x; do
5942 if test -z "$ac_lib"; then
5943 ac_res="none required"
5944 else
5945 ac_res=-l$ac_lib
5946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5948 if ac_fn_c_try_link "$LINENO"; then :
5949 ac_cv_search_opendir=$ac_res
5951 rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext
5953 if test "${ac_cv_search_opendir+set}" = set; then :
5954 break
5956 done
5957 if test "${ac_cv_search_opendir+set}" = set; then :
5959 else
5960 ac_cv_search_opendir=no
5962 rm conftest.$ac_ext
5963 LIBS=$ac_func_search_save_LIBS
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5966 $as_echo "$ac_cv_search_opendir" >&6; }
5967 ac_res=$ac_cv_search_opendir
5968 if test "$ac_res" != no; then :
5969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5976 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5977 if test "${ac_cv_header_stat_broken+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 #include <sys/types.h>
5983 #include <sys/stat.h>
5985 #if defined S_ISBLK && defined S_IFDIR
5986 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5987 #endif
5989 #if defined S_ISBLK && defined S_IFCHR
5990 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5991 #endif
5993 #if defined S_ISLNK && defined S_IFREG
5994 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5995 #endif
5997 #if defined S_ISSOCK && defined S_IFREG
5998 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5999 #endif
6001 _ACEOF
6002 if ac_fn_c_try_compile "$LINENO"; then :
6003 ac_cv_header_stat_broken=no
6004 else
6005 ac_cv_header_stat_broken=yes
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6010 $as_echo "$ac_cv_header_stat_broken" >&6; }
6011 if test $ac_cv_header_stat_broken = yes; then
6013 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6018 $as_echo_n "checking for ANSI C header files... " >&6; }
6019 if test "${ac_cv_header_stdc+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <stdlib.h>
6025 #include <stdarg.h>
6026 #include <string.h>
6027 #include <float.h>
6030 main ()
6034 return 0;
6036 _ACEOF
6037 if ac_fn_c_try_compile "$LINENO"; then :
6038 ac_cv_header_stdc=yes
6039 else
6040 ac_cv_header_stdc=no
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 if test $ac_cv_header_stdc = yes; then
6045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 #include <string.h>
6050 _ACEOF
6051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6052 $EGREP "memchr" >/dev/null 2>&1; then :
6054 else
6055 ac_cv_header_stdc=no
6057 rm -f conftest*
6061 if test $ac_cv_header_stdc = yes; then
6062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 #include <stdlib.h>
6067 _ACEOF
6068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069 $EGREP "free" >/dev/null 2>&1; then :
6071 else
6072 ac_cv_header_stdc=no
6074 rm -f conftest*
6078 if test $ac_cv_header_stdc = yes; then
6079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6080 if test "$cross_compiling" = yes; then :
6082 else
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #include <ctype.h>
6086 #include <stdlib.h>
6087 #if ((' ' & 0x0FF) == 0x020)
6088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6090 #else
6091 # define ISLOWER(c) \
6092 (('a' <= (c) && (c) <= 'i') \
6093 || ('j' <= (c) && (c) <= 'r') \
6094 || ('s' <= (c) && (c) <= 'z'))
6095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6096 #endif
6098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6100 main ()
6102 int i;
6103 for (i = 0; i < 256; i++)
6104 if (XOR (islower (i), ISLOWER (i))
6105 || toupper (i) != TOUPPER (i))
6106 return 2;
6107 return 0;
6109 _ACEOF
6110 if ac_fn_c_try_run "$LINENO"; then :
6112 else
6113 ac_cv_header_stdc=no
6115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6116 conftest.$ac_objext conftest.beam conftest.$ac_ext
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6122 $as_echo "$ac_cv_header_stdc" >&6; }
6123 if test $ac_cv_header_stdc = yes; then
6125 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6130 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6131 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 #include <sys/types.h>
6137 #include <sys/wait.h>
6138 #ifndef WEXITSTATUS
6139 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6140 #endif
6141 #ifndef WIFEXITED
6142 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6143 #endif
6146 main ()
6148 int s;
6149 wait (&s);
6150 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6152 return 0;
6154 _ACEOF
6155 if ac_fn_c_try_compile "$LINENO"; then :
6156 ac_cv_header_sys_wait_h=yes
6157 else
6158 ac_cv_header_sys_wait_h=no
6160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6163 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6164 if test $ac_cv_header_sys_wait_h = yes; then
6166 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6171 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6172 if test "${ac_cv_header_time+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177 #include <sys/types.h>
6178 #include <sys/time.h>
6179 #include <time.h>
6182 main ()
6184 if ((struct tm *) 0)
6185 return 0;
6187 return 0;
6189 _ACEOF
6190 if ac_fn_c_try_compile "$LINENO"; then :
6191 ac_cv_header_time=yes
6192 else
6193 ac_cv_header_time=no
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6198 $as_echo "$ac_cv_header_time" >&6; }
6199 if test $ac_cv_header_time = yes; then
6201 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6205 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6206 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6210 _ACEOF
6213 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6218 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6219 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6223 _ACEOF
6226 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6228 else
6229 case " $LIBOBJS " in
6230 *" fileblocks.$ac_objext "* ) ;;
6231 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6233 esac
6238 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6239 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6241 cat >>confdefs.h <<_ACEOF
6242 #define HAVE_STRUCT_STAT_ST_RDEV 1
6243 _ACEOF
6246 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6252 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6253 if test "${ac_cv_struct_tm+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 #include <sys/types.h>
6259 #include <time.h>
6262 main ()
6264 struct tm tm;
6265 int *p = &tm.tm_sec;
6266 return !p;
6268 return 0;
6270 _ACEOF
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272 ac_cv_struct_tm=time.h
6273 else
6274 ac_cv_struct_tm=sys/time.h
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6279 $as_echo "$ac_cv_struct_tm" >&6; }
6280 if test $ac_cv_struct_tm = sys/time.h; then
6282 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6286 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6287 #include <$ac_cv_struct_tm>
6290 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6292 cat >>confdefs.h <<_ACEOF
6293 #define HAVE_STRUCT_TM_TM_ZONE 1
6294 _ACEOF
6299 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6301 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6303 else
6304 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6306 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6307 ac_have_decl=1
6308 else
6309 ac_have_decl=0
6312 cat >>confdefs.h <<_ACEOF
6313 #define HAVE_DECL_TZNAME $ac_have_decl
6314 _ACEOF
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6317 $as_echo_n "checking for tzname... " >&6; }
6318 if test "${ac_cv_var_tzname+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6323 #include <time.h>
6324 #if !HAVE_DECL_TZNAME
6325 extern char *tzname[];
6326 #endif
6329 main ()
6331 return tzname[0][0];
6333 return 0;
6335 _ACEOF
6336 if ac_fn_c_try_link "$LINENO"; then :
6337 ac_cv_var_tzname=yes
6338 else
6339 ac_cv_var_tzname=no
6341 rm -f core conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6345 $as_echo "$ac_cv_var_tzname" >&6; }
6346 if test $ac_cv_var_tzname = yes; then
6348 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6353 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6354 if test "x$ac_cv_type_off_t" = x""yes; then :
6356 else
6358 cat >>confdefs.h <<_ACEOF
6359 #define off_t long int
6360 _ACEOF
6364 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6365 if test "x$ac_cv_type_pid_t" = x""yes; then :
6367 else
6369 cat >>confdefs.h <<_ACEOF
6370 #define pid_t int
6371 _ACEOF
6375 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6376 if test "x$ac_cv_type_size_t" = x""yes; then :
6378 else
6380 cat >>confdefs.h <<_ACEOF
6381 #define size_t unsigned int
6382 _ACEOF
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6387 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6388 if test "${ac_cv_type_uid_t+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 #include <sys/types.h>
6395 _ACEOF
6396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397 $EGREP "uid_t" >/dev/null 2>&1; then :
6398 ac_cv_type_uid_t=yes
6399 else
6400 ac_cv_type_uid_t=no
6402 rm -f conftest*
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6406 $as_echo "$ac_cv_type_uid_t" >&6; }
6407 if test $ac_cv_type_uid_t = no; then
6409 $as_echo "#define uid_t int" >>confdefs.h
6412 $as_echo "#define gid_t int" >>confdefs.h
6417 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6418 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6420 cat >>confdefs.h <<_ACEOF
6421 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6422 _ACEOF
6428 # Look for some functions
6429 for ac_func in getpagesize kqueue statfs statvfs \
6430 clone kse_create rfork_thread thr_create sa_register \
6431 getcontext makecontext setcontext sigaltstack swapcontext
6432 do :
6433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6435 eval as_val=\$$as_ac_var
6436 if test "x$as_val" = x""yes; then :
6437 cat >>confdefs.h <<_ACEOF
6438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6439 _ACEOF
6442 done
6448 for ac_header in $ac_header_list
6449 do :
6450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6451 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6453 eval as_val=\$$as_ac_Header
6454 if test "x$as_val" = x""yes; then :
6455 cat >>confdefs.h <<_ACEOF
6456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6457 _ACEOF
6461 done
6470 for ac_func in getpagesize
6471 do :
6472 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6473 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6474 cat >>confdefs.h <<_ACEOF
6475 #define HAVE_GETPAGESIZE 1
6476 _ACEOF
6479 done
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6482 $as_echo_n "checking for working mmap... " >&6; }
6483 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 if test "$cross_compiling" = yes; then :
6487 ac_cv_func_mmap_fixed_mapped=no
6488 else
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 $ac_includes_default
6492 /* malloc might have been renamed as rpl_malloc. */
6493 #undef malloc
6495 /* Thanks to Mike Haertel and Jim Avera for this test.
6496 Here is a matrix of mmap possibilities:
6497 mmap private not fixed
6498 mmap private fixed at somewhere currently unmapped
6499 mmap private fixed at somewhere already mapped
6500 mmap shared not fixed
6501 mmap shared fixed at somewhere currently unmapped
6502 mmap shared fixed at somewhere already mapped
6503 For private mappings, we should verify that changes cannot be read()
6504 back from the file, nor mmap's back from the file at a different
6505 address. (There have been systems where private was not correctly
6506 implemented like the infamous i386 svr4.0, and systems where the
6507 VM page cache was not coherent with the file system buffer cache
6508 like early versions of FreeBSD and possibly contemporary NetBSD.)
6509 For shared mappings, we should conversely verify that changes get
6510 propagated back to all the places they're supposed to be.
6512 Grep wants private fixed already mapped.
6513 The main things grep needs to know about mmap are:
6514 * does it exist and is it safe to write into the mmap'd area
6515 * how to use it (BSD variants) */
6517 #include <fcntl.h>
6518 #include <sys/mman.h>
6520 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6521 char *malloc ();
6522 #endif
6524 /* This mess was copied from the GNU getpagesize.h. */
6525 #ifndef HAVE_GETPAGESIZE
6526 # ifdef _SC_PAGESIZE
6527 # define getpagesize() sysconf(_SC_PAGESIZE)
6528 # else /* no _SC_PAGESIZE */
6529 # ifdef HAVE_SYS_PARAM_H
6530 # include <sys/param.h>
6531 # ifdef EXEC_PAGESIZE
6532 # define getpagesize() EXEC_PAGESIZE
6533 # else /* no EXEC_PAGESIZE */
6534 # ifdef NBPG
6535 # define getpagesize() NBPG * CLSIZE
6536 # ifndef CLSIZE
6537 # define CLSIZE 1
6538 # endif /* no CLSIZE */
6539 # else /* no NBPG */
6540 # ifdef NBPC
6541 # define getpagesize() NBPC
6542 # else /* no NBPC */
6543 # ifdef PAGESIZE
6544 # define getpagesize() PAGESIZE
6545 # endif /* PAGESIZE */
6546 # endif /* no NBPC */
6547 # endif /* no NBPG */
6548 # endif /* no EXEC_PAGESIZE */
6549 # else /* no HAVE_SYS_PARAM_H */
6550 # define getpagesize() 8192 /* punt totally */
6551 # endif /* no HAVE_SYS_PARAM_H */
6552 # endif /* no _SC_PAGESIZE */
6554 #endif /* no HAVE_GETPAGESIZE */
6557 main ()
6559 char *data, *data2, *data3;
6560 int i, pagesize;
6561 int fd, fd2;
6563 pagesize = getpagesize ();
6565 /* First, make a file with some known garbage in it. */
6566 data = (char *) malloc (pagesize);
6567 if (!data)
6568 return 1;
6569 for (i = 0; i < pagesize; ++i)
6570 *(data + i) = rand ();
6571 umask (0);
6572 fd = creat ("conftest.mmap", 0600);
6573 if (fd < 0)
6574 return 2;
6575 if (write (fd, data, pagesize) != pagesize)
6576 return 3;
6577 close (fd);
6579 /* Next, check that the tail of a page is zero-filled. File must have
6580 non-zero length, otherwise we risk SIGBUS for entire page. */
6581 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6582 if (fd2 < 0)
6583 return 4;
6584 data2 = "";
6585 if (write (fd2, data2, 1) != 1)
6586 return 5;
6587 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6588 if (data2 == MAP_FAILED)
6589 return 6;
6590 for (i = 0; i < pagesize; ++i)
6591 if (*(data2 + i))
6592 return 7;
6593 close (fd2);
6594 if (munmap (data2, pagesize))
6595 return 8;
6597 /* Next, try to mmap the file at a fixed address which already has
6598 something else allocated at it. If we can, also make sure that
6599 we see the same garbage. */
6600 fd = open ("conftest.mmap", O_RDWR);
6601 if (fd < 0)
6602 return 9;
6603 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6605 return 10;
6606 for (i = 0; i < pagesize; ++i)
6607 if (*(data + i) != *(data2 + i))
6608 return 11;
6610 /* Finally, make sure that changes to the mapped area do not
6611 percolate back to the file as seen by read(). (This is a bug on
6612 some variants of i386 svr4.0.) */
6613 for (i = 0; i < pagesize; ++i)
6614 *(data2 + i) = *(data2 + i) + 1;
6615 data3 = (char *) malloc (pagesize);
6616 if (!data3)
6617 return 12;
6618 if (read (fd, data3, pagesize) != pagesize)
6619 return 13;
6620 for (i = 0; i < pagesize; ++i)
6621 if (*(data + i) != *(data3 + i))
6622 return 14;
6623 close (fd);
6624 return 0;
6626 _ACEOF
6627 if ac_fn_c_try_run "$LINENO"; then :
6628 ac_cv_func_mmap_fixed_mapped=yes
6629 else
6630 ac_cv_func_mmap_fixed_mapped=no
6632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6633 conftest.$ac_objext conftest.beam conftest.$ac_ext
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6638 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6639 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6641 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6644 rm -f conftest.mmap conftest.txt
6649 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6650 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6651 aros_config_ldflags=""
6653 aros_shared_default=yes
6655 aros_shared_cflags="-fPIC"
6656 aros_shared_aflags=""
6657 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6658 aros_kernel_ldflags="-Wl,-rpath,./lib"
6660 aros_kernel_ar_flags="cr"
6661 aros_target_ar_flags="cr"
6662 aros_target_nm_flags="-C -ul"
6663 aros_target_strip_flags="--strip-unneeded -R.comment"
6665 aros_compiler_libs=
6666 aros_arch_libs=
6668 aros_target_genmap="-Wl,-Map -Xlinker"
6670 # Native flavour stuff
6671 aros_serial_debug="0"
6673 # Palm native flavour stuff
6674 aros_palm_debug_hack="0"
6676 # Unix flavour stuff
6677 aros_nesting_supervisor="0"
6679 # Collect-aros stuff: "-ius" to ignore undefined symbols
6680 ignore_undefined_symbols=""
6682 # Check for X11 by default
6683 need_x11="auto"
6685 #-----------------------------------------------------------------------------
6688 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6689 # it switched on by default, and we use the host compiler, so it compiles AROS
6690 # code with this enabled resulting in link failures as we don't have support
6691 # for it.
6693 # We use two methods to disable it. For the host compiler (used to compile
6694 # some hosted modules), we test to see if the compiler supports stack
6695 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6696 # work on all platforms.
6698 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6699 # (this is done unconditionally, as it should have no effect on compilers
6700 # without the stack protection feature). This may be specific to the way that
6701 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6702 # strong enough to disable it in a generic way though, so we'll live with it
6703 # until another vendor ships GCC with it enabled in a different way, and deal
6704 # with it then.
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6708 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6709 save_cflags="$CFLAGS"
6710 CFLAGS="$CFLAGS -fno-stack-protector"
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6715 main ()
6719 return 0;
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"; then :
6723 use_no_stack_protector="yes"
6724 else
6725 use_no_stack_protector="no"
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6729 $as_echo "$use_no_stack_protector" >&6; }
6730 if test "x-$use_no_stack_protector" = "x-yes" ; then
6731 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6733 CFLAGS="$save_cflags"
6735 #-----------------------------------------------------------------------------
6737 # Disable pointer-signedness warnings if the compiler recognises the option
6738 # (this only works for the host compiler at the moment)
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6741 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6742 save_cflags="$CFLAGS"
6743 CFLAGS="$CFLAGS -Wno-pointer-sign"
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6748 main ()
6752 return 0;
6754 _ACEOF
6755 if ac_fn_c_try_compile "$LINENO"; then :
6756 use_no_sign_warning="yes"
6757 else
6758 use_no_sign_warning="no"
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6762 $as_echo "$use_no_sign_warning" >&6; }
6763 if test "x-$use_no_sign_warning" = "x-yes" ; then
6764 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6766 CFLAGS="$save_cflags"
6768 #-----------------------------------------------------------------------------
6770 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6773 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6774 save_cflags="$CFLAGS"
6775 CFLAGS="$CFLAGS -fgnu89-inline"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6780 main ()
6784 return 0;
6786 _ACEOF
6787 if ac_fn_c_try_compile "$LINENO"; then :
6788 use_gnu89_inline="yes"
6789 else
6790 use_gnu89_inline="no"
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6794 $as_echo "$use_gnu89_inline" >&6; }
6795 if test "x-$use_gnu89_inline" = "x-yes" ; then
6796 gnu89_inline="-fgnu89-inline"
6798 CFLAGS="$save_cflags"
6800 #-----------------------------------------------------------------------------
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6803 $as_echo_n "checking for type of build... " >&6; }
6804 # Check whether --enable-build_type was given.
6805 if test "${enable_build_type+set}" = set; then :
6806 enableval=$enable_build_type; build_type=$enableval
6807 else
6808 build_type="personal"
6812 if test "$build_type" = "nightly"; then
6813 build_type_string="NIGHTLY"
6814 elif test "$build_type" = "snapshot"; then
6815 build_type_string="SNAPSHOT"
6816 elif test "$build_type" = "milestone"; then
6817 build_type_string="MILESTONE"
6818 elif test "$build_type" = "release"; then
6819 build_type_string="RELEASE"
6820 else
6821 build_type_string="PERSONAL"
6822 build_type="personal"
6825 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6828 $as_echo "$build_type" >&6; }
6830 #-----------------------------------------------------------------------------
6831 all_debug_types="messages stack modules mungwall symbols"
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6834 $as_echo_n "checking which debug types to enable... " >&6; }
6835 # Check whether --enable-debug was given.
6836 if test "${enable_debug+set}" = set; then :
6837 enableval=$enable_debug; debug="$enableval"
6838 else
6839 debug=""
6843 if test "$debug" = "" -o "$debug" = "no"; then
6844 debug="none"
6845 elif test "$debug" = "yes"; then
6846 debug="all"
6849 if test "$debug" = "all" ; then
6850 debug="messages stack modules symbols"
6851 for d in $all_debug_types; do
6852 export aros_${d}_debug="1"
6853 done
6854 else
6855 for d in $all_debug_types; do
6856 export aros_${d}_debug="0"
6857 done
6860 if test "$debug" != "none"; then
6861 debug=`echo $debug | sed s/,/\ /g`
6862 for d in $debug; do
6863 found="0"
6864 for d2 in $all_debug_types; do
6865 if test "$d2" = "$d"; then
6866 found="1"
6867 break
6869 done
6870 if test "$found" = "0"; then
6871 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6873 export aros_${d}_debug="1"
6874 done
6875 aros_debug="yes"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6878 $as_echo "$debug" >&6; }
6880 if test "$aros_messages_debug" = "1"; then
6881 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6882 else
6883 aros_messages_debug=""
6885 if test "$aros_symbols_debug" = "1"; then
6886 aros_symbols_debug="-g"
6887 else
6888 aros_symbols_debug=""
6891 # These are the flags to pass when compiling debugged programs
6892 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6893 aros_debug_aflags=""
6894 aros_debug_ldflags="$aros_symbols_debug"
6896 #-----------------------------------------------------------------------------
6897 # Checking if we should build crosstools..
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6899 $as_echo_n "checking whether to build crosstools... " >&6; }
6900 # Check whether --enable-crosstools was given.
6901 if test "${enable_crosstools+set}" = set; then :
6902 enableval=$enable_crosstools; crosstools="$enableval"
6903 else
6904 crosstools="no"
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6908 $as_echo "$crosstools" >&6; }
6910 #-----------------------------------------------------------------------------
6911 # Checking for distcc and ccache.
6913 # Always apply the transforms in this particular order. Basically you should
6914 # always run 'ccache distcc compiler' in that order for the best performance.
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6917 $as_echo_n "checking whether to enable distcc... " >&6; }
6918 # Check whether --enable-distcc was given.
6919 if test "${enable_distcc+set}" = set; then :
6920 enableval=$enable_distcc; distcc="$enableval"
6921 else
6922 distcc="no"
6925 if test "$distcc" != "" -a "$distcc" != "no"; then
6926 # AC_CHECK_PROG will print out the result in this case
6927 # Extract the first word of "distcc", so it can be a program name with args.
6928 set dummy distcc; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if test "${ac_cv_path_DISTCC+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 case $DISTCC in
6935 [\\/]* | ?:[\\/]*)
6936 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6950 done
6951 done
6952 IFS=$as_save_IFS
6954 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6956 esac
6958 DISTCC=$ac_cv_path_DISTCC
6959 if test -n "$DISTCC"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6961 $as_echo "$DISTCC" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6974 $as_echo_n "checking whether to enable ccache... " >&6; }
6975 # Check whether --enable-ccache was given.
6976 if test "${enable_ccache+set}" = set; then :
6977 enableval=$enable_ccache; ccache="$enableval"
6978 else
6979 ccache="no"
6982 if test "$ccache" != "" -a "$ccache" != "no"; then
6983 # AC_CHECK_PROG will print out the result in this case
6984 # Extract the first word of "ccache", so it can be a program name with args.
6985 set dummy ccache; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$CCACHE"; then
6992 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_prog_CCACHE="ccache"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7005 done
7006 done
7007 IFS=$as_save_IFS
7011 CCACHE=$ac_cv_prog_CCACHE
7012 if test -n "$CCACHE"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7014 $as_echo "$CCACHE" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7026 #-----------------------------------------------------------------------------
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7028 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7030 # Check whether --with-gcc-version was given.
7031 if test "${with_gcc_version+set}" = set; then :
7032 withval=$with_gcc_version; target_tool_version="$withval"
7033 else
7034 target_tool_version="default"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7038 $as_echo "$target_tool_version" >&6; }
7040 #-----------------------------------------------------------------------------
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7042 $as_echo_n "checking what optimization flags to use... " >&6; }
7044 # Check whether --with-optimization was given.
7045 if test "${with_optimization+set}" = set; then :
7046 withval=$with_optimization; optimization="$withval"
7047 else
7048 optimization="unknown"
7051 if test "$optimization" = "unknown"; then
7052 if test "$debug" != "none"; then
7053 optimization="-O0"
7054 else
7055 optimization="-O2"
7058 aros_config_cflags="$aros_config_cflags $optimization"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7060 $as_echo "$optimization" >&6; }
7062 #-----------------------------------------------------------------------------
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7064 $as_echo_n "checking what paranoia flags to use... " >&6; }
7066 # Check whether --with-paranoia was given.
7067 if test "${with_paranoia+set}" = set; then :
7068 withval=$with_paranoia; paranoia_flags="$withval"
7069 else
7070 paranoia_flags="default"
7073 if test "$paranoia_flags" = "default"; then
7074 paranoia_flags=""
7075 else if test "$paranoia_flags" = "yes"; then
7076 paranoia_flags="-Wall -Werror"
7077 fi fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7079 $as_echo "$paranoia_flags" >&6; }
7080 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7082 #-----------------------------------------------------------------------------
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7084 $as_echo_n "checking what target variant to enable... " >&6; }
7085 # Check whether --enable-target_variant was given.
7086 if test "${enable_target_variant+set}" = set; then :
7087 enableval=$enable_target_variant; target_variant=$enableval
7088 else
7089 target_variant=""
7092 if test "$target_variant" = ""; then
7093 aros_target_variant=""
7094 aros_target_suffix=""
7095 enableval="none"
7096 else
7097 aros_target_variant="$target_variant"
7098 aros_target_suffix="-$target_variant"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7101 $as_echo "$enableval" >&6; }
7103 #-----------------------------------------------------------------------------
7104 # Target-specific defaults. You can override then on a per-target basis.
7106 # Bootloader name. Currently used by PC target.
7107 target_bootloader="none"
7109 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7110 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7111 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7112 if test "$crosstools" != "yes"; then
7113 target_tool_prefix=${target_cpu}-elf-
7114 else
7115 target_tool_prefix=${target_cpu}-aros-
7118 #-----------------------------------------------------------------------------
7119 # Additional options for some specific targets
7121 case "$aros_target_variant" in
7122 ios)
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7124 $as_echo_n "checking XCode path... " >&6; }
7126 # Check whether --with-xcode was given.
7127 if test "${with_xcode+set}" = set; then :
7128 withval=$with_xcode; aros_xcode_path="$withval"
7129 else
7130 aros_xcode_path="/Developer"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7134 $as_echo "$aros_xcode_path" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7137 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7139 # Check whether --with-ios-version was given.
7140 if test "${with_ios_version+set}" = set; then :
7141 withval=$with_ios_version; aros_ios_version="$withval"
7142 else
7143 aros_ios_version="3.0"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7147 $as_echo "$aros_ios_version" >&6; }
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7150 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7152 # Check whether --with-ios-sdk was given.
7153 if test "${with_ios_sdk+set}" = set; then :
7154 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7155 else
7156 aros_ios_sdk="4.1"
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7160 $as_echo "$aros_ios_sdk" >&6; }
7164 "android")
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7166 $as_echo_n "checking Android SDK path... " >&6; }
7168 # Check whether --with-sdk was given.
7169 if test "${with_sdk+set}" = set; then :
7170 withval=$with_sdk; aros_android_sdk="$withval"
7171 else
7172 aros_android_sdk=$default_android_sdk
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7176 $as_echo "$aros_android_sdk" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7179 $as_echo_n "checking Android NDK path... " >&6; }
7181 # Check whether --with-ndk was given.
7182 if test "${with_ndk+set}" = set; then :
7183 withval=$with_ndk; aros_android_ndk="$withval"
7184 else
7185 aros_android_ndk="$default_android_ndk"
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7189 $as_echo "$aros_android_ndk" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7192 $as_echo_n "checking what Android SDK version to use... " >&6; }
7194 # Check whether --with-sdk-version was given.
7195 if test "${with_sdk_version+set}" = set; then :
7196 withval=$with_sdk_version; aros_sdk_version="$withval"
7197 else
7198 aros_sdk_version="8"
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7202 $as_echo "$aros_sdk_version" >&6; }
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7205 $as_echo_n "checking what Android NDK version to use... " >&6; }
7207 # Check whether --with-ndk-version was given.
7208 if test "${with_ndk_version+set}" = set; then :
7209 withval=$with_ndk_version; aros_ndk_version="$withval"
7210 else
7211 aros_ndk_version="9"
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7215 $as_echo "$aros_ndk_version" >&6; }
7217 export PATH="$aros_android_sdk/tools:$PATH"
7218 # Extract the first word of "$android_tool", so it can be a program name with args.
7219 set dummy $android_tool; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_path_android_tool+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 case $android_tool in
7226 [\\/]* | ?:[\\/]*)
7227 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7241 done
7242 done
7243 IFS=$as_save_IFS
7246 esac
7248 android_tool=$ac_cv_path_android_tool
7249 if test -n "$android_tool"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7251 $as_echo "$android_tool" >&6; }
7252 else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7258 if test "$android_tool" = ""; then
7259 as_fn_error "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7262 if test $host_os = "mingw32"; then
7263 android_tool="cmd //c $android_tool"
7267 esac
7269 #-----------------------------------------------------------------------------
7270 # This is the target configuration switch.
7271 case "$target_os" in
7272 linux*)
7273 aros_target_arch="linux"
7274 aros_target_family="unix"
7275 case "$target_cpu" in
7276 *m68k*)
7277 aros_target_cpu="m68k"
7278 aros_object_format="m68kelf"
7279 aros_flavour="emulcompat"
7280 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7281 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7282 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7283 gcc_target_cpu="mc68000"
7285 *i?86*)
7286 aros_target_cpu="i386"
7287 aros_object_format="elf_i386"
7288 aros_flavour="emulation"
7289 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7290 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7291 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7292 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7293 aros_config_ldflags="-m32 -march=i486"
7294 aros_kernel_ldflags="-melf_i386"
7295 aros_default_wbdepth=8
7296 gcc_target_cpu="i386"
7297 pci_hidd_target="hidd-pci-linux"
7299 *x86_64*)
7300 aros_target_cpu="x86_64"
7301 aros_object_format="elf_x86_64"
7302 aros_flavour="emulation"
7303 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7304 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7305 aros_default_wbdepth=8
7306 pci_hidd_target="hidd-pci-linux"
7308 *powerpc*)
7309 aros_target_cpu="ppc"
7310 aros_object_format="elf32ppc"
7311 aros_flavour="emulation"
7312 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7313 aros_default_wbdepth=8
7314 gcc_target_cpu="ppc"
7316 # TODO
7317 # Same as powerpc, but I need this for the nightly build to work again.
7318 # Actually, the nightly should be made working with powerpc target.
7319 # That just was too much work for the moment, another week or two.
7320 *ppc*)
7321 aros_target_cpu="ppc"
7322 aros_object_format="elf32ppc"
7323 aros_flavour="emulation"
7324 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7325 aros_default_wbdepth=8
7326 gcc_target_cpu="ppc"
7328 *arm*)
7329 aros_target_cpu="arm"
7330 aros_object_format="armelf_linux_eabi"
7331 aros_flavour="emulation"
7332 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7333 gcc_target_cpu="arm"
7334 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing -fno-omit-frame-pointer"
7335 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7336 aros_arch_libs="-laeabi"
7339 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7341 esac
7342 case "$aros_target_variant" in
7343 android)
7344 aros_android_level=android-$aros_sdk_version
7345 aros_default_wbwidth=320
7346 aros_default_wbheight=480
7347 use_aros_gcc="yes"
7348 if test "$aros_android_ndk" = ""; then
7349 aros_kernel_cflags="-mandroid"
7350 aros_kernel_ldflags="-mandroid"
7351 CFLAGS="-mandroid"
7352 else
7353 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7354 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-arm"
7355 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7356 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7357 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7358 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7360 need_x11=no
7361 x11_hidd_target=kernel-hidd-androidgfx-kobj
7362 target_tool_prefix="arm-linux-androideabi-"
7364 esac
7368 aros_target_arch="pc"
7369 aros_shared_default="no"
7370 target_bootloader="grub2"
7371 case "$target_cpu" in
7372 *i?86*)
7373 aros_target_cpu="i386"
7376 if test "$aros_object_format" = "" ; then
7377 aros_object_format="elf_i386"
7379 aros_flavour="standalone"
7380 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7381 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7382 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7383 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7384 aros_config_ldflags="-m32 -march=i486"
7385 aros_kernel_ldflags="-melf_i386"
7386 aros_default_wbwidth=640
7387 aros_default_wbheight=480
7388 gcc_target_cpu="i386"
7390 *x86_64*)
7391 aros_target_cpu="x86_64"
7392 aros_serial_debug=1
7393 if test "$aros_object_format" = "" ; then
7394 aros_object_format="elf_x86_64"
7396 aros_flavour="standalone"
7397 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7398 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7399 aros_kernel_ldflags=""
7400 aros_default_wbwidth=640
7401 aros_default_wbheight=480
7404 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7406 esac
7409 prep)
7410 aros_target_arch="prep"
7411 aros_shared_default="no"
7412 aros_target_cpu="ppc"
7413 aros_object_format="elf32ppc"
7414 aros_flavour="ppcnative"
7415 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7416 aros_kernel_ldflags=""
7417 aros_default_wbwidth=640
7418 aros_default_wbheight=480
7419 gcc_target_cpu="ppc"
7422 freebsd*)
7423 aros_target_arch="freebsd"
7424 aros_target_family="unix"
7425 aros_target_cpu="i386"
7426 aros_flavour="emulation"
7427 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7428 gcc_target_cpu="i386"
7430 aros_target_strip_flags="-x"
7433 darwin*)
7434 aros_target_arch="darwin"
7435 aros_target_family="unix"
7436 aros_flavour="emulation"
7437 case "$target_cpu" in
7438 *i?86*)
7439 aros_ios_platform="iPhoneSimulator"
7440 aros_target_cpu="i386"
7441 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7442 aros_kernel_ldflags=""
7443 aros_macosx_version="10.4"
7444 aros_default_wbdepth=8
7445 gcc_target_cpu="i386"
7446 aros_object_format="elf_i386"
7447 aros_kernel_ar_flags="-cr"
7448 aros_target_strip_flags="-x"
7449 target_tool_prefix="i686-apple-darwin10-"
7450 target_tool_flags="-m32"
7452 *x86_64*)
7453 aros_target_cpu="x86_64"
7454 aros_object_format="elf_x86_64"
7455 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7456 aros_macosx_version="10.6"
7457 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7458 aros_kernel_cflags="-m64"
7459 aros_kernel_ldflags="-m64"
7460 aros_target_cflags="-mcmodel=large"
7461 aros_default_wbdepth=8
7462 aros_kernel_ar="ar"
7463 aros_kernel_ar_flags="-cr"
7464 aros_kernel_ld="ld"
7465 aros_kernel_ranlib="ranlib"
7466 target_tool_prefix="i686-apple-darwin10-"
7468 *ppc*)
7469 aros_target_cpu="ppc"
7470 aros_object_format="elf32ppc"
7471 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7472 aros_kernel_ldflags=""
7473 aros_macosx_version="10.0"
7474 aros_default_wbdepth=8
7475 gcc_target_cpu="ppc"
7476 aros_kernel_ar="ar"
7477 aros_kernel_ar_flags="-cr"
7478 aros_kernel_ld="ld -arch ppc"
7479 aros_kernel_ranlib="ranlib -arch ppc"
7480 target_tool_prefix="powerpc-apple-darwin10-"
7482 *arm*)
7483 aros_ios_platform="iPhoneOS"
7484 aros_target_cpu="arm"
7485 aros_object_format="armelf_linux_eabi"
7486 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7487 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7488 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7489 aros_arch_libs="-laeabi"
7490 aros_default_wbdepth=8
7491 gcc_target_cpu="arm"
7492 aros_kernel_ar="ar"
7493 aros_kernel_ar_flags="-cr"
7494 aros_kernel_ld="ld -arch arm"
7495 aros_kernel_ranlib="ranlib -arch arm"
7496 target_tool_prefix="arm-apple-darwin10-"
7497 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7500 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7502 esac
7503 case "$aros_target_variant" in
7504 ios)
7505 aros_default_wbwidth=320
7506 aros_default_wbheight=480
7507 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7508 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7509 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7510 need_x11=no
7511 # This is here because it may depend on iOS or SDK version
7512 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7513 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7514 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7517 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7518 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7520 esac
7523 dragonfly*)
7524 aros_target_arch="dragonfly"
7525 aros_target_family="unix"
7526 aros_flavour="emulation"
7527 case "$target_cpu" in
7528 *i?86*)
7529 aros_target_cpu="i386"
7530 aros_object_format="elf_i386"
7531 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7533 *x86_64*)
7534 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7535 aros_target_cpu="x86_64"
7536 aros_object_format="elf_x86_64"
7537 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7540 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7542 esac
7545 netbsd*)
7546 aros_target_arch="netbsd"
7547 aros_target_family="unix"
7548 case "$target_cpu" in
7549 *m68k*)
7550 aros_target_cpu="m68k"
7551 aros_object_format="m68kelf"
7552 aros_flavour="emulcompat"
7553 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7554 gcc_target_cpu="mc68000"
7556 *i?86*)
7557 aros_target_cpu="i386"
7558 aros_object_format="elf_i386"
7559 aros_flavour="emulation"
7560 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7561 aros_default_wbdepth=8
7562 gcc_target_cpu="i386"
7565 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7567 esac
7568 aros_target_genmap="-Wl,-M -Xlinker >"
7569 aros_flavour="emulation"
7570 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7573 openbsd*)
7574 aros_target_arch="openbsd"
7575 aros_target_family="unix"
7576 case "$target_cpu" in
7577 *i?86*)
7578 aros_target_cpu="i386"
7579 aros_object_format="elf_i386"
7580 aros_flavour="emulation"
7581 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7582 gcc_target_cpu="i386"
7585 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7587 esac
7588 aros_target_genmap="-Wl,-M -Xlinker >"
7589 aros_target_nm_flags="-u"
7590 aros_flavour="emulation"
7593 solaris*)
7594 aros_target_arch="solaris"
7595 aros_target_family="unix"
7596 case "$target_cpu" in
7597 *i?86*)
7598 aros_target_cpu="i386"
7599 aros_object_format="elf_i386"
7600 aros_flavour="emulation"
7601 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7602 aros_default_wbdepth=8
7603 gcc_target_cpu="i386"
7605 *sparc*)
7606 aros_target_cpu="sparc"
7607 aros_object_format="elf_sparc"
7608 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7609 gcc_target_cpu="sparc"
7612 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7614 esac
7615 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7616 aros_flavour="emulation"
7619 morphos*)
7620 aros_target_arch="morphos"
7621 aros_shared_default="no"
7622 aros_target_cpu="ppc"
7623 aros_object_format="elf_ppc"
7624 aros_flavour="nativecompat"
7625 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7626 gcc_target_cpu="ppc"
7629 sam440)
7630 aros_target_arch="sam440"
7631 aros_shared_default="no"
7632 aros_target_cpu="ppc"
7633 aros_object_format="elf32ppc"
7634 aros_flavour="ppcnative"
7635 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7636 aros_kernel_ldflags=""
7637 aros_default_wbwidth=1024
7638 aros_default_wbheight=768
7639 aros_default_wbdepth=24
7640 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7641 gcc_target_cpu="powerpc"
7644 efika)
7645 aros_target_arch="efika"
7646 aros_shared_default="no"
7647 aros_target_cpu="arm"
7648 aros_object_format="armelf_linux_eabi"
7649 aros_flavour="standalone"
7650 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7651 aros_kernel_ldflags=""
7652 aros_default_wbwidth=1024
7653 aros_default_wbheight=600
7654 aros_arch_libs="-laeabi"
7655 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7656 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7659 chrp)
7660 aros_target_arch="chrp"
7661 aros_shared_default="no"
7662 aros_target_cpu="ppc"
7663 aros_object_format="elf32ppc"
7664 aros_flavour="ppcnative"
7665 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7666 aros_kernel_ldflags=""
7667 aros_default_wbwidth=640
7668 aros_default_wbheight=480
7669 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7670 gcc_target_cpu="powerpc"
7671 case "$aros_target_variant" in
7672 efika)
7673 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7675 esac
7678 amiga*)
7679 aros_target_arch="amiga"
7680 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7681 aros_shared_default="no"
7683 case "$target_cpu" in
7684 *m68k*)
7685 # Check whether --enable-amigaos_compliance was given.
7686 if test "${enable_amigaos_compliance+set}" = set; then :
7687 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7690 aros_enable_mmu=no
7691 aros_target_cpu="m68k"
7692 aros_object_format="m68kelf"
7693 aros_flavour="standcompat"
7694 gcc_target_cpu="m68000"
7695 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7696 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7697 target_tool_prefix="m68k-elf-"
7698 # Needed to get the correct multilib
7699 aros_config_ldflags="-${gcc_target_cpu}"
7700 aros_shared_ldflags="-${gcc_target_cpu}"
7701 aros_kernel_ldflags="-${gcc_target_cpu}"
7702 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7703 aros_target_strip_flags="-R.comment --strip-debug"
7704 aros_default_wbwidth=640
7705 aros_default_wbheight=256
7706 aros_default_wbdepth=2
7708 *ppc*)
7709 aros_cpu="ppc"
7710 aros_flavour="native"
7711 gcc_target_cpu="ppc"
7714 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7716 esac
7719 mingw*)
7720 aros_target_arch="mingw32"
7721 aros_shared_default="no"
7722 aros_flavour="emulation"
7723 aros_shared_cflags=""
7724 need_dlopen="no"
7725 rescomp="windres"
7726 case "$target_cpu" in
7727 *i?86*)
7728 aros_target_cpu="i386"
7729 aros_object_format="elf_i386"
7730 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7731 aros_default_wbdepth=8
7732 gcc_target_cpu="i386"
7734 aros_target_as="i386-aros-as"
7735 aros_target_ar="i386-aros-ar"
7736 aros_target_ranlib="i386-aros-ranlib"
7737 aros_target_nm="i386-aros-nm"
7738 aros_target_strip="i386-aros-strip"
7739 aros_target_objcopy="i386-aros-objcopy"
7740 aros_target_objdump="i386-aros-objdump"
7742 target_tool_prefix="i386-mingw32-"
7744 *x86_64*)
7745 aros_target_cpu="x86_64"
7746 aros_object_format="elf_x86_64"
7747 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7748 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7749 aros_default_wbdepth=8
7750 target_tool_prefix="x86_64-w64-mingw32-"
7752 *arm*)
7753 aros_target_cpu="arm"
7754 aros_object_format="armelf_linux_eabi"
7755 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7756 aros_arch_libs="-laeabi"
7757 aros_default_wbdepth=8
7758 gcc_target_cpu="arm"
7759 target_tool_prefix="arm-mingw32ce-"
7760 aros_default_wbwidth=160
7761 aros_default_wbheight=160
7764 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7766 esac
7767 if test $host_os = "cygwin"; then
7768 aros_kernel_cflags="-mno-cygwin"
7771 pp*)
7772 aros_target_arch="pp"
7773 aros_shared_default="no"
7774 case "$target_cpu" in
7775 *m68k*)
7776 aros_target_cpu="m68k"
7777 aros_object_format="m68kelf"
7778 aros_flavour="palmnative"
7779 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7780 aros_default_wbwidth=160
7781 aros_default_wbheight=160
7782 aros_default_wbdepth=1
7783 aros_target_ar_flags="cru"
7784 aros_compiler_libs="-lgcc1"
7785 aros_shared_default=no
7786 aros_shared_cflags="-fpic"
7787 aros_shared_aflags=""
7788 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7789 aros_kernel_ldflags="-Wl,-rpath,./lib"
7790 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7791 aros_debug_aflags=""
7792 aros_debug_ldflags="$aros_symbols_debug"
7793 aros_mungwall_debug="0"
7794 aros_modules_debug="0"
7795 gcc_target_cpu="mc68000"
7796 ignore_undefined_symbols="-ius"
7799 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7801 esac
7804 mac*)
7805 aros_target_arch="mac"
7806 aros_shared_default="no"
7807 case "$target_cpu" in
7808 *m68k*)
7809 aros_target_cpu="m68k"
7810 aros_object_format="m68kelf"
7811 aros_flavour="mac68knative"
7812 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7813 aros_default_wbwidth=512
7814 aros_default_wbheight=384
7815 aros_default_wbdepth=8
7816 aros_target_ar_flags="cru"
7817 aros_compiler_libs="-lgcc1"
7818 aros_shared_default=no
7819 aros_shared_cflags="-fpic"
7820 aros_shared_aflags=""
7821 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7822 aros_kernel_ldflags="-Wl,-rpath,./lib"
7823 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7824 aros_debug_aflags=""
7825 aros_debug_ldflags="$aros_symbols_debug"
7826 aros_mungwall_debug="0"
7827 aros_modules_debug="0"
7828 gcc_target_cpu="mc68000"
7829 ignore_undefined_symbols="-ius"
7832 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7834 esac
7838 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7840 esac
7842 # Some formats need custom ELF specs.
7843 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
7844 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
7845 elf_specs_in=config/${aros_object_format}-specs.in
7846 else
7847 elf_specs_in=config/elf-specs.in
7850 #-----------------------------------------------------------------------------
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7852 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7854 # Check whether --with-crosstools was given.
7855 if test "${with_crosstools+set}" = set; then :
7856 withval=$with_crosstools; with_crosstools=$withval
7857 else
7858 with_crosstools="default"
7861 if test "$with_crosstools" = "default"; then
7862 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7863 else
7864 AROS_CROSSTOOLSDIR="$with_crosstools"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7867 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7869 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
7872 use_aros_gcc=yes
7873 PATH=$AROS_CROSSTOOLSDIR:$PATH
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7877 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7879 # Check whether --with-aros-gcc was given.
7880 if test "${with_aros_gcc+set}" = set; then :
7881 withval=$with_aros_gcc; aros_gcc_version="$withval"
7882 else
7883 aros_gcc_version="$use_aros_gcc"
7886 case "$aros_gcc_version" in
7887 yes)
7888 aros_gcc_version="default"
7891 aros_gcc_version="none"
7893 esac
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7895 $as_echo "$aros_gcc_version" >&6; }
7897 if test "$aros_gcc_version" != "none"; then
7900 if test "$aros_gcc_version" != "default"; then
7901 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7902 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7903 else
7904 aros_target_cc="$aros_target_cpu-aros-gcc"
7905 aros_target_cxx="$aros_target_cpu-aros-g++"
7908 aros_target_ld="$aros_target_cpu-aros-ld"
7909 aros_target_as="$aros_target_cpu-aros-as"
7910 aros_target_ar="$aros_target_cpu-aros-ar"
7911 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7912 aros_target_nm="$aros_target_cpu-aros-nm"
7913 aros_target_strip="$aros_target_cpu-aros-strip"
7914 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7915 aros_target_objdump="$aros_target_cpu-aros-objdump"
7918 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7919 # Since we override specs, we may need to put these defines there
7920 if test "$gcc_target_cpu" != ""; then
7921 gcc_target_cpu="-D__${gcc_target_cpu}__"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7925 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7927 # Check whether --with-portssources was given.
7928 if test "${with_portssources+set}" = set; then :
7929 withval=$with_portssources; with_portssrcdir=$withval
7930 else
7931 with_portssrcdir="default"
7934 if test "$with_portssrcdir" = "default"; then
7935 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7936 else
7937 AROS_PORTSSRCDIR="$with_portssrcdir"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7940 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7943 $as_echo_n "checking which bootloader to use... " >&6; }
7945 # Check whether --with-bootloader was given.
7946 if test "${with_bootloader+set}" = set; then :
7947 withval=$with_bootloader; target_bootloader=$withval
7948 else
7949 target_bootloader=$target_bootloader
7952 if test "$target_bootloader" = "none"; then
7953 aros_target_bootloader=""
7954 else
7955 aros_target_bootloader="$target_bootloader"
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7958 $as_echo "$target_bootloader" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7961 $as_echo_n "checking which icon-set to use... " >&6; }
7963 # Check whether --with-iconset was given.
7964 if test "${with_iconset+set}" = set; then :
7965 withval=$with_iconset; target_iconset=$withval
7966 else
7967 target_iconset="default"
7970 if test "$target_iconset" = "default"; then
7971 aros_target_iconset="Gorilla"
7972 target_iconset="default (Gorilla)"
7973 else
7974 aros_target_iconset="$target_iconset"
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7977 $as_echo "$target_iconset" >&6; }
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7980 $as_echo_n "checking which GUI Theme to use... " >&6; }
7982 # Check whether --with-theme was given.
7983 if test "${with_theme+set}" = set; then :
7984 withval=$with_theme; target_guitheme=$withval
7985 else
7986 target_guitheme="default"
7989 if test "$target_guitheme" = "default"; then
7990 aros_target_guitheme="Ice"
7991 else
7992 aros_target_guitheme="$target_guitheme"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7995 $as_echo "$aros_target_guitheme" >&6; }
7997 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7998 # for target code)
7999 cross_compiling=no
8000 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8001 cross_compiling=yes
8004 if test "$aros_host_cpu" == "x86_64" ; then
8005 if test "$aros_target_cpu" == "i386" ; then
8006 if test "$aros_target_arch" != "mingw32"; then
8007 cross_compiling=no
8012 if test "$aros_host_arch" == "darwin" ; then
8013 if test "$aros_target_arch" != "darwin" ; then
8014 cross_compiling=yes
8018 if test "$aros_host_arch" == "mingw32" ; then
8019 if test "$aros_target_arch" != "mingw32" ; then
8020 cross_compiling=yes
8024 # I want to have this information in configure output, although it might be
8025 # misleading, e.g. for darwin hosted you cannot compile target code without a
8026 # cross compiler, but here it says no.
8028 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8029 # Target code is a little bit different thing.
8030 # sonic
8031 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8033 # Set prefix for target compiler etc. if we're cross-compiling
8034 # (should possibly be earlier but needs to be after AC_PROG_CC)
8035 if test "$cross_compiling" = "yes" ; then
8037 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8038 if test "$aros_gcc_version" != "none"; then
8041 target_tool_prefix=${target_cpu}-aros-
8042 target_tool_version=$aros_gcc_version
8043 use_kernel_cc_wrapper=yes
8045 aros_target_cc=
8046 aros_target_ld=
8047 aros_target_as=
8048 aros_target_ar=
8049 aros_target_ranlib=
8050 aros_target_nm=
8051 aros_target_strip=
8052 aros_target_objcopy=
8053 aros_target_objdump=
8057 CC=${target_tool_prefix}gcc
8058 CPP=${target_tool_prefix}cpp
8059 if test "$target_tool_version" != "default"; then
8060 CC="$CC-$target_tool_version"
8061 CPP="$CC-$target_tool_version"
8063 if test "$crosstools" != "yes" ; then
8064 # Extract the first word of "$CC", so it can be a program name with args.
8065 set dummy $CC; ac_word=$2
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067 $as_echo_n "checking for $ac_word... " >&6; }
8068 if test "${ac_cv_path_CC+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 case $CC in
8072 [\\/]* | ?:[\\/]*)
8073 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8083 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8087 done
8088 done
8089 IFS=$as_save_IFS
8092 esac
8094 CC=$ac_cv_path_CC
8095 if test -n "$CC"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8097 $as_echo "$CC" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8104 if test "$CC" = ""; then
8105 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8107 else
8108 CC=$AROS_CROSSTOOLSDIR/$CC
8111 CC="$CC $target_tool_flags"
8113 #-----------------------------------------------------------------------------
8115 # Disable pointer-signedness warnings if the compiler recognises the option
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8118 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8119 save_cflags="$CFLAGS"
8120 if test "$crosstools" != "yes" ; then
8121 CFLAGS="$CFLAGS -Wno-pointer-sign"
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8126 main ()
8130 return 0;
8132 _ACEOF
8133 if ac_fn_c_try_compile "$LINENO"; then :
8134 use_no_sign_warning="yes"
8135 else
8136 use_no_sign_warning="no"
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 else
8140 # we do know it is supported for the smallest version of gcc we are going to build
8141 # we assume it's also supported by later versions
8142 use_no_sign_warning=yes
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8145 $as_echo "$use_no_sign_warning" >&6; }
8146 if test "x-$use_no_sign_warning" = "x-yes" ; then
8147 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8149 CFLAGS="$save_cflags"
8151 #-----------------------------------------------------------------------------
8153 # Find all the tools we need to compile. This could be cross-compiling
8154 # though! If that is the case we use the GNU form of the target and
8155 # simply add this to the front of the binary name. This is rather simple,
8156 # but it should work under most circumstances.
8158 # The default tools are to use the same as the host, but only if the
8159 # host and target CPU are the same. With GCC this is normally enough.
8162 aros_cc_pre=""
8163 aros_shared_ld="$aros_host_ld"
8165 aros_target_mkdep="$aros_host_mkdep"
8166 aros_target_incl_def="$aros_host_incl"
8168 aros_kernel_cc="$CC"
8170 # The default tools executables to be linked to.
8171 if test "$rescomp" != ""; then
8172 if test "$cross_compiling" = "yes" ; then
8173 rescomp=${target_tool_prefix}${rescomp}
8175 # Extract the first word of "$rescomp", so it can be a program name with args.
8176 set dummy $rescomp; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 $as_echo_n "checking for $ac_word... " >&6; }
8179 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 case $aros_kernel_rescomp in
8183 [\\/]* | ?:[\\/]*)
8184 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8198 done
8199 done
8200 IFS=$as_save_IFS
8203 esac
8205 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8206 if test -n "$aros_kernel_rescomp"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8208 $as_echo "$aros_kernel_rescomp" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8215 if test "$aros_kernel_rescomp" = ""; then
8216 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8220 if test "$crosstools" != "yes"; then
8222 if test "$aros_kernel_ld" = ""; then
8223 if test "$cross_compiling" = "yes" ; then
8224 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8225 set dummy ${target_tool_prefix}ld; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 case $aros_kernel_ld in
8232 [\\/]* | ?:[\\/]*)
8233 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8247 done
8248 done
8249 IFS=$as_save_IFS
8252 esac
8254 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8255 if test -n "$aros_kernel_ld"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8257 $as_echo "$aros_kernel_ld" >&6; }
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8264 else
8265 if test "$GCC" = "yes"; then
8266 aros_gcc_ld=`$CC -print-prog-name=ld`
8267 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8268 set dummy `basename $aros_gcc_ld`; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 case $aros_kernel_ld in
8275 [\\/]* | ?:[\\/]*)
8276 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in `dirname $aros_gcc_ld`
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8290 done
8291 done
8292 IFS=$as_save_IFS
8295 esac
8297 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8298 if test -n "$aros_kernel_ld"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8300 $as_echo "$aros_kernel_ld" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8308 if test "$aros_kernel_ld" = ""; then
8309 # Extract the first word of "ld", so it can be a program name with args.
8310 set dummy ld; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 case $aros_kernel_ld in
8317 [\\/]* | ?:[\\/]*)
8318 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8332 done
8333 done
8334 IFS=$as_save_IFS
8337 esac
8339 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8340 if test -n "$aros_kernel_ld"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8342 $as_echo "$aros_kernel_ld" >&6; }
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8351 else
8352 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8353 set dummy $aros_kernel_ld; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 case $aros_kernel_ld in
8360 [\\/]* | ?:[\\/]*)
8361 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8377 IFS=$as_save_IFS
8380 esac
8382 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8383 if test -n "$aros_kernel_ld"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8385 $as_echo "$aros_kernel_ld" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8394 if test "$aros_kernel_ld" = ""; then
8395 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8398 if test "$aros_kernel_ar" = ""; then
8399 if test "$cross_compiling" = "yes" ; then
8400 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8401 set dummy ${target_tool_prefix}ar; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 case $aros_kernel_ar in
8408 [\\/]* | ?:[\\/]*)
8409 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8423 done
8424 done
8425 IFS=$as_save_IFS
8428 esac
8430 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8431 if test -n "$aros_kernel_ar"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8433 $as_echo "$aros_kernel_ar" >&6; }
8434 else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8440 else
8441 if test "$GCC" = "yes"; then
8442 aros_gcc_ar=`$CC -print-prog-name=ar`
8443 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8444 set dummy `basename $aros_gcc_ar`; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 case $aros_kernel_ar in
8451 [\\/]* | ?:[\\/]*)
8452 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in `dirname $aros_gcc_ar`
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8471 esac
8473 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8474 if test -n "$aros_kernel_ar"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8476 $as_echo "$aros_kernel_ar" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8484 if test "$aros_kernel_ar" = ""; then
8485 # Extract the first word of "ar", so it can be a program name with args.
8486 set dummy ar; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 case $aros_kernel_ar in
8493 [\\/]* | ?:[\\/]*)
8494 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8510 IFS=$as_save_IFS
8513 esac
8515 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8516 if test -n "$aros_kernel_ar"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8518 $as_echo "$aros_kernel_ar" >&6; }
8519 else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8527 else
8528 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8529 set dummy $aros_kernel_ar; ac_word=$2
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 $as_echo_n "checking for $ac_word... " >&6; }
8532 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 case $aros_kernel_ar in
8536 [\\/]* | ?:[\\/]*)
8537 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8547 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8553 IFS=$as_save_IFS
8556 esac
8558 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8559 if test -n "$aros_kernel_ar"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8561 $as_echo "$aros_kernel_ar" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8570 if test "$aros_kernel_ar" = ""; then
8571 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8574 if test "$aros_kernel_ranlib" = ""; then
8575 if test "$cross_compiling" = "yes" ; then
8576 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8577 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 case $aros_kernel_ranlib in
8584 [\\/]* | ?:[\\/]*)
8585 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8591 IFS=$as_save_IFS
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8595 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 break 2
8599 done
8600 done
8601 IFS=$as_save_IFS
8604 esac
8606 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8607 if test -n "$aros_kernel_ranlib"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8609 $as_echo "$aros_kernel_ranlib" >&6; }
8610 else
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8616 else
8617 if test "$GCC" = "yes"; then
8618 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8619 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8620 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 case $aros_kernel_ranlib in
8627 [\\/]* | ?:[\\/]*)
8628 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in `dirname $aros_gcc_ranlib`
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8638 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 break 2
8642 done
8643 done
8644 IFS=$as_save_IFS
8647 esac
8649 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8650 if test -n "$aros_kernel_ranlib"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8652 $as_echo "$aros_kernel_ranlib" >&6; }
8653 else
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8660 if test "$aros_kernel_ranlib" = ""; then
8661 # Extract the first word of "ranlib", so it can be a program name with args.
8662 set dummy ranlib; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 case $aros_kernel_ranlib in
8669 [\\/]* | ?:[\\/]*)
8670 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8684 done
8685 done
8686 IFS=$as_save_IFS
8689 esac
8691 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8692 if test -n "$aros_kernel_ranlib"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8694 $as_echo "$aros_kernel_ranlib" >&6; }
8695 else
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8703 else
8704 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8705 set dummy $aros_kernel_ranlib; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 case $aros_kernel_ranlib in
8712 [\\/]* | ?:[\\/]*)
8713 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8723 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8727 done
8728 done
8729 IFS=$as_save_IFS
8732 esac
8734 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8735 if test -n "$aros_kernel_ranlib"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8737 $as_echo "$aros_kernel_ranlib" >&6; }
8738 else
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8746 if test "$aros_kernel_ranlib" = ""; then
8747 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8750 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8751 target_tool_prefix=${target_cpu}-elf-
8752 if test "$aros_target_cc" == ""; then
8753 aros_target_cc="${target_tool_prefix}gcc"
8755 if test "$aros_target_ld" == ""; then
8756 aros_target_ld="${target_tool_prefix}ld"
8760 if test "$aros_target_as" = ""; then
8761 if test "$cross_compiling" = "yes" ; then
8762 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8763 set dummy ${target_tool_prefix}as; ac_word=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 case $aros_target_as_ln in
8770 [\\/]* | ?:[\\/]*)
8771 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8781 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8785 done
8786 done
8787 IFS=$as_save_IFS
8790 esac
8792 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8793 if test -n "$aros_target_as_ln"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8795 $as_echo "$aros_target_as_ln" >&6; }
8796 else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8802 else
8803 if test "$GCC" = "yes"; then
8804 aros_gcc_as=`$CC -print-prog-name=as`
8805 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8806 set dummy `basename $aros_gcc_as`; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 case $aros_target_as_ln in
8813 [\\/]* | ?:[\\/]*)
8814 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in `dirname $aros_gcc_as`
8820 IFS=$as_save_IFS
8821 test -z "$as_dir" && as_dir=.
8822 for ac_exec_ext in '' $ac_executable_extensions; do
8823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8826 break 2
8828 done
8829 done
8830 IFS=$as_save_IFS
8833 esac
8835 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8836 if test -n "$aros_target_as_ln"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8838 $as_echo "$aros_target_as_ln" >&6; }
8839 else
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8846 if test "$aros_target_as_ln" = ""; then
8847 # Extract the first word of "as", so it can be a program name with args.
8848 set dummy as; ac_word=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 case $aros_target_as_ln in
8855 [\\/]* | ?:[\\/]*)
8856 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8866 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8870 done
8871 done
8872 IFS=$as_save_IFS
8875 esac
8877 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8878 if test -n "$aros_target_as_ln"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8880 $as_echo "$aros_target_as_ln" >&6; }
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8889 else
8890 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8891 set dummy $aros_target_as; ac_word=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 case $aros_target_as_ln in
8898 [\\/]* | ?:[\\/]*)
8899 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8905 IFS=$as_save_IFS
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 break 2
8913 done
8914 done
8915 IFS=$as_save_IFS
8918 esac
8920 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8921 if test -n "$aros_target_as_ln"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8923 $as_echo "$aros_target_as_ln" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8932 if test "$aros_target_as_ln" = ""; then
8933 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8936 if test "$aros_target_ar" = ""; then
8937 if test "$cross_compiling" = "yes" ; then
8938 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8939 set dummy ${target_tool_prefix}ar; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 case $aros_target_ar_ln in
8946 [\\/]* | ?:[\\/]*)
8947 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8961 done
8962 done
8963 IFS=$as_save_IFS
8966 esac
8968 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8969 if test -n "$aros_target_ar_ln"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8971 $as_echo "$aros_target_ar_ln" >&6; }
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8978 else
8979 if test "$GCC" = "yes"; then
8980 aros_gcc_ar=`$CC -print-prog-name=ar`
8981 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8982 set dummy `basename $aros_gcc_ar`; ac_word=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 case $aros_target_ar_ln in
8989 [\\/]* | ?:[\\/]*)
8990 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in `dirname $aros_gcc_ar`
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9000 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 break 2
9004 done
9005 done
9006 IFS=$as_save_IFS
9009 esac
9011 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9012 if test -n "$aros_target_ar_ln"; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9014 $as_echo "$aros_target_ar_ln" >&6; }
9015 else
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9022 if test "$aros_target_ar_ln" = ""; then
9023 # Extract the first word of "ar", so it can be a program name with args.
9024 set dummy ar; ac_word=$2
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026 $as_echo_n "checking for $ac_word... " >&6; }
9027 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 case $aros_target_ar_ln in
9031 [\\/]* | ?:[\\/]*)
9032 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 for as_dir in $PATH
9038 IFS=$as_save_IFS
9039 test -z "$as_dir" && as_dir=.
9040 for ac_exec_ext in '' $ac_executable_extensions; do
9041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9042 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 break 2
9046 done
9047 done
9048 IFS=$as_save_IFS
9051 esac
9053 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9054 if test -n "$aros_target_ar_ln"; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9056 $as_echo "$aros_target_ar_ln" >&6; }
9057 else
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9065 else
9066 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9067 set dummy $aros_target_ar; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 case $aros_target_ar_ln in
9074 [\\/]* | ?:[\\/]*)
9075 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9089 done
9090 done
9091 IFS=$as_save_IFS
9094 esac
9096 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9097 if test -n "$aros_target_ar_ln"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9099 $as_echo "$aros_target_ar_ln" >&6; }
9100 else
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9108 if test "$aros_target_ar_ln" = ""; then
9109 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9112 if test "$aros_target_nm" = ""; then
9113 if test "$cross_compiling" = "yes" ; then
9114 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9115 set dummy ${target_tool_prefix}nm; ac_word=$2
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117 $as_echo_n "checking for $ac_word... " >&6; }
9118 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 case $aros_target_nm_ln in
9122 [\\/]* | ?:[\\/]*)
9123 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9133 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9137 done
9138 done
9139 IFS=$as_save_IFS
9142 esac
9144 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9145 if test -n "$aros_target_nm_ln"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9147 $as_echo "$aros_target_nm_ln" >&6; }
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9154 else
9155 if test "$GCC" = "yes"; then
9156 aros_gcc_nm=`$CC -print-prog-name=nm`
9157 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9158 set dummy `basename $aros_gcc_nm`; ac_word=$2
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9160 $as_echo_n "checking for $ac_word... " >&6; }
9161 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 case $aros_target_nm_ln in
9165 [\\/]* | ?:[\\/]*)
9166 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in `dirname $aros_gcc_nm`
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9180 done
9181 done
9182 IFS=$as_save_IFS
9185 esac
9187 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9188 if test -n "$aros_target_nm_ln"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9190 $as_echo "$aros_target_nm_ln" >&6; }
9191 else
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9198 if test "$aros_target_nm_ln" = ""; then
9199 # Extract the first word of "nm", so it can be a program name with args.
9200 set dummy nm; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 case $aros_target_nm_ln in
9207 [\\/]* | ?:[\\/]*)
9208 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 for as_dir in $PATH
9214 IFS=$as_save_IFS
9215 test -z "$as_dir" && as_dir=.
9216 for ac_exec_ext in '' $ac_executable_extensions; do
9217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9220 break 2
9222 done
9223 done
9224 IFS=$as_save_IFS
9227 esac
9229 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9230 if test -n "$aros_target_nm_ln"; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9232 $as_echo "$aros_target_nm_ln" >&6; }
9233 else
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 $as_echo "no" >&6; }
9241 else
9242 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9243 set dummy $aros_target_nm; ac_word=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 $as_echo_n "checking for $ac_word... " >&6; }
9246 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 case $aros_target_nm_ln in
9250 [\\/]* | ?:[\\/]*)
9251 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9261 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 break 2
9265 done
9266 done
9267 IFS=$as_save_IFS
9270 esac
9272 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9273 if test -n "$aros_target_nm_ln"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9275 $as_echo "$aros_target_nm_ln" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9284 if test "$aros_target_nm_ln" = ""; then
9285 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9288 if test "$aros_target_objcopy" = ""; then
9289 if test "$cross_compiling" = "yes" ; then
9290 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9291 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 case $aros_target_objcopy_ln in
9298 [\\/]* | ?:[\\/]*)
9299 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in $PATH
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 break 2
9313 done
9314 done
9315 IFS=$as_save_IFS
9318 esac
9320 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9321 if test -n "$aros_target_objcopy_ln"; then
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9323 $as_echo "$aros_target_objcopy_ln" >&6; }
9324 else
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9326 $as_echo "no" >&6; }
9330 else
9331 if test "$GCC" = "yes"; then
9332 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9333 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9334 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 case $aros_target_objcopy_ln in
9341 [\\/]* | ?:[\\/]*)
9342 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 for as_dir in `dirname $aros_gcc_objcopy`
9348 IFS=$as_save_IFS
9349 test -z "$as_dir" && as_dir=.
9350 for ac_exec_ext in '' $ac_executable_extensions; do
9351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9352 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9354 break 2
9356 done
9357 done
9358 IFS=$as_save_IFS
9361 esac
9363 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9364 if test -n "$aros_target_objcopy_ln"; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9366 $as_echo "$aros_target_objcopy_ln" >&6; }
9367 else
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 $as_echo "no" >&6; }
9374 if test "$aros_target_objcopy_ln" = ""; then
9375 # Extract the first word of "objcopy", so it can be a program name with args.
9376 set dummy objcopy; ac_word=$2
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 $as_echo_n "checking for $ac_word... " >&6; }
9379 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 case $aros_target_objcopy_ln in
9383 [\\/]* | ?:[\\/]*)
9384 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388 for as_dir in $PATH
9390 IFS=$as_save_IFS
9391 test -z "$as_dir" && as_dir=.
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9394 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9396 break 2
9398 done
9399 done
9400 IFS=$as_save_IFS
9403 esac
9405 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9406 if test -n "$aros_target_objcopy_ln"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9408 $as_echo "$aros_target_objcopy_ln" >&6; }
9409 else
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9417 else
9418 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9419 set dummy $aros_target_objcopy; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 case $aros_target_objcopy_ln in
9426 [\\/]* | ?:[\\/]*)
9427 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9441 done
9442 done
9443 IFS=$as_save_IFS
9446 esac
9448 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9449 if test -n "$aros_target_objcopy_ln"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9451 $as_echo "$aros_target_objcopy_ln" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9460 if test "$aros_target_objcopy_ln" = ""; then
9461 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9464 if test "$aros_target_objdump" = ""; then
9465 if test "$cross_compiling" = "yes" ; then
9466 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9467 set dummy ${target_tool_prefix}objdump; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 case $aros_target_objdump_ln in
9474 [\\/]* | ?:[\\/]*)
9475 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 for as_dir in $PATH
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9485 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9489 done
9490 done
9491 IFS=$as_save_IFS
9494 esac
9496 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9497 if test -n "$aros_target_objdump_ln"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9499 $as_echo "$aros_target_objdump_ln" >&6; }
9500 else
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 $as_echo "no" >&6; }
9506 else
9507 if test "$GCC" = "yes"; then
9508 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9509 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9510 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512 $as_echo_n "checking for $ac_word... " >&6; }
9513 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 case $aros_target_objdump_ln in
9517 [\\/]* | ?:[\\/]*)
9518 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 for as_dir in `dirname $aros_gcc_objdump`
9524 IFS=$as_save_IFS
9525 test -z "$as_dir" && as_dir=.
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9528 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9530 break 2
9532 done
9533 done
9534 IFS=$as_save_IFS
9537 esac
9539 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9540 if test -n "$aros_target_objdump_ln"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9542 $as_echo "$aros_target_objdump_ln" >&6; }
9543 else
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9550 if test "$aros_target_objdump_ln" = ""; then
9551 # Extract the first word of "objdump", so it can be a program name with args.
9552 set dummy objdump; ac_word=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 case $aros_target_objdump_ln in
9559 [\\/]* | ?:[\\/]*)
9560 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 for as_dir in $PATH
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 break 2
9574 done
9575 done
9576 IFS=$as_save_IFS
9579 esac
9581 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9582 if test -n "$aros_target_objdump_ln"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9584 $as_echo "$aros_target_objdump_ln" >&6; }
9585 else
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9593 else
9594 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9595 set dummy $aros_target_objdump; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 case $aros_target_objdump_ln in
9602 [\\/]* | ?:[\\/]*)
9603 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9615 break 2
9617 done
9618 done
9619 IFS=$as_save_IFS
9622 esac
9624 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9625 if test -n "$aros_target_objdump_ln"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9627 $as_echo "$aros_target_objdump_ln" >&6; }
9628 else
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9636 if test "$aros_target_objdump_ln" = ""; then
9637 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9640 if test "$aros_target_ranlib" = ""; then
9641 if test "$cross_compiling" = "yes" ; then
9642 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9643 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 case $aros_target_ranlib_ln in
9650 [\\/]* | ?:[\\/]*)
9651 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9657 IFS=$as_save_IFS
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9661 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663 break 2
9665 done
9666 done
9667 IFS=$as_save_IFS
9670 esac
9672 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9673 if test -n "$aros_target_ranlib_ln"; then
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9675 $as_echo "$aros_target_ranlib_ln" >&6; }
9676 else
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678 $as_echo "no" >&6; }
9682 else
9683 if test "$GCC" = "yes"; then
9684 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9685 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9686 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 $as_echo_n "checking for $ac_word... " >&6; }
9689 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 case $aros_target_ranlib_ln in
9693 [\\/]* | ?:[\\/]*)
9694 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698 for as_dir in `dirname $aros_gcc_ranlib`
9700 IFS=$as_save_IFS
9701 test -z "$as_dir" && as_dir=.
9702 for ac_exec_ext in '' $ac_executable_extensions; do
9703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9704 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706 break 2
9708 done
9709 done
9710 IFS=$as_save_IFS
9713 esac
9715 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9716 if test -n "$aros_target_ranlib_ln"; then
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9718 $as_echo "$aros_target_ranlib_ln" >&6; }
9719 else
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721 $as_echo "no" >&6; }
9726 if test "$aros_target_ranlib_ln" = ""; then
9727 # Extract the first word of "ranlib", so it can be a program name with args.
9728 set dummy ranlib; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 case $aros_target_ranlib_ln in
9735 [\\/]* | ?:[\\/]*)
9736 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 for as_dir in $PATH
9742 IFS=$as_save_IFS
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9746 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748 break 2
9750 done
9751 done
9752 IFS=$as_save_IFS
9755 esac
9757 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9758 if test -n "$aros_target_ranlib_ln"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9760 $as_echo "$aros_target_ranlib_ln" >&6; }
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9769 else
9770 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9771 set dummy $aros_target_ranlib; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 case $aros_target_ranlib_ln in
9778 [\\/]* | ?:[\\/]*)
9779 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 for as_dir in $PATH
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9789 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 break 2
9793 done
9794 done
9795 IFS=$as_save_IFS
9798 esac
9800 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9801 if test -n "$aros_target_ranlib_ln"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9803 $as_echo "$aros_target_ranlib_ln" >&6; }
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9812 if test "$aros_target_ranlib_ln" = ""; then
9813 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9816 if test "$aros_target_strip" = ""; then
9817 if test "$cross_compiling" = "yes" ; then
9818 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9819 set dummy ${target_tool_prefix}strip; ac_word=$2
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821 $as_echo_n "checking for $ac_word... " >&6; }
9822 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 case $aros_target_strip_ln in
9826 [\\/]* | ?:[\\/]*)
9827 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in $PATH
9833 IFS=$as_save_IFS
9834 test -z "$as_dir" && as_dir=.
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9837 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 break 2
9841 done
9842 done
9843 IFS=$as_save_IFS
9846 esac
9848 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9849 if test -n "$aros_target_strip_ln"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9851 $as_echo "$aros_target_strip_ln" >&6; }
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9858 else
9859 if test "$GCC" = "yes"; then
9860 aros_gcc_strip=`$CC -print-prog-name=strip`
9861 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9862 set dummy `basename $aros_gcc_strip`; ac_word=$2
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864 $as_echo_n "checking for $ac_word... " >&6; }
9865 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 case $aros_target_strip_ln in
9869 [\\/]* | ?:[\\/]*)
9870 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874 for as_dir in `dirname $aros_gcc_strip`
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 break 2
9884 done
9885 done
9886 IFS=$as_save_IFS
9889 esac
9891 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9892 if test -n "$aros_target_strip_ln"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9894 $as_echo "$aros_target_strip_ln" >&6; }
9895 else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9902 if test "$aros_target_strip_ln" = ""; then
9903 # Extract the first word of "strip", so it can be a program name with args.
9904 set dummy strip; ac_word=$2
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9906 $as_echo_n "checking for $ac_word... " >&6; }
9907 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 case $aros_target_strip_ln in
9911 [\\/]* | ?:[\\/]*)
9912 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 for as_dir in $PATH
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9922 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9926 done
9927 done
9928 IFS=$as_save_IFS
9931 esac
9933 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9934 if test -n "$aros_target_strip_ln"; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9936 $as_echo "$aros_target_strip_ln" >&6; }
9937 else
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939 $as_echo "no" >&6; }
9945 else
9946 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9947 set dummy $aros_target_strip; ac_word=$2
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949 $as_echo_n "checking for $ac_word... " >&6; }
9950 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 case $aros_target_strip_ln in
9954 [\\/]* | ?:[\\/]*)
9955 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9969 done
9970 done
9971 IFS=$as_save_IFS
9974 esac
9976 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9977 if test -n "$aros_target_strip_ln"; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9979 $as_echo "$aros_target_strip_ln" >&6; }
9980 else
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982 $as_echo "no" >&6; }
9988 if test "$aros_target_strip_ln" = ""; then
9989 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9991 if test "$aros_target_cxx" != ""; then
9992 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9993 set dummy $aros_target_cxx; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 case $aros_target_cxx in
10000 [\\/]* | ?:[\\/]*)
10001 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 break 2
10015 done
10016 done
10017 IFS=$as_save_IFS
10020 esac
10022 aros_target_cxx=$ac_cv_path_aros_target_cxx
10023 if test -n "$aros_target_cxx"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10025 $as_echo "$aros_target_cxx" >&6; }
10026 else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10032 if test "$aros_target_cxx" = ""; then
10033 as_fn_error "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10036 else
10037 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10038 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10039 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10040 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10041 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10042 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10043 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10044 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10045 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10047 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10048 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10049 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10051 crosstools_target=tools-crosstools
10054 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10056 orig_target_cc=$aros_kernel_cc
10057 orig_target_ld=$aros_kernel_ld
10059 if test "$crosstools" != "yes"; then
10060 if test "$aros_target_cc" != ""; then
10061 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10062 set dummy $aros_target_cc; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 case $aros_target_cc in
10069 [\\/]* | ?:[\\/]*)
10070 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in $PATH
10076 IFS=$as_save_IFS
10077 test -z "$as_dir" && as_dir=.
10078 for ac_exec_ext in '' $ac_executable_extensions; do
10079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10080 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 break 2
10084 done
10085 done
10086 IFS=$as_save_IFS
10089 esac
10091 aros_target_cc=$ac_cv_path_aros_target_cc
10092 if test -n "$aros_target_cc"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10094 $as_echo "$aros_target_cc" >&6; }
10095 else
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10101 if test "$aros_target_cc" = ""; then
10102 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10104 orig_target_cc=$aros_target_cc
10106 if test "$aros_target_ld" != ""; then
10107 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10108 set dummy $aros_target_ld; ac_word=$2
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110 $as_echo_n "checking for $ac_word... " >&6; }
10111 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 case $aros_target_ld in
10115 [\\/]* | ?:[\\/]*)
10116 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in $PATH
10122 IFS=$as_save_IFS
10123 test -z "$as_dir" && as_dir=.
10124 for ac_exec_ext in '' $ac_executable_extensions; do
10125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10126 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 break 2
10130 done
10131 done
10132 IFS=$as_save_IFS
10135 esac
10137 aros_target_ld=$ac_cv_path_aros_target_ld
10138 if test -n "$aros_target_ld"; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10140 $as_echo "$aros_target_ld" >&6; }
10141 else
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10147 if test "$aros_target_ld" = ""; then
10148 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10150 orig_target_ld=$aros_target_ld
10152 else
10153 orig_target_cc=$aros_target_cc
10154 orig_target_ld=$aros_target_ld
10157 # Build crosstools if we have no C++ - temporary thing
10158 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10159 crosstools_cxx_target=tools-crosstools
10162 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10163 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10164 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10165 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10166 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10167 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10168 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10170 # aros_cc_pre is a variable that is added to the front of the compiler name
10171 # in the generated aros-gcc shell script. We need this to enable the cache
10172 # to work across cleaned builds. Also, support DISTCC using the correct
10173 # environment variable.
10176 if test "x${DISTCC}" != "x" ; then
10177 if test "x${CCACHE}" != "x" ; then
10178 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10179 else
10180 aros_cc_pre="${DISTCC} "
10182 else
10183 if test "x${CCACHE}" != "x" ; then
10184 aros_cc_pre="${CCACHE} "
10188 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10190 aros_target_nostdinc_cflags=-nostdinc
10192 aros_target_nostartup_ldflags=-nostartfiles
10194 aros_target_nix_ldflags=-nix
10196 aros_target_detach_ldflags=-detach
10198 aros_target_nostdlib_ldflags=-nostdlib
10201 # Target tools
10202 if test "$crosstools" != "yes"; then
10203 if test "$GCC" = "yes"; then
10204 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10206 else
10207 # We do not know which gcc version we are going to build and what we need to know
10208 # here is different for different versions so this will be set later during the
10209 # build of crosstools.
10210 aros_target_cc_path=@aros_target_cc_path@
10212 aros_target_cc="${prefix}-gcc"
10213 aros_target_as="${prefix}-as"
10214 aros_target_ld="${prefix}-ld"
10215 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10216 aros_target_objcopy=${prefix}-objcopy
10217 aros_target_objdump=${prefix}-objdump
10218 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10219 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10220 aros_target_strip=${prefix}-strip
10221 aros_plain_nm="${prefix}-nm"
10222 aros_plain_ar="${prefix}-ar"
10224 # Find the system include path. We can suggest that an alternative is
10225 # used if we don't get it correct. The default is to use /usr/include.
10226 # Which is set in the aros_target_incl_def variable.
10228 # Check whether --enable-includes was given.
10229 if test "${enable_includes+set}" = set; then :
10230 enableval=$enable_includes; aros_target_incl=$enable_includes
10231 else
10232 aros_target_incl=$aros_target_incl_def
10236 if test "$aros_kernel_includes" = ""; then
10237 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10238 # FIXME: for cross-compiling this should point to another location
10239 aros_kernel_includes="-isystem $aros_target_incl"
10243 if test "$aros_kernel_includes" != "" ; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10245 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10246 if test "$aros_kernel_cc_includes" = "" ; then
10247 # Try to guess where the directory is.
10248 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10249 if test -d $aros_kernel_cc_includes; then
10250 # Check if there is also an include-fixed directory and add it
10251 # to kernel compiler's include path as it may contain some of
10252 # the headers we need.
10253 if test -d "$aros_kernel_cc_includes"-fixed; then
10254 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10256 else
10257 # The directory doesn't exist, we need to do some more work.
10258 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10260 # These are the headers we're looking for.
10261 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10262 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10263 zutil.h"
10265 dirs=
10266 for h in $headers; do
10267 # Which other headers are needed by each of the above?
10268 deps=$(echo "#include <$h>" | \
10269 $aros_kernel_cc -E -M - 2>/dev/null | \
10270 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10272 # Copy all the needed headers to a directory beneath gendir.
10273 for d in $deps; do
10274 h=$(basename $d)
10275 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10276 sed -n "s,^.*/include\(/.*\),\1,p")
10277 ! test -d $dir && mkdir -p $dir
10278 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10279 done
10280 done
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10284 $as_echo "$aros_kernel_cc_includes" >&6; }
10285 # Adding -nostdinc to kernel includes as they are always used together.
10286 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10289 if test "$crosstools" != "yes"; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10291 $as_echo_n "checking for the target compiler's include path... " >&6; }
10292 if test "$aros_target_cc_includes" = "" ; then
10293 #try to guess where the directory is
10294 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10295 if ! test -d $aros_target_cc_includes; then
10296 #the directory doesn't exist, we need to do some more work
10297 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10299 #these are the headers we're looking for
10300 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10301 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10302 zutil.h"
10304 dirs=
10305 for h in $headers; do
10306 #which other headers each of the above headers needs?
10307 deps=$(echo "#include <$h>" | \
10308 $orig_target_cc -E -M - 2>/dev/null | \
10309 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10311 #copy all the needed headers to a directory beneath gendir
10312 for d in $deps; do
10313 h=$(basename $d)
10314 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10315 sed -n "s,^.*/include\(/.*\),\1,p")
10316 ! test -d $dir && mkdir -p $dir
10317 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10318 done
10319 done
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10323 $as_echo "$aros_target_cc_includes" >&6; }
10324 else
10325 # We do not know which gcc version we are going to build and what we need to know
10326 # here is different for different versions so this will be set later during the
10327 # build of crosstools.
10328 aros_target_cc_includes=@aros_target_cc_includes@
10332 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10333 # On GCC >= 4.0 -iquote should be used
10336 save_cc="$CC"
10337 save_cflags="$CFLAGS"
10338 CFLAGS="-iquote."
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10340 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10341 if test "x-$crosstools" != "x-yes"; then
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10346 main ()
10350 return 0;
10352 _ACEOF
10353 if ac_fn_c_try_compile "$LINENO"; then :
10354 has_iquote="yes"
10355 else
10356 has_iquote="no"
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10359 else
10360 # we do know it is supported for the smallest version of gcc we are going to build
10361 # we assume it's also supported by later versions
10362 has_iquote=yes
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10365 $as_echo "$has_iquote" >&6; }
10366 if test "x-$has_iquote" = "x-yes" ; then
10367 host_cflags_iquote=-iquote
10368 host_cflags_iquote_end=
10369 else
10370 host_cflags_iquote=-I
10371 host_cflags_iquote_end=-I-
10373 kernel_cflags_iquote=$host_cflags_iquote
10374 kernel_cflags_iquote_end=$host_cflags_iquote_end
10375 if test "x-$cross_compiling" = "x-yes"; then
10376 CC="$aros_kernel_cc"
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
10378 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
10379 if test "x-$crosstools" != "x-yes"; then
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10384 main ()
10388 return 0;
10390 _ACEOF
10391 if ac_fn_c_try_compile "$LINENO"; then :
10392 use_no_stack_protector="yes"
10393 else
10394 use_no_stack_protector="no"
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 else
10398 # we do know it is supported for the smallest version of gcc we are going to build
10399 # we assume it's also supported by later versions
10400 use_no_stack_protector=yes
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
10403 $as_echo "$use_no_stack_protector" >&6; }
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10405 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10406 if test "x-$crosstools" != "x-yes"; then
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10411 main ()
10415 return 0;
10417 _ACEOF
10418 if ac_fn_c_try_compile "$LINENO"; then :
10419 has_iquote="yes"
10420 else
10421 has_iquote="no"
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424 else
10425 # we do know it is supported for the smallest version of gcc we are going to build
10426 # we assume it's also supported by later versions
10427 has_iquote=yes
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10430 $as_echo "$has_iquote" >&6; }
10431 if test "x-$has_iquote" = "x-yes" ; then
10432 kernel_cflags_iquote=-iquote
10433 kernel_cflags_iquote_end=
10434 else
10435 kernel_cflags_iquote=-I
10436 kernel_cflags_iquote_end=-I-
10439 aros_cflags_iquote=$kernel_cflags_iquote
10440 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10441 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10442 CC="$orig_target_cc"
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10444 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10445 if test "x-$crosstools" != "x-yes"; then
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10450 main ()
10454 return 0;
10456 _ACEOF
10457 if ac_fn_c_try_compile "$LINENO"; then :
10458 has_iquote="yes"
10459 else
10460 has_iquote="no"
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 else
10464 # we do know it is supported for the smallest version of gcc we are going to build
10465 # we assume it's also supported by later versions
10466 has_iquote=yes
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10469 $as_echo "$has_iquote" >&6; }
10470 if test "x-$has_iquote" = "x-yes" ; then
10471 aros_cflags_iquote=-iquote
10472 aros_cflags_iquote_end=
10473 else
10474 aros_cflags_iquote=-I
10475 aros_cflags_iquote_end=-I-
10478 if test "x-$use_no_stack_protector" = "x-yes" ; then
10479 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
10482 #-----------------------------------------------------------------------------
10484 # Check if we can explicitly choose older version of symbol hashing
10486 CFLAGS="save_cflags -Wl,--hash-style=sysv"
10487 CC="$aros_kernel_cc"
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10489 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10494 main ()
10498 return 0;
10500 _ACEOF
10501 if ac_fn_c_try_link "$LINENO"; then :
10502 use_hash_style="yes"
10503 else
10504 use_hash_style="no"
10506 rm -f core conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10509 $as_echo "$use_hash_style" >&6; }
10510 if test "x-$use_hash_style" = "x-yes" ; then
10511 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
10513 CC="$save_cc"
10514 CFLAGS="$save_cflags"
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10525 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10527 # Check whether --with-resolution was given.
10528 if test "${with_resolution+set}" = set; then :
10529 withval=$with_resolution; resolution=$withval
10530 else
10531 resolution=none
10534 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10535 if test "$resolution" = "yes" ; then
10536 resolution="none"
10538 if test "$resolution" = "no" ; then
10539 resolution="none"
10541 if test "$resolution" != "none" ; then
10542 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10543 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10544 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10547 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10548 aros_cv_default_wbwidth=$aros_default_wbwidth
10549 aros_cv_default_wbheight=$aros_default_wbheight
10550 aros_cv_default_wbdepth=$aros_default_wbdepth
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10553 $as_echo_n "checking if serial debug is enabled... " >&6; }
10555 # Check whether --with-serial-debug was given.
10556 if test "${with_serial_debug+set}" = set; then :
10557 withval=$with_serial_debug; serial_debug=$withval
10558 else
10559 serial_debug=none
10562 if test "$aros_serial_debug" = 0 ; then
10563 serial_debug_forced=""
10564 if test "$serial_debug" = "yes" ; then
10565 serial_debug="1"
10567 if test "$serial_debug" = "no" ; then
10568 serial_debug="none"
10570 else
10571 serial_debug_forced="(forced)"
10572 serial_debug=$aros_serial_debug
10574 if test "$serial_debug" != "none" ; then
10575 aros_serial_debug=$serial_debug
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10577 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10578 else
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10584 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10585 # Check whether --enable-palm_debug_hack was given.
10586 if test "${enable_palm_debug_hack+set}" = set; then :
10587 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10588 else
10589 palm_debug_hack="no"
10592 if test "$palm_debug_hack" = "yes" ; then
10593 aros_palm_debug_hack="1"
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10596 $as_echo "$palm_debug_hack" >&6; }
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
10599 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
10600 # Check whether --enable-usb30_code was given.
10601 if test "${enable_usb30_code+set}" = set; then :
10602 enableval=$enable_usb30_code; usb30_code="yes"
10603 else
10604 usb30_code="no"
10607 if test "$usb30_code" = "yes" ; then
10608 aros_usb30_code="1"
10609 else
10610 aros_usb30_code="0"
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
10613 $as_echo "$usb30_code" >&6; }
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10616 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10617 # Check whether --enable-nesting_supervisor was given.
10618 if test "${enable_nesting_supervisor+set}" = set; then :
10619 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10620 else
10621 nesting_supervisor="no"
10624 if test "$nesting_supervisor" = "yes" ; then
10625 aros_nesting_supervisor="1"
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10628 $as_echo "$nesting_supervisor" >&6; }
10630 if test "$aros_enable_mmu" = "" ; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10632 $as_echo_n "checking if MMU support is enabled... " >&6; }
10633 # Check whether --enable-mmu was given.
10634 if test "${enable_mmu+set}" = set; then :
10635 enableval=$enable_mmu; aros_enable_mmu=$enableval
10636 else
10637 aros_enable_mmu="yes"
10640 if test "$aros_enable_mmu" = "" ; then
10641 aros_enable_mmu="yes"
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10644 $as_echo "$aros_enable_mmu" >&6; }
10646 if test "$aros_enable_mmu" = "no" ; then
10647 aros_enable_mmu="0"
10648 else
10649 aros_enable_mmu="1"
10653 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10655 if test "x-$need_dlopen" != "x-no" ; then
10656 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10657 if test "x$ac_cv_func_dlopen" = x""yes; then :
10658 have_dl="yes"
10659 else
10660 have_dl="no"
10663 if test "x-$have_dl" = "x-no" ; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-ldl $LIBS"
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10674 /* Override any GCC internal prototype to avoid an error.
10675 Use char because int might match the return type of a GCC
10676 builtin and then its argument prototype would still apply. */
10677 #ifdef __cplusplus
10678 extern "C"
10679 #endif
10680 char dlopen ();
10682 main ()
10684 return dlopen ();
10686 return 0;
10688 _ACEOF
10689 if ac_fn_c_try_link "$LINENO"; then :
10690 ac_cv_lib_dl_dlopen=yes
10691 else
10692 ac_cv_lib_dl_dlopen=no
10694 rm -f core conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10700 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10701 have_dl="yes"
10702 aros_host_ldflags="$aros_host_ldflags -ldl"
10703 else
10704 have_dl="no"
10708 if test "x-$have_dl" = "x-no" ; then
10709 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
10714 # Check whether --enable-x11_hidd was given.
10715 if test "${enable_x11_hidd+set}" = set; then :
10716 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10717 else
10718 x11_hidd="$need_x11"
10721 case "x-$x11_hidd" in
10722 x-yes|x-no|x-auto) ;;
10723 *) x11_hidd="$need_x11" ;;
10724 esac
10726 ENABLE_X11=0
10728 if test "x-$x11_hidd" != "x-no" ; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10731 $as_echo_n "checking for X... " >&6; }
10734 # Check whether --with-x was given.
10735 if test "${with_x+set}" = set; then :
10736 withval=$with_x;
10739 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10740 if test "x$with_x" = xno; then
10741 # The user explicitly disabled X.
10742 have_x=disabled
10743 else
10744 case $x_includes,$x_libraries in #(
10745 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10746 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 # One or both of the vars are not set, and there is no cached value.
10750 ac_x_includes=no ac_x_libraries=no
10751 rm -f -r conftest.dir
10752 if mkdir conftest.dir; then
10753 cd conftest.dir
10754 cat >Imakefile <<'_ACEOF'
10755 incroot:
10756 @echo incroot='${INCROOT}'
10757 usrlibdir:
10758 @echo usrlibdir='${USRLIBDIR}'
10759 libdir:
10760 @echo libdir='${LIBDIR}'
10761 _ACEOF
10762 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10764 for ac_var in incroot usrlibdir libdir; do
10765 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10766 done
10767 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10768 for ac_extension in a so sl dylib la dll; do
10769 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10770 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10771 ac_im_usrlibdir=$ac_im_libdir; break
10773 done
10774 # Screen out bogus values from the imake configuration. They are
10775 # bogus both because they are the default anyway, and because
10776 # using them would break gcc on systems where it needs fixed includes.
10777 case $ac_im_incroot in
10778 /usr/include) ac_x_includes= ;;
10779 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10780 esac
10781 case $ac_im_usrlibdir in
10782 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10783 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10784 esac
10786 cd ..
10787 rm -f -r conftest.dir
10790 # Standard set of common directories for X headers.
10791 # Check X11 before X11Rn because it is often a symlink to the current release.
10792 ac_x_header_dirs='
10793 /usr/X11/include
10794 /usr/X11R7/include
10795 /usr/X11R6/include
10796 /usr/X11R5/include
10797 /usr/X11R4/include
10799 /usr/include/X11
10800 /usr/include/X11R7
10801 /usr/include/X11R6
10802 /usr/include/X11R5
10803 /usr/include/X11R4
10805 /usr/local/X11/include
10806 /usr/local/X11R7/include
10807 /usr/local/X11R6/include
10808 /usr/local/X11R5/include
10809 /usr/local/X11R4/include
10811 /usr/local/include/X11
10812 /usr/local/include/X11R7
10813 /usr/local/include/X11R6
10814 /usr/local/include/X11R5
10815 /usr/local/include/X11R4
10817 /usr/X386/include
10818 /usr/x386/include
10819 /usr/XFree86/include/X11
10821 /usr/include
10822 /usr/local/include
10823 /usr/unsupported/include
10824 /usr/athena/include
10825 /usr/local/x11r5/include
10826 /usr/lpp/Xamples/include
10828 /usr/openwin/include
10829 /usr/openwin/share/include'
10831 if test "$ac_x_includes" = no; then
10832 # Guess where to find include files, by looking for Xlib.h.
10833 # First, try using that file with no special directory specified.
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836 #include <X11/Xlib.h>
10837 _ACEOF
10838 if ac_fn_c_try_cpp "$LINENO"; then :
10839 # We can compile using X headers with no special include directory.
10840 ac_x_includes=
10841 else
10842 for ac_dir in $ac_x_header_dirs; do
10843 if test -r "$ac_dir/X11/Xlib.h"; then
10844 ac_x_includes=$ac_dir
10845 break
10847 done
10849 rm -f conftest.err conftest.$ac_ext
10850 fi # $ac_x_includes = no
10852 if test "$ac_x_libraries" = no; then
10853 # Check for the libraries.
10854 # See if we find them without any special options.
10855 # Don't add to $LIBS permanently.
10856 ac_save_LIBS=$LIBS
10857 LIBS="-lX11 $LIBS"
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <X11/Xlib.h>
10862 main ()
10864 XrmInitialize ()
10866 return 0;
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 LIBS=$ac_save_LIBS
10871 # We can link X programs with no special library path.
10872 ac_x_libraries=
10873 else
10874 LIBS=$ac_save_LIBS
10875 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10877 # Don't even attempt the hair of trying to link an X program!
10878 for ac_extension in a so sl dylib la dll; do
10879 if test -r "$ac_dir/libX11.$ac_extension"; then
10880 ac_x_libraries=$ac_dir
10881 break 2
10883 done
10884 done
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 fi # $ac_x_libraries = no
10890 case $ac_x_includes,$ac_x_libraries in #(
10891 no,* | *,no | *\'*)
10892 # Didn't find X, or a directory has "'" in its name.
10893 ac_cv_have_x="have_x=no";; #(
10895 # Record where we found X for the cache.
10896 ac_cv_have_x="have_x=yes\
10897 ac_x_includes='$ac_x_includes'\
10898 ac_x_libraries='$ac_x_libraries'"
10899 esac
10901 ;; #(
10902 *) have_x=yes;;
10903 esac
10904 eval "$ac_cv_have_x"
10905 fi # $with_x != no
10907 if test "$have_x" != yes; then
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10909 $as_echo "$have_x" >&6; }
10910 no_x=yes
10911 else
10912 # If each of the values was on the command line, it overrides each guess.
10913 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10914 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10915 # Update the cache value to reflect the command line values.
10916 ac_cv_have_x="have_x=yes\
10917 ac_x_includes='$x_includes'\
10918 ac_x_libraries='$x_libraries'"
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10920 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10924 x_cflags=
10925 for path in $x_libraries
10927 x_cflags="$x_cflags -L$path"
10928 done
10930 for path in $x_includes
10932 x_cflags="$x_cflags -I$path"
10933 done
10935 if test "x-$no_x" = "x-yes" ; then
10937 if test "x-$x11_hidd" != "x-auto" ; then
10938 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10941 else
10942 x11_hidd_target=kernel-x11gfx-kobj
10943 ENABLE_X11=1
10945 # Check whether --enable-x11_shm was given.
10946 if test "${enable_x11_shm+set}" = set; then :
10947 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10948 else
10949 x11_hidd_shm="auto"
10952 case "x-$x11_hidd_shm" in
10953 x-yes|x-no|x-auto) ;;
10954 *) x11_hidd_shm="auto" ;;
10955 esac
10957 have_xshm=no
10959 if test "x-$x11_hidd_shm" != "x-no" ; then
10961 for ac_header in sys/ipc.h
10962 do :
10963 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10964 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_SYS_IPC_H 1
10967 _ACEOF
10971 done
10973 for ac_header in sys/shm.h
10974 do :
10975 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10976 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_SYS_SHM_H 1
10979 _ACEOF
10983 done
10986 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10988 save_cflags="$CFLAGS"
10989 CFLAGS="$CFLAGS $x_cflags"
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10991 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10992 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-lXext $LIBS"
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char XShmQueryExtension ();
11008 main ()
11010 return XShmQueryExtension ();
11012 return 0;
11014 _ACEOF
11015 if ac_fn_c_try_link "$LINENO"; then :
11016 ac_cv_lib_Xext_XShmQueryExtension=yes
11017 else
11018 ac_cv_lib_Xext_XShmQueryExtension=no
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11025 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11026 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
11027 have_xshm=yes
11030 CFLAGS="$save_cflags"
11034 if test "x-$have_xshm" = "x-yes" ; then
11035 DO_XSHM_SUPPORT="1"
11036 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11037 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11038 else
11039 DO_XSHM_SUPPORT="0"
11043 # Check whether --enable-x11_vidmode was given.
11044 if test "${enable_x11_vidmode+set}" = set; then :
11045 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11046 else
11047 x11_hidd_vidmode="auto"
11050 case "x-$x11_hidd_vidmode" in
11051 x-yes|x-no|x-auto) ;;
11052 *) x11_hidd_vidmode="auto" ;;
11053 esac
11055 have_vidmode=no
11057 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11059 save_cflags="$CFLAGS"
11060 CFLAGS="$CFLAGS $x_cflags"
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11062 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11063 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-lXxf86vm $LIBS"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char XF86VidModeQueryExtension ();
11079 main ()
11081 return XF86VidModeQueryExtension ();
11083 return 0;
11085 _ACEOF
11086 if ac_fn_c_try_link "$LINENO"; then :
11087 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11088 else
11089 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LIBS=$ac_check_lib_save_LIBS
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11096 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11097 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
11098 have_vidmode=yes
11101 CFLAGS="$save_cflags"
11104 if test "x-$have_vidmode" = "x-yes" ; then
11105 DO_VIDMODE_SUPPORT="1"
11106 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11107 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11108 else
11109 DO_VIDMODE_SUPPORT="0"
11113 aros_host_x11_includes=$x_includes
11114 aros_host_x11_libdirs=$x_libraries
11118 # Check whether --enable-sdl_hidd was given.
11119 if test "${enable_sdl_hidd+set}" = set; then :
11120 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11121 else
11122 sdl_hidd="auto"
11125 case "x-$sdl_hidd" in
11126 x-yes|x-no|x-auto) ;;
11127 *) sdl_hidd="auto" ;;
11128 esac
11130 if test "x-$sdl_hidd" != "x-no" ; then
11133 # Check whether --with-sdl-prefix was given.
11134 if test "${with_sdl_prefix+set}" = set; then :
11135 withval=$with_sdl_prefix; sdl_prefix="$withval"
11136 else
11137 sdl_prefix=""
11141 # Check whether --with-sdl-exec-prefix was given.
11142 if test "${with_sdl_exec_prefix+set}" = set; then :
11143 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11144 else
11145 sdl_exec_prefix=""
11148 # Check whether --enable-sdltest was given.
11149 if test "${enable_sdltest+set}" = set; then :
11150 enableval=$enable_sdltest;
11151 else
11152 enable_sdltest=yes
11156 if test x$sdl_exec_prefix != x ; then
11157 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11158 if test x${SDL_CONFIG+set} != xset ; then
11159 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11162 if test x$sdl_prefix != x ; then
11163 sdl_args="$sdl_args --prefix=$sdl_prefix"
11164 if test x${SDL_CONFIG+set} != xset ; then
11165 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11169 if test "x$prefix" != xNONE; then
11170 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11172 # Extract the first word of "sdl-config", so it can be a program name with args.
11173 set dummy sdl-config; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 case $SDL_CONFIG in
11180 [\\/]* | ?:[\\/]*)
11181 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11191 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11195 done
11196 done
11197 IFS=$as_save_IFS
11199 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11201 esac
11203 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11204 if test -n "$SDL_CONFIG"; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11206 $as_echo "$SDL_CONFIG" >&6; }
11207 else
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11209 $as_echo "no" >&6; }
11213 min_sdl_version=1.2.10
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11215 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11216 no_sdl=""
11217 if test "$SDL_CONFIG" = "no" ; then
11218 no_sdl=yes
11219 else
11220 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11221 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11223 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11224 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11225 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11226 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11227 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11228 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11229 if test "x$enable_sdltest" = "xyes" ; then
11230 ac_save_CFLAGS="$CFLAGS"
11231 ac_save_CXXFLAGS="$CXXFLAGS"
11232 ac_save_LIBS="$LIBS"
11233 CFLAGS="$CFLAGS $SDL_CFLAGS"
11234 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11235 LIBS="$LIBS $SDL_LIBS"
11236 rm -f conf.sdltest
11237 if test "$cross_compiling" = yes; then :
11238 echo $ac_n "cross compiling; assumed OK... $ac_c"
11239 else
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11243 #include <stdio.h>
11244 #include <stdlib.h>
11245 #include <string.h>
11246 #include "SDL.h"
11248 char*
11249 my_strdup (char *str)
11251 char *new_str;
11253 if (str)
11255 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11256 strcpy (new_str, str);
11258 else
11259 new_str = NULL;
11261 return new_str;
11264 int main (int argc, char *argv[])
11266 int major, minor, micro;
11267 char *tmp_version;
11269 /* This hangs on some systems (?)
11270 system ("touch conf.sdltest");
11272 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11274 /* HP/UX 9 (%@#!) writes to sscanf strings */
11275 tmp_version = my_strdup("$min_sdl_version");
11276 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11277 printf("%s, bad version string\n", "$min_sdl_version");
11278 exit(1);
11281 if (($sdl_major_version > major) ||
11282 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11283 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11285 return 0;
11287 else
11289 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11290 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11291 printf("*** best to upgrade to the required version.\n");
11292 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11293 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11294 printf("*** config.cache before re-running configure\n");
11295 return 1;
11300 _ACEOF
11301 if ac_fn_c_try_run "$LINENO"; then :
11303 else
11304 no_sdl=yes
11306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11307 conftest.$ac_objext conftest.beam conftest.$ac_ext
11310 CFLAGS="$ac_save_CFLAGS"
11311 CXXFLAGS="$ac_save_CXXFLAGS"
11312 LIBS="$ac_save_LIBS"
11315 if test "x$no_sdl" = x ; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11317 $as_echo "yes" >&6; }
11318 have_sdl="yes"
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11322 if test "$SDL_CONFIG" = "no" ; then
11323 echo "*** The sdl-config script installed by SDL could not be found"
11324 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11325 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11326 echo "*** full path to sdl-config."
11327 else
11328 if test -f conf.sdltest ; then
11330 else
11331 echo "*** Could not run SDL test program, checking why..."
11332 CFLAGS="$CFLAGS $SDL_CFLAGS"
11333 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11334 LIBS="$LIBS $SDL_LIBS"
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11338 #include <stdio.h>
11339 #include "SDL.h"
11341 int main(int argc, char *argv[])
11342 { return 0; }
11343 #undef main
11344 #define main K_and_R_C_main
11347 main ()
11349 return 0;
11351 return 0;
11353 _ACEOF
11354 if ac_fn_c_try_link "$LINENO"; then :
11355 echo "*** The test program compiled, but did not run. This usually means"
11356 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11357 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11358 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11359 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11360 echo "*** is required on your system"
11361 echo "***"
11362 echo "*** If you have an old version installed, it is best to remove it, although"
11363 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11364 else
11365 echo "*** The test program failed to compile or link. See the file config.log for the"
11366 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11367 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11368 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 CFLAGS="$ac_save_CFLAGS"
11373 CXXFLAGS="$ac_save_CXXFLAGS"
11374 LIBS="$ac_save_LIBS"
11377 SDL_CFLAGS=""
11378 SDL_LIBS=""
11379 have_sdl="no"
11383 rm -f conf.sdltest
11386 if test "x-$have_sdl" != "x-yes" ; then
11388 if test "x-$sdl_hidd" != "x-auto" ; then
11389 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
11392 else
11393 sdl_hidd_target=kernel-hidd-sdl
11394 aros_host_sdl_cflags=SDL_CFLAGS
11395 aros_host_sdl_libs=SDL_LIBS
11399 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11400 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
11405 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
11406 oss_library_target=workbench-libs-oss-unix
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
11412 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
11413 # Check whether --enable-dbus was given.
11414 if test "${enable_dbus+set}" = set; then :
11415 enableval=$enable_dbus; dbus="yes"
11416 else
11417 dbus="no"
11420 if test "$dbus" = "yes" ; then
11421 ENABLE_DBUS=1
11422 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11423 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11424 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11425 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11426 else
11427 ENABLE_DBUS=0
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
11430 $as_echo "$dbus" >&6; }
11432 if test "$use_kernel_cc_wrapper" = "yes" ; then
11433 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
11437 # Generic
11448 # Compatability with other Amiga-like operation systems
11451 # Host related
11475 # Target Related
11533 # Graphics Related
11550 # Native version related
11553 # Palm native version related
11556 # USB3.0 code
11559 # Unix/Hosted version related
11562 # MMU related
11565 # Apple iOS related
11570 # Android related
11574 # DBUS related
11581 #X11 related
11584 # Debug related
11590 # Collect-aros stuff: "-ius" to ignore undefined symbols
11593 # C compiler related
11596 case "$aros_flavour" in
11597 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11598 aros_flavour="emulation" ;;
11599 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11600 aros_flavour="emulation" ;;
11601 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11602 aros_flavour="standalone";;
11603 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11604 aros_flavour="standalone";;
11605 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11606 aros_flavour="native" ;;
11607 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11608 aros_flavour="native" ;;
11609 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11610 aros_flavour="linklib" ;;
11611 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11612 aros_flavour="palmnative" ;;
11613 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11614 aros_flavour="mac68knative" ;;
11615 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11616 aros_flavour="ppcnative" ;;
11617 esac
11619 if test ! -d ${aros_inc_dir} ; then
11620 ${MKDIR} ${aros_inc_dir}
11622 if test ! -d ${aros_geninc_dir} ; then
11623 ${MKDIR} ${aros_geninc_dir}
11625 if test ! -d ${aros_hostcfg_dir} ; then
11626 ${MKDIR} ${aros_hostcfg_dir}
11628 if test ! -d ${aros_targetcfg_dir} ; then
11629 ${MKDIR} ${aros_targetcfg_dir}
11631 if test ! -d ${aros_tools_dir} ; then
11632 ${MKDIR} ${aros_tools_dir}
11634 if test ! -d ${aros_scripts_dir} ; then
11635 ${MKDIR} ${aros_scripts_dir}
11638 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11641 ac_config_commands="$ac_config_commands compiler_executable"
11643 ac_config_commands="$ac_config_commands genmf_executable"
11646 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
11649 cat >confcache <<\_ACEOF
11650 # This file is a shell script that caches the results of configure
11651 # tests run on this system so they can be shared between configure
11652 # scripts and configure runs, see configure's option --config-cache.
11653 # It is not useful on other systems. If it contains results you don't
11654 # want to keep, you may remove or edit it.
11656 # config.status only pays attention to the cache file if you give it
11657 # the --recheck option to rerun configure.
11659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11661 # following values.
11663 _ACEOF
11665 # The following way of writing the cache mishandles newlines in values,
11666 # but we know of no workaround that is simple, portable, and efficient.
11667 # So, we kill variables containing newlines.
11668 # Ultrix sh set writes to stderr and can't be redirected directly,
11669 # and sets the high bit in the cache file unless we assign to the vars.
11671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11672 eval ac_val=\$$ac_var
11673 case $ac_val in #(
11674 *${as_nl}*)
11675 case $ac_var in #(
11676 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11677 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11678 esac
11679 case $ac_var in #(
11680 _ | IFS | as_nl) ;; #(
11681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11682 *) { eval $ac_var=; unset $ac_var;} ;;
11683 esac ;;
11684 esac
11685 done
11687 (set) 2>&1 |
11688 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11689 *${as_nl}ac_space=\ *)
11690 # `set' does not quote correctly, so add quotes: double-quote
11691 # substitution turns \\\\ into \\, and sed turns \\ into \.
11692 sed -n \
11693 "s/'/'\\\\''/g;
11694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11695 ;; #(
11697 # `set' quotes correctly as required by POSIX, so do not add quotes.
11698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11700 esac |
11701 sort
11703 sed '
11704 /^ac_cv_env_/b end
11705 t clear
11706 :clear
11707 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11708 t end
11709 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11710 :end' >>confcache
11711 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11712 if test -w "$cache_file"; then
11713 test "x$cache_file" != "x/dev/null" &&
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11715 $as_echo "$as_me: updating cache $cache_file" >&6;}
11716 cat confcache >$cache_file
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11719 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11722 rm -f confcache
11724 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11725 # Let make expand exec_prefix.
11726 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11728 DEFS=-DHAVE_CONFIG_H
11730 ac_libobjs=
11731 ac_ltlibobjs=
11732 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11733 # 1. Remove the extension, and $U if already installed.
11734 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11735 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11736 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11737 # will be set to the directory where LIBOBJS objects are built.
11738 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11739 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11740 done
11741 LIBOBJS=$ac_libobjs
11743 LTLIBOBJS=$ac_ltlibobjs
11747 : ${CONFIG_STATUS=./config.status}
11748 ac_write_fail=0
11749 ac_clean_files_save=$ac_clean_files
11750 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11752 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11753 as_write_fail=0
11754 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11755 #! $SHELL
11756 # Generated by $as_me.
11757 # Run this file to recreate the current configuration.
11758 # Compiler output produced by configure, useful for debugging
11759 # configure, is in config.log if it exists.
11761 debug=false
11762 ac_cs_recheck=false
11763 ac_cs_silent=false
11765 SHELL=\${CONFIG_SHELL-$SHELL}
11766 export SHELL
11767 _ASEOF
11768 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11769 ## -------------------- ##
11770 ## M4sh Initialization. ##
11771 ## -------------------- ##
11773 # Be more Bourne compatible
11774 DUALCASE=1; export DUALCASE # for MKS sh
11775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11776 emulate sh
11777 NULLCMD=:
11778 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11779 # is contrary to our usage. Disable this feature.
11780 alias -g '${1+"$@"}'='"$@"'
11781 setopt NO_GLOB_SUBST
11782 else
11783 case `(set -o) 2>/dev/null` in #(
11784 *posix*) :
11785 set -o posix ;; #(
11786 *) :
11788 esac
11792 as_nl='
11794 export as_nl
11795 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11796 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11799 # Prefer a ksh shell builtin over an external printf program on Solaris,
11800 # but without wasting forks for bash or zsh.
11801 if test -z "$BASH_VERSION$ZSH_VERSION" \
11802 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11803 as_echo='print -r --'
11804 as_echo_n='print -rn --'
11805 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11806 as_echo='printf %s\n'
11807 as_echo_n='printf %s'
11808 else
11809 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11810 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11811 as_echo_n='/usr/ucb/echo -n'
11812 else
11813 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11814 as_echo_n_body='eval
11815 arg=$1;
11816 case $arg in #(
11817 *"$as_nl"*)
11818 expr "X$arg" : "X\\(.*\\)$as_nl";
11819 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11820 esac;
11821 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11823 export as_echo_n_body
11824 as_echo_n='sh -c $as_echo_n_body as_echo'
11826 export as_echo_body
11827 as_echo='sh -c $as_echo_body as_echo'
11830 # The user is always right.
11831 if test "${PATH_SEPARATOR+set}" != set; then
11832 PATH_SEPARATOR=:
11833 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11834 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11835 PATH_SEPARATOR=';'
11840 # IFS
11841 # We need space, tab and new line, in precisely that order. Quoting is
11842 # there to prevent editors from complaining about space-tab.
11843 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11844 # splitting by setting IFS to empty value.)
11845 IFS=" "" $as_nl"
11847 # Find who we are. Look in the path if we contain no directory separator.
11848 case $0 in #((
11849 *[\\/]* ) as_myself=$0 ;;
11850 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851 for as_dir in $PATH
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
11855 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11856 done
11857 IFS=$as_save_IFS
11860 esac
11861 # We did not find ourselves, most probably we were run as `sh COMMAND'
11862 # in which case we are not to be found in the path.
11863 if test "x$as_myself" = x; then
11864 as_myself=$0
11866 if test ! -f "$as_myself"; then
11867 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11868 exit 1
11871 # Unset variables that we do not need and which cause bugs (e.g. in
11872 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11873 # suppresses any "Segmentation fault" message there. '((' could
11874 # trigger a bug in pdksh 5.2.14.
11875 for as_var in BASH_ENV ENV MAIL MAILPATH
11876 do eval test x\${$as_var+set} = xset \
11877 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11878 done
11879 PS1='$ '
11880 PS2='> '
11881 PS4='+ '
11883 # NLS nuisances.
11884 LC_ALL=C
11885 export LC_ALL
11886 LANGUAGE=C
11887 export LANGUAGE
11889 # CDPATH.
11890 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11893 # as_fn_error ERROR [LINENO LOG_FD]
11894 # ---------------------------------
11895 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11896 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11897 # script with status $?, using 1 if that was 0.
11898 as_fn_error ()
11900 as_status=$?; test $as_status -eq 0 && as_status=1
11901 if test "$3"; then
11902 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11903 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11905 $as_echo "$as_me: error: $1" >&2
11906 as_fn_exit $as_status
11907 } # as_fn_error
11910 # as_fn_set_status STATUS
11911 # -----------------------
11912 # Set $? to STATUS, without forking.
11913 as_fn_set_status ()
11915 return $1
11916 } # as_fn_set_status
11918 # as_fn_exit STATUS
11919 # -----------------
11920 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11921 as_fn_exit ()
11923 set +e
11924 as_fn_set_status $1
11925 exit $1
11926 } # as_fn_exit
11928 # as_fn_unset VAR
11929 # ---------------
11930 # Portably unset VAR.
11931 as_fn_unset ()
11933 { eval $1=; unset $1;}
11935 as_unset=as_fn_unset
11936 # as_fn_append VAR VALUE
11937 # ----------------------
11938 # Append the text in VALUE to the end of the definition contained in VAR. Take
11939 # advantage of any shell optimizations that allow amortized linear growth over
11940 # repeated appends, instead of the typical quadratic growth present in naive
11941 # implementations.
11942 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11943 eval 'as_fn_append ()
11945 eval $1+=\$2
11947 else
11948 as_fn_append ()
11950 eval $1=\$$1\$2
11952 fi # as_fn_append
11954 # as_fn_arith ARG...
11955 # ------------------
11956 # Perform arithmetic evaluation on the ARGs, and store the result in the
11957 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11958 # must be portable across $(()) and expr.
11959 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11960 eval 'as_fn_arith ()
11962 as_val=$(( $* ))
11964 else
11965 as_fn_arith ()
11967 as_val=`expr "$@" || test $? -eq 1`
11969 fi # as_fn_arith
11972 if expr a : '\(a\)' >/dev/null 2>&1 &&
11973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11974 as_expr=expr
11975 else
11976 as_expr=false
11979 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11980 as_basename=basename
11981 else
11982 as_basename=false
11985 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11986 as_dirname=dirname
11987 else
11988 as_dirname=false
11991 as_me=`$as_basename -- "$0" ||
11992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11993 X"$0" : 'X\(//\)$' \| \
11994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11995 $as_echo X/"$0" |
11996 sed '/^.*\/\([^/][^/]*\)\/*$/{
11997 s//\1/
12000 /^X\/\(\/\/\)$/{
12001 s//\1/
12004 /^X\/\(\/\).*/{
12005 s//\1/
12008 s/.*/./; q'`
12010 # Avoid depending upon Character Ranges.
12011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12014 as_cr_digits='0123456789'
12015 as_cr_alnum=$as_cr_Letters$as_cr_digits
12017 ECHO_C= ECHO_N= ECHO_T=
12018 case `echo -n x` in #(((((
12019 -n*)
12020 case `echo 'xy\c'` in
12021 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12022 xy) ECHO_C='\c';;
12023 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12024 ECHO_T=' ';;
12025 esac;;
12027 ECHO_N='-n';;
12028 esac
12030 rm -f conf$$ conf$$.exe conf$$.file
12031 if test -d conf$$.dir; then
12032 rm -f conf$$.dir/conf$$.file
12033 else
12034 rm -f conf$$.dir
12035 mkdir conf$$.dir 2>/dev/null
12037 if (echo >conf$$.file) 2>/dev/null; then
12038 if ln -s conf$$.file conf$$ 2>/dev/null; then
12039 as_ln_s='ln -s'
12040 # ... but there are two gotchas:
12041 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12042 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12043 # In both cases, we have to default to `cp -p'.
12044 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12045 as_ln_s='cp -p'
12046 elif ln conf$$.file conf$$ 2>/dev/null; then
12047 as_ln_s=ln
12048 else
12049 as_ln_s='cp -p'
12051 else
12052 as_ln_s='cp -p'
12054 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12055 rmdir conf$$.dir 2>/dev/null
12058 # as_fn_mkdir_p
12059 # -------------
12060 # Create "$as_dir" as a directory, including parents if necessary.
12061 as_fn_mkdir_p ()
12064 case $as_dir in #(
12065 -*) as_dir=./$as_dir;;
12066 esac
12067 test -d "$as_dir" || eval $as_mkdir_p || {
12068 as_dirs=
12069 while :; do
12070 case $as_dir in #(
12071 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12072 *) as_qdir=$as_dir;;
12073 esac
12074 as_dirs="'$as_qdir' $as_dirs"
12075 as_dir=`$as_dirname -- "$as_dir" ||
12076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12077 X"$as_dir" : 'X\(//\)[^/]' \| \
12078 X"$as_dir" : 'X\(//\)$' \| \
12079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12080 $as_echo X"$as_dir" |
12081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12082 s//\1/
12085 /^X\(\/\/\)[^/].*/{
12086 s//\1/
12089 /^X\(\/\/\)$/{
12090 s//\1/
12093 /^X\(\/\).*/{
12094 s//\1/
12097 s/.*/./; q'`
12098 test -d "$as_dir" && break
12099 done
12100 test -z "$as_dirs" || eval "mkdir $as_dirs"
12101 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12104 } # as_fn_mkdir_p
12105 if mkdir -p . 2>/dev/null; then
12106 as_mkdir_p='mkdir -p "$as_dir"'
12107 else
12108 test -d ./-p && rmdir ./-p
12109 as_mkdir_p=false
12112 if test -x / >/dev/null 2>&1; then
12113 as_test_x='test -x'
12114 else
12115 if ls -dL / >/dev/null 2>&1; then
12116 as_ls_L_option=L
12117 else
12118 as_ls_L_option=
12120 as_test_x='
12121 eval sh -c '\''
12122 if test -d "$1"; then
12123 test -d "$1/.";
12124 else
12125 case $1 in #(
12126 -*)set "./$1";;
12127 esac;
12128 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12129 ???[sx]*):;;*)false;;esac;fi
12130 '\'' sh
12133 as_executable_p=$as_test_x
12135 # Sed expression to map a string onto a valid CPP name.
12136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12138 # Sed expression to map a string onto a valid variable name.
12139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12142 exec 6>&1
12143 ## ----------------------------------- ##
12144 ## Main body of $CONFIG_STATUS script. ##
12145 ## ----------------------------------- ##
12146 _ASEOF
12147 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12150 # Save the log message, to keep $0 and so on meaningful, and to
12151 # report actual input values of CONFIG_FILES etc. instead of their
12152 # values after options handling.
12153 ac_log="
12154 This file was extended by $as_me, which was
12155 generated by GNU Autoconf 2.65. Invocation command line was
12157 CONFIG_FILES = $CONFIG_FILES
12158 CONFIG_HEADERS = $CONFIG_HEADERS
12159 CONFIG_LINKS = $CONFIG_LINKS
12160 CONFIG_COMMANDS = $CONFIG_COMMANDS
12161 $ $0 $@
12163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12166 _ACEOF
12168 case $ac_config_files in *"
12169 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12170 esac
12172 case $ac_config_headers in *"
12173 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12174 esac
12177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12178 # Files that config.status was made for.
12179 config_files="$ac_config_files"
12180 config_headers="$ac_config_headers"
12181 config_commands="$ac_config_commands"
12183 _ACEOF
12185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12186 ac_cs_usage="\
12187 \`$as_me' instantiates files and other configuration actions
12188 from templates according to the current configuration. Unless the files
12189 and actions are specified as TAGs, all are instantiated by default.
12191 Usage: $0 [OPTION]... [TAG]...
12193 -h, --help print this help, then exit
12194 -V, --version print version number and configuration settings, then exit
12195 --config print configuration, then exit
12196 -q, --quiet, --silent
12197 do not print progress messages
12198 -d, --debug don't remove temporary files
12199 --recheck update $as_me by reconfiguring in the same conditions
12200 --file=FILE[:TEMPLATE]
12201 instantiate the configuration file FILE
12202 --header=FILE[:TEMPLATE]
12203 instantiate the configuration header FILE
12205 Configuration files:
12206 $config_files
12208 Configuration headers:
12209 $config_headers
12211 Configuration commands:
12212 $config_commands
12214 Report bugs to the package provider."
12216 _ACEOF
12217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12218 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12219 ac_cs_version="\\
12220 config.status
12221 configured by $0, generated by GNU Autoconf 2.65,
12222 with options \\"\$ac_cs_config\\"
12224 Copyright (C) 2009 Free Software Foundation, Inc.
12225 This config.status script is free software; the Free Software Foundation
12226 gives unlimited permission to copy, distribute and modify it."
12228 ac_pwd='$ac_pwd'
12229 srcdir='$srcdir'
12230 test -n "\$AWK" || AWK=awk
12231 _ACEOF
12233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12234 # The default lists apply if the user does not specify any file.
12235 ac_need_defaults=:
12236 while test $# != 0
12238 case $1 in
12239 --*=*)
12240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12241 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12242 ac_shift=:
12245 ac_option=$1
12246 ac_optarg=$2
12247 ac_shift=shift
12249 esac
12251 case $ac_option in
12252 # Handling of the options.
12253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12254 ac_cs_recheck=: ;;
12255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12256 $as_echo "$ac_cs_version"; exit ;;
12257 --config | --confi | --conf | --con | --co | --c )
12258 $as_echo "$ac_cs_config"; exit ;;
12259 --debug | --debu | --deb | --de | --d | -d )
12260 debug=: ;;
12261 --file | --fil | --fi | --f )
12262 $ac_shift
12263 case $ac_optarg in
12264 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12265 esac
12266 as_fn_append CONFIG_FILES " '$ac_optarg'"
12267 ac_need_defaults=false;;
12268 --header | --heade | --head | --hea )
12269 $ac_shift
12270 case $ac_optarg in
12271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12272 esac
12273 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12274 ac_need_defaults=false;;
12275 --he | --h)
12276 # Conflict between --help and --header
12277 as_fn_error "ambiguous option: \`$1'
12278 Try \`$0 --help' for more information.";;
12279 --help | --hel | -h )
12280 $as_echo "$ac_cs_usage"; exit ;;
12281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12282 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12283 ac_cs_silent=: ;;
12285 # This is an error.
12286 -*) as_fn_error "unrecognized option: \`$1'
12287 Try \`$0 --help' for more information." ;;
12289 *) as_fn_append ac_config_targets " $1"
12290 ac_need_defaults=false ;;
12292 esac
12293 shift
12294 done
12296 ac_configure_extra_args=
12298 if $ac_cs_silent; then
12299 exec 6>/dev/null
12300 ac_configure_extra_args="$ac_configure_extra_args --silent"
12303 _ACEOF
12304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12305 if \$ac_cs_recheck; then
12306 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12307 shift
12308 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12309 CONFIG_SHELL='$SHELL'
12310 export CONFIG_SHELL
12311 exec "\$@"
12314 _ACEOF
12315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12316 exec 5>>config.log
12318 echo
12319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12320 ## Running $as_me. ##
12321 _ASBOX
12322 $as_echo "$ac_log"
12323 } >&5
12325 _ACEOF
12326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12328 # INIT-COMMANDS
12331 aros_host_exe_suffix=${aros_host_exe_suffix}
12332 aros_tools_dir=${aros_tools_dir}
12333 aros_target_cpu=${aros_target_cpu}
12334 aros_target_arch=${aros_target_arch}
12335 aros_target_suffix=${aros_target_suffix}
12336 aros_target_nm_ln=${aros_target_nm_ln}
12337 aros_target_as_ln=${aros_target_as_ln}
12338 aros_target_ar_ln=${aros_target_ar_ln}
12339 aros_target_ranlib_ln=${aros_target_ranlib_ln}
12340 aros_target_objdump_ln=${aros_target_objdump_ln}
12341 aros_target_objcopy_ln=${aros_target_objcopy_ln}
12342 aros_target_strip_ln=${aros_target_strip_ln}
12343 aros_kernel_ld=${aros_kernel_ld}
12346 aros_tools_dir=${aros_tools_dir}
12349 _ACEOF
12351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12353 # Handling of arguments.
12354 for ac_config_target in $ac_config_targets
12356 case $ac_config_target in
12357 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12358 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
12359 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
12360 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12361 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
12362 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
12363 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
12364 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
12365 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
12366 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
12367 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
12368 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
12369 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
12370 "${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" ;;
12371 "${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" ;;
12372 "${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" ;;
12373 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
12374 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
12375 "${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" ;;
12377 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12378 esac
12379 done
12382 # If the user did not use the arguments to specify the items to instantiate,
12383 # then the envvar interface is used. Set only those that are not.
12384 # We use the long form for the default assignment because of an extremely
12385 # bizarre bug on SunOS 4.1.3.
12386 if $ac_need_defaults; then
12387 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12388 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12389 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12392 # Have a temporary directory for convenience. Make it in the build tree
12393 # simply because there is no reason against having it here, and in addition,
12394 # creating and moving files from /tmp can sometimes cause problems.
12395 # Hook for its removal unless debugging.
12396 # Note that there is a small window in which the directory will not be cleaned:
12397 # after its creation but before its name has been assigned to `$tmp'.
12398 $debug ||
12400 tmp=
12401 trap 'exit_status=$?
12402 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12404 trap 'as_fn_exit 1' 1 2 13 15
12406 # Create a (secure) tmp directory for tmp files.
12409 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12410 test -n "$tmp" && test -d "$tmp"
12411 } ||
12413 tmp=./conf$$-$RANDOM
12414 (umask 077 && mkdir "$tmp")
12415 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12417 # Set up the scripts for CONFIG_FILES section.
12418 # No need to generate them if there are no CONFIG_FILES.
12419 # This happens for instance with `./config.status config.h'.
12420 if test -n "$CONFIG_FILES"; then
12423 ac_cr=`echo X | tr X '\015'`
12424 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12425 # But we know of no other shell where ac_cr would be empty at this
12426 # point, so we can use a bashism as a fallback.
12427 if test "x$ac_cr" = x; then
12428 eval ac_cr=\$\'\\r\'
12430 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12431 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12432 ac_cs_awk_cr='\r'
12433 else
12434 ac_cs_awk_cr=$ac_cr
12437 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12438 _ACEOF
12442 echo "cat >conf$$subs.awk <<_ACEOF" &&
12443 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12444 echo "_ACEOF"
12445 } >conf$$subs.sh ||
12446 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12447 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12448 ac_delim='%!_!# '
12449 for ac_last_try in false false false false false :; do
12450 . ./conf$$subs.sh ||
12451 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12453 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12454 if test $ac_delim_n = $ac_delim_num; then
12455 break
12456 elif $ac_last_try; then
12457 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12458 else
12459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12461 done
12462 rm -f conf$$subs.sh
12464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12465 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12466 _ACEOF
12467 sed -n '
12469 s/^/S["/; s/!.*/"]=/
12472 s/^[^!]*!//
12473 :repl
12474 t repl
12475 s/'"$ac_delim"'$//
12476 t delim
12479 s/\(.\{148\}\)..*/\1/
12480 t more1
12481 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12484 b repl
12485 :more1
12486 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12489 s/.\{148\}//
12490 t nl
12491 :delim
12493 s/\(.\{148\}\)..*/\1/
12494 t more2
12495 s/["\\]/\\&/g; s/^/"/; s/$/"/
12498 :more2
12499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12502 s/.\{148\}//
12503 t delim
12504 ' <conf$$subs.awk | sed '
12505 /^[^""]/{
12507 s/\n//
12509 ' >>$CONFIG_STATUS || ac_write_fail=1
12510 rm -f conf$$subs.awk
12511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12512 _ACAWK
12513 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12514 for (key in S) S_is_set[key] = 1
12515 FS = "\a"
12519 line = $ 0
12520 nfields = split(line, field, "@")
12521 substed = 0
12522 len = length(field[1])
12523 for (i = 2; i < nfields; i++) {
12524 key = field[i]
12525 keylen = length(key)
12526 if (S_is_set[key]) {
12527 value = S[key]
12528 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12529 len += length(value) + length(field[++i])
12530 substed = 1
12531 } else
12532 len += 1 + keylen
12535 print line
12538 _ACAWK
12539 _ACEOF
12540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12541 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12542 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12543 else
12545 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12546 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12547 _ACEOF
12549 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12550 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12551 # trailing colons and then remove the whole line if VPATH becomes empty
12552 # (actually we leave an empty line to preserve line numbers).
12553 if test "x$srcdir" = x.; then
12554 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12555 s/:*\$(srcdir):*/:/
12556 s/:*\${srcdir}:*/:/
12557 s/:*@srcdir@:*/:/
12558 s/^\([^=]*=[ ]*\):*/\1/
12559 s/:*$//
12560 s/^[^=]*=[ ]*$//
12564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12565 fi # test -n "$CONFIG_FILES"
12567 # Set up the scripts for CONFIG_HEADERS section.
12568 # No need to generate them if there are no CONFIG_HEADERS.
12569 # This happens for instance with `./config.status Makefile'.
12570 if test -n "$CONFIG_HEADERS"; then
12571 cat >"$tmp/defines.awk" <<\_ACAWK ||
12572 BEGIN {
12573 _ACEOF
12575 # Transform confdefs.h into an awk script `defines.awk', embedded as
12576 # here-document in config.status, that substitutes the proper values into
12577 # config.h.in to produce config.h.
12579 # Create a delimiter string that does not exist in confdefs.h, to ease
12580 # handling of long lines.
12581 ac_delim='%!_!# '
12582 for ac_last_try in false false :; do
12583 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12584 if test -z "$ac_t"; then
12585 break
12586 elif $ac_last_try; then
12587 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12588 else
12589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12591 done
12593 # For the awk script, D is an array of macro values keyed by name,
12594 # likewise P contains macro parameters if any. Preserve backslash
12595 # newline sequences.
12597 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12598 sed -n '
12599 s/.\{148\}/&'"$ac_delim"'/g
12600 t rset
12601 :rset
12602 s/^[ ]*#[ ]*define[ ][ ]*/ /
12603 t def
12605 :def
12606 s/\\$//
12607 t bsnl
12608 s/["\\]/\\&/g
12609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12610 D["\1"]=" \3"/p
12611 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12613 :bsnl
12614 s/["\\]/\\&/g
12615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12616 D["\1"]=" \3\\\\\\n"\\/p
12617 t cont
12618 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12619 t cont
12621 :cont
12623 s/.\{148\}/&'"$ac_delim"'/g
12624 t clear
12625 :clear
12626 s/\\$//
12627 t bsnlc
12628 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12630 :bsnlc
12631 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12632 b cont
12633 ' <confdefs.h | sed '
12634 s/'"$ac_delim"'/"\\\
12635 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12638 for (key in D) D_is_set[key] = 1
12639 FS = "\a"
12641 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12642 line = \$ 0
12643 split(line, arg, " ")
12644 if (arg[1] == "#") {
12645 defundef = arg[2]
12646 mac1 = arg[3]
12647 } else {
12648 defundef = substr(arg[1], 2)
12649 mac1 = arg[2]
12651 split(mac1, mac2, "(") #)
12652 macro = mac2[1]
12653 prefix = substr(line, 1, index(line, defundef) - 1)
12654 if (D_is_set[macro]) {
12655 # Preserve the white space surrounding the "#".
12656 print prefix "define", macro P[macro] D[macro]
12657 next
12658 } else {
12659 # Replace #undef with comments. This is necessary, for example,
12660 # in the case of _POSIX_SOURCE, which is predefined and required
12661 # on some systems where configure will not decide to define it.
12662 if (defundef == "undef") {
12663 print "/*", prefix defundef, macro, "*/"
12664 next
12668 { print }
12669 _ACAWK
12670 _ACEOF
12671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12672 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12673 fi # test -n "$CONFIG_HEADERS"
12676 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12677 shift
12678 for ac_tag
12680 case $ac_tag in
12681 :[FHLC]) ac_mode=$ac_tag; continue;;
12682 esac
12683 case $ac_mode$ac_tag in
12684 :[FHL]*:*);;
12685 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12686 :[FH]-) ac_tag=-:-;;
12687 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12688 esac
12689 ac_save_IFS=$IFS
12690 IFS=:
12691 set x $ac_tag
12692 IFS=$ac_save_IFS
12693 shift
12694 ac_file=$1
12695 shift
12697 case $ac_mode in
12698 :L) ac_source=$1;;
12699 :[FH])
12700 ac_file_inputs=
12701 for ac_f
12703 case $ac_f in
12704 -) ac_f="$tmp/stdin";;
12705 *) # Look for the file first in the build tree, then in the source tree
12706 # (if the path is not absolute). The absolute path cannot be DOS-style,
12707 # because $ac_f cannot contain `:'.
12708 test -f "$ac_f" ||
12709 case $ac_f in
12710 [\\/$]*) false;;
12711 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12712 esac ||
12713 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12714 esac
12715 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12716 as_fn_append ac_file_inputs " '$ac_f'"
12717 done
12719 # Let's still pretend it is `configure' which instantiates (i.e., don't
12720 # use $as_me), people would be surprised to read:
12721 # /* config.h. Generated by config.status. */
12722 configure_input='Generated from '`
12723 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12724 `' by configure.'
12725 if test x"$ac_file" != x-; then
12726 configure_input="$ac_file. $configure_input"
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12728 $as_echo "$as_me: creating $ac_file" >&6;}
12730 # Neutralize special characters interpreted by sed in replacement strings.
12731 case $configure_input in #(
12732 *\&* | *\|* | *\\* )
12733 ac_sed_conf_input=`$as_echo "$configure_input" |
12734 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12735 *) ac_sed_conf_input=$configure_input;;
12736 esac
12738 case $ac_tag in
12739 *:-:* | *:-) cat >"$tmp/stdin" \
12740 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12741 esac
12743 esac
12745 ac_dir=`$as_dirname -- "$ac_file" ||
12746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12747 X"$ac_file" : 'X\(//\)[^/]' \| \
12748 X"$ac_file" : 'X\(//\)$' \| \
12749 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12750 $as_echo X"$ac_file" |
12751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12752 s//\1/
12755 /^X\(\/\/\)[^/].*/{
12756 s//\1/
12759 /^X\(\/\/\)$/{
12760 s//\1/
12763 /^X\(\/\).*/{
12764 s//\1/
12767 s/.*/./; q'`
12768 as_dir="$ac_dir"; as_fn_mkdir_p
12769 ac_builddir=.
12771 case "$ac_dir" in
12772 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12774 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12775 # A ".." for each directory in $ac_dir_suffix.
12776 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12777 case $ac_top_builddir_sub in
12778 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12779 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12780 esac ;;
12781 esac
12782 ac_abs_top_builddir=$ac_pwd
12783 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12784 # for backward compatibility:
12785 ac_top_builddir=$ac_top_build_prefix
12787 case $srcdir in
12788 .) # We are building in place.
12789 ac_srcdir=.
12790 ac_top_srcdir=$ac_top_builddir_sub
12791 ac_abs_top_srcdir=$ac_pwd ;;
12792 [\\/]* | ?:[\\/]* ) # Absolute name.
12793 ac_srcdir=$srcdir$ac_dir_suffix;
12794 ac_top_srcdir=$srcdir
12795 ac_abs_top_srcdir=$srcdir ;;
12796 *) # Relative name.
12797 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12798 ac_top_srcdir=$ac_top_build_prefix$srcdir
12799 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12800 esac
12801 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12804 case $ac_mode in
12807 # CONFIG_FILE
12810 _ACEOF
12812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12813 # If the template does not know about datarootdir, expand it.
12814 # FIXME: This hack should be removed a few years after 2.60.
12815 ac_datarootdir_hack=; ac_datarootdir_seen=
12816 ac_sed_dataroot='
12817 /datarootdir/ {
12821 /@datadir@/p
12822 /@docdir@/p
12823 /@infodir@/p
12824 /@localedir@/p
12825 /@mandir@/p'
12826 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12827 *datarootdir*) ac_datarootdir_seen=yes;;
12828 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12830 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12831 _ACEOF
12832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12833 ac_datarootdir_hack='
12834 s&@datadir@&$datadir&g
12835 s&@docdir@&$docdir&g
12836 s&@infodir@&$infodir&g
12837 s&@localedir@&$localedir&g
12838 s&@mandir@&$mandir&g
12839 s&\\\${datarootdir}&$datarootdir&g' ;;
12840 esac
12841 _ACEOF
12843 # Neutralize VPATH when `$srcdir' = `.'.
12844 # Shell code in configure.ac might set extrasub.
12845 # FIXME: do we really want to maintain this feature?
12846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12847 ac_sed_extra="$ac_vpsub
12848 $extrasub
12849 _ACEOF
12850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12853 s|@configure_input@|$ac_sed_conf_input|;t t
12854 s&@top_builddir@&$ac_top_builddir_sub&;t t
12855 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12856 s&@srcdir@&$ac_srcdir&;t t
12857 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12858 s&@top_srcdir@&$ac_top_srcdir&;t t
12859 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12860 s&@builddir@&$ac_builddir&;t t
12861 s&@abs_builddir@&$ac_abs_builddir&;t t
12862 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12863 $ac_datarootdir_hack
12865 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12866 || as_fn_error "could not create $ac_file" "$LINENO" 5
12868 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12869 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12872 which seems to be undefined. Please make sure it is defined." >&5
12873 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12874 which seems to be undefined. Please make sure it is defined." >&2;}
12876 rm -f "$tmp/stdin"
12877 case $ac_file in
12878 -) cat "$tmp/out" && rm -f "$tmp/out";;
12879 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12880 esac \
12881 || as_fn_error "could not create $ac_file" "$LINENO" 5
12885 # CONFIG_HEADER
12887 if test x"$ac_file" != x-; then
12889 $as_echo "/* $configure_input */" \
12890 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12891 } >"$tmp/config.h" \
12892 || as_fn_error "could not create $ac_file" "$LINENO" 5
12893 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12895 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12896 else
12897 rm -f "$ac_file"
12898 mv "$tmp/config.h" "$ac_file" \
12899 || as_fn_error "could not create $ac_file" "$LINENO" 5
12901 else
12902 $as_echo "/* $configure_input */" \
12903 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12904 || as_fn_error "could not create -" "$LINENO" 5
12908 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12909 $as_echo "$as_me: executing $ac_file commands" >&6;}
12911 esac
12914 case $ac_file$ac_mode in
12915 "compiler_executable":C)
12916 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12917 mkdir -p $prefix
12918 prefix="${prefix}/${aros_target_cpu}-aros"
12919 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12920 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
12922 echo ${prefix}
12923 echo ${prefix2}
12924 echo ${prefix3}
12925 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
12927 ln -sf ${prefix2}-gcc ${prefix}-gcc
12928 ln -sf ${prefix2}-ld ${prefix}-ld
12930 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12931 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12932 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12933 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12934 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12935 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12936 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12938 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12939 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12940 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12941 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12942 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12943 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12944 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12946 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld
12948 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12950 esac
12951 done # for ac_tag
12954 as_fn_exit 0
12955 _ACEOF
12956 ac_clean_files=$ac_clean_files_save
12958 test $ac_write_fail = 0 ||
12959 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12962 # configure is writing to config.log, and then calls config.status.
12963 # config.status does its own redirection, appending to config.log.
12964 # Unfortunately, on DOS this fails, as config.log is still kept open
12965 # by configure, so config.status won't be able to write to it; its
12966 # output is simply discarded. So we exec the FD to /dev/null,
12967 # effectively closing config.log, so it can be properly (re)opened and
12968 # appended to by config.status. When coming back to configure, we
12969 # need to make the FD available again.
12970 if test "$no_create" != yes; then
12971 ac_cs_success=:
12972 ac_config_status_args=
12973 test "$silent" = yes &&
12974 ac_config_status_args="$ac_config_status_args --quiet"
12975 exec 5>/dev/null
12976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12977 exec 5>>config.log
12978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12979 # would make configure fail if this is the last instruction.
12980 $ac_cs_success || as_fn_exit $?
12982 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12984 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12989 #XXX compatability...
12990 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12992 if test -n "$aros_shared_cflags" ; then
12993 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12994 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg