Actually issue a system call.
[AROS.git] / configure
blobac5404a5c517ffaa9b0c71f4db6425659caa48f8
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
730 android_tool
731 CCACHE
732 DISTCC
733 LIBOBJS
734 EGREP
735 GREP
737 TEST
740 pkgpyexecdir
741 pyexecdir
742 pkgpythondir
743 pythondir
744 PYTHON_PLATFORM
745 PYTHON_EXEC_PREFIX
746 PYTHON_PREFIX
747 PYTHON_VERSION
748 PYTHON
749 PATCH
750 CHMOD
752 PPMTOILBM
753 PNGTOPNM
754 FLEX
755 BISON
758 UNIQ
759 SORT
760 TOUCH
761 MKDIR
762 ECHO
766 aros_host_strip
767 aros_host_ranlib
768 aros_host_ar
769 aros_host_automake
770 aros_host_autoheader
771 aros_host_autoconf
772 aros_host_aclocal
773 aros_host_ld
774 MMAKE
777 OBJEXT
778 EXEEXT
779 ac_ct_CC
780 CPPFLAGS
781 LDFLAGS
782 CFLAGS
784 host_os
785 host_vendor
786 host_cpu
787 host
788 build_os
789 build_vendor
790 build_cpu
791 build
792 target_alias
793 host_alias
794 build_alias
795 LIBS
796 ECHO_T
797 ECHO_N
798 ECHO_C
799 DEFS
800 mandir
801 localedir
802 libdir
803 psdir
804 pdfdir
805 dvidir
806 htmldir
807 infodir
808 docdir
809 oldincludedir
810 includedir
811 localstatedir
812 sharedstatedir
813 sysconfdir
814 datadir
815 datarootdir
816 libexecdir
817 sbindir
818 bindir
819 program_transform_name
820 prefix
821 exec_prefix
822 PACKAGE_URL
823 PACKAGE_BUGREPORT
824 PACKAGE_STRING
825 PACKAGE_VERSION
826 PACKAGE_TARNAME
827 PACKAGE_NAME
828 PATH_SEPARATOR
829 SHELL'
830 ac_subst_files=''
831 ac_user_opts='
832 enable_option_checking
833 enable_build_type
834 enable_debug
835 enable_crosstools
836 enable_distcc
837 enable_ccache
838 with_gcc_version
839 with_optimization
840 with_paranoia
841 enable_target_variant
842 with_xcode
843 with_ios_version
844 with_ios_sdk
845 with_sdk
846 with_ndk
847 with_sdk_version
848 with_ndk_version
849 enable_amigaos_compliance
850 with_crosstools
851 with_aros_gcc
852 with_portssources
853 with_bootloader
854 with_iconset
855 with_theme
856 enable_includes
857 with_resolution
858 with_serial_debug
859 enable_palm_debug_hack
860 enable_usb30_code
861 enable_nesting_supervisor
862 enable_mmu
863 enable_x11_hidd
864 with_x
865 enable_x11_shm
866 enable_x11_vidmode
867 enable_sdl_hidd
868 with_sdl_prefix
869 with_sdl_exec_prefix
870 enable_sdltest
871 enable_dbus
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
882 CPPFLAGS
883 XMKMF'
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
934 ac_prev=
935 ac_dashdash=
936 for ac_option
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
945 case $ac_option in
946 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *) ac_optarg=yes ;;
948 esac
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
954 ac_dashdash=yes ;;
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
973 --config-cache | -C)
974 cache_file=config.cache ;;
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1218 -with-* | --with-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error "invalid package name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=\$ac_optarg ;;
1234 -without-* | --without-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=no ;;
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1268 -*) as_fn_error "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information."
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 case $ac_envvar in #(
1276 '' | [0-9]* | *[!_$as_cr_alnum]* )
1277 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1278 esac
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1283 # FIXME: should be removed in autoconf 3.0.
1284 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 esac
1291 done
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 as_fn_error "missing argument to $ac_option"
1298 if test -n "$ac_unrecognized_opts"; then
1299 case $enable_option_checking in
1300 no) ;;
1301 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 esac
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1314 case $ac_val in
1315 */ )
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1318 esac
1319 # Be sure to have absolute directory names.
1320 case $ac_val in
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 esac
1324 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error "pwd does not report name of working directory"
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1377 /^X\(\/\/\)$/{
1378 s//\1/
1381 /^X\(\/\).*/{
1382 s//\1/
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1390 else
1391 ac_srcdir_defaulted=no
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1400 pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1419 # Report the --help message.
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425 \`configure' configures this package to adapt to many kinds of systems.
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1432 Defaults for the options are specified in brackets.
1434 Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1456 For better control, use the options below.
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478 _ACEOF
1480 cat <<\_ACEOF
1482 X features:
1483 --x-includes=DIR X include files are in DIR
1484 --x-libraries=DIR X library files are in DIR
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1492 if test -n "$ac_init_help"; then
1494 cat <<\_ACEOF
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --enable-build-type=TYPE
1501 Select the build type. Available types are:
1502 personal, nightly, snapshot, milestone, release. Do
1503 NOT use this option unless you know what you are
1504 doing! (default=personal)
1505 --enable-debug=list Enable different types of debug. Commas or
1506 whitespaces can be used to separate the items in the
1507 list. Available types of debug are: all, none,
1508 messages, stack, mungwall, modules, symbols. If no
1509 list is provided then "all" is assumed.
1510 (default=none)
1511 --enable-crosstools Build cross-compiler toolchains if necessary
1512 (default=no).
1513 --enable-distcc Use distcc as a front end to the compiler
1514 (default=no).
1515 --enable-ccache Use ccache as a front end to the compiler
1516 (default=no).
1517 --enable-target-variant=NAME
1518 Enable a specific target variant(default=none)
1519 --enable-amigaos-compliance=VERSION
1520 Enforce userspace AmigaOS compliance to a specific
1521 KickStart version (default=none).
1522 --enable-includes=dir Alternative system include directory
1523 --enable-palm-debug-hack
1524 Enable palm debug output hack in palm native
1525 (default=no)
1526 --enable-usb30-code Enable usb3.0 code (default=no)
1527 --enable-nesting-supervisor
1528 Enable nesting supervisor support in unix
1529 (default=no)
1530 --disable-mmu Disable MMU support (default=enabled)
1531 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1532 --enable-x11-shm use X11 shared memory (default=auto)
1533 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1534 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1535 --disable-sdltest Do not try to compile and run a test SDL program
1536 --enable-dbus Enable DBUS support via dbus.library (default=no)
1538 Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-gcc-version=VERSION
1542 Use host gcc-VERSION for building AROS
1543 --with-optimization=FLAGS
1544 Use optimization flags FLAGS (default=-O2).
1545 --with-paranoia=FLAGS CC flags to enable paranoia
1546 --with-xcode=PATH Specify XCode path for iOS targets
1547 (default=/Developer).
1548 --with-ios-version=VERSION
1549 Specify minimum supported iOS version (default=3.0).
1550 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1551 --with-sdk=PATH Specify Android SDK path
1552 (default=$default_android_sdk).
1553 --with-ndk=PATH Specify Android NDK path
1554 (default=$default_android_ndk).
1555 --with-sdk-version=LEVEL
1556 Use Android SDK for API LEVEL (default=8).
1557 --with-ndk-version=LEVEL
1558 Use Android NDK for API LEVEL (default=9).
1559 --with-crosstools=DIR Where to install or search for cross tools binaries
1560 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1561 --with-portssources=DIR Where to download sourcecode for external ports
1562 --with-bootloader=NAME Use a specific bootloader
1563 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1564 --with-theme=NAME Use a specific GUI Theme
1565 --with-resolution=XRESxYRESxDEPTH
1566 Default resolution of the initial WorkbenchScreen
1567 --with-serial-debug Enable serial debug output in native (default=no)
1568 --with-x use the X Window System
1569 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1570 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 CPP C preprocessor
1581 XMKMF Path to xmkmf, Makefile generator for X Window System
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1586 Report bugs to the package provider.
1587 _ACEOF
1588 ac_status=$?
1591 if test "$ac_init_help" = "recursive"; then
1592 # If there are subdirs, report their specific --help.
1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594 test -d "$ac_dir" ||
1595 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596 continue
1597 ac_builddir=.
1599 case "$ac_dir" in
1600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603 # A ".." for each directory in $ac_dir_suffix.
1604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605 case $ac_top_builddir_sub in
1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 esac ;;
1609 esac
1610 ac_abs_top_builddir=$ac_pwd
1611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612 # for backward compatibility:
1613 ac_top_builddir=$ac_top_build_prefix
1615 case $srcdir in
1616 .) # We are building in place.
1617 ac_srcdir=.
1618 ac_top_srcdir=$ac_top_builddir_sub
1619 ac_abs_top_srcdir=$ac_pwd ;;
1620 [\\/]* | ?:[\\/]* ) # Absolute name.
1621 ac_srcdir=$srcdir$ac_dir_suffix;
1622 ac_top_srcdir=$srcdir
1623 ac_abs_top_srcdir=$srcdir ;;
1624 *) # Relative name.
1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626 ac_top_srcdir=$ac_top_build_prefix$srcdir
1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628 esac
1629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631 cd "$ac_dir" || { ac_status=$?; continue; }
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure" --help=recursive
1639 else
1640 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641 fi || ac_status=$?
1642 cd "$ac_pwd" || { ac_status=$?; break; }
1643 done
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1648 cat <<\_ACEOF
1649 configure
1650 generated by GNU Autoconf 2.65
1652 Copyright (C) 2009 Free Software Foundation, Inc.
1653 This configure script is free software; the Free Software Foundation
1654 gives unlimited permission to copy, distribute and modify it.
1655 _ACEOF
1656 exit
1659 ## ------------------------ ##
1660 ## Autoconf initialization. ##
1661 ## ------------------------ ##
1663 # ac_fn_c_try_compile LINENO
1664 # --------------------------
1665 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_compile ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext
1670 if { { ac_try="$ac_compile"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_compile") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1694 ac_retval=1
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 as_fn_set_status $ac_retval
1699 } # ac_fn_c_try_compile
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_cpp ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } >/dev/null && {
1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_retval=1
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 as_fn_set_status $ac_retval
1736 } # ac_fn_c_try_cpp
1738 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741 # the include files in INCLUDES and setting the cache variable VAR
1742 # accordingly.
1743 ac_fn_c_check_header_mongrel ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 $as_echo_n "(cached) " >&6
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 else
1756 # Is the header compilable?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758 $as_echo_n "checking $2 usability... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 ac_header_compiler=yes
1766 else
1767 ac_header_compiler=no
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771 $as_echo "$ac_header_compiler" >&6; }
1773 # Is the header present?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775 $as_echo_n "checking $2 presence... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_cpp "$LINENO"; then :
1781 ac_header_preproc=yes
1782 else
1783 ac_header_preproc=no
1785 rm -f conftest.err conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787 $as_echo "$ac_header_preproc" >&6; }
1789 # So? What about this header?
1790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1791 yes:no: )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 no:yes:* )
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1801 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1805 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809 esac
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813 $as_echo_n "(cached) " >&6
1814 else
1815 eval "$3=\$ac_header_compiler"
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 } # ac_fn_c_check_header_mongrel
1825 # ac_fn_c_try_run LINENO
1826 # ----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1828 # that executables *can* be run.
1829 ac_fn_c_try_run ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1843 { { case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_try") 2>&5
1850 ac_status=$?
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; }; }; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: program exited with status $ac_status" >&5
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1859 ac_retval=$ac_status
1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_c_try_run
1867 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1868 # -------------------------------------------------------
1869 # Tests whether HEADER exists and can be compiled using the include files in
1870 # INCLUDES, setting the cache variable VAR accordingly.
1871 ac_fn_c_check_header_compile ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877 $as_echo_n "(cached) " >&6
1878 else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1882 #include <$2>
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 } # ac_fn_c_check_header_compile
1898 # ac_fn_c_try_link LINENO
1899 # -----------------------
1900 # Try to link conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_c_try_link ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 rm -f conftest.$ac_objext conftest$ac_exeext
1905 if { { ac_try="$ac_link"
1906 case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_link") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && {
1921 test -z "$ac_c_werror_flag" ||
1922 test ! -s conftest.err
1923 } && test -s conftest$ac_exeext && {
1924 test "$cross_compiling" = yes ||
1925 $as_test_x conftest$ac_exeext
1926 }; then :
1927 ac_retval=0
1928 else
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1932 ac_retval=1
1934 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1935 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1936 # interfere with the next link command; also delete a directory that is
1937 # left behind by Apple's compiler. We do this before executing the actions.
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940 as_fn_set_status $ac_retval
1942 } # ac_fn_c_try_link
1944 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1945 # ----------------------------------------------------
1946 # Tries to find if the field MEMBER exists in type AGGR, after including
1947 # INCLUDES, setting cache variable VAR accordingly.
1948 ac_fn_c_check_member ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1952 $as_echo_n "checking for $2.$3... " >&6; }
1953 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 main ()
1962 static $2 ac_aggr;
1963 if (ac_aggr.$3)
1964 return 0;
1966 return 0;
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 eval "$4=yes"
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 static $2 ac_aggr;
1979 if (sizeof ac_aggr.$3)
1980 return 0;
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$4=yes"
1987 else
1988 eval "$4=no"
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 eval ac_res=\$$4
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 } # ac_fn_c_check_member
2001 # ac_fn_c_check_decl LINENO SYMBOL VAR
2002 # ------------------------------------
2003 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2004 ac_fn_c_check_decl ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2008 $as_echo_n "checking whether $2 is declared... " >&6; }
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 main ()
2018 #ifndef $2
2019 (void) $2;
2020 #endif
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$3=yes"
2028 else
2029 eval "$3=no"
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_c_check_decl
2040 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2041 # -------------------------------------------
2042 # Tests whether TYPE exists after having included INCLUDES, setting cache
2043 # variable VAR accordingly.
2044 ac_fn_c_check_type ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 eval "$3=no"
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2057 main ()
2059 if (sizeof ($2))
2060 return 0;
2062 return 0;
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 if (sizeof (($2)))
2073 return 0;
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2080 else
2081 eval "$3=yes"
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092 } # ac_fn_c_check_type
2094 # ac_fn_c_check_func LINENO FUNC VAR
2095 # ----------------------------------
2096 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2097 ac_fn_c_check_func ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2103 $as_echo_n "(cached) " >&6
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2109 #define $2 innocuous_$2
2111 /* System header to define __stub macros and hopefully few prototypes,
2112 which can conflict with char $2 (); below.
2113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2114 <limits.h> exists even on freestanding compilers. */
2116 #ifdef __STDC__
2117 # include <limits.h>
2118 #else
2119 # include <assert.h>
2120 #endif
2122 #undef $2
2124 /* Override any GCC internal prototype to avoid an error.
2125 Use char because int might match the return type of a GCC
2126 builtin and then its argument prototype would still apply. */
2127 #ifdef __cplusplus
2128 extern "C"
2129 #endif
2130 char $2 ();
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined __stub_$2 || defined __stub___$2
2135 choke me
2136 #endif
2139 main ()
2141 return $2 ();
2143 return 0;
2145 _ACEOF
2146 if ac_fn_c_try_link "$LINENO"; then :
2147 eval "$3=yes"
2148 else
2149 eval "$3=no"
2151 rm -f core conftest.err conftest.$ac_objext \
2152 conftest$ac_exeext conftest.$ac_ext
2154 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 } # ac_fn_c_check_func
2160 cat >config.log <<_ACEOF
2161 This file contains any messages produced by compilers while
2162 running configure, to aid debugging if configure makes a mistake.
2164 It was created by $as_me, which was
2165 generated by GNU Autoconf 2.65. Invocation command line was
2167 $ $0 $@
2169 _ACEOF
2170 exec 5>>config.log
2172 cat <<_ASUNAME
2173 ## --------- ##
2174 ## Platform. ##
2175 ## --------- ##
2177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2186 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2194 _ASUNAME
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 $as_echo "PATH: $as_dir"
2202 done
2203 IFS=$as_save_IFS
2205 } >&5
2207 cat >&5 <<_ACEOF
2210 ## ----------- ##
2211 ## Core tests. ##
2212 ## ----------- ##
2214 _ACEOF
2217 # Keep a trace of the command line.
2218 # Strip out --no-create and --no-recursion so they do not pile up.
2219 # Strip out --silent because we don't want to record it for future runs.
2220 # Also quote any args containing shell meta-characters.
2221 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_configure_args=
2223 ac_configure_args0=
2224 ac_configure_args1=
2225 ac_must_keep_next=false
2226 for ac_pass in 1 2
2228 for ac_arg
2230 case $ac_arg in
2231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233 | -silent | --silent | --silen | --sile | --sil)
2234 continue ;;
2235 *\'*)
2236 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 esac
2238 case $ac_pass in
2239 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2241 as_fn_append ac_configure_args1 " '$ac_arg'"
2242 if test $ac_must_keep_next = true; then
2243 ac_must_keep_next=false # Got value, back to normal.
2244 else
2245 case $ac_arg in
2246 *=* | --config-cache | -C | -disable-* | --disable-* \
2247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249 | -with-* | --with-* | -without-* | --without-* | --x)
2250 case "$ac_configure_args0 " in
2251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252 esac
2254 -* ) ac_must_keep_next=true ;;
2255 esac
2257 as_fn_append ac_configure_args " '$ac_arg'"
2259 esac
2260 done
2261 done
2262 { ac_configure_args0=; unset ac_configure_args0;}
2263 { ac_configure_args1=; unset ac_configure_args1;}
2265 # When interrupted or exit'd, cleanup temporary files, and complete
2266 # config.log. We remove comments because anyway the quotes in there
2267 # would cause problems or look ugly.
2268 # WARNING: Use '\'' to represent an apostrophe within the trap.
2269 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270 trap 'exit_status=$?
2271 # Save into config.log some information that might help in debugging.
2273 echo
2275 cat <<\_ASBOX
2276 ## ---------------- ##
2277 ## Cache variables. ##
2278 ## ---------------- ##
2279 _ASBOX
2280 echo
2281 # The following way of writing the cache mishandles newlines in values,
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in #(
2286 *${as_nl}*)
2287 case $ac_var in #(
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290 esac
2291 case $ac_var in #(
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2295 esac ;;
2296 esac
2297 done
2298 (set) 2>&1 |
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2301 sed -n \
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 ;; #(
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2308 esac |
2309 sort
2311 echo
2313 cat <<\_ASBOX
2314 ## ----------------- ##
2315 ## Output variables. ##
2316 ## ----------------- ##
2317 _ASBOX
2318 echo
2319 for ac_var in $ac_subst_vars
2321 eval ac_val=\$$ac_var
2322 case $ac_val in
2323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324 esac
2325 $as_echo "$ac_var='\''$ac_val'\''"
2326 done | sort
2327 echo
2329 if test -n "$ac_subst_files"; then
2330 cat <<\_ASBOX
2331 ## ------------------- ##
2332 ## File substitutions. ##
2333 ## ------------------- ##
2334 _ASBOX
2335 echo
2336 for ac_var in $ac_subst_files
2338 eval ac_val=\$$ac_var
2339 case $ac_val in
2340 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 esac
2342 $as_echo "$ac_var='\''$ac_val'\''"
2343 done | sort
2344 echo
2347 if test -s confdefs.h; then
2348 cat <<\_ASBOX
2349 ## ----------- ##
2350 ## confdefs.h. ##
2351 ## ----------- ##
2352 _ASBOX
2353 echo
2354 cat confdefs.h
2355 echo
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2360 } >&5
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363 exit $exit_status
2365 for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367 done
2368 ac_signal=0
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2373 $as_echo "/* confdefs.h */" > confdefs.h
2375 # Predefined preprocessor variables.
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_NAME "$PACKAGE_NAME"
2379 _ACEOF
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_STRING "$PACKAGE_STRING"
2391 _ACEOF
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395 _ACEOF
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_URL "$PACKAGE_URL"
2399 _ACEOF
2402 # Let the site file select an alternate cache file if it wants to.
2403 # Prefer an explicitly selected file to automatically selected ones.
2404 ac_site_file1=NONE
2405 ac_site_file2=NONE
2406 if test -n "$CONFIG_SITE"; then
2407 ac_site_file1=$CONFIG_SITE
2408 elif test "x$prefix" != xNONE; then
2409 ac_site_file1=$prefix/share/config.site
2410 ac_site_file2=$prefix/etc/config.site
2411 else
2412 ac_site_file1=$ac_default_prefix/share/config.site
2413 ac_site_file2=$ac_default_prefix/etc/config.site
2415 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2417 test "x$ac_site_file" = xNONE && continue
2418 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2420 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2421 sed 's/^/| /' "$ac_site_file" >&5
2422 . "$ac_site_file"
2424 done
2426 if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special files
2428 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2429 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431 $as_echo "$as_me: loading cache $cache_file" >&6;}
2432 case $cache_file in
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2435 esac
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439 $as_echo "$as_me: creating cache $cache_file" >&6;}
2440 >$cache_file
2443 as_fn_append ac_header_list " stdlib.h"
2444 as_fn_append ac_header_list " unistd.h"
2445 as_fn_append ac_header_list " sys/param.h"
2446 # Check that the precious variables saved in the cache have kept the same
2447 # value.
2448 ac_cache_corrupted=false
2449 for ac_var in $ac_precious_vars; do
2450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2451 eval ac_new_set=\$ac_env_${ac_var}_set
2452 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2453 eval ac_new_val=\$ac_env_${ac_var}_value
2454 case $ac_old_set,$ac_new_set in
2455 set,)
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,set)
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2461 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2463 ,);;
2465 if test "x$ac_old_val" != "x$ac_new_val"; then
2466 # differences in whitespace do not lead to failure.
2467 ac_old_val_w=`echo x $ac_old_val`
2468 ac_new_val_w=`echo x $ac_new_val`
2469 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2471 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2472 ac_cache_corrupted=:
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2475 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2476 eval $ac_var=\$ac_old_val
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2479 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2481 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2482 fi;;
2483 esac
2484 # Pass precious variables to config.status.
2485 if test "$ac_new_set" = set; then
2486 case $ac_new_val in
2487 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2488 *) ac_arg=$ac_var=$ac_new_val ;;
2489 esac
2490 case " $ac_configure_args " in
2491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2492 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2493 esac
2495 done
2496 if $ac_cache_corrupted; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515 ac_aux_dir=
2516 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2517 for ac_t in install-sh install.sh shtool; do
2518 if test -f "$ac_dir/$ac_t"; then
2519 ac_aux_dir=$ac_dir
2520 ac_install_sh="$ac_aux_dir/$ac_t -c"
2521 break 2
2523 done
2524 done
2525 if test -z "$ac_aux_dir"; then
2526 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2529 # These three variables are undocumented and unsupported,
2530 # and are intended to be withdrawn in a future Autoconf release.
2531 # They can cause serious problems if a builder's source tree is in a directory
2532 # whose full name contains unusual characters.
2533 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2534 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2535 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2539 # Check what host we are running on.
2540 # If a target is not suggested, we use this one.
2541 # Note that what we call a target, Autoconf calls a host.
2542 # Make sure we can run config.sub.
2543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2544 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2547 $as_echo_n "checking build system type... " >&6; }
2548 if test "${ac_cv_build+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 ac_build_alias=$build_alias
2552 test "x$ac_build_alias" = x &&
2553 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2554 test "x$ac_build_alias" = x &&
2555 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2557 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2561 $as_echo "$ac_cv_build" >&6; }
2562 case $ac_cv_build in
2563 *-*-*) ;;
2564 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2565 esac
2566 build=$ac_cv_build
2567 ac_save_IFS=$IFS; IFS='-'
2568 set x $ac_cv_build
2569 shift
2570 build_cpu=$1
2571 build_vendor=$2
2572 shift; shift
2573 # Remember, the first character of IFS is used to create $*,
2574 # except with old shells:
2575 build_os=$*
2576 IFS=$ac_save_IFS
2577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2581 $as_echo_n "checking host system type... " >&6; }
2582 if test "${ac_cv_host+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test "x$host_alias" = x; then
2586 ac_cv_host=$ac_cv_build
2587 else
2588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2589 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2594 $as_echo "$ac_cv_host" >&6; }
2595 case $ac_cv_host in
2596 *-*-*) ;;
2597 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2598 esac
2599 host=$ac_cv_host
2600 ac_save_IFS=$IFS; IFS='-'
2601 set x $ac_cv_host
2602 shift
2603 host_cpu=$1
2604 host_vendor=$2
2605 shift; shift
2606 # Remember, the first character of IFS is used to create $*,
2607 # except with old shells:
2608 host_os=$*
2609 IFS=$ac_save_IFS
2610 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2614 # The AROS target is slightly different to the normal GNU style
2615 # format. We don't have the middle part, and we reverse the order
2616 # of the $(CPU) and $(OS) bits.
2618 # Don't strip the version of the target yet, it might be
2619 # useful on some systems.
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2622 $as_echo_n "checking for AROS style target... " >&6; }
2624 if test "$target" = "NONE" ; then
2625 target=$host_os-$host_cpu
2626 else
2627 if test "$target" = "" ; then
2628 target=$host_os-$host_cpu
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2632 $as_echo "$target" >&6; }
2634 if test "$host_os" = "mingw32" ; then
2635 PWDCMD="pwd -W"
2638 #don't know where else to put this...
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2640 $as_echo_n "checking building AROS in... " >&6; }
2641 AROS_BUILDDIR=`${PWDCMD-pwd}`
2642 AROS_BUILDDIR_UNIX=${PWD}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2644 $as_echo "$AROS_BUILDDIR" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2647 $as_echo_n "checking AROS source in... " >&6; }
2648 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2649 SRCDIR=${srcpwd}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2651 $as_echo "$SRCDIR" >&6; }
2653 # Parse the target field into something useful.
2655 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2656 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2659 aros_default_wbwidth=800
2660 aros_default_wbheight=600
2661 aros_default_wbdepth=4
2664 # The first step is to find the host binaries.
2665 # Check for a compiler.
2666 ac_ext=c
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if test "${ac_cv_prog_CC+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2693 done
2694 done
2695 IFS=$as_save_IFS
2699 CC=$ac_cv_prog_CC
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2703 else
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2710 if test -z "$ac_cv_prog_CC"; then
2711 ac_ct_CC=$CC
2712 # Extract the first word of "gcc", so it can be a program name with args.
2713 set dummy gcc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$ac_ct_CC"; then
2720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_ac_ct_CC="gcc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2733 done
2734 done
2735 IFS=$as_save_IFS
2739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740 if test -n "$ac_ct_CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2742 $as_echo "$ac_ct_CC" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2748 if test "x$ac_ct_CC" = x; then
2749 CC=""
2750 else
2751 case $cross_compiling:$ac_tool_warned in
2752 yes:)
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 ac_tool_warned=yes ;;
2756 esac
2757 CC=$ac_ct_CC
2759 else
2760 CC="$ac_cv_prog_CC"
2763 if test -z "$CC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2766 set dummy ${ac_tool_prefix}cc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_CC+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CC="${ac_tool_prefix}cc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2786 done
2787 done
2788 IFS=$as_save_IFS
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2804 if test -z "$CC"; then
2805 # Extract the first word of "cc", so it can be a program name with args.
2806 set dummy cc; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_CC+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 else
2815 ac_prog_rejected=no
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2824 ac_prog_rejected=yes
2825 continue
2827 ac_cv_prog_CC="cc"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2831 done
2832 done
2833 IFS=$as_save_IFS
2835 if test $ac_prog_rejected = yes; then
2836 # We found a bogon in the path, so make sure we never use it.
2837 set dummy $ac_cv_prog_CC
2838 shift
2839 if test $# != 0; then
2840 # We chose a different compiler from the bogus one.
2841 # However, it has the same basename, so the bogon will be chosen
2842 # first if we set CC to just the basename; use the full file name.
2843 shift
2844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2860 if test -z "$CC"; then
2861 if test -n "$ac_tool_prefix"; then
2862 for ac_prog in cl.exe
2864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2885 done
2886 done
2887 IFS=$as_save_IFS
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2901 test -n "$CC" && break
2902 done
2904 if test -z "$CC"; then
2905 ac_ct_CC=$CC
2906 for ac_prog in cl.exe
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_ac_ct_CC="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2931 IFS=$as_save_IFS
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$ac_ct_CC" && break
2946 done
2948 if test "x$ac_ct_CC" = x; then
2949 CC=""
2950 else
2951 case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 ac_tool_warned=yes ;;
2956 esac
2957 CC=$ac_ct_CC
2964 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 as_fn_error "no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details." "$LINENO" 5; }
2969 # Provide some information about the compiler.
2970 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2971 set X $ac_compile
2972 ac_compiler=$2
2973 for ac_option in --version -v -V -qversion; do
2974 { { ac_try="$ac_compiler $ac_option >&5"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2982 ac_status=$?
2983 if test -s conftest.err; then
2984 sed '10a\
2985 ... rest of stderr output deleted ...
2986 10q' conftest.err >conftest.er1
2987 cat conftest.er1 >&5
2989 rm -f conftest.er1 conftest.err
2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }
2992 done
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
2998 main ()
3002 return 0;
3004 _ACEOF
3005 ac_clean_files_save=$ac_clean_files
3006 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3007 # Try to create an executable without -o first, disregard a.out.
3008 # It will help us diagnose broken compilers, and finding out an intuition
3009 # of exeext.
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3011 $as_echo_n "checking whether the C compiler works... " >&6; }
3012 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 # The possible output files:
3015 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3017 ac_rmfiles=
3018 for ac_file in $ac_files
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3023 esac
3024 done
3025 rm -f $ac_rmfiles
3027 if { { ac_try="$ac_link_default"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link_default") 2>&5
3035 ac_status=$?
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3039 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3040 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3041 # so that the user can short-circuit this test for compilers unknown to
3042 # Autoconf.
3043 for ac_file in $ac_files ''
3045 test -f "$ac_file" || continue
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3049 [ab].out )
3050 # We found the default executable, but exeext='' is most
3051 # certainly right.
3052 break;;
3053 *.* )
3054 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3055 then :; else
3056 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3058 # We set ac_cv_exeext here because the later test for it is not
3059 # safe: cross compilers may not add the suffix if given an `-o'
3060 # argument, so we may need to know it at that point already.
3061 # Even if this section looks crufty: it has the advantage of
3062 # actually working.
3063 break;;
3065 break;;
3066 esac
3067 done
3068 test "$ac_cv_exeext" = no && ac_cv_exeext=
3070 else
3071 ac_file=''
3073 if test -z "$ac_file"; then :
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 $as_echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 { as_fn_set_status 77
3082 as_fn_error "C compiler cannot create executables
3083 See \`config.log' for more details." "$LINENO" 5; }; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089 $as_echo_n "checking for C compiler default output file name... " >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3091 $as_echo "$ac_file" >&6; }
3092 ac_exeext=$ac_cv_exeext
3094 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3095 ac_clean_files=$ac_clean_files_save
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3097 $as_echo_n "checking for suffix of executables... " >&6; }
3098 if { { ac_try="$ac_link"
3099 case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_link") 2>&5
3106 ac_status=$?
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }; then :
3109 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3110 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3111 # work properly (i.e., refer to `conftest.exe'), while it won't with
3112 # `rm'.
3113 for ac_file in conftest.exe conftest conftest.*; do
3114 test -f "$ac_file" || continue
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3118 break;;
3119 * ) break;;
3120 esac
3121 done
3122 else
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error "cannot compute suffix of executables: cannot compile and link
3126 See \`config.log' for more details." "$LINENO" 5; }
3128 rm -f conftest conftest$ac_cv_exeext
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3130 $as_echo "$ac_cv_exeext" >&6; }
3132 rm -f conftest.$ac_ext
3133 EXEEXT=$ac_cv_exeext
3134 ac_exeext=$EXEEXT
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3137 #include <stdio.h>
3139 main ()
3141 FILE *f = fopen ("conftest.out", "w");
3142 return ferror (f) || fclose (f) != 0;
3145 return 0;
3147 _ACEOF
3148 ac_clean_files="$ac_clean_files conftest.out"
3149 # Check that the compiler produces executables we can run. If not, either
3150 # the compiler is broken, or we cross compile.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3152 $as_echo_n "checking whether we are cross compiling... " >&6; }
3153 if test "$cross_compiling" != yes; then
3154 { { ac_try="$ac_link"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_link") 2>&5
3162 ac_status=$?
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3165 if { ac_try='./conftest$ac_cv_exeext'
3166 { { case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_try") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }; }; then
3176 cross_compiling=no
3177 else
3178 if test "$cross_compiling" = maybe; then
3179 cross_compiling=yes
3180 else
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error "cannot run C compiled programs.
3184 If you meant to cross compile, use \`--host'.
3185 See \`config.log' for more details." "$LINENO" 5; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3190 $as_echo "$cross_compiling" >&6; }
3192 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3193 ac_clean_files=$ac_clean_files_save
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3195 $as_echo_n "checking for suffix of object files... " >&6; }
3196 if test "${ac_cv_objext+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3203 main ()
3207 return 0;
3209 _ACEOF
3210 rm -f conftest.o conftest.obj
3211 if { { ac_try="$ac_compile"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_compile") 2>&5
3219 ac_status=$?
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; then :
3222 for ac_file in conftest.o conftest.obj conftest.*; do
3223 test -f "$ac_file" || continue;
3224 case $ac_file in
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3227 break;;
3228 esac
3229 done
3230 else
3231 $as_echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error "cannot compute suffix of object files: cannot compile
3237 See \`config.log' for more details." "$LINENO" 5; }
3239 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3242 $as_echo "$ac_cv_objext" >&6; }
3243 OBJEXT=$ac_cv_objext
3244 ac_objext=$OBJEXT
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3246 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3247 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3254 main ()
3256 #ifndef __GNUC__
3257 choke me
3258 #endif
3261 return 0;
3263 _ACEOF
3264 if ac_fn_c_try_compile "$LINENO"; then :
3265 ac_compiler_gnu=yes
3266 else
3267 ac_compiler_gnu=no
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3274 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3275 if test $ac_compiler_gnu = yes; then
3276 GCC=yes
3277 else
3278 GCC=
3280 ac_test_CFLAGS=${CFLAGS+set}
3281 ac_save_CFLAGS=$CFLAGS
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3283 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3284 if test "${ac_cv_prog_cc_g+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 ac_save_c_werror_flag=$ac_c_werror_flag
3288 ac_c_werror_flag=yes
3289 ac_cv_prog_cc_g=no
3290 CFLAGS="-g"
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3295 main ()
3299 return 0;
3301 _ACEOF
3302 if ac_fn_c_try_compile "$LINENO"; then :
3303 ac_cv_prog_cc_g=yes
3304 else
3305 CFLAGS=""
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3310 main ()
3314 return 0;
3316 _ACEOF
3317 if ac_fn_c_try_compile "$LINENO"; then :
3319 else
3320 ac_c_werror_flag=$ac_save_c_werror_flag
3321 CFLAGS="-g"
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3326 main ()
3330 return 0;
3332 _ACEOF
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_cv_prog_cc_g=yes
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_c_werror_flag=$ac_save_c_werror_flag
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3344 $as_echo "$ac_cv_prog_cc_g" >&6; }
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3349 CFLAGS="-g -O2"
3350 else
3351 CFLAGS="-g"
3353 else
3354 if test "$GCC" = yes; then
3355 CFLAGS="-O2"
3356 else
3357 CFLAGS=
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3361 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3362 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 ac_cv_prog_cc_c89=no
3366 ac_save_CC=$CC
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3369 #include <stdarg.h>
3370 #include <stdio.h>
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3377 char **p;
3378 int i;
3380 return p[i];
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3384 char *s;
3385 va_list v;
3386 va_start (v,p);
3387 s = g (p, va_arg (v,int));
3388 va_end (v);
3389 return s;
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3403 #define FOO(x) 'x'
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410 int argc;
3411 char **argv;
3413 main ()
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3417 return 0;
3419 _ACEOF
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC="$ac_save_CC $ac_arg"
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_cv_prog_cc_c89=$ac_arg
3427 rm -f core conftest.err conftest.$ac_objext
3428 test "x$ac_cv_prog_cc_c89" != "xno" && break
3429 done
3430 rm -f conftest.$ac_ext
3431 CC=$ac_save_CC
3434 # AC_CACHE_VAL
3435 case "x$ac_cv_prog_cc_c89" in
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3438 $as_echo "none needed" >&6; } ;;
3439 xno)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3441 $as_echo "unsupported" >&6; } ;;
3443 CC="$CC $ac_cv_prog_cc_c89"
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3445 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3446 esac
3447 if test "x$ac_cv_prog_cc_c89" != xno; then :
3451 ac_ext=c
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 case $ac_cv_prog_cc_stdc in #(
3458 no) :
3459 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3460 *) :
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3462 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3463 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 ac_cv_prog_cc_c99=no
3467 ac_save_CC=$CC
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470 #include <stdarg.h>
3471 #include <stdbool.h>
3472 #include <stdlib.h>
3473 #include <wchar.h>
3474 #include <stdio.h>
3476 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3477 #define debug(...) fprintf (stderr, __VA_ARGS__)
3478 #define showlist(...) puts (#__VA_ARGS__)
3479 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3480 static void
3481 test_varargs_macros (void)
3483 int x = 1234;
3484 int y = 5678;
3485 debug ("Flag");
3486 debug ("X = %d\n", x);
3487 showlist (The first, second, and third items.);
3488 report (x>y, "x is %d but y is %d", x, y);
3491 // Check long long types.
3492 #define BIG64 18446744073709551615ull
3493 #define BIG32 4294967295ul
3494 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3495 #if !BIG_OK
3496 your preprocessor is broken;
3497 #endif
3498 #if BIG_OK
3499 #else
3500 your preprocessor is broken;
3501 #endif
3502 static long long int bignum = -9223372036854775807LL;
3503 static unsigned long long int ubignum = BIG64;
3505 struct incomplete_array
3507 int datasize;
3508 double data[];
3511 struct named_init {
3512 int number;
3513 const wchar_t *name;
3514 double average;
3517 typedef const char *ccp;
3519 static inline int
3520 test_restrict (ccp restrict text)
3522 // See if C++-style comments work.
3523 // Iterate through items via the restricted pointer.
3524 // Also check for declarations in for loops.
3525 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3526 continue;
3527 return 0;
3530 // Check varargs and va_copy.
3531 static void
3532 test_varargs (const char *format, ...)
3534 va_list args;
3535 va_start (args, format);
3536 va_list args_copy;
3537 va_copy (args_copy, args);
3539 const char *str;
3540 int number;
3541 float fnumber;
3543 while (*format)
3545 switch (*format++)
3547 case 's': // string
3548 str = va_arg (args_copy, const char *);
3549 break;
3550 case 'd': // int
3551 number = va_arg (args_copy, int);
3552 break;
3553 case 'f': // float
3554 fnumber = va_arg (args_copy, double);
3555 break;
3556 default:
3557 break;
3560 va_end (args_copy);
3561 va_end (args);
3565 main ()
3568 // Check bool.
3569 _Bool success = false;
3571 // Check restrict.
3572 if (test_restrict ("String literal") == 0)
3573 success = true;
3574 char *restrict newvar = "Another string";
3576 // Check varargs.
3577 test_varargs ("s, d' f .", "string", 65, 34.234);
3578 test_varargs_macros ();
3580 // Check flexible array members.
3581 struct incomplete_array *ia =
3582 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3583 ia->datasize = 10;
3584 for (int i = 0; i < ia->datasize; ++i)
3585 ia->data[i] = i * 1.234;
3587 // Check named initializers.
3588 struct named_init ni = {
3589 .number = 34,
3590 .name = L"Test wide string",
3591 .average = 543.34343,
3594 ni.number = 58;
3596 int dynamic_array[ni.number];
3597 dynamic_array[ni.number - 1] = 543;
3599 // work around unused variable warnings
3600 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3601 || dynamic_array[ni.number - 1] != 543);
3604 return 0;
3606 _ACEOF
3607 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3609 CC="$ac_save_CC $ac_arg"
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_cv_prog_cc_c99=$ac_arg
3613 rm -f core conftest.err conftest.$ac_objext
3614 test "x$ac_cv_prog_cc_c99" != "xno" && break
3615 done
3616 rm -f conftest.$ac_ext
3617 CC=$ac_save_CC
3620 # AC_CACHE_VAL
3621 case "x$ac_cv_prog_cc_c99" in
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3624 $as_echo "none needed" >&6; } ;;
3625 xno)
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3627 $as_echo "unsupported" >&6; } ;;
3629 CC="$CC $ac_cv_prog_cc_c99"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3631 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3632 esac
3633 if test "x$ac_cv_prog_cc_c99" != xno; then :
3634 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3637 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3638 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 ac_cv_prog_cc_c89=no
3642 ac_save_CC=$CC
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645 #include <stdarg.h>
3646 #include <stdio.h>
3647 #include <sys/types.h>
3648 #include <sys/stat.h>
3649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3650 struct buf { int x; };
3651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3652 static char *e (p, i)
3653 char **p;
3654 int i;
3656 return p[i];
3658 static char *f (char * (*g) (char **, int), char **p, ...)
3660 char *s;
3661 va_list v;
3662 va_start (v,p);
3663 s = g (p, va_arg (v,int));
3664 va_end (v);
3665 return s;
3668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3669 function prototypes and stuff, but not '\xHH' hex character constants.
3670 These don't provoke an error unfortunately, instead are silently treated
3671 as 'x'. The following induces an error, until -std is added to get
3672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3673 array size at least. It's necessary to write '\x00'==0 to get something
3674 that's true only with -std. */
3675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3677 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3678 inside strings and character constants. */
3679 #define FOO(x) 'x'
3680 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3682 int test (int i, double x);
3683 struct s1 {int (*f) (int a);};
3684 struct s2 {int (*f) (double a);};
3685 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3686 int argc;
3687 char **argv;
3689 main ()
3691 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3693 return 0;
3695 _ACEOF
3696 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699 CC="$ac_save_CC $ac_arg"
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_prog_cc_c89=$ac_arg
3703 rm -f core conftest.err conftest.$ac_objext
3704 test "x$ac_cv_prog_cc_c89" != "xno" && break
3705 done
3706 rm -f conftest.$ac_ext
3707 CC=$ac_save_CC
3710 # AC_CACHE_VAL
3711 case "x$ac_cv_prog_cc_c89" in
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3714 $as_echo "none needed" >&6; } ;;
3715 xno)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3717 $as_echo "unsupported" >&6; } ;;
3719 CC="$CC $ac_cv_prog_cc_c89"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3721 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3722 esac
3723 if test "x$ac_cv_prog_cc_c89" != xno; then :
3724 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3725 else
3726 ac_cv_prog_cc_stdc=no
3731 esac
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3733 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3734 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3738 case $ac_cv_prog_cc_stdc in #(
3739 no) :
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3741 $as_echo "unsupported" >&6; } ;; #(
3742 '') :
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3744 $as_echo "none needed" >&6; } ;; #(
3745 *) :
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3747 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3748 esac
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3756 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3757 # On Suns, sometimes $CPP names a directory.
3758 if test -n "$CPP" && test -d "$CPP"; then
3759 CPP=
3761 if test -z "$CPP"; then
3762 if test "${ac_cv_prog_CPP+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 # Double quotes because CPP needs to be expanded
3766 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3768 ac_preproc_ok=false
3769 for ac_c_preproc_warn_flag in '' yes
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error" is here to catch this case.
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779 #ifdef __STDC__
3780 # include <limits.h>
3781 #else
3782 # include <assert.h>
3783 #endif
3784 Syntax error
3785 _ACEOF
3786 if ac_fn_c_try_cpp "$LINENO"; then :
3788 else
3789 # Broken: fails on valid input.
3790 continue
3792 rm -f conftest.err conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <ac_nonexistent.h>
3799 _ACEOF
3800 if ac_fn_c_try_cpp "$LINENO"; then :
3801 # Broken: success on invalid input.
3802 continue
3803 else
3804 # Passes both tests.
3805 ac_preproc_ok=:
3806 break
3808 rm -f conftest.err conftest.$ac_ext
3810 done
3811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3812 rm -f conftest.err conftest.$ac_ext
3813 if $ac_preproc_ok; then :
3814 break
3817 done
3818 ac_cv_prog_CPP=$CPP
3821 CPP=$ac_cv_prog_CPP
3822 else
3823 ac_cv_prog_CPP=$CPP
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3826 $as_echo "$CPP" >&6; }
3827 ac_preproc_ok=false
3828 for ac_c_preproc_warn_flag in '' yes
3830 # Use a header file that comes with gcc, so configuring glibc
3831 # with a fresh cross-compiler works.
3832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3833 # <limits.h> exists even on freestanding compilers.
3834 # On the NeXT, cc -E runs the code through the compiler's parser,
3835 # not just through cpp. "Syntax error" is here to catch this case.
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #ifdef __STDC__
3839 # include <limits.h>
3840 #else
3841 # include <assert.h>
3842 #endif
3843 Syntax error
3844 _ACEOF
3845 if ac_fn_c_try_cpp "$LINENO"; then :
3847 else
3848 # Broken: fails on valid input.
3849 continue
3851 rm -f conftest.err conftest.$ac_ext
3853 # OK, works on sane cases. Now check whether nonexistent headers
3854 # can be detected and how.
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <ac_nonexistent.h>
3858 _ACEOF
3859 if ac_fn_c_try_cpp "$LINENO"; then :
3860 # Broken: success on invalid input.
3861 continue
3862 else
3863 # Passes both tests.
3864 ac_preproc_ok=:
3865 break
3867 rm -f conftest.err conftest.$ac_ext
3869 done
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then :
3874 else
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3878 See \`config.log' for more details." "$LINENO" 5; }
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 # Check for a compatible awk
3889 for ac_prog in gawk nawk
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_AWK+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$AWK"; then
3899 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_AWK="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3912 done
3913 done
3914 IFS=$as_save_IFS
3918 AWK=$ac_cv_prog_AWK
3919 if test -n "$AWK"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3921 $as_echo "$AWK" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3928 test -n "$AWK" && break
3929 done
3931 if test "$AWK" = ""; then
3932 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3934 # Extract the first word of "mmake", so it can be a program name with args.
3935 set dummy mmake; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 if test -n "$MMAKE"; then
3942 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_prog_MMAKE="mmake "
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3955 done
3956 done
3957 IFS=$as_save_IFS
3961 MMAKE=$ac_cv_prog_MMAKE
3962 if test -n "$MMAKE"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3964 $as_echo "$MMAKE" >&6; }
3965 else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3972 # Perform some default variable assignments. Note all of these will be
3973 # Regenerated from the script, so there is no need to cache them.
3975 aros_host_cc="$CC"
3976 if test "$GCC" = "yes"; then
3977 aros_gcc_ld=`$CC -print-prog-name=ld`
3978 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3979 set dummy `basename $aros_gcc_ld`; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 case $aros_host_ld in
3986 [\\/]* | ?:[\\/]*)
3987 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in `dirname $aros_gcc_ld`
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4006 esac
4008 aros_host_ld=$ac_cv_path_aros_host_ld
4009 if test -n "$aros_host_ld"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4011 $as_echo "$aros_host_ld" >&6; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4019 if test "$aros_host_ld" = ""; then
4020 # Extract the first word of "ld", so it can be a program name with args.
4021 set dummy ld; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 case $aros_host_ld in
4028 [\\/]* | ?:[\\/]*)
4029 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4043 done
4044 done
4045 IFS=$as_save_IFS
4048 esac
4050 aros_host_ld=$ac_cv_path_aros_host_ld
4051 if test -n "$aros_host_ld"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4053 $as_echo "$aros_host_ld" >&6; }
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4061 if test "$aros_host_ld" = ""; then
4062 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4064 aros_host_make="make"
4065 aros_host_cflags=$CFLAGS
4066 aros_host_ldflags=$LDFLAGS
4067 aros_host_debug="-g -O0"
4068 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4069 aros_host_mkargs="--no-print-directory"
4070 aros_host_incl="/usr/include"
4071 aros_host_exe_suffix="$EXEEXT"
4072 aros_host_lib_suffix=""
4074 # Ignore all compliance, AROS ROMs = 0
4075 # KickStart v1.0 = 30
4076 # KickStart v1.3 = 34
4077 # KickStart v2.0 = 37
4078 # KickStart v3.0 = 39
4079 # KickStart v3.1 = 40
4080 # AmigaOS v3.5 = 44
4081 aros_amigaos_compliance=0
4083 for ac_prog in aclocal aclocal19 aclocal-1.9
4085 # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -n "$aros_host_aclocal"; then
4093 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102 ac_cv_prog_aros_host_aclocal="$ac_prog"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4106 done
4107 done
4108 IFS=$as_save_IFS
4112 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4113 if test -n "$aros_host_aclocal"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4115 $as_echo "$aros_host_aclocal" >&6; }
4116 else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4122 test -n "$aros_host_aclocal" && break
4123 done
4125 for ac_prog in autoconf autoconf259 autoconf253
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$aros_host_autoconf"; then
4135 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_aros_host_autoconf="$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4154 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4155 if test -n "$aros_host_autoconf"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4157 $as_echo "$aros_host_autoconf" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4164 test -n "$aros_host_autoconf" && break
4165 done
4167 for ac_prog in autoheader autoheader259 autoheader253
4169 # Extract the first word of "$ac_prog", so it can be a program name with args.
4170 set dummy $ac_prog; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$aros_host_autoheader"; then
4177 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_aros_host_autoheader="$ac_prog"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4190 done
4191 done
4192 IFS=$as_save_IFS
4196 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4197 if test -n "$aros_host_autoheader"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4199 $as_echo "$aros_host_autoheader" >&6; }
4200 else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4206 test -n "$aros_host_autoheader" && break
4207 done
4209 for ac_prog in automake automake19 automake-1.9
4211 # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$aros_host_automake"; then
4219 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_aros_host_automake="$ac_prog"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4232 done
4233 done
4234 IFS=$as_save_IFS
4238 aros_host_automake=$ac_cv_prog_aros_host_automake
4239 if test -n "$aros_host_automake"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4241 $as_echo "$aros_host_automake" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4248 test -n "$aros_host_automake" && break
4249 done
4252 if test "$aros_host_aclocal" = ""; then
4253 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4255 if test "$aros_host_automake" = ""; then
4256 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4259 case "$aros_host_cc" in
4260 *gcc*)
4261 aros_host_cc_pipe="-pipe"
4263 icc)
4264 aros_host_cc_pipe=""
4267 aros_host_cc_pipe=""
4269 esac
4271 aros_kernel_cc_includes=""
4272 aros_target_cc_includes=""
4274 # ----------------------------------------------------------------------------------------
4275 # Host-specific defaults
4277 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4278 # instead of a wrapper script.
4279 # Useful for non-ELF hosts (like Windows and Darwin).
4280 # Can also be overriden in target section below
4281 use_aros_gcc="no"
4283 # This is the main host configuration section. It is where the host
4284 # can change the values of any variables it needs to change. We do
4285 # not look at anything that compiles to the target yet, we'll get
4286 # to that later.
4288 case "$host_os" in
4289 aros*)
4290 aros_host_arch="aros"
4291 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4292 case "$host_cpu" in
4293 *i?86*)
4294 aros_host_cpu="i386"
4296 *x86_64*)
4297 aros_host_cpu="x86_64"
4299 *powerpc*)
4300 aros_host_cpu="ppc"
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4304 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4305 aros_host_cpu="$host_cpu"
4307 esac
4310 linux*)
4311 aros_host_arch="linux"
4312 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4313 case "$host_cpu" in
4314 *i?86*)
4315 aros_host_cpu="i386"
4317 *x86_64*)
4318 aros_host_cpu="x86_64"
4320 *m68k*)
4321 aros_host_cpu="m68k"
4323 *powerpc*)
4324 aros_host_cpu="ppc"
4326 *arm*)
4327 aros_host_cpu="arm"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4331 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4332 aros_host_cpu="$host_cpu"
4334 esac
4337 freebsd*)
4338 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4339 aros_host_make="gmake"
4340 aros_host_arch="freebsd"
4341 aros_host_cpu="i386"
4343 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4345 case $host_os in
4346 freebsd[234]*)
4347 aros_object_format="elf_i386"
4351 aros_object_format="elf_i386_fbsd"
4353 esac
4357 darwin*)
4358 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4359 aros_host_arch="darwin"
4360 use_aros_gcc="yes"
4361 android_build_os="darwin-x86"
4362 android_tool="android"
4363 default_android_sdk="/android-sdk-mac_x86"
4364 default_android_ndk="/android-ndk-r5b"
4365 case "$host_cpu" in
4366 *i?86*)
4367 aros_host_cpu="i386"
4369 *x86_64*)
4370 aros_host_cpu="x86_64"
4372 *powerpc*)
4373 aros_host_cpu="ppc"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4377 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4378 aros_host_cpu="$host_cpu"
4380 esac
4382 aros_host_ldflags="$aros_host_ldflags -liconv"
4386 dragonfly*)
4387 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4388 aros_host_make="gmake"
4389 aros_host_arch="dragonfly"
4390 case $host_cpu in
4391 *i?86*)
4392 aros_host_cpu="i386"
4394 *amd64*)
4395 aros_host_cpu="x86_64"
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4399 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4400 aros_host_cpu="$host_cpu"
4402 esac
4405 netbsd*)
4406 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4407 aros_host_make="gmake"
4408 aros_host_arch="netbsd"
4409 case "$host_cpu" in
4410 *i?86*)
4411 aros_host_cpu="i386"
4413 *m68k*)
4414 aros_host_cpu="m68k"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4418 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4419 aros_host_cpu="$host_cpu"
4421 esac
4422 aros_host_lib_suffix=".0.0"
4425 openbsd*)
4426 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4427 aros_host_make="gmake"
4428 aros_host_arch="openbsd"
4429 case "$host_cpu" in
4430 *i?86*)
4431 aros_host_cpu="i386"
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4435 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4436 aros_host_cpu="$host_cpu"
4438 esac
4441 solaris*)
4442 aros_host_arch="solaris"
4443 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4444 case "$host_cpu" in
4445 *i?86*)
4446 aros_host_cpu="i386"
4448 *sparc*)
4449 aros_host_cpu="sparc"
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4453 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4454 aros_host_cpu="$host_cpu"
4456 esac
4459 morphos*)
4460 aros_host_arch="morphos"
4461 aros_host_cpu="ppc"
4464 amiga*)
4465 aros_host_arch="amiga"
4466 SORT="/gg/bin/sort"
4467 TEST="/gg/bin/test"
4468 UNIQ="/gg/bin/uniq"
4469 FOR="for"
4470 TOUCH="/gg/bin/touch"
4471 case "$host_cpu" in
4472 *m68k*)
4473 aros_host_cpu="m68k"
4475 *powerpc*)
4476 aros_host_cpu="ppc"
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4480 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4481 aros_host_cpu="$host_cpu"
4483 esac
4486 cygwin*)
4487 aros_host_arch="cygwin"
4488 use_aros_gcc="yes"
4489 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4490 android_build_os="windows"
4491 android_tool="android.bat"
4492 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4494 case "$host_cpu" in
4495 *i?86*)
4496 aros_host_cpu="i386"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4500 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4501 aros_host_cpu="$host_cpu"
4503 esac
4506 mingw32*)
4507 aros_host_arch="mingw32"
4508 use_aros_gcc="yes"
4509 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4510 android_build_os="windows"
4511 android_tool="android.bat"
4512 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4514 case "$host_cpu" in
4515 *i?86*)
4516 aros_host_cpu="i386"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4520 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4521 aros_host_cpu="$host_cpu"
4523 esac
4526 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4528 esac
4530 # Extract the first word of "ar", so it can be a program name with args.
4531 set dummy ar; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -n "$aros_host_ar"; then
4538 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_aros_host_ar="ar cr"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4551 done
4552 done
4553 IFS=$as_save_IFS
4557 aros_host_ar=$ac_cv_prog_aros_host_ar
4558 if test -n "$aros_host_ar"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4560 $as_echo "$aros_host_ar" >&6; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4567 if test "$aros_host_ar" = ""; then
4568 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4570 # Extract the first word of "ranlib", so it can be a program name with args.
4571 set dummy ranlib; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$aros_host_ranlib"; then
4578 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_aros_host_ranlib="ranlib "
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4593 IFS=$as_save_IFS
4597 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4598 if test -n "$aros_host_ranlib"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4600 $as_echo "$aros_host_ranlib" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4607 if test "$aros_host_ranlib" = ""; then
4608 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4610 # Extract the first word of "strip", so it can be a program name with args.
4611 set dummy strip; ac_word=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -n "$aros_host_strip"; then
4618 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_aros_host_strip="strip "
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4637 aros_host_strip=$ac_cv_prog_aros_host_strip
4638 if test -n "$aros_host_strip"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4640 $as_echo "$aros_host_strip" >&6; }
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4647 if test "$aros_host_strip" = ""; then
4648 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4651 # Extract the first word of "rm", so it can be a program name with args.
4652 set dummy rm; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_RM+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$RM"; then
4659 ac_cv_prog_RM="$RM" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_RM="rm -rf"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4674 IFS=$as_save_IFS
4678 RM=$ac_cv_prog_RM
4679 if test -n "$RM"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4681 $as_echo "$RM" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4688 if test "$RM" = ""; then
4689 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4691 # Extract the first word of "cp", so it can be a program name with args.
4692 set dummy cp; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_CP+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$CP"; then
4699 ac_cv_prog_CP="$CP" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_CP="cp "
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 CP=$ac_cv_prog_CP
4719 if test -n "$CP"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4721 $as_echo "$CP" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 if test "$CP" = ""; then
4729 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4731 # Extract the first word of "mv", so it can be a program name with args.
4732 set dummy mv; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_MV+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$MV"; then
4739 ac_cv_prog_MV="$MV" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_MV="mv "
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 MV=$ac_cv_prog_MV
4759 if test -n "$MV"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4761 $as_echo "$MV" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 if test "$MV" = ""; then
4769 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4771 # Extract the first word of "echo", so it can be a program name with args.
4772 set dummy echo; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_ECHO+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$ECHO"; then
4779 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_ECHO="echo "
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4792 done
4793 done
4794 IFS=$as_save_IFS
4798 ECHO=$ac_cv_prog_ECHO
4799 if test -n "$ECHO"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4801 $as_echo "$ECHO" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4808 if test "$ECHO" = ""; then
4809 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4811 # Extract the first word of "mkdir", so it can be a program name with args.
4812 set dummy mkdir; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$MKDIR"; then
4819 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_MKDIR="mkdir -p"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4834 IFS=$as_save_IFS
4838 MKDIR=$ac_cv_prog_MKDIR
4839 if test -n "$MKDIR"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4841 $as_echo "$MKDIR" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4848 if test "$MKDIR" = ""; then
4849 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4851 # Extract the first word of "touch", so it can be a program name with args.
4852 set dummy touch; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$TOUCH"; then
4859 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_TOUCH="touch "
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 TOUCH=$ac_cv_prog_TOUCH
4879 if test -n "$TOUCH"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4881 $as_echo "$TOUCH" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 if test "$TOUCH" = ""; then
4889 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4891 # Extract the first word of "sort", so it can be a program name with args.
4892 set dummy sort; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if test "${ac_cv_prog_SORT+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -n "$SORT"; then
4899 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_SORT="sort "
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4912 done
4913 done
4914 IFS=$as_save_IFS
4918 SORT=$ac_cv_prog_SORT
4919 if test -n "$SORT"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4921 $as_echo "$SORT" >&6; }
4922 else
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4928 if test "$SORT" = ""; then
4929 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4931 # Extract the first word of "uniq", so it can be a program name with args.
4932 set dummy uniq; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 if test -n "$UNIQ"; then
4939 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 ac_cv_prog_UNIQ="uniq "
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4952 done
4953 done
4954 IFS=$as_save_IFS
4958 UNIQ=$ac_cv_prog_UNIQ
4959 if test -n "$UNIQ"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4961 $as_echo "$UNIQ" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4968 if test "$UNIQ" = ""; then
4969 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4971 # Extract the first word of "true", so it can be a program name with args.
4972 set dummy true; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if test "${ac_cv_prog_NOP+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$NOP"; then
4979 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_NOP="true "
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4994 IFS=$as_save_IFS
4998 NOP=$ac_cv_prog_NOP
4999 if test -n "$NOP"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5001 $as_echo "$NOP" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 if test "$NOP" = ""; then
5009 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5011 # Extract the first word of "cat", so it can be a program name with args.
5012 set dummy cat; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if test "${ac_cv_prog_CAT+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$CAT"; then
5019 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_CAT="cat "
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 CAT=$ac_cv_prog_CAT
5039 if test -n "$CAT"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5041 $as_echo "$CAT" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5048 if test "$CAT" = ""; then
5049 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5051 # Extract the first word of "bison", so it can be a program name with args.
5052 set dummy bison; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if test "${ac_cv_prog_BISON+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$BISON"; then
5059 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_BISON="bison "
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5078 BISON=$ac_cv_prog_BISON
5079 if test -n "$BISON"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5081 $as_echo "$BISON" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5088 if test "$BISON" = ""; then
5089 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5091 # Extract the first word of "flex", so it can be a program name with args.
5092 set dummy flex; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if test "${ac_cv_prog_FLEX+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$FLEX"; then
5099 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_FLEX="flex "
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 FLEX=$ac_cv_prog_FLEX
5119 if test -n "$FLEX"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5121 $as_echo "$FLEX" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5128 if test "$FLEX" = ""; then
5129 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5131 # Extract the first word of "pngtopnm", so it can be a program name with args.
5132 set dummy pngtopnm; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$PNGTOPNM"; then
5139 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_PNGTOPNM="pngtopnm "
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5159 if test -n "$PNGTOPNM"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5161 $as_echo "$PNGTOPNM" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5168 if test "$PNGTOPNM" = ""; then
5169 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5171 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5172 set dummy ppmtoilbm; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$PPMTOILBM"; then
5179 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5192 done
5193 done
5194 IFS=$as_save_IFS
5198 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5199 if test -n "$PPMTOILBM"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5201 $as_echo "$PPMTOILBM" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5208 if test "$PPMTOILBM" = ""; then
5209 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5211 # Extract the first word of "sed", so it can be a program name with args.
5212 set dummy sed; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if test "${ac_cv_prog_SED+set}" = set; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$SED"; then
5219 ac_cv_prog_SED="$SED" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_SED="sed "
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5238 SED=$ac_cv_prog_SED
5239 if test -n "$SED"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5241 $as_echo "$SED" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5248 if test "$SED" = ""; then
5249 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5251 # Extract the first word of "chmod", so it can be a program name with args.
5252 set dummy chmod; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -n "$CHMOD"; then
5259 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_prog_CHMOD="chmod "
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5272 done
5273 done
5274 IFS=$as_save_IFS
5278 CHMOD=$ac_cv_prog_CHMOD
5279 if test -n "$CHMOD"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5281 $as_echo "$CHMOD" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5288 if test "$CHMOD" = ""; then
5289 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5291 # Extract the first word of "patch", so it can be a program name with args.
5292 set dummy patch; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_prog_PATCH+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$PATCH"; then
5299 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_PATCH="patch "
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5314 IFS=$as_save_IFS
5318 PATCH=$ac_cv_prog_PATCH
5319 if test -n "$PATCH"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5321 $as_echo "$PATCH" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5328 if test "$PATCH" = ""; then
5329 as_fn_error "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5336 if test -n "$PYTHON"; then
5337 # If the user set $PYTHON, use it and don't search something else.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5339 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5340 prog="import sys, string
5341 # split strings by '.' and convert to numeric. Append some zeros
5342 # because we need at least 4 digits for the hex conversion.
5343 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5344 minverhex = 0
5345 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5346 sys.exit(sys.hexversion < minverhex)"
5347 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5348 ($PYTHON -c "$prog") >&5 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; then :
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 $as_echo "yes" >&6; }
5354 else
5355 as_fn_error "too old" "$LINENO" 5
5357 am_display_PYTHON=$PYTHON
5358 else
5359 # Otherwise, try each interpreter until we find one that satisfies
5360 # VERSION.
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5362 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5363 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5367 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
5368 test "$am_cv_pathless_PYTHON" = none && break
5369 prog="import sys, string
5370 # split strings by '.' and convert to numeric. Append some zeros
5371 # because we need at least 4 digits for the hex conversion.
5372 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5373 minverhex = 0
5374 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5375 sys.exit(sys.hexversion < minverhex)"
5376 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5377 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; then :
5381 break
5383 done
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5386 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5387 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5388 if test "$am_cv_pathless_PYTHON" = none; then
5389 PYTHON=:
5390 else
5391 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5392 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if test "${ac_cv_path_PYTHON+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 case $PYTHON in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5414 done
5415 done
5416 IFS=$as_save_IFS
5419 esac
5421 PYTHON=$ac_cv_path_PYTHON
5422 if test -n "$PYTHON"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5424 $as_echo "$PYTHON" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5432 am_display_PYTHON=$am_cv_pathless_PYTHON
5436 if test "$PYTHON" = :; then
5437 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5438 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5442 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5443 if test "${am_cv_python_version+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5449 $as_echo "$am_cv_python_version" >&6; }
5450 PYTHON_VERSION=$am_cv_python_version
5454 PYTHON_PREFIX='${prefix}'
5456 PYTHON_EXEC_PREFIX='${exec_prefix}'
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5461 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5462 if test "${am_cv_python_platform+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5468 $as_echo "$am_cv_python_platform" >&6; }
5469 PYTHON_PLATFORM=$am_cv_python_platform
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5475 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5476 if test "${am_cv_python_pythondir+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5480 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5483 $as_echo "$am_cv_python_pythondir" >&6; }
5484 pythondir=$am_cv_python_pythondir
5488 pkgpythondir=\${pythondir}/$PACKAGE
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5492 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5493 if test "${am_cv_python_pyexecdir+set}" = set; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5497 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5500 $as_echo "$am_cv_python_pyexecdir" >&6; }
5501 pyexecdir=$am_cv_python_pyexecdir
5505 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5513 FOR=for
5515 IF=if
5517 TEST=test
5519 CMP=cmp
5523 # Check for some includes for the X11 HIDD and the kernel
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5527 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5528 if test "${ac_cv_path_GREP+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -z "$GREP"; then
5532 ac_path_GREP_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_prog in grep ggrep; do
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5542 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5543 # Check for GNU ac_path_GREP and select it if it is found.
5544 # Check for GNU $ac_path_GREP
5545 case `"$ac_path_GREP" --version 2>&1` in
5546 *GNU*)
5547 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5549 ac_count=0
5550 $as_echo_n 0123456789 >"conftest.in"
5551 while :
5553 cat "conftest.in" "conftest.in" >"conftest.tmp"
5554 mv "conftest.tmp" "conftest.in"
5555 cp "conftest.in" "conftest.nl"
5556 $as_echo 'GREP' >> "conftest.nl"
5557 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5559 as_fn_arith $ac_count + 1 && ac_count=$as_val
5560 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5561 # Best one so far, save it but keep looking for a better one
5562 ac_cv_path_GREP="$ac_path_GREP"
5563 ac_path_GREP_max=$ac_count
5565 # 10*(2^10) chars as input seems more than enough
5566 test $ac_count -gt 10 && break
5567 done
5568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5569 esac
5571 $ac_path_GREP_found && break 3
5572 done
5573 done
5574 done
5575 IFS=$as_save_IFS
5576 if test -z "$ac_cv_path_GREP"; then
5577 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5579 else
5580 ac_cv_path_GREP=$GREP
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5585 $as_echo "$ac_cv_path_GREP" >&6; }
5586 GREP="$ac_cv_path_GREP"
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5590 $as_echo_n "checking for egrep... " >&6; }
5591 if test "${ac_cv_path_EGREP+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5595 then ac_cv_path_EGREP="$GREP -E"
5596 else
5597 if test -z "$EGREP"; then
5598 ac_path_EGREP_found=false
5599 # Loop through the user's path and test for each of PROGNAME-LIST
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_prog in egrep; do
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5608 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5609 # Check for GNU ac_path_EGREP and select it if it is found.
5610 # Check for GNU $ac_path_EGREP
5611 case `"$ac_path_EGREP" --version 2>&1` in
5612 *GNU*)
5613 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5615 ac_count=0
5616 $as_echo_n 0123456789 >"conftest.in"
5617 while :
5619 cat "conftest.in" "conftest.in" >"conftest.tmp"
5620 mv "conftest.tmp" "conftest.in"
5621 cp "conftest.in" "conftest.nl"
5622 $as_echo 'EGREP' >> "conftest.nl"
5623 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625 as_fn_arith $ac_count + 1 && ac_count=$as_val
5626 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5627 # Best one so far, save it but keep looking for a better one
5628 ac_cv_path_EGREP="$ac_path_EGREP"
5629 ac_path_EGREP_max=$ac_count
5631 # 10*(2^10) chars as input seems more than enough
5632 test $ac_count -gt 10 && break
5633 done
5634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5635 esac
5637 $ac_path_EGREP_found && break 3
5638 done
5639 done
5640 done
5641 IFS=$as_save_IFS
5642 if test -z "$ac_cv_path_EGREP"; then
5643 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5645 else
5646 ac_cv_path_EGREP=$EGREP
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5652 $as_echo "$ac_cv_path_EGREP" >&6; }
5653 EGREP="$ac_cv_path_EGREP"
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5657 $as_echo_n "checking for ANSI C header files... " >&6; }
5658 if test "${ac_cv_header_stdc+set}" = set; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #include <stdlib.h>
5664 #include <stdarg.h>
5665 #include <string.h>
5666 #include <float.h>
5669 main ()
5673 return 0;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 ac_cv_header_stdc=yes
5678 else
5679 ac_cv_header_stdc=no
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 if test $ac_cv_header_stdc = yes; then
5684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #include <string.h>
5689 _ACEOF
5690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5691 $EGREP "memchr" >/dev/null 2>&1; then :
5693 else
5694 ac_cv_header_stdc=no
5696 rm -f conftest*
5700 if test $ac_cv_header_stdc = yes; then
5701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <stdlib.h>
5706 _ACEOF
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "free" >/dev/null 2>&1; then :
5710 else
5711 ac_cv_header_stdc=no
5713 rm -f conftest*
5717 if test $ac_cv_header_stdc = yes; then
5718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5719 if test "$cross_compiling" = yes; then :
5721 else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include <ctype.h>
5725 #include <stdlib.h>
5726 #if ((' ' & 0x0FF) == 0x020)
5727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5729 #else
5730 # define ISLOWER(c) \
5731 (('a' <= (c) && (c) <= 'i') \
5732 || ('j' <= (c) && (c) <= 'r') \
5733 || ('s' <= (c) && (c) <= 'z'))
5734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5735 #endif
5737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5739 main ()
5741 int i;
5742 for (i = 0; i < 256; i++)
5743 if (XOR (islower (i), ISLOWER (i))
5744 || toupper (i) != TOUPPER (i))
5745 return 2;
5746 return 0;
5748 _ACEOF
5749 if ac_fn_c_try_run "$LINENO"; then :
5751 else
5752 ac_cv_header_stdc=no
5754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5755 conftest.$ac_objext conftest.beam conftest.$ac_ext
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5761 $as_echo "$ac_cv_header_stdc" >&6; }
5762 if test $ac_cv_header_stdc = yes; then
5764 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5768 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5769 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5770 inttypes.h stdint.h unistd.h
5771 do :
5772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5773 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5775 eval as_val=\$$as_ac_Header
5776 if test "x$as_val" = x""yes; then :
5777 cat >>confdefs.h <<_ACEOF
5778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5779 _ACEOF
5783 done
5786 for ac_header in sys/ipc.h sys/shm.h \
5787 sys/mmap.h sys/mman.h sysexits.h \
5788 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5790 do :
5791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5793 eval as_val=\$$as_ac_Header
5794 if test "x$as_val" = x""yes; then :
5795 cat >>confdefs.h <<_ACEOF
5796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5797 _ACEOF
5801 done
5804 for ac_header in sys/mount.h
5805 do :
5806 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5808 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5809 cat >>confdefs.h <<_ACEOF
5810 #define HAVE_SYS_MOUNT_H 1
5811 _ACEOF
5815 done
5818 ac_header_dirent=no
5819 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5820 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5822 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 #include <sys/types.h>
5829 #include <$ac_hdr>
5832 main ()
5834 if ((DIR *) 0)
5835 return 0;
5837 return 0;
5839 _ACEOF
5840 if ac_fn_c_try_compile "$LINENO"; then :
5841 eval "$as_ac_Header=yes"
5842 else
5843 eval "$as_ac_Header=no"
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847 eval ac_res=\$$as_ac_Header
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5849 $as_echo "$ac_res" >&6; }
5850 eval as_val=\$$as_ac_Header
5851 if test "x$as_val" = x""yes; then :
5852 cat >>confdefs.h <<_ACEOF
5853 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5854 _ACEOF
5856 ac_header_dirent=$ac_hdr; break
5859 done
5860 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5861 if test $ac_header_dirent = dirent.h; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5863 $as_echo_n "checking for library containing opendir... " >&6; }
5864 if test "${ac_cv_search_opendir+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 ac_func_search_save_LIBS=$LIBS
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5871 /* Override any GCC internal prototype to avoid an error.
5872 Use char because int might match the return type of a GCC
5873 builtin and then its argument prototype would still apply. */
5874 #ifdef __cplusplus
5875 extern "C"
5876 #endif
5877 char opendir ();
5879 main ()
5881 return opendir ();
5883 return 0;
5885 _ACEOF
5886 for ac_lib in '' dir; do
5887 if test -z "$ac_lib"; then
5888 ac_res="none required"
5889 else
5890 ac_res=-l$ac_lib
5891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5893 if ac_fn_c_try_link "$LINENO"; then :
5894 ac_cv_search_opendir=$ac_res
5896 rm -f core conftest.err conftest.$ac_objext \
5897 conftest$ac_exeext
5898 if test "${ac_cv_search_opendir+set}" = set; then :
5899 break
5901 done
5902 if test "${ac_cv_search_opendir+set}" = set; then :
5904 else
5905 ac_cv_search_opendir=no
5907 rm conftest.$ac_ext
5908 LIBS=$ac_func_search_save_LIBS
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5911 $as_echo "$ac_cv_search_opendir" >&6; }
5912 ac_res=$ac_cv_search_opendir
5913 if test "$ac_res" != no; then :
5914 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5920 $as_echo_n "checking for library containing opendir... " >&6; }
5921 if test "${ac_cv_search_opendir+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 ac_func_search_save_LIBS=$LIBS
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5928 /* Override any GCC internal prototype to avoid an error.
5929 Use char because int might match the return type of a GCC
5930 builtin and then its argument prototype would still apply. */
5931 #ifdef __cplusplus
5932 extern "C"
5933 #endif
5934 char opendir ();
5936 main ()
5938 return opendir ();
5940 return 0;
5942 _ACEOF
5943 for ac_lib in '' x; do
5944 if test -z "$ac_lib"; then
5945 ac_res="none required"
5946 else
5947 ac_res=-l$ac_lib
5948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5950 if ac_fn_c_try_link "$LINENO"; then :
5951 ac_cv_search_opendir=$ac_res
5953 rm -f core conftest.err conftest.$ac_objext \
5954 conftest$ac_exeext
5955 if test "${ac_cv_search_opendir+set}" = set; then :
5956 break
5958 done
5959 if test "${ac_cv_search_opendir+set}" = set; then :
5961 else
5962 ac_cv_search_opendir=no
5964 rm conftest.$ac_ext
5965 LIBS=$ac_func_search_save_LIBS
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5968 $as_echo "$ac_cv_search_opendir" >&6; }
5969 ac_res=$ac_cv_search_opendir
5970 if test "$ac_res" != no; then :
5971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5978 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5979 if test "${ac_cv_header_stat_broken+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 #include <sys/types.h>
5985 #include <sys/stat.h>
5987 #if defined S_ISBLK && defined S_IFDIR
5988 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5989 #endif
5991 #if defined S_ISBLK && defined S_IFCHR
5992 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5993 #endif
5995 #if defined S_ISLNK && defined S_IFREG
5996 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5997 #endif
5999 #if defined S_ISSOCK && defined S_IFREG
6000 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6001 #endif
6003 _ACEOF
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 ac_cv_header_stat_broken=no
6006 else
6007 ac_cv_header_stat_broken=yes
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6012 $as_echo "$ac_cv_header_stat_broken" >&6; }
6013 if test $ac_cv_header_stat_broken = yes; then
6015 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6020 $as_echo_n "checking for ANSI C header files... " >&6; }
6021 if test "${ac_cv_header_stdc+set}" = set; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 #include <stdlib.h>
6027 #include <stdarg.h>
6028 #include <string.h>
6029 #include <float.h>
6032 main ()
6036 return 0;
6038 _ACEOF
6039 if ac_fn_c_try_compile "$LINENO"; then :
6040 ac_cv_header_stdc=yes
6041 else
6042 ac_cv_header_stdc=no
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 if test $ac_cv_header_stdc = yes; then
6047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #include <string.h>
6052 _ACEOF
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 $EGREP "memchr" >/dev/null 2>&1; then :
6056 else
6057 ac_cv_header_stdc=no
6059 rm -f conftest*
6063 if test $ac_cv_header_stdc = yes; then
6064 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <stdlib.h>
6069 _ACEOF
6070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6071 $EGREP "free" >/dev/null 2>&1; then :
6073 else
6074 ac_cv_header_stdc=no
6076 rm -f conftest*
6080 if test $ac_cv_header_stdc = yes; then
6081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6082 if test "$cross_compiling" = yes; then :
6084 else
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 #include <ctype.h>
6088 #include <stdlib.h>
6089 #if ((' ' & 0x0FF) == 0x020)
6090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6092 #else
6093 # define ISLOWER(c) \
6094 (('a' <= (c) && (c) <= 'i') \
6095 || ('j' <= (c) && (c) <= 'r') \
6096 || ('s' <= (c) && (c) <= 'z'))
6097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098 #endif
6100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6102 main ()
6104 int i;
6105 for (i = 0; i < 256; i++)
6106 if (XOR (islower (i), ISLOWER (i))
6107 || toupper (i) != TOUPPER (i))
6108 return 2;
6109 return 0;
6111 _ACEOF
6112 if ac_fn_c_try_run "$LINENO"; then :
6114 else
6115 ac_cv_header_stdc=no
6117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6118 conftest.$ac_objext conftest.beam conftest.$ac_ext
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6124 $as_echo "$ac_cv_header_stdc" >&6; }
6125 if test $ac_cv_header_stdc = yes; then
6127 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6132 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6133 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 #include <sys/types.h>
6139 #include <sys/wait.h>
6140 #ifndef WEXITSTATUS
6141 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6142 #endif
6143 #ifndef WIFEXITED
6144 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6145 #endif
6148 main ()
6150 int s;
6151 wait (&s);
6152 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6154 return 0;
6156 _ACEOF
6157 if ac_fn_c_try_compile "$LINENO"; then :
6158 ac_cv_header_sys_wait_h=yes
6159 else
6160 ac_cv_header_sys_wait_h=no
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6165 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6166 if test $ac_cv_header_sys_wait_h = yes; then
6168 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6173 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6174 if test "${ac_cv_header_time+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 #include <sys/types.h>
6180 #include <sys/time.h>
6181 #include <time.h>
6184 main ()
6186 if ((struct tm *) 0)
6187 return 0;
6189 return 0;
6191 _ACEOF
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193 ac_cv_header_time=yes
6194 else
6195 ac_cv_header_time=no
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6200 $as_echo "$ac_cv_header_time" >&6; }
6201 if test $ac_cv_header_time = yes; then
6203 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6207 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6208 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6210 cat >>confdefs.h <<_ACEOF
6211 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6212 _ACEOF
6215 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6220 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6221 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6223 cat >>confdefs.h <<_ACEOF
6224 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6225 _ACEOF
6228 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6230 else
6231 case " $LIBOBJS " in
6232 *" fileblocks.$ac_objext "* ) ;;
6233 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6235 esac
6240 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6241 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6243 cat >>confdefs.h <<_ACEOF
6244 #define HAVE_STRUCT_STAT_ST_RDEV 1
6245 _ACEOF
6248 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6254 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6255 if test "${ac_cv_struct_tm+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 #include <sys/types.h>
6261 #include <time.h>
6264 main ()
6266 struct tm tm;
6267 int *p = &tm.tm_sec;
6268 return !p;
6270 return 0;
6272 _ACEOF
6273 if ac_fn_c_try_compile "$LINENO"; then :
6274 ac_cv_struct_tm=time.h
6275 else
6276 ac_cv_struct_tm=sys/time.h
6278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6281 $as_echo "$ac_cv_struct_tm" >&6; }
6282 if test $ac_cv_struct_tm = sys/time.h; then
6284 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6288 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6289 #include <$ac_cv_struct_tm>
6292 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6294 cat >>confdefs.h <<_ACEOF
6295 #define HAVE_STRUCT_TM_TM_ZONE 1
6296 _ACEOF
6301 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6303 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6305 else
6306 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6308 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6309 ac_have_decl=1
6310 else
6311 ac_have_decl=0
6314 cat >>confdefs.h <<_ACEOF
6315 #define HAVE_DECL_TZNAME $ac_have_decl
6316 _ACEOF
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6319 $as_echo_n "checking for tzname... " >&6; }
6320 if test "${ac_cv_var_tzname+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 #include <time.h>
6326 #if !HAVE_DECL_TZNAME
6327 extern char *tzname[];
6328 #endif
6331 main ()
6333 return tzname[0][0];
6335 return 0;
6337 _ACEOF
6338 if ac_fn_c_try_link "$LINENO"; then :
6339 ac_cv_var_tzname=yes
6340 else
6341 ac_cv_var_tzname=no
6343 rm -f core conftest.err conftest.$ac_objext \
6344 conftest$ac_exeext conftest.$ac_ext
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6347 $as_echo "$ac_cv_var_tzname" >&6; }
6348 if test $ac_cv_var_tzname = yes; then
6350 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6355 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6356 if test "x$ac_cv_type_off_t" = x""yes; then :
6358 else
6360 cat >>confdefs.h <<_ACEOF
6361 #define off_t long int
6362 _ACEOF
6366 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6367 if test "x$ac_cv_type_pid_t" = x""yes; then :
6369 else
6371 cat >>confdefs.h <<_ACEOF
6372 #define pid_t int
6373 _ACEOF
6377 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6378 if test "x$ac_cv_type_size_t" = x""yes; then :
6380 else
6382 cat >>confdefs.h <<_ACEOF
6383 #define size_t unsigned int
6384 _ACEOF
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6389 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6390 if test "${ac_cv_type_uid_t+set}" = set; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395 #include <sys/types.h>
6397 _ACEOF
6398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6399 $EGREP "uid_t" >/dev/null 2>&1; then :
6400 ac_cv_type_uid_t=yes
6401 else
6402 ac_cv_type_uid_t=no
6404 rm -f conftest*
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6408 $as_echo "$ac_cv_type_uid_t" >&6; }
6409 if test $ac_cv_type_uid_t = no; then
6411 $as_echo "#define uid_t int" >>confdefs.h
6414 $as_echo "#define gid_t int" >>confdefs.h
6419 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6420 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6422 cat >>confdefs.h <<_ACEOF
6423 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6424 _ACEOF
6430 # Look for some functions
6431 for ac_func in getpagesize kqueue statfs statvfs \
6432 clone kse_create rfork_thread thr_create sa_register \
6433 getcontext makecontext setcontext sigaltstack swapcontext
6434 do :
6435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6437 eval as_val=\$$as_ac_var
6438 if test "x$as_val" = x""yes; then :
6439 cat >>confdefs.h <<_ACEOF
6440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6441 _ACEOF
6444 done
6450 for ac_header in $ac_header_list
6451 do :
6452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6453 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6455 eval as_val=\$$as_ac_Header
6456 if test "x$as_val" = x""yes; then :
6457 cat >>confdefs.h <<_ACEOF
6458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6459 _ACEOF
6463 done
6472 for ac_func in getpagesize
6473 do :
6474 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6475 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6476 cat >>confdefs.h <<_ACEOF
6477 #define HAVE_GETPAGESIZE 1
6478 _ACEOF
6481 done
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6484 $as_echo_n "checking for working mmap... " >&6; }
6485 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test "$cross_compiling" = yes; then :
6489 ac_cv_func_mmap_fixed_mapped=no
6490 else
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 $ac_includes_default
6494 /* malloc might have been renamed as rpl_malloc. */
6495 #undef malloc
6497 /* Thanks to Mike Haertel and Jim Avera for this test.
6498 Here is a matrix of mmap possibilities:
6499 mmap private not fixed
6500 mmap private fixed at somewhere currently unmapped
6501 mmap private fixed at somewhere already mapped
6502 mmap shared not fixed
6503 mmap shared fixed at somewhere currently unmapped
6504 mmap shared fixed at somewhere already mapped
6505 For private mappings, we should verify that changes cannot be read()
6506 back from the file, nor mmap's back from the file at a different
6507 address. (There have been systems where private was not correctly
6508 implemented like the infamous i386 svr4.0, and systems where the
6509 VM page cache was not coherent with the file system buffer cache
6510 like early versions of FreeBSD and possibly contemporary NetBSD.)
6511 For shared mappings, we should conversely verify that changes get
6512 propagated back to all the places they're supposed to be.
6514 Grep wants private fixed already mapped.
6515 The main things grep needs to know about mmap are:
6516 * does it exist and is it safe to write into the mmap'd area
6517 * how to use it (BSD variants) */
6519 #include <fcntl.h>
6520 #include <sys/mman.h>
6522 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6523 char *malloc ();
6524 #endif
6526 /* This mess was copied from the GNU getpagesize.h. */
6527 #ifndef HAVE_GETPAGESIZE
6528 # ifdef _SC_PAGESIZE
6529 # define getpagesize() sysconf(_SC_PAGESIZE)
6530 # else /* no _SC_PAGESIZE */
6531 # ifdef HAVE_SYS_PARAM_H
6532 # include <sys/param.h>
6533 # ifdef EXEC_PAGESIZE
6534 # define getpagesize() EXEC_PAGESIZE
6535 # else /* no EXEC_PAGESIZE */
6536 # ifdef NBPG
6537 # define getpagesize() NBPG * CLSIZE
6538 # ifndef CLSIZE
6539 # define CLSIZE 1
6540 # endif /* no CLSIZE */
6541 # else /* no NBPG */
6542 # ifdef NBPC
6543 # define getpagesize() NBPC
6544 # else /* no NBPC */
6545 # ifdef PAGESIZE
6546 # define getpagesize() PAGESIZE
6547 # endif /* PAGESIZE */
6548 # endif /* no NBPC */
6549 # endif /* no NBPG */
6550 # endif /* no EXEC_PAGESIZE */
6551 # else /* no HAVE_SYS_PARAM_H */
6552 # define getpagesize() 8192 /* punt totally */
6553 # endif /* no HAVE_SYS_PARAM_H */
6554 # endif /* no _SC_PAGESIZE */
6556 #endif /* no HAVE_GETPAGESIZE */
6559 main ()
6561 char *data, *data2, *data3;
6562 int i, pagesize;
6563 int fd, fd2;
6565 pagesize = getpagesize ();
6567 /* First, make a file with some known garbage in it. */
6568 data = (char *) malloc (pagesize);
6569 if (!data)
6570 return 1;
6571 for (i = 0; i < pagesize; ++i)
6572 *(data + i) = rand ();
6573 umask (0);
6574 fd = creat ("conftest.mmap", 0600);
6575 if (fd < 0)
6576 return 2;
6577 if (write (fd, data, pagesize) != pagesize)
6578 return 3;
6579 close (fd);
6581 /* Next, check that the tail of a page is zero-filled. File must have
6582 non-zero length, otherwise we risk SIGBUS for entire page. */
6583 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6584 if (fd2 < 0)
6585 return 4;
6586 data2 = "";
6587 if (write (fd2, data2, 1) != 1)
6588 return 5;
6589 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6590 if (data2 == MAP_FAILED)
6591 return 6;
6592 for (i = 0; i < pagesize; ++i)
6593 if (*(data2 + i))
6594 return 7;
6595 close (fd2);
6596 if (munmap (data2, pagesize))
6597 return 8;
6599 /* Next, try to mmap the file at a fixed address which already has
6600 something else allocated at it. If we can, also make sure that
6601 we see the same garbage. */
6602 fd = open ("conftest.mmap", O_RDWR);
6603 if (fd < 0)
6604 return 9;
6605 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6606 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6607 return 10;
6608 for (i = 0; i < pagesize; ++i)
6609 if (*(data + i) != *(data2 + i))
6610 return 11;
6612 /* Finally, make sure that changes to the mapped area do not
6613 percolate back to the file as seen by read(). (This is a bug on
6614 some variants of i386 svr4.0.) */
6615 for (i = 0; i < pagesize; ++i)
6616 *(data2 + i) = *(data2 + i) + 1;
6617 data3 = (char *) malloc (pagesize);
6618 if (!data3)
6619 return 12;
6620 if (read (fd, data3, pagesize) != pagesize)
6621 return 13;
6622 for (i = 0; i < pagesize; ++i)
6623 if (*(data + i) != *(data3 + i))
6624 return 14;
6625 close (fd);
6626 return 0;
6628 _ACEOF
6629 if ac_fn_c_try_run "$LINENO"; then :
6630 ac_cv_func_mmap_fixed_mapped=yes
6631 else
6632 ac_cv_func_mmap_fixed_mapped=no
6634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6635 conftest.$ac_objext conftest.beam conftest.$ac_ext
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6640 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6641 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6643 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6646 rm -f conftest.mmap conftest.txt
6651 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6652 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6653 aros_config_ldflags=""
6655 aros_shared_default=yes
6657 aros_shared_cflags="-fPIC"
6658 aros_shared_aflags=""
6659 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6660 aros_kernel_ldflags="-Wl,-rpath,./lib"
6662 aros_kernel_ar_flags="cr"
6663 aros_target_ar_flags="cr"
6664 aros_target_nm_flags="-C -ul"
6665 aros_target_strip_flags="--strip-unneeded -R.comment"
6667 aros_compiler_libs=
6668 aros_arch_libs=
6670 aros_target_genmap="-Wl,-Map -Xlinker"
6672 # Native flavour stuff
6673 aros_serial_debug="0"
6675 # Palm native flavour stuff
6676 aros_palm_debug_hack="0"
6678 # Unix flavour stuff
6679 aros_nesting_supervisor="0"
6681 # Collect-aros stuff: "-ius" to ignore undefined symbols
6682 ignore_undefined_symbols=""
6684 # Check for X11 by default
6685 need_x11="auto"
6687 #-----------------------------------------------------------------------------
6690 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6691 # it switched on by default, and we use the host compiler, so it compiles AROS
6692 # code with this enabled resulting in link failures as we don't have support
6693 # for it.
6695 # We use two methods to disable it. For the host compiler (used to compile
6696 # some hosted modules), we test to see if the compiler supports stack
6697 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6698 # work on all platforms.
6700 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6701 # (this is done unconditionally, as it should have no effect on compilers
6702 # without the stack protection feature). This may be specific to the way that
6703 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6704 # strong enough to disable it in a generic way though, so we'll live with it
6705 # until another vendor ships GCC with it enabled in a different way, and deal
6706 # with it then.
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6710 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6711 save_cflags="$CFLAGS"
6712 CFLAGS="$CFLAGS -fno-stack-protector"
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6717 main ()
6721 return 0;
6723 _ACEOF
6724 if ac_fn_c_try_compile "$LINENO"; then :
6725 use_no_stack_protector="yes"
6726 else
6727 use_no_stack_protector="no"
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6731 $as_echo "$use_no_stack_protector" >&6; }
6732 if test "x-$use_no_stack_protector" = "x-yes" ; then
6733 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6735 CFLAGS="$save_cflags"
6737 #-----------------------------------------------------------------------------
6739 # Disable pointer-signedness warnings if the compiler recognises the option
6740 # (this only works for the host compiler at the moment)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6743 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6744 save_cflags="$CFLAGS"
6745 CFLAGS="$CFLAGS -Wno-pointer-sign"
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6750 main ()
6754 return 0;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 use_no_sign_warning="yes"
6759 else
6760 use_no_sign_warning="no"
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6764 $as_echo "$use_no_sign_warning" >&6; }
6765 if test "x-$use_no_sign_warning" = "x-yes" ; then
6766 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6768 CFLAGS="$save_cflags"
6770 #-----------------------------------------------------------------------------
6772 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6775 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6776 save_cflags="$CFLAGS"
6777 CFLAGS="$CFLAGS -fgnu89-inline"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6782 main ()
6786 return 0;
6788 _ACEOF
6789 if ac_fn_c_try_compile "$LINENO"; then :
6790 use_gnu89_inline="yes"
6791 else
6792 use_gnu89_inline="no"
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6796 $as_echo "$use_gnu89_inline" >&6; }
6797 if test "x-$use_gnu89_inline" = "x-yes" ; then
6798 gnu89_inline="-fgnu89-inline"
6800 CFLAGS="$save_cflags"
6802 #-----------------------------------------------------------------------------
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6805 $as_echo_n "checking for type of build... " >&6; }
6806 # Check whether --enable-build_type was given.
6807 if test "${enable_build_type+set}" = set; then :
6808 enableval=$enable_build_type; build_type=$enableval
6809 else
6810 build_type="personal"
6814 if test "$build_type" = "nightly"; then
6815 build_type_string="NIGHTLY"
6816 elif test "$build_type" = "snapshot"; then
6817 build_type_string="SNAPSHOT"
6818 elif test "$build_type" = "milestone"; then
6819 build_type_string="MILESTONE"
6820 elif test "$build_type" = "release"; then
6821 build_type_string="RELEASE"
6822 else
6823 build_type_string="PERSONAL"
6824 build_type="personal"
6827 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6830 $as_echo "$build_type" >&6; }
6832 #-----------------------------------------------------------------------------
6833 all_debug_types="messages stack modules mungwall symbols"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6836 $as_echo_n "checking which debug types to enable... " >&6; }
6837 # Check whether --enable-debug was given.
6838 if test "${enable_debug+set}" = set; then :
6839 enableval=$enable_debug; debug="$enableval"
6840 else
6841 debug=""
6845 if test "$debug" = "" -o "$debug" = "no"; then
6846 debug="none"
6847 elif test "$debug" = "yes"; then
6848 debug="all"
6851 if test "$debug" = "all" ; then
6852 debug="messages stack modules symbols"
6853 for d in $all_debug_types; do
6854 export aros_${d}_debug="1"
6855 done
6856 else
6857 for d in $all_debug_types; do
6858 export aros_${d}_debug="0"
6859 done
6862 if test "$debug" != "none"; then
6863 debug=`echo $debug | sed s/,/\ /g`
6864 for d in $debug; do
6865 found="0"
6866 for d2 in $all_debug_types; do
6867 if test "$d2" = "$d"; then
6868 found="1"
6869 break
6871 done
6872 if test "$found" = "0"; then
6873 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6875 export aros_${d}_debug="1"
6876 done
6877 aros_debug="yes"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6880 $as_echo "$debug" >&6; }
6882 if test "$aros_messages_debug" = "1"; then
6883 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6884 else
6885 aros_messages_debug=""
6887 if test "$aros_symbols_debug" = "1"; then
6888 aros_symbols_debug="-g"
6889 else
6890 aros_symbols_debug=""
6893 # These are the flags to pass when compiling debugged programs
6894 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6895 aros_debug_aflags=""
6896 aros_debug_ldflags="$aros_symbols_debug"
6898 #-----------------------------------------------------------------------------
6899 # Checking if we should build crosstools..
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6901 $as_echo_n "checking whether to build crosstools... " >&6; }
6902 # Check whether --enable-crosstools was given.
6903 if test "${enable_crosstools+set}" = set; then :
6904 enableval=$enable_crosstools; crosstools="$enableval"
6905 else
6906 crosstools="no"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6910 $as_echo "$crosstools" >&6; }
6912 #-----------------------------------------------------------------------------
6913 # Checking for distcc and ccache.
6915 # Always apply the transforms in this particular order. Basically you should
6916 # always run 'ccache distcc compiler' in that order for the best performance.
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6919 $as_echo_n "checking whether to enable distcc... " >&6; }
6920 # Check whether --enable-distcc was given.
6921 if test "${enable_distcc+set}" = set; then :
6922 enableval=$enable_distcc; distcc="$enableval"
6923 else
6924 distcc="no"
6927 if test "$distcc" != "" -a "$distcc" != "no"; then
6928 # AC_CHECK_PROG will print out the result in this case
6929 # Extract the first word of "distcc", so it can be a program name with args.
6930 set dummy distcc; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if test "${ac_cv_path_DISTCC+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 case $DISTCC in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6952 done
6953 done
6954 IFS=$as_save_IFS
6956 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6958 esac
6960 DISTCC=$ac_cv_path_DISTCC
6961 if test -n "$DISTCC"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6963 $as_echo "$DISTCC" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6976 $as_echo_n "checking whether to enable ccache... " >&6; }
6977 # Check whether --enable-ccache was given.
6978 if test "${enable_ccache+set}" = set; then :
6979 enableval=$enable_ccache; ccache="$enableval"
6980 else
6981 ccache="no"
6984 if test "$ccache" != "" -a "$ccache" != "no"; then
6985 # AC_CHECK_PROG will print out the result in this case
6986 # Extract the first word of "ccache", so it can be a program name with args.
6987 set dummy ccache; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 if test -n "$CCACHE"; then
6994 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_prog_CCACHE="ccache"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7013 CCACHE=$ac_cv_prog_CCACHE
7014 if test -n "$CCACHE"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7016 $as_echo "$CCACHE" >&6; }
7017 else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7028 #-----------------------------------------------------------------------------
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7030 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7032 # Check whether --with-gcc-version was given.
7033 if test "${with_gcc_version+set}" = set; then :
7034 withval=$with_gcc_version; target_tool_version="$withval"
7035 else
7036 target_tool_version="default"
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7040 $as_echo "$target_tool_version" >&6; }
7042 #-----------------------------------------------------------------------------
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7044 $as_echo_n "checking what optimization flags to use... " >&6; }
7046 # Check whether --with-optimization was given.
7047 if test "${with_optimization+set}" = set; then :
7048 withval=$with_optimization; optimization="$withval"
7049 else
7050 optimization="unknown"
7053 if test "$optimization" = "unknown"; then
7054 if test "$debug" != "none"; then
7055 optimization="-O0"
7056 else
7057 optimization="-O2"
7060 aros_config_cflags="$aros_config_cflags $optimization"
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7062 $as_echo "$optimization" >&6; }
7064 #-----------------------------------------------------------------------------
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7066 $as_echo_n "checking what paranoia flags to use... " >&6; }
7068 # Check whether --with-paranoia was given.
7069 if test "${with_paranoia+set}" = set; then :
7070 withval=$with_paranoia; paranoia_flags="$withval"
7071 else
7072 paranoia_flags="default"
7075 if test "$paranoia_flags" = "default"; then
7076 paranoia_flags=""
7077 else if test "$paranoia_flags" = "yes"; then
7078 paranoia_flags="-Wall -Werror"
7079 fi fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7081 $as_echo "$paranoia_flags" >&6; }
7082 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7084 #-----------------------------------------------------------------------------
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7086 $as_echo_n "checking what target variant to enable... " >&6; }
7087 # Check whether --enable-target_variant was given.
7088 if test "${enable_target_variant+set}" = set; then :
7089 enableval=$enable_target_variant; target_variant=$enableval
7090 else
7091 target_variant=""
7094 if test "$target_variant" = ""; then
7095 aros_target_variant=""
7096 aros_target_suffix=""
7097 enableval="none"
7098 else
7099 aros_target_variant="$target_variant"
7100 aros_target_suffix="-$target_variant"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7103 $as_echo "$enableval" >&6; }
7105 #-----------------------------------------------------------------------------
7106 # Target-specific defaults. You can override then on a per-target basis.
7108 # Bootloader name. Currently used by PC target.
7109 target_bootloader="none"
7111 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7112 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7113 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7114 if test "$crosstools" != "yes"; then
7115 target_tool_prefix=${target_cpu}-elf-
7116 else
7117 target_tool_prefix=${target_cpu}-aros-
7120 #-----------------------------------------------------------------------------
7121 # Additional options for some specific targets
7123 case "$aros_target_variant" in
7124 ios)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7126 $as_echo_n "checking XCode path... " >&6; }
7128 # Check whether --with-xcode was given.
7129 if test "${with_xcode+set}" = set; then :
7130 withval=$with_xcode; aros_xcode_path="$withval"
7131 else
7132 aros_xcode_path="/Developer"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7136 $as_echo "$aros_xcode_path" >&6; }
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7139 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7141 # Check whether --with-ios-version was given.
7142 if test "${with_ios_version+set}" = set; then :
7143 withval=$with_ios_version; aros_ios_version="$withval"
7144 else
7145 aros_ios_version="3.0"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7149 $as_echo "$aros_ios_version" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7152 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7154 # Check whether --with-ios-sdk was given.
7155 if test "${with_ios_sdk+set}" = set; then :
7156 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7157 else
7158 aros_ios_sdk="4.1"
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7162 $as_echo "$aros_ios_sdk" >&6; }
7166 "android")
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7168 $as_echo_n "checking Android SDK path... " >&6; }
7170 # Check whether --with-sdk was given.
7171 if test "${with_sdk+set}" = set; then :
7172 withval=$with_sdk; aros_android_sdk="$withval"
7173 else
7174 aros_android_sdk=$default_android_sdk
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7178 $as_echo "$aros_android_sdk" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7181 $as_echo_n "checking Android NDK path... " >&6; }
7183 # Check whether --with-ndk was given.
7184 if test "${with_ndk+set}" = set; then :
7185 withval=$with_ndk; aros_android_ndk="$withval"
7186 else
7187 aros_android_ndk="$default_android_ndk"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7191 $as_echo "$aros_android_ndk" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7194 $as_echo_n "checking what Android SDK version to use... " >&6; }
7196 # Check whether --with-sdk-version was given.
7197 if test "${with_sdk_version+set}" = set; then :
7198 withval=$with_sdk_version; aros_sdk_version="$withval"
7199 else
7200 aros_sdk_version="8"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7204 $as_echo "$aros_sdk_version" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7207 $as_echo_n "checking what Android NDK version to use... " >&6; }
7209 # Check whether --with-ndk-version was given.
7210 if test "${with_ndk_version+set}" = set; then :
7211 withval=$with_ndk_version; aros_ndk_version="$withval"
7212 else
7213 aros_ndk_version="9"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7217 $as_echo "$aros_ndk_version" >&6; }
7219 export PATH="$aros_android_sdk/tools:$PATH"
7220 # Extract the first word of "$android_tool", so it can be a program name with args.
7221 set dummy $android_tool; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if test "${ac_cv_path_android_tool+set}" = set; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 case $android_tool in
7228 [\\/]* | ?:[\\/]*)
7229 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7243 done
7244 done
7245 IFS=$as_save_IFS
7248 esac
7250 android_tool=$ac_cv_path_android_tool
7251 if test -n "$android_tool"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7253 $as_echo "$android_tool" >&6; }
7254 else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7260 if test "$android_tool" = ""; then
7261 as_fn_error "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7264 # Extract the first word of "ant", so it can be a program name with args.
7265 set dummy ant; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_path_ant+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 case $ant in
7272 [\\/]* | ?:[\\/]*)
7273 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7287 done
7288 done
7289 IFS=$as_save_IFS
7292 esac
7294 ant=$ac_cv_path_ant
7295 if test -n "$ant"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7297 $as_echo "$ant" >&6; }
7298 else
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7304 if test "$ant" = ""; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7306 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7309 if test "$host_os" = "mingw32"; then
7310 android_tool="cmd //c $android_tool"
7314 esac
7316 #-----------------------------------------------------------------------------
7317 # This is the target configuration switch.
7318 case "$target_os" in
7319 linux*)
7320 aros_target_arch="linux"
7321 aros_target_family="unix"
7322 case "$target_cpu" in
7323 *m68k*)
7324 aros_target_cpu="m68k"
7325 aros_object_format="m68kelf"
7326 aros_flavour="emulcompat"
7327 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7328 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7329 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7330 gcc_target_cpu="mc68000"
7332 *i?86*)
7333 aros_target_cpu="i386"
7334 aros_object_format="elf_i386"
7335 aros_flavour="emulation"
7336 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7337 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7338 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7339 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7340 aros_config_ldflags="-m32 -march=i486"
7341 aros_kernel_ldflags="-melf_i386"
7342 aros_default_wbdepth=8
7343 gcc_target_cpu="i386"
7344 pci_hidd_target="hidd-pci-linux"
7346 *x86_64*)
7347 aros_target_cpu="x86_64"
7348 aros_object_format="elf_x86_64"
7349 aros_flavour="emulation"
7350 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7351 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7352 aros_default_wbdepth=8
7353 pci_hidd_target="hidd-pci-linux"
7355 *powerpc*)
7356 aros_target_cpu="ppc"
7357 aros_object_format="elf32ppc"
7358 aros_flavour="emulation"
7359 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7360 aros_default_wbdepth=8
7361 gcc_target_cpu="ppc"
7363 # TODO
7364 # Same as powerpc, but I need this for the nightly build to work again.
7365 # Actually, the nightly should be made working with powerpc target.
7366 # That just was too much work for the moment, another week or two.
7367 *ppc*)
7368 aros_target_cpu="ppc"
7369 aros_object_format="elf32ppc"
7370 aros_flavour="emulation"
7371 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7372 aros_default_wbdepth=8
7373 gcc_target_cpu="ppc"
7375 *arm*)
7376 aros_target_cpu="arm"
7377 aros_object_format="armelf_linux_eabi"
7378 aros_flavour="emulation"
7379 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7380 gcc_target_cpu="arm"
7381 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"
7382 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"
7383 aros_arch_libs="-laeabi"
7386 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7388 esac
7389 case "$aros_target_variant" in
7390 android)
7391 aros_android_level=android-$aros_sdk_version
7392 aros_default_wbwidth=320
7393 aros_default_wbheight=480
7394 use_aros_gcc="yes"
7395 if test "$aros_android_ndk" = ""; then
7396 aros_kernel_cflags="-mandroid"
7397 aros_kernel_ldflags="-mandroid"
7398 CFLAGS="-mandroid"
7399 else
7400 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7401 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-arm"
7402 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7403 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7404 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7405 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7407 need_x11=no
7408 x11_hidd_target=kernel-hidd-androidgfx-kobj
7409 target_tool_prefix="arm-linux-androideabi-"
7411 esac
7415 aros_target_arch="pc"
7416 aros_shared_default="no"
7417 target_bootloader="grub2"
7418 case "$target_cpu" in
7419 *i?86*)
7420 aros_target_cpu="i386"
7423 if test "$aros_object_format" = "" ; then
7424 aros_object_format="elf_i386"
7426 aros_flavour="standalone"
7427 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7428 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7429 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7430 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7431 aros_config_ldflags="-m32 -march=i486"
7432 aros_kernel_ldflags="-melf_i386"
7433 aros_default_wbwidth=640
7434 aros_default_wbheight=480
7435 gcc_target_cpu="i386"
7437 *x86_64*)
7438 aros_target_cpu="x86_64"
7439 aros_serial_debug=1
7440 if test "$aros_object_format" = "" ; then
7441 aros_object_format="elf_x86_64"
7443 aros_flavour="standalone"
7444 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7445 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7446 aros_kernel_ldflags=""
7447 aros_default_wbwidth=640
7448 aros_default_wbheight=480
7451 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7453 esac
7456 prep)
7457 aros_target_arch="prep"
7458 aros_shared_default="no"
7459 aros_target_cpu="ppc"
7460 aros_object_format="elf32ppc"
7461 aros_flavour="ppcnative"
7462 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7463 aros_kernel_ldflags=""
7464 aros_default_wbwidth=640
7465 aros_default_wbheight=480
7466 gcc_target_cpu="ppc"
7469 freebsd*)
7470 aros_target_arch="freebsd"
7471 aros_target_family="unix"
7472 aros_target_cpu="i386"
7473 aros_flavour="emulation"
7474 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7475 gcc_target_cpu="i386"
7477 aros_target_strip_flags="-x"
7480 darwin*)
7481 aros_target_arch="darwin"
7482 aros_target_family="unix"
7483 aros_flavour="emulation"
7484 case "$target_cpu" in
7485 *i?86*)
7486 aros_ios_platform="iPhoneSimulator"
7487 aros_target_cpu="i386"
7488 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7489 aros_kernel_ldflags=""
7490 aros_macosx_version="10.4"
7491 aros_default_wbdepth=8
7492 gcc_target_cpu="i386"
7493 aros_object_format="elf_i386"
7494 aros_kernel_ar_flags="-cr"
7495 aros_target_strip_flags="-x"
7496 target_tool_prefix="i686-apple-darwin10-"
7497 target_tool_flags="-m32"
7499 *x86_64*)
7500 aros_target_cpu="x86_64"
7501 aros_object_format="elf_x86_64"
7502 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7503 aros_macosx_version="10.6"
7504 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7505 aros_kernel_cflags="-m64"
7506 aros_kernel_ldflags="-m64"
7507 aros_target_cflags="-mcmodel=large"
7508 aros_default_wbdepth=8
7509 aros_kernel_ar="ar"
7510 aros_kernel_ar_flags="-cr"
7511 aros_kernel_ld="ld"
7512 aros_kernel_ranlib="ranlib"
7513 target_tool_prefix="i686-apple-darwin10-"
7515 *ppc*)
7516 aros_target_cpu="ppc"
7517 aros_object_format="elf32ppc"
7518 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7519 aros_kernel_ldflags=""
7520 aros_macosx_version="10.0"
7521 aros_default_wbdepth=8
7522 gcc_target_cpu="ppc"
7523 aros_kernel_ar="ar"
7524 aros_kernel_ar_flags="-cr"
7525 aros_kernel_ld="ld -arch ppc"
7526 aros_kernel_ranlib="ranlib -arch ppc"
7527 target_tool_prefix="powerpc-apple-darwin10-"
7529 *arm*)
7530 aros_ios_platform="iPhoneOS"
7531 aros_target_cpu="arm"
7532 aros_object_format="armelf_linux_eabi"
7533 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7534 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7535 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7536 aros_arch_libs="-laeabi"
7537 aros_default_wbdepth=8
7538 gcc_target_cpu="arm"
7539 aros_kernel_ar="ar"
7540 aros_kernel_ar_flags="-cr"
7541 aros_kernel_ld="ld -arch arm"
7542 aros_kernel_ranlib="ranlib -arch arm"
7543 target_tool_prefix="arm-apple-darwin10-"
7544 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7547 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7549 esac
7550 case "$aros_target_variant" in
7551 ios)
7552 aros_default_wbwidth=320
7553 aros_default_wbheight=480
7554 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7555 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7556 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7557 need_x11=no
7558 # This is here because it may depend on iOS or SDK version
7559 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7560 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7561 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7564 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7565 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7567 esac
7570 dragonfly*)
7571 aros_target_arch="dragonfly"
7572 aros_target_family="unix"
7573 aros_flavour="emulation"
7574 case "$target_cpu" in
7575 *i?86*)
7576 aros_target_cpu="i386"
7577 aros_object_format="elf_i386"
7578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7580 *x86_64*)
7581 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7582 aros_target_cpu="x86_64"
7583 aros_object_format="elf_x86_64"
7584 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7587 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7589 esac
7592 netbsd*)
7593 aros_target_arch="netbsd"
7594 aros_target_family="unix"
7595 case "$target_cpu" in
7596 *m68k*)
7597 aros_target_cpu="m68k"
7598 aros_object_format="m68kelf"
7599 aros_flavour="emulcompat"
7600 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7601 gcc_target_cpu="mc68000"
7603 *i?86*)
7604 aros_target_cpu="i386"
7605 aros_object_format="elf_i386"
7606 aros_flavour="emulation"
7607 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7608 aros_default_wbdepth=8
7609 gcc_target_cpu="i386"
7612 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7614 esac
7615 aros_target_genmap="-Wl,-M -Xlinker >"
7616 aros_flavour="emulation"
7617 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7620 openbsd*)
7621 aros_target_arch="openbsd"
7622 aros_target_family="unix"
7623 case "$target_cpu" in
7624 *i?86*)
7625 aros_target_cpu="i386"
7626 aros_object_format="elf_i386"
7627 aros_flavour="emulation"
7628 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7629 gcc_target_cpu="i386"
7632 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7634 esac
7635 aros_target_genmap="-Wl,-M -Xlinker >"
7636 aros_target_nm_flags="-u"
7637 aros_flavour="emulation"
7640 solaris*)
7641 aros_target_arch="solaris"
7642 aros_target_family="unix"
7643 case "$target_cpu" in
7644 *i?86*)
7645 aros_target_cpu="i386"
7646 aros_object_format="elf_i386"
7647 aros_flavour="emulation"
7648 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7649 aros_default_wbdepth=8
7650 gcc_target_cpu="i386"
7652 *sparc*)
7653 aros_target_cpu="sparc"
7654 aros_object_format="elf_sparc"
7655 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7656 gcc_target_cpu="sparc"
7659 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7661 esac
7662 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7663 aros_flavour="emulation"
7666 morphos*)
7667 aros_target_arch="morphos"
7668 aros_shared_default="no"
7669 aros_target_cpu="ppc"
7670 aros_object_format="elf_ppc"
7671 aros_flavour="nativecompat"
7672 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7673 gcc_target_cpu="ppc"
7676 sam440)
7677 aros_target_arch="sam440"
7678 aros_shared_default="no"
7679 aros_target_cpu="ppc"
7680 aros_object_format="elf32ppc"
7681 aros_flavour="ppcnative"
7682 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7683 aros_kernel_ldflags=""
7684 aros_default_wbwidth=1024
7685 aros_default_wbheight=768
7686 aros_default_wbdepth=24
7687 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7688 gcc_target_cpu="powerpc"
7691 efika)
7692 aros_target_arch="efika"
7693 aros_shared_default="no"
7694 aros_target_cpu="arm"
7695 aros_object_format="armelf_linux_eabi"
7696 aros_flavour="standalone"
7697 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7698 aros_kernel_ldflags=""
7699 aros_default_wbwidth=1024
7700 aros_default_wbheight=600
7701 aros_arch_libs="-laeabi"
7702 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"
7703 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"
7706 chrp)
7707 aros_target_arch="chrp"
7708 aros_shared_default="no"
7709 aros_target_cpu="ppc"
7710 aros_object_format="elf32ppc"
7711 aros_flavour="ppcnative"
7712 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7713 aros_kernel_ldflags=""
7714 aros_default_wbwidth=640
7715 aros_default_wbheight=480
7716 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7717 gcc_target_cpu="powerpc"
7718 case "$aros_target_variant" in
7719 efika)
7720 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7722 esac
7725 amiga*)
7726 aros_target_arch="amiga"
7727 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7728 aros_shared_default="no"
7730 case "$target_cpu" in
7731 *m68k*)
7732 # Check whether --enable-amigaos_compliance was given.
7733 if test "${enable_amigaos_compliance+set}" = set; then :
7734 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7737 aros_enable_mmu=no
7738 aros_target_cpu="m68k"
7739 aros_object_format="m68kelf"
7740 aros_flavour="standcompat"
7741 gcc_target_cpu="m68000"
7742 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7743 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7744 target_tool_prefix="m68k-elf-"
7745 # Needed to get the correct multilib
7746 aros_config_ldflags="-${gcc_target_cpu}"
7747 aros_shared_ldflags="-${gcc_target_cpu}"
7748 aros_kernel_ldflags="-${gcc_target_cpu}"
7749 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7750 aros_target_strip_flags="-R.comment --strip-debug"
7751 aros_default_wbwidth=640
7752 aros_default_wbheight=256
7753 aros_default_wbdepth=2
7755 *ppc*)
7756 aros_cpu="ppc"
7757 aros_flavour="native"
7758 gcc_target_cpu="ppc"
7761 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7763 esac
7766 mingw*)
7767 aros_target_arch="mingw32"
7768 aros_shared_default="no"
7769 aros_flavour="emulation"
7770 aros_shared_cflags=""
7771 need_dlopen="no"
7772 rescomp="windres"
7773 case "$target_cpu" in
7774 *i?86*)
7775 aros_target_cpu="i386"
7776 aros_object_format="elf_i386"
7777 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7778 aros_default_wbdepth=8
7779 gcc_target_cpu="i386"
7781 aros_target_as="i386-aros-as"
7782 aros_target_ar="i386-aros-ar"
7783 aros_target_ranlib="i386-aros-ranlib"
7784 aros_target_nm="i386-aros-nm"
7785 aros_target_strip="i386-aros-strip"
7786 aros_target_objcopy="i386-aros-objcopy"
7787 aros_target_objdump="i386-aros-objdump"
7789 target_tool_prefix="i386-mingw32-"
7791 *x86_64*)
7792 aros_target_cpu="x86_64"
7793 aros_object_format="elf_x86_64"
7794 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7795 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7796 aros_default_wbdepth=8
7797 target_tool_prefix="x86_64-w64-mingw32-"
7799 *arm*)
7800 aros_target_cpu="arm"
7801 aros_object_format="armelf_linux_eabi"
7802 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7803 aros_arch_libs="-laeabi"
7804 aros_default_wbdepth=8
7805 gcc_target_cpu="arm"
7806 target_tool_prefix="arm-mingw32ce-"
7807 aros_default_wbwidth=160
7808 aros_default_wbheight=160
7811 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7813 esac
7814 if test $host_os = "cygwin"; then
7815 aros_kernel_cflags="-mno-cygwin"
7818 pp*)
7819 aros_target_arch="pp"
7820 aros_shared_default="no"
7821 case "$target_cpu" in
7822 *m68k*)
7823 aros_target_cpu="m68k"
7824 aros_object_format="m68kelf"
7825 aros_flavour="palmnative"
7826 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7827 aros_default_wbwidth=160
7828 aros_default_wbheight=160
7829 aros_default_wbdepth=1
7830 aros_target_ar_flags="cru"
7831 aros_compiler_libs="-lgcc1"
7832 aros_shared_default=no
7833 aros_shared_cflags="-fpic"
7834 aros_shared_aflags=""
7835 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7836 aros_kernel_ldflags="-Wl,-rpath,./lib"
7837 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7838 aros_debug_aflags=""
7839 aros_debug_ldflags="$aros_symbols_debug"
7840 aros_mungwall_debug="0"
7841 aros_modules_debug="0"
7842 gcc_target_cpu="mc68000"
7843 ignore_undefined_symbols="-ius"
7846 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7848 esac
7851 mac*)
7852 aros_target_arch="mac"
7853 aros_shared_default="no"
7854 case "$target_cpu" in
7855 *m68k*)
7856 aros_target_cpu="m68k"
7857 aros_object_format="m68kelf"
7858 aros_flavour="mac68knative"
7859 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7860 aros_default_wbwidth=512
7861 aros_default_wbheight=384
7862 aros_default_wbdepth=8
7863 aros_target_ar_flags="cru"
7864 aros_compiler_libs="-lgcc1"
7865 aros_shared_default=no
7866 aros_shared_cflags="-fpic"
7867 aros_shared_aflags=""
7868 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7869 aros_kernel_ldflags="-Wl,-rpath,./lib"
7870 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7871 aros_debug_aflags=""
7872 aros_debug_ldflags="$aros_symbols_debug"
7873 aros_mungwall_debug="0"
7874 aros_modules_debug="0"
7875 gcc_target_cpu="mc68000"
7876 ignore_undefined_symbols="-ius"
7879 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7881 esac
7885 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7887 esac
7889 # Some formats need custom ELF specs.
7890 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
7891 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
7892 elf_specs_in=config/${aros_object_format}-specs.in
7893 else
7894 elf_specs_in=config/elf-specs.in
7897 #-----------------------------------------------------------------------------
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7899 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7901 # Check whether --with-crosstools was given.
7902 if test "${with_crosstools+set}" = set; then :
7903 withval=$with_crosstools; with_crosstools=$withval
7904 else
7905 with_crosstools="default"
7908 if test "$with_crosstools" = "default"; then
7909 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7910 else
7911 AROS_CROSSTOOLSDIR="$with_crosstools"
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7914 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7916 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
7919 use_aros_gcc=yes
7920 PATH=$AROS_CROSSTOOLSDIR:$PATH
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7924 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7926 # Check whether --with-aros-gcc was given.
7927 if test "${with_aros_gcc+set}" = set; then :
7928 withval=$with_aros_gcc; aros_gcc_version="$withval"
7929 else
7930 aros_gcc_version="$use_aros_gcc"
7933 case "$aros_gcc_version" in
7934 yes)
7935 aros_gcc_version="default"
7938 aros_gcc_version="none"
7940 esac
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7942 $as_echo "$aros_gcc_version" >&6; }
7944 if test "$aros_gcc_version" != "none"; then
7947 if test "$aros_gcc_version" != "default"; then
7948 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7949 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7950 else
7951 aros_target_cc="$aros_target_cpu-aros-gcc"
7952 aros_target_cxx="$aros_target_cpu-aros-g++"
7955 aros_target_ld="$aros_target_cpu-aros-ld"
7956 aros_target_as="$aros_target_cpu-aros-as"
7957 aros_target_ar="$aros_target_cpu-aros-ar"
7958 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7959 aros_target_nm="$aros_target_cpu-aros-nm"
7960 aros_target_strip="$aros_target_cpu-aros-strip"
7961 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7962 aros_target_objdump="$aros_target_cpu-aros-objdump"
7965 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7966 # Since we override specs, we may need to put these defines there
7967 if test "$gcc_target_cpu" != ""; then
7968 gcc_target_cpu="-D__${gcc_target_cpu}__"
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7972 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7974 # Check whether --with-portssources was given.
7975 if test "${with_portssources+set}" = set; then :
7976 withval=$with_portssources; with_portssrcdir=$withval
7977 else
7978 with_portssrcdir="default"
7981 if test "$with_portssrcdir" = "default"; then
7982 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7983 else
7984 AROS_PORTSSRCDIR="$with_portssrcdir"
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7987 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7990 $as_echo_n "checking which bootloader to use... " >&6; }
7992 # Check whether --with-bootloader was given.
7993 if test "${with_bootloader+set}" = set; then :
7994 withval=$with_bootloader; target_bootloader=$withval
7995 else
7996 target_bootloader=$target_bootloader
7999 if test "$target_bootloader" = "none"; then
8000 aros_target_bootloader=""
8001 else
8002 aros_target_bootloader="$target_bootloader"
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8005 $as_echo "$target_bootloader" >&6; }
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8008 $as_echo_n "checking which icon-set to use... " >&6; }
8010 # Check whether --with-iconset was given.
8011 if test "${with_iconset+set}" = set; then :
8012 withval=$with_iconset; target_iconset=$withval
8013 else
8014 target_iconset="default"
8017 if test "$target_iconset" = "default"; then
8018 aros_target_iconset="Gorilla"
8019 target_iconset="default (Gorilla)"
8020 else
8021 aros_target_iconset="$target_iconset"
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8024 $as_echo "$target_iconset" >&6; }
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8027 $as_echo_n "checking which GUI Theme to use... " >&6; }
8029 # Check whether --with-theme was given.
8030 if test "${with_theme+set}" = set; then :
8031 withval=$with_theme; target_guitheme=$withval
8032 else
8033 target_guitheme="default"
8036 if test "$target_guitheme" = "default"; then
8037 aros_target_guitheme="Ice"
8038 else
8039 aros_target_guitheme="$target_guitheme"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8042 $as_echo "$aros_target_guitheme" >&6; }
8044 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8045 # for target code)
8046 cross_compiling=no
8047 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8048 cross_compiling=yes
8051 if test "$aros_host_cpu" == "x86_64" ; then
8052 if test "$aros_target_cpu" == "i386" ; then
8053 if test "$aros_target_arch" != "mingw32"; then
8054 cross_compiling=no
8059 if test "$aros_host_arch" == "darwin" ; then
8060 if test "$aros_target_arch" != "darwin" ; then
8061 cross_compiling=yes
8065 if test "$aros_host_arch" == "mingw32" ; then
8066 if test "$aros_target_arch" != "mingw32" ; then
8067 cross_compiling=yes
8071 # I want to have this information in configure output, although it might be
8072 # misleading, e.g. for darwin hosted you cannot compile target code without a
8073 # cross compiler, but here it says no.
8075 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8076 # Target code is a little bit different thing.
8077 # sonic
8078 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8080 # Set prefix for target compiler etc. if we're cross-compiling
8081 # (should possibly be earlier but needs to be after AC_PROG_CC)
8082 if test "$cross_compiling" = "yes" ; then
8084 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8085 if test "$aros_gcc_version" != "none"; then
8088 target_tool_prefix=${target_cpu}-aros-
8089 target_tool_version=$aros_gcc_version
8090 use_kernel_cc_wrapper=yes
8092 aros_target_cc=
8093 aros_target_ld=
8094 aros_target_as=
8095 aros_target_ar=
8096 aros_target_ranlib=
8097 aros_target_nm=
8098 aros_target_strip=
8099 aros_target_objcopy=
8100 aros_target_objdump=
8104 CC=${target_tool_prefix}gcc
8105 CPP=${target_tool_prefix}cpp
8106 if test "$target_tool_version" != "default"; then
8107 CC="$CC-$target_tool_version"
8108 CPP="$CC-$target_tool_version"
8110 if test "$crosstools" != "yes" ; then
8111 # Extract the first word of "$CC", so it can be a program name with args.
8112 set dummy $CC; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if test "${ac_cv_path_CC+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 case $CC in
8119 [\\/]* | ?:[\\/]*)
8120 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8130 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8134 done
8135 done
8136 IFS=$as_save_IFS
8139 esac
8141 CC=$ac_cv_path_CC
8142 if test -n "$CC"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8144 $as_echo "$CC" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8151 if test "$CC" = ""; then
8152 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8154 else
8155 CC=$AROS_CROSSTOOLSDIR/$CC
8158 CC="$CC $target_tool_flags"
8160 #-----------------------------------------------------------------------------
8162 # Disable pointer-signedness warnings if the compiler recognises the option
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8165 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8166 save_cflags="$CFLAGS"
8167 if test "$crosstools" != "yes" ; then
8168 CFLAGS="$CFLAGS -Wno-pointer-sign"
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8173 main ()
8177 return 0;
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 use_no_sign_warning="yes"
8182 else
8183 use_no_sign_warning="no"
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 else
8187 # we do know it is supported for the smallest version of gcc we are going to build
8188 # we assume it's also supported by later versions
8189 use_no_sign_warning=yes
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8192 $as_echo "$use_no_sign_warning" >&6; }
8193 if test "x-$use_no_sign_warning" = "x-yes" ; then
8194 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8196 CFLAGS="$save_cflags"
8198 #-----------------------------------------------------------------------------
8200 # Find all the tools we need to compile. This could be cross-compiling
8201 # though! If that is the case we use the GNU form of the target and
8202 # simply add this to the front of the binary name. This is rather simple,
8203 # but it should work under most circumstances.
8205 # The default tools are to use the same as the host, but only if the
8206 # host and target CPU are the same. With GCC this is normally enough.
8209 aros_cc_pre=""
8210 aros_shared_ld="$aros_host_ld"
8212 aros_target_mkdep="$aros_host_mkdep"
8213 aros_target_incl_def="$aros_host_incl"
8215 aros_kernel_cc="$CC"
8217 # The default tools executables to be linked to.
8218 if test "$rescomp" != ""; then
8219 if test "$cross_compiling" = "yes" ; then
8220 rescomp=${target_tool_prefix}${rescomp}
8222 # Extract the first word of "$rescomp", so it can be a program name with args.
8223 set dummy $rescomp; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 case $aros_kernel_rescomp in
8230 [\\/]* | ?:[\\/]*)
8231 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8241 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8245 done
8246 done
8247 IFS=$as_save_IFS
8250 esac
8252 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8253 if test -n "$aros_kernel_rescomp"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8255 $as_echo "$aros_kernel_rescomp" >&6; }
8256 else
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8262 if test "$aros_kernel_rescomp" = ""; then
8263 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8267 if test "$crosstools" != "yes"; then
8269 if test "$aros_kernel_ld" = ""; then
8270 if test "$cross_compiling" = "yes" ; then
8271 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8272 set dummy ${target_tool_prefix}ld; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 case $aros_kernel_ld in
8279 [\\/]* | ?:[\\/]*)
8280 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8290 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 break 2
8294 done
8295 done
8296 IFS=$as_save_IFS
8299 esac
8301 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8302 if test -n "$aros_kernel_ld"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8304 $as_echo "$aros_kernel_ld" >&6; }
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8311 else
8312 if test "$GCC" = "yes"; then
8313 aros_gcc_ld=`$CC -print-prog-name=ld`
8314 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8315 set dummy `basename $aros_gcc_ld`; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 case $aros_kernel_ld in
8322 [\\/]* | ?:[\\/]*)
8323 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in `dirname $aros_gcc_ld`
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8333 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8337 done
8338 done
8339 IFS=$as_save_IFS
8342 esac
8344 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8345 if test -n "$aros_kernel_ld"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8347 $as_echo "$aros_kernel_ld" >&6; }
8348 else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8355 if test "$aros_kernel_ld" = ""; then
8356 # Extract the first word of "ld", so it can be a program name with args.
8357 set dummy ld; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 case $aros_kernel_ld in
8364 [\\/]* | ?:[\\/]*)
8365 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8371 IFS=$as_save_IFS
8372 test -z "$as_dir" && as_dir=.
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8375 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 break 2
8379 done
8380 done
8381 IFS=$as_save_IFS
8384 esac
8386 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8387 if test -n "$aros_kernel_ld"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8389 $as_echo "$aros_kernel_ld" >&6; }
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8398 else
8399 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8400 set dummy $aros_kernel_ld; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 case $aros_kernel_ld in
8407 [\\/]* | ?:[\\/]*)
8408 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8422 done
8423 done
8424 IFS=$as_save_IFS
8427 esac
8429 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8430 if test -n "$aros_kernel_ld"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8432 $as_echo "$aros_kernel_ld" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8441 if test "$aros_kernel_ld" = ""; then
8442 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8445 if test "$aros_kernel_ar" = ""; then
8446 if test "$cross_compiling" = "yes" ; then
8447 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8448 set dummy ${target_tool_prefix}ar; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 case $aros_kernel_ar in
8455 [\\/]* | ?:[\\/]*)
8456 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8470 done
8471 done
8472 IFS=$as_save_IFS
8475 esac
8477 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8478 if test -n "$aros_kernel_ar"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8480 $as_echo "$aros_kernel_ar" >&6; }
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8487 else
8488 if test "$GCC" = "yes"; then
8489 aros_gcc_ar=`$CC -print-prog-name=ar`
8490 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8491 set dummy `basename $aros_gcc_ar`; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 case $aros_kernel_ar in
8498 [\\/]* | ?:[\\/]*)
8499 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in `dirname $aros_gcc_ar`
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8513 done
8514 done
8515 IFS=$as_save_IFS
8518 esac
8520 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8521 if test -n "$aros_kernel_ar"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8523 $as_echo "$aros_kernel_ar" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 if test "$aros_kernel_ar" = ""; then
8532 # Extract the first word of "ar", so it can be a program name with args.
8533 set dummy ar; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 case $aros_kernel_ar in
8540 [\\/]* | ?:[\\/]*)
8541 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8555 done
8556 done
8557 IFS=$as_save_IFS
8560 esac
8562 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8563 if test -n "$aros_kernel_ar"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8565 $as_echo "$aros_kernel_ar" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8574 else
8575 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8576 set dummy $aros_kernel_ar; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 case $aros_kernel_ar in
8583 [\\/]* | ?:[\\/]*)
8584 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8594 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8598 done
8599 done
8600 IFS=$as_save_IFS
8603 esac
8605 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8606 if test -n "$aros_kernel_ar"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8608 $as_echo "$aros_kernel_ar" >&6; }
8609 else
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8617 if test "$aros_kernel_ar" = ""; then
8618 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8621 if test "$aros_kernel_ranlib" = ""; then
8622 if test "$cross_compiling" = "yes" ; then
8623 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8624 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 case $aros_kernel_ranlib in
8631 [\\/]* | ?:[\\/]*)
8632 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in $PATH
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8642 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8646 done
8647 done
8648 IFS=$as_save_IFS
8651 esac
8653 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8654 if test -n "$aros_kernel_ranlib"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8656 $as_echo "$aros_kernel_ranlib" >&6; }
8657 else
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659 $as_echo "no" >&6; }
8663 else
8664 if test "$GCC" = "yes"; then
8665 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8666 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8667 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 case $aros_kernel_ranlib in
8674 [\\/]* | ?:[\\/]*)
8675 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in `dirname $aros_gcc_ranlib`
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8685 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 break 2
8689 done
8690 done
8691 IFS=$as_save_IFS
8694 esac
8696 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8697 if test -n "$aros_kernel_ranlib"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8699 $as_echo "$aros_kernel_ranlib" >&6; }
8700 else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8707 if test "$aros_kernel_ranlib" = ""; then
8708 # Extract the first word of "ranlib", so it can be a program name with args.
8709 set dummy ranlib; ac_word=$2
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711 $as_echo_n "checking for $ac_word... " >&6; }
8712 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 case $aros_kernel_ranlib in
8716 [\\/]* | ?:[\\/]*)
8717 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in $PATH
8723 IFS=$as_save_IFS
8724 test -z "$as_dir" && as_dir=.
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8727 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729 break 2
8731 done
8732 done
8733 IFS=$as_save_IFS
8736 esac
8738 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8739 if test -n "$aros_kernel_ranlib"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8741 $as_echo "$aros_kernel_ranlib" >&6; }
8742 else
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8750 else
8751 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8752 set dummy $aros_kernel_ranlib; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 case $aros_kernel_ranlib in
8759 [\\/]* | ?:[\\/]*)
8760 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764 for as_dir in $PATH
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8770 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 break 2
8774 done
8775 done
8776 IFS=$as_save_IFS
8779 esac
8781 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8782 if test -n "$aros_kernel_ranlib"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8784 $as_echo "$aros_kernel_ranlib" >&6; }
8785 else
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8793 if test "$aros_kernel_ranlib" = ""; then
8794 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8797 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8798 target_tool_prefix=${target_cpu}-elf-
8799 if test "$aros_target_cc" == ""; then
8800 aros_target_cc="${target_tool_prefix}gcc"
8802 if test "$aros_target_ld" == ""; then
8803 aros_target_ld="${target_tool_prefix}ld"
8807 if test "$aros_target_as" = ""; then
8808 if test "$cross_compiling" = "yes" ; then
8809 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8810 set dummy ${target_tool_prefix}as; ac_word=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 case $aros_target_as_ln in
8817 [\\/]* | ?:[\\/]*)
8818 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $PATH
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8828 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8832 done
8833 done
8834 IFS=$as_save_IFS
8837 esac
8839 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8840 if test -n "$aros_target_as_ln"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8842 $as_echo "$aros_target_as_ln" >&6; }
8843 else
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8849 else
8850 if test "$GCC" = "yes"; then
8851 aros_gcc_as=`$CC -print-prog-name=as`
8852 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8853 set dummy `basename $aros_gcc_as`; ac_word=$2
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855 $as_echo_n "checking for $ac_word... " >&6; }
8856 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 case $aros_target_as_ln in
8860 [\\/]* | ?:[\\/]*)
8861 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in `dirname $aros_gcc_as`
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8871 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 break 2
8875 done
8876 done
8877 IFS=$as_save_IFS
8880 esac
8882 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8883 if test -n "$aros_target_as_ln"; then
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8885 $as_echo "$aros_target_as_ln" >&6; }
8886 else
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8893 if test "$aros_target_as_ln" = ""; then
8894 # Extract the first word of "as", so it can be a program name with args.
8895 set dummy as; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 case $aros_target_as_ln in
8902 [\\/]* | ?:[\\/]*)
8903 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8913 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8917 done
8918 done
8919 IFS=$as_save_IFS
8922 esac
8924 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8925 if test -n "$aros_target_as_ln"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8927 $as_echo "$aros_target_as_ln" >&6; }
8928 else
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8936 else
8937 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8938 set dummy $aros_target_as; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 case $aros_target_as_ln in
8945 [\\/]* | ?:[\\/]*)
8946 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8956 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8960 done
8961 done
8962 IFS=$as_save_IFS
8965 esac
8967 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8968 if test -n "$aros_target_as_ln"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8970 $as_echo "$aros_target_as_ln" >&6; }
8971 else
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8979 if test "$aros_target_as_ln" = ""; then
8980 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8983 if test "$aros_target_ar" = ""; then
8984 if test "$cross_compiling" = "yes" ; then
8985 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8986 set dummy ${target_tool_prefix}ar; ac_word=$2
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8988 $as_echo_n "checking for $ac_word... " >&6; }
8989 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 case $aros_target_ar_ln in
8993 [\\/]* | ?:[\\/]*)
8994 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9004 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9008 done
9009 done
9010 IFS=$as_save_IFS
9013 esac
9015 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9016 if test -n "$aros_target_ar_ln"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9018 $as_echo "$aros_target_ar_ln" >&6; }
9019 else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9025 else
9026 if test "$GCC" = "yes"; then
9027 aros_gcc_ar=`$CC -print-prog-name=ar`
9028 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9029 set dummy `basename $aros_gcc_ar`; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 case $aros_target_ar_ln in
9036 [\\/]* | ?:[\\/]*)
9037 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 for as_dir in `dirname $aros_gcc_ar`
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9047 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 break 2
9051 done
9052 done
9053 IFS=$as_save_IFS
9056 esac
9058 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9059 if test -n "$aros_target_ar_ln"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9061 $as_echo "$aros_target_ar_ln" >&6; }
9062 else
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9069 if test "$aros_target_ar_ln" = ""; then
9070 # Extract the first word of "ar", so it can be a program name with args.
9071 set dummy ar; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 case $aros_target_ar_ln in
9078 [\\/]* | ?:[\\/]*)
9079 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 for as_dir in $PATH
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9089 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9093 done
9094 done
9095 IFS=$as_save_IFS
9098 esac
9100 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9101 if test -n "$aros_target_ar_ln"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9103 $as_echo "$aros_target_ar_ln" >&6; }
9104 else
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 $as_echo "no" >&6; }
9112 else
9113 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9114 set dummy $aros_target_ar; ac_word=$2
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116 $as_echo_n "checking for $ac_word... " >&6; }
9117 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 case $aros_target_ar_ln in
9121 [\\/]* | ?:[\\/]*)
9122 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9136 done
9137 done
9138 IFS=$as_save_IFS
9141 esac
9143 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9144 if test -n "$aros_target_ar_ln"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9146 $as_echo "$aros_target_ar_ln" >&6; }
9147 else
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9155 if test "$aros_target_ar_ln" = ""; then
9156 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9159 if test "$aros_target_nm" = ""; then
9160 if test "$cross_compiling" = "yes" ; then
9161 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9162 set dummy ${target_tool_prefix}nm; ac_word=$2
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 $as_echo_n "checking for $ac_word... " >&6; }
9165 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9168 case $aros_target_nm_ln in
9169 [\\/]* | ?:[\\/]*)
9170 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9176 IFS=$as_save_IFS
9177 test -z "$as_dir" && as_dir=.
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9180 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 break 2
9184 done
9185 done
9186 IFS=$as_save_IFS
9189 esac
9191 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9192 if test -n "$aros_target_nm_ln"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9194 $as_echo "$aros_target_nm_ln" >&6; }
9195 else
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197 $as_echo "no" >&6; }
9201 else
9202 if test "$GCC" = "yes"; then
9203 aros_gcc_nm=`$CC -print-prog-name=nm`
9204 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9205 set dummy `basename $aros_gcc_nm`; ac_word=$2
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 $as_echo_n "checking for $ac_word... " >&6; }
9208 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 case $aros_target_nm_ln in
9212 [\\/]* | ?:[\\/]*)
9213 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in `dirname $aros_gcc_nm`
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9223 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9227 done
9228 done
9229 IFS=$as_save_IFS
9232 esac
9234 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9235 if test -n "$aros_target_nm_ln"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9237 $as_echo "$aros_target_nm_ln" >&6; }
9238 else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9245 if test "$aros_target_nm_ln" = ""; then
9246 # Extract the first word of "nm", so it can be a program name with args.
9247 set dummy nm; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 case $aros_target_nm_ln in
9254 [\\/]* | ?:[\\/]*)
9255 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9265 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 break 2
9269 done
9270 done
9271 IFS=$as_save_IFS
9274 esac
9276 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9277 if test -n "$aros_target_nm_ln"; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9279 $as_echo "$aros_target_nm_ln" >&6; }
9280 else
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9288 else
9289 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9290 set dummy $aros_target_nm; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 case $aros_target_nm_ln in
9297 [\\/]* | ?:[\\/]*)
9298 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9308 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9312 done
9313 done
9314 IFS=$as_save_IFS
9317 esac
9319 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9320 if test -n "$aros_target_nm_ln"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9322 $as_echo "$aros_target_nm_ln" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9331 if test "$aros_target_nm_ln" = ""; then
9332 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9335 if test "$aros_target_objcopy" = ""; then
9336 if test "$cross_compiling" = "yes" ; then
9337 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9338 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9340 $as_echo_n "checking for $ac_word... " >&6; }
9341 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 case $aros_target_objcopy_ln in
9345 [\\/]* | ?:[\\/]*)
9346 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $PATH
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9356 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9360 done
9361 done
9362 IFS=$as_save_IFS
9365 esac
9367 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9368 if test -n "$aros_target_objcopy_ln"; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9370 $as_echo "$aros_target_objcopy_ln" >&6; }
9371 else
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; }
9377 else
9378 if test "$GCC" = "yes"; then
9379 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9380 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9381 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383 $as_echo_n "checking for $ac_word... " >&6; }
9384 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 case $aros_target_objcopy_ln in
9388 [\\/]* | ?:[\\/]*)
9389 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in `dirname $aros_gcc_objcopy`
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9399 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9403 done
9404 done
9405 IFS=$as_save_IFS
9408 esac
9410 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9411 if test -n "$aros_target_objcopy_ln"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9413 $as_echo "$aros_target_objcopy_ln" >&6; }
9414 else
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9421 if test "$aros_target_objcopy_ln" = ""; then
9422 # Extract the first word of "objcopy", so it can be a program name with args.
9423 set dummy objcopy; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 case $aros_target_objcopy_ln in
9430 [\\/]* | ?:[\\/]*)
9431 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435 for as_dir in $PATH
9437 IFS=$as_save_IFS
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9441 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 break 2
9445 done
9446 done
9447 IFS=$as_save_IFS
9450 esac
9452 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9453 if test -n "$aros_target_objcopy_ln"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9455 $as_echo "$aros_target_objcopy_ln" >&6; }
9456 else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9464 else
9465 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9466 set dummy $aros_target_objcopy; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 case $aros_target_objcopy_ln in
9473 [\\/]* | ?:[\\/]*)
9474 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9484 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9488 done
9489 done
9490 IFS=$as_save_IFS
9493 esac
9495 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9496 if test -n "$aros_target_objcopy_ln"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9498 $as_echo "$aros_target_objcopy_ln" >&6; }
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9507 if test "$aros_target_objcopy_ln" = ""; then
9508 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9511 if test "$aros_target_objdump" = ""; then
9512 if test "$cross_compiling" = "yes" ; then
9513 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9514 set dummy ${target_tool_prefix}objdump; ac_word=$2
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516 $as_echo_n "checking for $ac_word... " >&6; }
9517 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 case $aros_target_objdump_ln in
9521 [\\/]* | ?:[\\/]*)
9522 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9528 IFS=$as_save_IFS
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9532 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534 break 2
9536 done
9537 done
9538 IFS=$as_save_IFS
9541 esac
9543 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9544 if test -n "$aros_target_objdump_ln"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9546 $as_echo "$aros_target_objdump_ln" >&6; }
9547 else
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9553 else
9554 if test "$GCC" = "yes"; then
9555 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9556 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9557 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 case $aros_target_objdump_ln in
9564 [\\/]* | ?:[\\/]*)
9565 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in `dirname $aros_gcc_objdump`
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9579 done
9580 done
9581 IFS=$as_save_IFS
9584 esac
9586 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9587 if test -n "$aros_target_objdump_ln"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9589 $as_echo "$aros_target_objdump_ln" >&6; }
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9597 if test "$aros_target_objdump_ln" = ""; then
9598 # Extract the first word of "objdump", so it can be a program name with args.
9599 set dummy objdump; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 case $aros_target_objdump_ln in
9606 [\\/]* | ?:[\\/]*)
9607 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 for as_dir in $PATH
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9617 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 break 2
9621 done
9622 done
9623 IFS=$as_save_IFS
9626 esac
9628 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9629 if test -n "$aros_target_objdump_ln"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9631 $as_echo "$aros_target_objdump_ln" >&6; }
9632 else
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9640 else
9641 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9642 set dummy $aros_target_objdump; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 case $aros_target_objdump_ln in
9649 [\\/]* | ?:[\\/]*)
9650 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9664 done
9665 done
9666 IFS=$as_save_IFS
9669 esac
9671 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9672 if test -n "$aros_target_objdump_ln"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9674 $as_echo "$aros_target_objdump_ln" >&6; }
9675 else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9683 if test "$aros_target_objdump_ln" = ""; then
9684 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9687 if test "$aros_target_ranlib" = ""; then
9688 if test "$cross_compiling" = "yes" ; then
9689 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9690 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 case $aros_target_ranlib_ln in
9697 [\\/]* | ?:[\\/]*)
9698 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9708 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 break 2
9712 done
9713 done
9714 IFS=$as_save_IFS
9717 esac
9719 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9720 if test -n "$aros_target_ranlib_ln"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9722 $as_echo "$aros_target_ranlib_ln" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9729 else
9730 if test "$GCC" = "yes"; then
9731 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9732 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9733 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 case $aros_target_ranlib_ln in
9740 [\\/]* | ?:[\\/]*)
9741 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in `dirname $aros_gcc_ranlib`
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9755 done
9756 done
9757 IFS=$as_save_IFS
9760 esac
9762 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9763 if test -n "$aros_target_ranlib_ln"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9765 $as_echo "$aros_target_ranlib_ln" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9773 if test "$aros_target_ranlib_ln" = ""; then
9774 # Extract the first word of "ranlib", so it can be a program name with args.
9775 set dummy ranlib; ac_word=$2
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 case $aros_target_ranlib_ln in
9782 [\\/]* | ?:[\\/]*)
9783 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787 for as_dir in $PATH
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
9791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9793 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 break 2
9797 done
9798 done
9799 IFS=$as_save_IFS
9802 esac
9804 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9805 if test -n "$aros_target_ranlib_ln"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9807 $as_echo "$aros_target_ranlib_ln" >&6; }
9808 else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9816 else
9817 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9818 set dummy $aros_target_ranlib; ac_word=$2
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820 $as_echo_n "checking for $ac_word... " >&6; }
9821 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 case $aros_target_ranlib_ln in
9825 [\\/]* | ?:[\\/]*)
9826 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 for as_dir in $PATH
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
9834 for ac_exec_ext in '' $ac_executable_extensions; do
9835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9836 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 break 2
9840 done
9841 done
9842 IFS=$as_save_IFS
9845 esac
9847 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9848 if test -n "$aros_target_ranlib_ln"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9850 $as_echo "$aros_target_ranlib_ln" >&6; }
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9859 if test "$aros_target_ranlib_ln" = ""; then
9860 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9863 if test "$aros_target_strip" = ""; then
9864 if test "$cross_compiling" = "yes" ; then
9865 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9866 set dummy ${target_tool_prefix}strip; ac_word=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 case $aros_target_strip_ln in
9873 [\\/]* | ?:[\\/]*)
9874 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9884 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 break 2
9888 done
9889 done
9890 IFS=$as_save_IFS
9893 esac
9895 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9896 if test -n "$aros_target_strip_ln"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9898 $as_echo "$aros_target_strip_ln" >&6; }
9899 else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9905 else
9906 if test "$GCC" = "yes"; then
9907 aros_gcc_strip=`$CC -print-prog-name=strip`
9908 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9909 set dummy `basename $aros_gcc_strip`; ac_word=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 case $aros_target_strip_ln in
9916 [\\/]* | ?:[\\/]*)
9917 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in `dirname $aros_gcc_strip`
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9927 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 break 2
9931 done
9932 done
9933 IFS=$as_save_IFS
9936 esac
9938 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9939 if test -n "$aros_target_strip_ln"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9941 $as_echo "$aros_target_strip_ln" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9949 if test "$aros_target_strip_ln" = ""; then
9950 # Extract the first word of "strip", so it can be a program name with args.
9951 set dummy strip; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 case $aros_target_strip_ln in
9958 [\\/]* | ?:[\\/]*)
9959 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 break 2
9973 done
9974 done
9975 IFS=$as_save_IFS
9978 esac
9980 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9981 if test -n "$aros_target_strip_ln"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9983 $as_echo "$aros_target_strip_ln" >&6; }
9984 else
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9992 else
9993 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9994 set dummy $aros_target_strip; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 case $aros_target_strip_ln in
10001 [\\/]* | ?:[\\/]*)
10002 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10018 IFS=$as_save_IFS
10021 esac
10023 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10024 if test -n "$aros_target_strip_ln"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10026 $as_echo "$aros_target_strip_ln" >&6; }
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10035 if test "$aros_target_strip_ln" = ""; then
10036 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10038 if test "$aros_target_cxx" != ""; then
10039 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10040 set dummy $aros_target_cxx; ac_word=$2
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 case $aros_target_cxx in
10047 [\\/]* | ?:[\\/]*)
10048 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052 for as_dir in $PATH
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10058 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10062 done
10063 done
10064 IFS=$as_save_IFS
10067 esac
10069 aros_target_cxx=$ac_cv_path_aros_target_cxx
10070 if test -n "$aros_target_cxx"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10072 $as_echo "$aros_target_cxx" >&6; }
10073 else
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10079 if test "$aros_target_cxx" = ""; then
10080 as_fn_error "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10083 else
10084 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10085 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10086 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10087 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10088 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10089 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10090 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10091 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10092 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10094 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10095 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10096 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10098 crosstools_target=tools-crosstools
10101 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10103 orig_target_cc=$aros_kernel_cc
10104 orig_target_ld=$aros_kernel_ld
10106 if test "$crosstools" != "yes"; then
10107 if test "$aros_target_cc" != ""; then
10108 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10109 set dummy $aros_target_cc; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 case $aros_target_cc in
10116 [\\/]* | ?:[\\/]*)
10117 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10123 IFS=$as_save_IFS
10124 test -z "$as_dir" && as_dir=.
10125 for ac_exec_ext in '' $ac_executable_extensions; do
10126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10127 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129 break 2
10131 done
10132 done
10133 IFS=$as_save_IFS
10136 esac
10138 aros_target_cc=$ac_cv_path_aros_target_cc
10139 if test -n "$aros_target_cc"; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10141 $as_echo "$aros_target_cc" >&6; }
10142 else
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10148 if test "$aros_target_cc" = ""; then
10149 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10151 orig_target_cc=$aros_target_cc
10153 if test "$aros_target_ld" != ""; then
10154 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10155 set dummy $aros_target_ld; ac_word=$2
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10157 $as_echo_n "checking for $ac_word... " >&6; }
10158 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 case $aros_target_ld in
10162 [\\/]* | ?:[\\/]*)
10163 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 break 2
10177 done
10178 done
10179 IFS=$as_save_IFS
10182 esac
10184 aros_target_ld=$ac_cv_path_aros_target_ld
10185 if test -n "$aros_target_ld"; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10187 $as_echo "$aros_target_ld" >&6; }
10188 else
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10194 if test "$aros_target_ld" = ""; then
10195 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10197 orig_target_ld=$aros_target_ld
10199 else
10200 orig_target_cc=$aros_target_cc
10201 orig_target_ld=$aros_target_ld
10204 # Build crosstools if we have no C++ - temporary thing
10205 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10206 crosstools_cxx_target=tools-crosstools
10209 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10210 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10211 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10212 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10213 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10214 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10215 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10217 # aros_cc_pre is a variable that is added to the front of the compiler name
10218 # in the generated aros-gcc shell script. We need this to enable the cache
10219 # to work across cleaned builds. Also, support DISTCC using the correct
10220 # environment variable.
10223 if test "x${DISTCC}" != "x" ; then
10224 if test "x${CCACHE}" != "x" ; then
10225 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10226 else
10227 aros_cc_pre="${DISTCC} "
10229 else
10230 if test "x${CCACHE}" != "x" ; then
10231 aros_cc_pre="${CCACHE} "
10235 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10237 aros_target_nostdinc_cflags=-nostdinc
10239 aros_target_nostartup_ldflags=-nostartfiles
10241 aros_target_nix_ldflags=-nix
10243 aros_target_detach_ldflags=-detach
10245 aros_target_nostdlib_ldflags=-nostdlib
10248 # Target tools
10249 if test "$crosstools" != "yes"; then
10250 if test "$GCC" = "yes"; then
10251 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10253 else
10254 # We do not know which gcc version we are going to build and what we need to know
10255 # here is different for different versions so this will be set later during the
10256 # build of crosstools.
10257 aros_target_cc_path=@aros_target_cc_path@
10259 aros_target_cc="${prefix}-gcc"
10260 aros_target_as="${prefix}-as"
10261 aros_target_ld="${prefix}-ld"
10262 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10263 aros_target_objcopy=${prefix}-objcopy
10264 aros_target_objdump=${prefix}-objdump
10265 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10266 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10267 aros_target_strip=${prefix}-strip
10268 aros_plain_nm="${prefix}-nm"
10269 aros_plain_ar="${prefix}-ar"
10271 # Find the system include path. We can suggest that an alternative is
10272 # used if we don't get it correct. The default is to use /usr/include.
10273 # Which is set in the aros_target_incl_def variable.
10275 # Check whether --enable-includes was given.
10276 if test "${enable_includes+set}" = set; then :
10277 enableval=$enable_includes; aros_target_incl=$enable_includes
10278 else
10279 aros_target_incl=$aros_target_incl_def
10283 if test "$aros_kernel_includes" = ""; then
10284 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10285 # FIXME: for cross-compiling this should point to another location
10286 aros_kernel_includes="-isystem $aros_target_incl"
10290 if test "$aros_kernel_includes" != "" ; then
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10292 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10293 if test "$aros_kernel_cc_includes" = "" ; then
10294 # Try to guess where the directory is.
10295 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10296 if test -d $aros_kernel_cc_includes; then
10297 # Check if there is also an include-fixed directory and add it
10298 # to kernel compiler's include path as it may contain some of
10299 # the headers we need.
10300 if test -d "$aros_kernel_cc_includes"-fixed; then
10301 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10303 else
10304 # The directory doesn't exist, we need to do some more work.
10305 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10307 # These are the headers we're looking for.
10308 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10309 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10310 zutil.h"
10312 dirs=
10313 for h in $headers; do
10314 # Which other headers are needed by each of the above?
10315 deps=$(echo "#include <$h>" | \
10316 $aros_kernel_cc -E -M - 2>/dev/null | \
10317 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10319 # Copy all the needed headers to a directory beneath gendir.
10320 for d in $deps; do
10321 h=$(basename $d)
10322 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10323 sed -n "s,^.*/include\(/.*\),\1,p")
10324 ! test -d $dir && mkdir -p $dir
10325 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10326 done
10327 done
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10331 $as_echo "$aros_kernel_cc_includes" >&6; }
10332 # Adding -nostdinc to kernel includes as they are always used together.
10333 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10336 if test "$crosstools" != "yes"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10338 $as_echo_n "checking for the target compiler's include path... " >&6; }
10339 if test "$aros_target_cc_includes" = "" ; then
10340 #try to guess where the directory is
10341 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10342 if ! test -d $aros_target_cc_includes; then
10343 #the directory doesn't exist, we need to do some more work
10344 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10346 #these are the headers we're looking for
10347 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10348 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10349 zutil.h"
10351 dirs=
10352 for h in $headers; do
10353 #which other headers each of the above headers needs?
10354 deps=$(echo "#include <$h>" | \
10355 $orig_target_cc -E -M - 2>/dev/null | \
10356 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10358 #copy all the needed headers to a directory beneath gendir
10359 for d in $deps; do
10360 h=$(basename $d)
10361 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10362 sed -n "s,^.*/include\(/.*\),\1,p")
10363 ! test -d $dir && mkdir -p $dir
10364 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10365 done
10366 done
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10370 $as_echo "$aros_target_cc_includes" >&6; }
10371 else
10372 # We do not know which gcc version we are going to build and what we need to know
10373 # here is different for different versions so this will be set later during the
10374 # build of crosstools.
10375 aros_target_cc_includes=@aros_target_cc_includes@
10379 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10380 # On GCC >= 4.0 -iquote should be used
10383 save_cc="$CC"
10384 save_cflags="$CFLAGS"
10385 CFLAGS="-iquote."
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10387 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10388 if test "x-$crosstools" != "x-yes"; then
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10393 main ()
10397 return 0;
10399 _ACEOF
10400 if ac_fn_c_try_compile "$LINENO"; then :
10401 has_iquote="yes"
10402 else
10403 has_iquote="no"
10405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406 else
10407 # we do know it is supported for the smallest version of gcc we are going to build
10408 # we assume it's also supported by later versions
10409 has_iquote=yes
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10412 $as_echo "$has_iquote" >&6; }
10413 if test "x-$has_iquote" = "x-yes" ; then
10414 host_cflags_iquote=-iquote
10415 host_cflags_iquote_end=
10416 else
10417 host_cflags_iquote=-I
10418 host_cflags_iquote_end=-I-
10420 kernel_cflags_iquote=$host_cflags_iquote
10421 kernel_cflags_iquote_end=$host_cflags_iquote_end
10422 if test "x-$cross_compiling" = "x-yes"; then
10423 CC="$aros_kernel_cc"
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
10425 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
10426 if test "x-$crosstools" != "x-yes"; then
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10431 main ()
10435 return 0;
10437 _ACEOF
10438 if ac_fn_c_try_compile "$LINENO"; then :
10439 use_no_stack_protector="yes"
10440 else
10441 use_no_stack_protector="no"
10443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444 else
10445 # we do know it is supported for the smallest version of gcc we are going to build
10446 # we assume it's also supported by later versions
10447 use_no_stack_protector=yes
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
10450 $as_echo "$use_no_stack_protector" >&6; }
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10452 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10453 if test "x-$crosstools" != "x-yes"; then
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10458 main ()
10462 return 0;
10464 _ACEOF
10465 if ac_fn_c_try_compile "$LINENO"; then :
10466 has_iquote="yes"
10467 else
10468 has_iquote="no"
10470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471 else
10472 # we do know it is supported for the smallest version of gcc we are going to build
10473 # we assume it's also supported by later versions
10474 has_iquote=yes
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10477 $as_echo "$has_iquote" >&6; }
10478 if test "x-$has_iquote" = "x-yes" ; then
10479 kernel_cflags_iquote=-iquote
10480 kernel_cflags_iquote_end=
10481 else
10482 kernel_cflags_iquote=-I
10483 kernel_cflags_iquote_end=-I-
10486 aros_cflags_iquote=$kernel_cflags_iquote
10487 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10488 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10489 CC="$orig_target_cc"
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10491 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10492 if test "x-$crosstools" != "x-yes"; then
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10497 main ()
10501 return 0;
10503 _ACEOF
10504 if ac_fn_c_try_compile "$LINENO"; then :
10505 has_iquote="yes"
10506 else
10507 has_iquote="no"
10509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10510 else
10511 # we do know it is supported for the smallest version of gcc we are going to build
10512 # we assume it's also supported by later versions
10513 has_iquote=yes
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10516 $as_echo "$has_iquote" >&6; }
10517 if test "x-$has_iquote" = "x-yes" ; then
10518 aros_cflags_iquote=-iquote
10519 aros_cflags_iquote_end=
10520 else
10521 aros_cflags_iquote=-I
10522 aros_cflags_iquote_end=-I-
10525 if test "x-$use_no_stack_protector" = "x-yes" ; then
10526 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
10529 #-----------------------------------------------------------------------------
10531 # Check if we can explicitly choose older version of symbol hashing
10533 CFLAGS="save_cflags -Wl,--hash-style=sysv"
10534 CC="$aros_kernel_cc"
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10536 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10541 main ()
10545 return 0;
10547 _ACEOF
10548 if ac_fn_c_try_link "$LINENO"; then :
10549 use_hash_style="yes"
10550 else
10551 use_hash_style="no"
10553 rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10556 $as_echo "$use_hash_style" >&6; }
10557 if test "x-$use_hash_style" = "x-yes" ; then
10558 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
10560 CC="$save_cc"
10561 CFLAGS="$save_cflags"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10572 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10574 # Check whether --with-resolution was given.
10575 if test "${with_resolution+set}" = set; then :
10576 withval=$with_resolution; resolution=$withval
10577 else
10578 resolution=none
10581 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10582 if test "$resolution" = "yes" ; then
10583 resolution="none"
10585 if test "$resolution" = "no" ; then
10586 resolution="none"
10588 if test "$resolution" != "none" ; then
10589 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10590 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10591 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10594 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10595 aros_cv_default_wbwidth=$aros_default_wbwidth
10596 aros_cv_default_wbheight=$aros_default_wbheight
10597 aros_cv_default_wbdepth=$aros_default_wbdepth
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10600 $as_echo_n "checking if serial debug is enabled... " >&6; }
10602 # Check whether --with-serial-debug was given.
10603 if test "${with_serial_debug+set}" = set; then :
10604 withval=$with_serial_debug; serial_debug=$withval
10605 else
10606 serial_debug=none
10609 if test "$aros_serial_debug" = 0 ; then
10610 serial_debug_forced=""
10611 if test "$serial_debug" = "yes" ; then
10612 serial_debug="1"
10614 if test "$serial_debug" = "no" ; then
10615 serial_debug="none"
10617 else
10618 serial_debug_forced="(forced)"
10619 serial_debug=$aros_serial_debug
10621 if test "$serial_debug" != "none" ; then
10622 aros_serial_debug=$serial_debug
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10624 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10631 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10632 # Check whether --enable-palm_debug_hack was given.
10633 if test "${enable_palm_debug_hack+set}" = set; then :
10634 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10635 else
10636 palm_debug_hack="no"
10639 if test "$palm_debug_hack" = "yes" ; then
10640 aros_palm_debug_hack="1"
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10643 $as_echo "$palm_debug_hack" >&6; }
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
10646 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
10647 # Check whether --enable-usb30_code was given.
10648 if test "${enable_usb30_code+set}" = set; then :
10649 enableval=$enable_usb30_code; usb30_code="yes"
10650 else
10651 usb30_code="no"
10654 if test "$usb30_code" = "yes" ; then
10655 aros_usb30_code="1"
10656 else
10657 aros_usb30_code="0"
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
10660 $as_echo "$usb30_code" >&6; }
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10663 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10664 # Check whether --enable-nesting_supervisor was given.
10665 if test "${enable_nesting_supervisor+set}" = set; then :
10666 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10667 else
10668 nesting_supervisor="no"
10671 if test "$nesting_supervisor" = "yes" ; then
10672 aros_nesting_supervisor="1"
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10675 $as_echo "$nesting_supervisor" >&6; }
10677 if test "$aros_enable_mmu" = "" ; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10679 $as_echo_n "checking if MMU support is enabled... " >&6; }
10680 # Check whether --enable-mmu was given.
10681 if test "${enable_mmu+set}" = set; then :
10682 enableval=$enable_mmu; aros_enable_mmu=$enableval
10683 else
10684 aros_enable_mmu="yes"
10687 if test "$aros_enable_mmu" = "" ; then
10688 aros_enable_mmu="yes"
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10691 $as_echo "$aros_enable_mmu" >&6; }
10693 if test "$aros_enable_mmu" = "no" ; then
10694 aros_enable_mmu="0"
10695 else
10696 aros_enable_mmu="1"
10700 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10702 if test "x-$need_dlopen" != "x-no" ; then
10703 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10704 if test "x$ac_cv_func_dlopen" = x""yes; then :
10705 have_dl="yes"
10706 else
10707 have_dl="no"
10710 if test "x-$have_dl" = "x-no" ; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10713 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-ldl $LIBS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10724 #ifdef __cplusplus
10725 extern "C"
10726 #endif
10727 char dlopen ();
10729 main ()
10731 return dlopen ();
10733 return 0;
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_lib_dl_dlopen=yes
10738 else
10739 ac_cv_lib_dl_dlopen=no
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10747 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10748 have_dl="yes"
10749 aros_host_ldflags="$aros_host_ldflags -ldl"
10750 else
10751 have_dl="no"
10755 if test "x-$have_dl" = "x-no" ; then
10756 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
10761 # Check whether --enable-x11_hidd was given.
10762 if test "${enable_x11_hidd+set}" = set; then :
10763 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10764 else
10765 x11_hidd="$need_x11"
10768 case "x-$x11_hidd" in
10769 x-yes|x-no|x-auto) ;;
10770 *) x11_hidd="$need_x11" ;;
10771 esac
10773 ENABLE_X11=0
10775 if test "x-$x11_hidd" != "x-no" ; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10778 $as_echo_n "checking for X... " >&6; }
10781 # Check whether --with-x was given.
10782 if test "${with_x+set}" = set; then :
10783 withval=$with_x;
10786 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10787 if test "x$with_x" = xno; then
10788 # The user explicitly disabled X.
10789 have_x=disabled
10790 else
10791 case $x_includes,$x_libraries in #(
10792 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10793 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 # One or both of the vars are not set, and there is no cached value.
10797 ac_x_includes=no ac_x_libraries=no
10798 rm -f -r conftest.dir
10799 if mkdir conftest.dir; then
10800 cd conftest.dir
10801 cat >Imakefile <<'_ACEOF'
10802 incroot:
10803 @echo incroot='${INCROOT}'
10804 usrlibdir:
10805 @echo usrlibdir='${USRLIBDIR}'
10806 libdir:
10807 @echo libdir='${LIBDIR}'
10808 _ACEOF
10809 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10811 for ac_var in incroot usrlibdir libdir; do
10812 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10813 done
10814 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10815 for ac_extension in a so sl dylib la dll; do
10816 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10817 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10818 ac_im_usrlibdir=$ac_im_libdir; break
10820 done
10821 # Screen out bogus values from the imake configuration. They are
10822 # bogus both because they are the default anyway, and because
10823 # using them would break gcc on systems where it needs fixed includes.
10824 case $ac_im_incroot in
10825 /usr/include) ac_x_includes= ;;
10826 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10827 esac
10828 case $ac_im_usrlibdir in
10829 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10830 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10831 esac
10833 cd ..
10834 rm -f -r conftest.dir
10837 # Standard set of common directories for X headers.
10838 # Check X11 before X11Rn because it is often a symlink to the current release.
10839 ac_x_header_dirs='
10840 /usr/X11/include
10841 /usr/X11R7/include
10842 /usr/X11R6/include
10843 /usr/X11R5/include
10844 /usr/X11R4/include
10846 /usr/include/X11
10847 /usr/include/X11R7
10848 /usr/include/X11R6
10849 /usr/include/X11R5
10850 /usr/include/X11R4
10852 /usr/local/X11/include
10853 /usr/local/X11R7/include
10854 /usr/local/X11R6/include
10855 /usr/local/X11R5/include
10856 /usr/local/X11R4/include
10858 /usr/local/include/X11
10859 /usr/local/include/X11R7
10860 /usr/local/include/X11R6
10861 /usr/local/include/X11R5
10862 /usr/local/include/X11R4
10864 /usr/X386/include
10865 /usr/x386/include
10866 /usr/XFree86/include/X11
10868 /usr/include
10869 /usr/local/include
10870 /usr/unsupported/include
10871 /usr/athena/include
10872 /usr/local/x11r5/include
10873 /usr/lpp/Xamples/include
10875 /usr/openwin/include
10876 /usr/openwin/share/include'
10878 if test "$ac_x_includes" = no; then
10879 # Guess where to find include files, by looking for Xlib.h.
10880 # First, try using that file with no special directory specified.
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883 #include <X11/Xlib.h>
10884 _ACEOF
10885 if ac_fn_c_try_cpp "$LINENO"; then :
10886 # We can compile using X headers with no special include directory.
10887 ac_x_includes=
10888 else
10889 for ac_dir in $ac_x_header_dirs; do
10890 if test -r "$ac_dir/X11/Xlib.h"; then
10891 ac_x_includes=$ac_dir
10892 break
10894 done
10896 rm -f conftest.err conftest.$ac_ext
10897 fi # $ac_x_includes = no
10899 if test "$ac_x_libraries" = no; then
10900 # Check for the libraries.
10901 # See if we find them without any special options.
10902 # Don't add to $LIBS permanently.
10903 ac_save_LIBS=$LIBS
10904 LIBS="-lX11 $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907 #include <X11/Xlib.h>
10909 main ()
10911 XrmInitialize ()
10913 return 0;
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 LIBS=$ac_save_LIBS
10918 # We can link X programs with no special library path.
10919 ac_x_libraries=
10920 else
10921 LIBS=$ac_save_LIBS
10922 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10924 # Don't even attempt the hair of trying to link an X program!
10925 for ac_extension in a so sl dylib la dll; do
10926 if test -r "$ac_dir/libX11.$ac_extension"; then
10927 ac_x_libraries=$ac_dir
10928 break 2
10930 done
10931 done
10933 rm -f core conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
10935 fi # $ac_x_libraries = no
10937 case $ac_x_includes,$ac_x_libraries in #(
10938 no,* | *,no | *\'*)
10939 # Didn't find X, or a directory has "'" in its name.
10940 ac_cv_have_x="have_x=no";; #(
10942 # Record where we found X for the cache.
10943 ac_cv_have_x="have_x=yes\
10944 ac_x_includes='$ac_x_includes'\
10945 ac_x_libraries='$ac_x_libraries'"
10946 esac
10948 ;; #(
10949 *) have_x=yes;;
10950 esac
10951 eval "$ac_cv_have_x"
10952 fi # $with_x != no
10954 if test "$have_x" != yes; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10956 $as_echo "$have_x" >&6; }
10957 no_x=yes
10958 else
10959 # If each of the values was on the command line, it overrides each guess.
10960 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10961 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10962 # Update the cache value to reflect the command line values.
10963 ac_cv_have_x="have_x=yes\
10964 ac_x_includes='$x_includes'\
10965 ac_x_libraries='$x_libraries'"
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10967 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10971 x_cflags=
10972 for path in $x_libraries
10974 x_cflags="$x_cflags -L$path"
10975 done
10977 for path in $x_includes
10979 x_cflags="$x_cflags -I$path"
10980 done
10982 if test "x-$no_x" = "x-yes" ; then
10984 if test "x-$x11_hidd" != "x-auto" ; then
10985 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10988 else
10989 x11_hidd_target=kernel-x11gfx-kobj
10990 ENABLE_X11=1
10992 # Check whether --enable-x11_shm was given.
10993 if test "${enable_x11_shm+set}" = set; then :
10994 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10995 else
10996 x11_hidd_shm="auto"
10999 case "x-$x11_hidd_shm" in
11000 x-yes|x-no|x-auto) ;;
11001 *) x11_hidd_shm="auto" ;;
11002 esac
11004 have_xshm=no
11006 if test "x-$x11_hidd_shm" != "x-no" ; then
11008 for ac_header in sys/ipc.h
11009 do :
11010 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11011 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
11012 cat >>confdefs.h <<_ACEOF
11013 #define HAVE_SYS_IPC_H 1
11014 _ACEOF
11018 done
11020 for ac_header in sys/shm.h
11021 do :
11022 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11023 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
11024 cat >>confdefs.h <<_ACEOF
11025 #define HAVE_SYS_SHM_H 1
11026 _ACEOF
11030 done
11033 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11035 save_cflags="$CFLAGS"
11036 CFLAGS="$CFLAGS $x_cflags"
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11038 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11039 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 ac_check_lib_save_LIBS=$LIBS
11043 LIBS="-lXext $LIBS"
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11047 /* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 char XShmQueryExtension ();
11055 main ()
11057 return XShmQueryExtension ();
11059 return 0;
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"; then :
11063 ac_cv_lib_Xext_XShmQueryExtension=yes
11064 else
11065 ac_cv_lib_Xext_XShmQueryExtension=no
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11072 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11073 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
11074 have_xshm=yes
11077 CFLAGS="$save_cflags"
11081 if test "x-$have_xshm" = "x-yes" ; then
11082 DO_XSHM_SUPPORT="1"
11083 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11084 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11085 else
11086 DO_XSHM_SUPPORT="0"
11090 # Check whether --enable-x11_vidmode was given.
11091 if test "${enable_x11_vidmode+set}" = set; then :
11092 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11093 else
11094 x11_hidd_vidmode="auto"
11097 case "x-$x11_hidd_vidmode" in
11098 x-yes|x-no|x-auto) ;;
11099 *) x11_hidd_vidmode="auto" ;;
11100 esac
11102 have_vidmode=no
11104 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11106 save_cflags="$CFLAGS"
11107 CFLAGS="$CFLAGS $x_cflags"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11109 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11110 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 ac_check_lib_save_LIBS=$LIBS
11114 LIBS="-lXxf86vm $LIBS"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11118 /* Override any GCC internal prototype to avoid an error.
11119 Use char because int might match the return type of a GCC
11120 builtin and then its argument prototype would still apply. */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char XF86VidModeQueryExtension ();
11126 main ()
11128 return XF86VidModeQueryExtension ();
11130 return 0;
11132 _ACEOF
11133 if ac_fn_c_try_link "$LINENO"; then :
11134 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11135 else
11136 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11138 rm -f core conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11143 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11144 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
11145 have_vidmode=yes
11148 CFLAGS="$save_cflags"
11151 if test "x-$have_vidmode" = "x-yes" ; then
11152 DO_VIDMODE_SUPPORT="1"
11153 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11154 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11155 else
11156 DO_VIDMODE_SUPPORT="0"
11160 aros_host_x11_includes=$x_includes
11161 aros_host_x11_libdirs=$x_libraries
11165 # Check whether --enable-sdl_hidd was given.
11166 if test "${enable_sdl_hidd+set}" = set; then :
11167 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11168 else
11169 sdl_hidd="auto"
11172 case "x-$sdl_hidd" in
11173 x-yes|x-no|x-auto) ;;
11174 *) sdl_hidd="auto" ;;
11175 esac
11177 if test "x-$sdl_hidd" != "x-no" ; then
11180 # Check whether --with-sdl-prefix was given.
11181 if test "${with_sdl_prefix+set}" = set; then :
11182 withval=$with_sdl_prefix; sdl_prefix="$withval"
11183 else
11184 sdl_prefix=""
11188 # Check whether --with-sdl-exec-prefix was given.
11189 if test "${with_sdl_exec_prefix+set}" = set; then :
11190 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11191 else
11192 sdl_exec_prefix=""
11195 # Check whether --enable-sdltest was given.
11196 if test "${enable_sdltest+set}" = set; then :
11197 enableval=$enable_sdltest;
11198 else
11199 enable_sdltest=yes
11203 if test x$sdl_exec_prefix != x ; then
11204 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11205 if test x${SDL_CONFIG+set} != xset ; then
11206 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11209 if test x$sdl_prefix != x ; then
11210 sdl_args="$sdl_args --prefix=$sdl_prefix"
11211 if test x${SDL_CONFIG+set} != xset ; then
11212 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11216 if test "x$prefix" != xNONE; then
11217 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11219 # Extract the first word of "sdl-config", so it can be a program name with args.
11220 set dummy sdl-config; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 case $SDL_CONFIG in
11227 [\\/]* | ?:[\\/]*)
11228 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11242 done
11243 done
11244 IFS=$as_save_IFS
11246 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11248 esac
11250 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11251 if test -n "$SDL_CONFIG"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11253 $as_echo "$SDL_CONFIG" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11260 min_sdl_version=1.2.10
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11262 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11263 no_sdl=""
11264 if test "$SDL_CONFIG" = "no" ; then
11265 no_sdl=yes
11266 else
11267 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11268 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11270 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11271 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11272 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11273 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11274 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11275 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11276 if test "x$enable_sdltest" = "xyes" ; then
11277 ac_save_CFLAGS="$CFLAGS"
11278 ac_save_CXXFLAGS="$CXXFLAGS"
11279 ac_save_LIBS="$LIBS"
11280 CFLAGS="$CFLAGS $SDL_CFLAGS"
11281 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11282 LIBS="$LIBS $SDL_LIBS"
11283 rm -f conf.sdltest
11284 if test "$cross_compiling" = yes; then :
11285 echo $ac_n "cross compiling; assumed OK... $ac_c"
11286 else
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 #include <stdio.h>
11291 #include <stdlib.h>
11292 #include <string.h>
11293 #include "SDL.h"
11295 char*
11296 my_strdup (char *str)
11298 char *new_str;
11300 if (str)
11302 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11303 strcpy (new_str, str);
11305 else
11306 new_str = NULL;
11308 return new_str;
11311 int main (int argc, char *argv[])
11313 int major, minor, micro;
11314 char *tmp_version;
11316 /* This hangs on some systems (?)
11317 system ("touch conf.sdltest");
11319 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11321 /* HP/UX 9 (%@#!) writes to sscanf strings */
11322 tmp_version = my_strdup("$min_sdl_version");
11323 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11324 printf("%s, bad version string\n", "$min_sdl_version");
11325 exit(1);
11328 if (($sdl_major_version > major) ||
11329 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11330 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11332 return 0;
11334 else
11336 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11337 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11338 printf("*** best to upgrade to the required version.\n");
11339 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11340 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11341 printf("*** config.cache before re-running configure\n");
11342 return 1;
11347 _ACEOF
11348 if ac_fn_c_try_run "$LINENO"; then :
11350 else
11351 no_sdl=yes
11353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11354 conftest.$ac_objext conftest.beam conftest.$ac_ext
11357 CFLAGS="$ac_save_CFLAGS"
11358 CXXFLAGS="$ac_save_CXXFLAGS"
11359 LIBS="$ac_save_LIBS"
11362 if test "x$no_sdl" = x ; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11365 have_sdl="yes"
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369 if test "$SDL_CONFIG" = "no" ; then
11370 echo "*** The sdl-config script installed by SDL could not be found"
11371 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11372 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11373 echo "*** full path to sdl-config."
11374 else
11375 if test -f conf.sdltest ; then
11377 else
11378 echo "*** Could not run SDL test program, checking why..."
11379 CFLAGS="$CFLAGS $SDL_CFLAGS"
11380 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11381 LIBS="$LIBS $SDL_LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 #include <stdio.h>
11386 #include "SDL.h"
11388 int main(int argc, char *argv[])
11389 { return 0; }
11390 #undef main
11391 #define main K_and_R_C_main
11394 main ()
11396 return 0;
11398 return 0;
11400 _ACEOF
11401 if ac_fn_c_try_link "$LINENO"; then :
11402 echo "*** The test program compiled, but did not run. This usually means"
11403 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11404 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11405 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11406 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11407 echo "*** is required on your system"
11408 echo "***"
11409 echo "*** If you have an old version installed, it is best to remove it, although"
11410 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11411 else
11412 echo "*** The test program failed to compile or link. See the file config.log for the"
11413 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11414 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11415 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 CFLAGS="$ac_save_CFLAGS"
11420 CXXFLAGS="$ac_save_CXXFLAGS"
11421 LIBS="$ac_save_LIBS"
11424 SDL_CFLAGS=""
11425 SDL_LIBS=""
11426 have_sdl="no"
11430 rm -f conf.sdltest
11433 if test "x-$have_sdl" != "x-yes" ; then
11435 if test "x-$sdl_hidd" != "x-auto" ; then
11436 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
11439 else
11440 sdl_hidd_target=kernel-hidd-sdl
11441 aros_host_sdl_cflags=SDL_CFLAGS
11442 aros_host_sdl_libs=SDL_LIBS
11446 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11447 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
11452 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
11453 oss_library_target=workbench-libs-oss-unix
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
11459 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
11460 # Check whether --enable-dbus was given.
11461 if test "${enable_dbus+set}" = set; then :
11462 enableval=$enable_dbus; dbus="yes"
11463 else
11464 dbus="no"
11467 if test "$dbus" = "yes" ; then
11468 ENABLE_DBUS=1
11469 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11470 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11471 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11472 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11473 else
11474 ENABLE_DBUS=0
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
11477 $as_echo "$dbus" >&6; }
11479 if test "$use_kernel_cc_wrapper" = "yes" ; then
11480 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
11484 # Generic
11495 # Compatability with other Amiga-like operation systems
11498 # Host related
11523 # Target Related
11581 # Graphics Related
11598 # Native version related
11601 # Palm native version related
11604 # USB3.0 code
11607 # Unix/Hosted version related
11610 # MMU related
11613 # Apple iOS related
11618 # Android related
11622 # DBUS related
11629 #X11 related
11632 # Debug related
11638 # Collect-aros stuff: "-ius" to ignore undefined symbols
11641 # C compiler related
11644 case "$aros_flavour" in
11645 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11646 aros_flavour="emulation" ;;
11647 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11648 aros_flavour="emulation" ;;
11649 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11650 aros_flavour="standalone";;
11651 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11652 aros_flavour="standalone";;
11653 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11654 aros_flavour="native" ;;
11655 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11656 aros_flavour="native" ;;
11657 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11658 aros_flavour="linklib" ;;
11659 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11660 aros_flavour="palmnative" ;;
11661 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11662 aros_flavour="mac68knative" ;;
11663 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11664 aros_flavour="ppcnative" ;;
11665 esac
11667 if test ! -d ${aros_inc_dir} ; then
11668 ${MKDIR} ${aros_inc_dir}
11670 if test ! -d ${aros_geninc_dir} ; then
11671 ${MKDIR} ${aros_geninc_dir}
11673 if test ! -d ${aros_hostcfg_dir} ; then
11674 ${MKDIR} ${aros_hostcfg_dir}
11676 if test ! -d ${aros_targetcfg_dir} ; then
11677 ${MKDIR} ${aros_targetcfg_dir}
11679 if test ! -d ${aros_tools_dir} ; then
11680 ${MKDIR} ${aros_tools_dir}
11682 if test ! -d ${aros_scripts_dir} ; then
11683 ${MKDIR} ${aros_scripts_dir}
11686 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11689 ac_config_commands="$ac_config_commands compiler_executable"
11691 ac_config_commands="$ac_config_commands genmf_executable"
11694 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"
11697 cat >confcache <<\_ACEOF
11698 # This file is a shell script that caches the results of configure
11699 # tests run on this system so they can be shared between configure
11700 # scripts and configure runs, see configure's option --config-cache.
11701 # It is not useful on other systems. If it contains results you don't
11702 # want to keep, you may remove or edit it.
11704 # config.status only pays attention to the cache file if you give it
11705 # the --recheck option to rerun configure.
11707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11709 # following values.
11711 _ACEOF
11713 # The following way of writing the cache mishandles newlines in values,
11714 # but we know of no workaround that is simple, portable, and efficient.
11715 # So, we kill variables containing newlines.
11716 # Ultrix sh set writes to stderr and can't be redirected directly,
11717 # and sets the high bit in the cache file unless we assign to the vars.
11719 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11720 eval ac_val=\$$ac_var
11721 case $ac_val in #(
11722 *${as_nl}*)
11723 case $ac_var in #(
11724 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11725 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11726 esac
11727 case $ac_var in #(
11728 _ | IFS | as_nl) ;; #(
11729 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11730 *) { eval $ac_var=; unset $ac_var;} ;;
11731 esac ;;
11732 esac
11733 done
11735 (set) 2>&1 |
11736 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11737 *${as_nl}ac_space=\ *)
11738 # `set' does not quote correctly, so add quotes: double-quote
11739 # substitution turns \\\\ into \\, and sed turns \\ into \.
11740 sed -n \
11741 "s/'/'\\\\''/g;
11742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11743 ;; #(
11745 # `set' quotes correctly as required by POSIX, so do not add quotes.
11746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11748 esac |
11749 sort
11751 sed '
11752 /^ac_cv_env_/b end
11753 t clear
11754 :clear
11755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11756 t end
11757 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11758 :end' >>confcache
11759 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11760 if test -w "$cache_file"; then
11761 test "x$cache_file" != "x/dev/null" &&
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11763 $as_echo "$as_me: updating cache $cache_file" >&6;}
11764 cat confcache >$cache_file
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11767 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11770 rm -f confcache
11772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11773 # Let make expand exec_prefix.
11774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11776 DEFS=-DHAVE_CONFIG_H
11778 ac_libobjs=
11779 ac_ltlibobjs=
11780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11781 # 1. Remove the extension, and $U if already installed.
11782 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11783 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11785 # will be set to the directory where LIBOBJS objects are built.
11786 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11787 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11788 done
11789 LIBOBJS=$ac_libobjs
11791 LTLIBOBJS=$ac_ltlibobjs
11795 : ${CONFIG_STATUS=./config.status}
11796 ac_write_fail=0
11797 ac_clean_files_save=$ac_clean_files
11798 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11800 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11801 as_write_fail=0
11802 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11803 #! $SHELL
11804 # Generated by $as_me.
11805 # Run this file to recreate the current configuration.
11806 # Compiler output produced by configure, useful for debugging
11807 # configure, is in config.log if it exists.
11809 debug=false
11810 ac_cs_recheck=false
11811 ac_cs_silent=false
11813 SHELL=\${CONFIG_SHELL-$SHELL}
11814 export SHELL
11815 _ASEOF
11816 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11817 ## -------------------- ##
11818 ## M4sh Initialization. ##
11819 ## -------------------- ##
11821 # Be more Bourne compatible
11822 DUALCASE=1; export DUALCASE # for MKS sh
11823 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11824 emulate sh
11825 NULLCMD=:
11826 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11827 # is contrary to our usage. Disable this feature.
11828 alias -g '${1+"$@"}'='"$@"'
11829 setopt NO_GLOB_SUBST
11830 else
11831 case `(set -o) 2>/dev/null` in #(
11832 *posix*) :
11833 set -o posix ;; #(
11834 *) :
11836 esac
11840 as_nl='
11842 export as_nl
11843 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11844 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11846 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11847 # Prefer a ksh shell builtin over an external printf program on Solaris,
11848 # but without wasting forks for bash or zsh.
11849 if test -z "$BASH_VERSION$ZSH_VERSION" \
11850 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11851 as_echo='print -r --'
11852 as_echo_n='print -rn --'
11853 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11854 as_echo='printf %s\n'
11855 as_echo_n='printf %s'
11856 else
11857 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11858 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11859 as_echo_n='/usr/ucb/echo -n'
11860 else
11861 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11862 as_echo_n_body='eval
11863 arg=$1;
11864 case $arg in #(
11865 *"$as_nl"*)
11866 expr "X$arg" : "X\\(.*\\)$as_nl";
11867 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11868 esac;
11869 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11871 export as_echo_n_body
11872 as_echo_n='sh -c $as_echo_n_body as_echo'
11874 export as_echo_body
11875 as_echo='sh -c $as_echo_body as_echo'
11878 # The user is always right.
11879 if test "${PATH_SEPARATOR+set}" != set; then
11880 PATH_SEPARATOR=:
11881 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11882 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11883 PATH_SEPARATOR=';'
11888 # IFS
11889 # We need space, tab and new line, in precisely that order. Quoting is
11890 # there to prevent editors from complaining about space-tab.
11891 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11892 # splitting by setting IFS to empty value.)
11893 IFS=" "" $as_nl"
11895 # Find who we are. Look in the path if we contain no directory separator.
11896 case $0 in #((
11897 *[\\/]* ) as_myself=$0 ;;
11898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
11903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11904 done
11905 IFS=$as_save_IFS
11908 esac
11909 # We did not find ourselves, most probably we were run as `sh COMMAND'
11910 # in which case we are not to be found in the path.
11911 if test "x$as_myself" = x; then
11912 as_myself=$0
11914 if test ! -f "$as_myself"; then
11915 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11916 exit 1
11919 # Unset variables that we do not need and which cause bugs (e.g. in
11920 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11921 # suppresses any "Segmentation fault" message there. '((' could
11922 # trigger a bug in pdksh 5.2.14.
11923 for as_var in BASH_ENV ENV MAIL MAILPATH
11924 do eval test x\${$as_var+set} = xset \
11925 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11926 done
11927 PS1='$ '
11928 PS2='> '
11929 PS4='+ '
11931 # NLS nuisances.
11932 LC_ALL=C
11933 export LC_ALL
11934 LANGUAGE=C
11935 export LANGUAGE
11937 # CDPATH.
11938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11941 # as_fn_error ERROR [LINENO LOG_FD]
11942 # ---------------------------------
11943 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11944 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11945 # script with status $?, using 1 if that was 0.
11946 as_fn_error ()
11948 as_status=$?; test $as_status -eq 0 && as_status=1
11949 if test "$3"; then
11950 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11951 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11953 $as_echo "$as_me: error: $1" >&2
11954 as_fn_exit $as_status
11955 } # as_fn_error
11958 # as_fn_set_status STATUS
11959 # -----------------------
11960 # Set $? to STATUS, without forking.
11961 as_fn_set_status ()
11963 return $1
11964 } # as_fn_set_status
11966 # as_fn_exit STATUS
11967 # -----------------
11968 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11969 as_fn_exit ()
11971 set +e
11972 as_fn_set_status $1
11973 exit $1
11974 } # as_fn_exit
11976 # as_fn_unset VAR
11977 # ---------------
11978 # Portably unset VAR.
11979 as_fn_unset ()
11981 { eval $1=; unset $1;}
11983 as_unset=as_fn_unset
11984 # as_fn_append VAR VALUE
11985 # ----------------------
11986 # Append the text in VALUE to the end of the definition contained in VAR. Take
11987 # advantage of any shell optimizations that allow amortized linear growth over
11988 # repeated appends, instead of the typical quadratic growth present in naive
11989 # implementations.
11990 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11991 eval 'as_fn_append ()
11993 eval $1+=\$2
11995 else
11996 as_fn_append ()
11998 eval $1=\$$1\$2
12000 fi # as_fn_append
12002 # as_fn_arith ARG...
12003 # ------------------
12004 # Perform arithmetic evaluation on the ARGs, and store the result in the
12005 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12006 # must be portable across $(()) and expr.
12007 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12008 eval 'as_fn_arith ()
12010 as_val=$(( $* ))
12012 else
12013 as_fn_arith ()
12015 as_val=`expr "$@" || test $? -eq 1`
12017 fi # as_fn_arith
12020 if expr a : '\(a\)' >/dev/null 2>&1 &&
12021 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12022 as_expr=expr
12023 else
12024 as_expr=false
12027 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12028 as_basename=basename
12029 else
12030 as_basename=false
12033 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12034 as_dirname=dirname
12035 else
12036 as_dirname=false
12039 as_me=`$as_basename -- "$0" ||
12040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12041 X"$0" : 'X\(//\)$' \| \
12042 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12043 $as_echo X/"$0" |
12044 sed '/^.*\/\([^/][^/]*\)\/*$/{
12045 s//\1/
12048 /^X\/\(\/\/\)$/{
12049 s//\1/
12052 /^X\/\(\/\).*/{
12053 s//\1/
12056 s/.*/./; q'`
12058 # Avoid depending upon Character Ranges.
12059 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12062 as_cr_digits='0123456789'
12063 as_cr_alnum=$as_cr_Letters$as_cr_digits
12065 ECHO_C= ECHO_N= ECHO_T=
12066 case `echo -n x` in #(((((
12067 -n*)
12068 case `echo 'xy\c'` in
12069 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12070 xy) ECHO_C='\c';;
12071 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12072 ECHO_T=' ';;
12073 esac;;
12075 ECHO_N='-n';;
12076 esac
12078 rm -f conf$$ conf$$.exe conf$$.file
12079 if test -d conf$$.dir; then
12080 rm -f conf$$.dir/conf$$.file
12081 else
12082 rm -f conf$$.dir
12083 mkdir conf$$.dir 2>/dev/null
12085 if (echo >conf$$.file) 2>/dev/null; then
12086 if ln -s conf$$.file conf$$ 2>/dev/null; then
12087 as_ln_s='ln -s'
12088 # ... but there are two gotchas:
12089 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12090 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12091 # In both cases, we have to default to `cp -p'.
12092 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12093 as_ln_s='cp -p'
12094 elif ln conf$$.file conf$$ 2>/dev/null; then
12095 as_ln_s=ln
12096 else
12097 as_ln_s='cp -p'
12099 else
12100 as_ln_s='cp -p'
12102 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12103 rmdir conf$$.dir 2>/dev/null
12106 # as_fn_mkdir_p
12107 # -------------
12108 # Create "$as_dir" as a directory, including parents if necessary.
12109 as_fn_mkdir_p ()
12112 case $as_dir in #(
12113 -*) as_dir=./$as_dir;;
12114 esac
12115 test -d "$as_dir" || eval $as_mkdir_p || {
12116 as_dirs=
12117 while :; do
12118 case $as_dir in #(
12119 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12120 *) as_qdir=$as_dir;;
12121 esac
12122 as_dirs="'$as_qdir' $as_dirs"
12123 as_dir=`$as_dirname -- "$as_dir" ||
12124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12125 X"$as_dir" : 'X\(//\)[^/]' \| \
12126 X"$as_dir" : 'X\(//\)$' \| \
12127 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12128 $as_echo X"$as_dir" |
12129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12130 s//\1/
12133 /^X\(\/\/\)[^/].*/{
12134 s//\1/
12137 /^X\(\/\/\)$/{
12138 s//\1/
12141 /^X\(\/\).*/{
12142 s//\1/
12145 s/.*/./; q'`
12146 test -d "$as_dir" && break
12147 done
12148 test -z "$as_dirs" || eval "mkdir $as_dirs"
12149 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12152 } # as_fn_mkdir_p
12153 if mkdir -p . 2>/dev/null; then
12154 as_mkdir_p='mkdir -p "$as_dir"'
12155 else
12156 test -d ./-p && rmdir ./-p
12157 as_mkdir_p=false
12160 if test -x / >/dev/null 2>&1; then
12161 as_test_x='test -x'
12162 else
12163 if ls -dL / >/dev/null 2>&1; then
12164 as_ls_L_option=L
12165 else
12166 as_ls_L_option=
12168 as_test_x='
12169 eval sh -c '\''
12170 if test -d "$1"; then
12171 test -d "$1/.";
12172 else
12173 case $1 in #(
12174 -*)set "./$1";;
12175 esac;
12176 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12177 ???[sx]*):;;*)false;;esac;fi
12178 '\'' sh
12181 as_executable_p=$as_test_x
12183 # Sed expression to map a string onto a valid CPP name.
12184 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12186 # Sed expression to map a string onto a valid variable name.
12187 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12190 exec 6>&1
12191 ## ----------------------------------- ##
12192 ## Main body of $CONFIG_STATUS script. ##
12193 ## ----------------------------------- ##
12194 _ASEOF
12195 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12198 # Save the log message, to keep $0 and so on meaningful, and to
12199 # report actual input values of CONFIG_FILES etc. instead of their
12200 # values after options handling.
12201 ac_log="
12202 This file was extended by $as_me, which was
12203 generated by GNU Autoconf 2.65. Invocation command line was
12205 CONFIG_FILES = $CONFIG_FILES
12206 CONFIG_HEADERS = $CONFIG_HEADERS
12207 CONFIG_LINKS = $CONFIG_LINKS
12208 CONFIG_COMMANDS = $CONFIG_COMMANDS
12209 $ $0 $@
12211 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12214 _ACEOF
12216 case $ac_config_files in *"
12217 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12218 esac
12220 case $ac_config_headers in *"
12221 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12222 esac
12225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12226 # Files that config.status was made for.
12227 config_files="$ac_config_files"
12228 config_headers="$ac_config_headers"
12229 config_commands="$ac_config_commands"
12231 _ACEOF
12233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12234 ac_cs_usage="\
12235 \`$as_me' instantiates files and other configuration actions
12236 from templates according to the current configuration. Unless the files
12237 and actions are specified as TAGs, all are instantiated by default.
12239 Usage: $0 [OPTION]... [TAG]...
12241 -h, --help print this help, then exit
12242 -V, --version print version number and configuration settings, then exit
12243 --config print configuration, then exit
12244 -q, --quiet, --silent
12245 do not print progress messages
12246 -d, --debug don't remove temporary files
12247 --recheck update $as_me by reconfiguring in the same conditions
12248 --file=FILE[:TEMPLATE]
12249 instantiate the configuration file FILE
12250 --header=FILE[:TEMPLATE]
12251 instantiate the configuration header FILE
12253 Configuration files:
12254 $config_files
12256 Configuration headers:
12257 $config_headers
12259 Configuration commands:
12260 $config_commands
12262 Report bugs to the package provider."
12264 _ACEOF
12265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12266 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12267 ac_cs_version="\\
12268 config.status
12269 configured by $0, generated by GNU Autoconf 2.65,
12270 with options \\"\$ac_cs_config\\"
12272 Copyright (C) 2009 Free Software Foundation, Inc.
12273 This config.status script is free software; the Free Software Foundation
12274 gives unlimited permission to copy, distribute and modify it."
12276 ac_pwd='$ac_pwd'
12277 srcdir='$srcdir'
12278 test -n "\$AWK" || AWK=awk
12279 _ACEOF
12281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12282 # The default lists apply if the user does not specify any file.
12283 ac_need_defaults=:
12284 while test $# != 0
12286 case $1 in
12287 --*=*)
12288 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12289 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12290 ac_shift=:
12293 ac_option=$1
12294 ac_optarg=$2
12295 ac_shift=shift
12297 esac
12299 case $ac_option in
12300 # Handling of the options.
12301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12302 ac_cs_recheck=: ;;
12303 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12304 $as_echo "$ac_cs_version"; exit ;;
12305 --config | --confi | --conf | --con | --co | --c )
12306 $as_echo "$ac_cs_config"; exit ;;
12307 --debug | --debu | --deb | --de | --d | -d )
12308 debug=: ;;
12309 --file | --fil | --fi | --f )
12310 $ac_shift
12311 case $ac_optarg in
12312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12313 esac
12314 as_fn_append CONFIG_FILES " '$ac_optarg'"
12315 ac_need_defaults=false;;
12316 --header | --heade | --head | --hea )
12317 $ac_shift
12318 case $ac_optarg in
12319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12320 esac
12321 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12322 ac_need_defaults=false;;
12323 --he | --h)
12324 # Conflict between --help and --header
12325 as_fn_error "ambiguous option: \`$1'
12326 Try \`$0 --help' for more information.";;
12327 --help | --hel | -h )
12328 $as_echo "$ac_cs_usage"; exit ;;
12329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12331 ac_cs_silent=: ;;
12333 # This is an error.
12334 -*) as_fn_error "unrecognized option: \`$1'
12335 Try \`$0 --help' for more information." ;;
12337 *) as_fn_append ac_config_targets " $1"
12338 ac_need_defaults=false ;;
12340 esac
12341 shift
12342 done
12344 ac_configure_extra_args=
12346 if $ac_cs_silent; then
12347 exec 6>/dev/null
12348 ac_configure_extra_args="$ac_configure_extra_args --silent"
12351 _ACEOF
12352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353 if \$ac_cs_recheck; then
12354 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12355 shift
12356 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12357 CONFIG_SHELL='$SHELL'
12358 export CONFIG_SHELL
12359 exec "\$@"
12362 _ACEOF
12363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12364 exec 5>>config.log
12366 echo
12367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12368 ## Running $as_me. ##
12369 _ASBOX
12370 $as_echo "$ac_log"
12371 } >&5
12373 _ACEOF
12374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12376 # INIT-COMMANDS
12379 aros_host_exe_suffix=${aros_host_exe_suffix}
12380 aros_tools_dir=${aros_tools_dir}
12381 aros_target_cpu=${aros_target_cpu}
12382 aros_target_arch=${aros_target_arch}
12383 aros_target_suffix=${aros_target_suffix}
12384 aros_target_nm_ln=${aros_target_nm_ln}
12385 aros_target_as_ln=${aros_target_as_ln}
12386 aros_target_ar_ln=${aros_target_ar_ln}
12387 aros_target_ranlib_ln=${aros_target_ranlib_ln}
12388 aros_target_objdump_ln=${aros_target_objdump_ln}
12389 aros_target_objcopy_ln=${aros_target_objcopy_ln}
12390 aros_target_strip_ln=${aros_target_strip_ln}
12391 aros_kernel_ld=${aros_kernel_ld}
12394 aros_tools_dir=${aros_tools_dir}
12397 _ACEOF
12399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12401 # Handling of arguments.
12402 for ac_config_target in $ac_config_targets
12404 case $ac_config_target in
12405 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12406 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
12407 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
12408 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12409 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
12410 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
12411 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
12412 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
12413 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
12414 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
12415 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
12416 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
12417 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
12418 "${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" ;;
12419 "${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" ;;
12420 "${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" ;;
12421 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
12422 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
12423 "${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" ;;
12425 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12426 esac
12427 done
12430 # If the user did not use the arguments to specify the items to instantiate,
12431 # then the envvar interface is used. Set only those that are not.
12432 # We use the long form for the default assignment because of an extremely
12433 # bizarre bug on SunOS 4.1.3.
12434 if $ac_need_defaults; then
12435 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12436 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12437 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12440 # Have a temporary directory for convenience. Make it in the build tree
12441 # simply because there is no reason against having it here, and in addition,
12442 # creating and moving files from /tmp can sometimes cause problems.
12443 # Hook for its removal unless debugging.
12444 # Note that there is a small window in which the directory will not be cleaned:
12445 # after its creation but before its name has been assigned to `$tmp'.
12446 $debug ||
12448 tmp=
12449 trap 'exit_status=$?
12450 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12452 trap 'as_fn_exit 1' 1 2 13 15
12454 # Create a (secure) tmp directory for tmp files.
12457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12458 test -n "$tmp" && test -d "$tmp"
12459 } ||
12461 tmp=./conf$$-$RANDOM
12462 (umask 077 && mkdir "$tmp")
12463 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12465 # Set up the scripts for CONFIG_FILES section.
12466 # No need to generate them if there are no CONFIG_FILES.
12467 # This happens for instance with `./config.status config.h'.
12468 if test -n "$CONFIG_FILES"; then
12471 ac_cr=`echo X | tr X '\015'`
12472 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12473 # But we know of no other shell where ac_cr would be empty at this
12474 # point, so we can use a bashism as a fallback.
12475 if test "x$ac_cr" = x; then
12476 eval ac_cr=\$\'\\r\'
12478 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12479 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12480 ac_cs_awk_cr='\r'
12481 else
12482 ac_cs_awk_cr=$ac_cr
12485 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12486 _ACEOF
12490 echo "cat >conf$$subs.awk <<_ACEOF" &&
12491 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12492 echo "_ACEOF"
12493 } >conf$$subs.sh ||
12494 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12495 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12496 ac_delim='%!_!# '
12497 for ac_last_try in false false false false false :; do
12498 . ./conf$$subs.sh ||
12499 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12501 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12502 if test $ac_delim_n = $ac_delim_num; then
12503 break
12504 elif $ac_last_try; then
12505 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12506 else
12507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12509 done
12510 rm -f conf$$subs.sh
12512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12513 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12514 _ACEOF
12515 sed -n '
12517 s/^/S["/; s/!.*/"]=/
12520 s/^[^!]*!//
12521 :repl
12522 t repl
12523 s/'"$ac_delim"'$//
12524 t delim
12527 s/\(.\{148\}\)..*/\1/
12528 t more1
12529 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12532 b repl
12533 :more1
12534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12537 s/.\{148\}//
12538 t nl
12539 :delim
12541 s/\(.\{148\}\)..*/\1/
12542 t more2
12543 s/["\\]/\\&/g; s/^/"/; s/$/"/
12546 :more2
12547 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12550 s/.\{148\}//
12551 t delim
12552 ' <conf$$subs.awk | sed '
12553 /^[^""]/{
12555 s/\n//
12557 ' >>$CONFIG_STATUS || ac_write_fail=1
12558 rm -f conf$$subs.awk
12559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12560 _ACAWK
12561 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12562 for (key in S) S_is_set[key] = 1
12563 FS = "\a"
12567 line = $ 0
12568 nfields = split(line, field, "@")
12569 substed = 0
12570 len = length(field[1])
12571 for (i = 2; i < nfields; i++) {
12572 key = field[i]
12573 keylen = length(key)
12574 if (S_is_set[key]) {
12575 value = S[key]
12576 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12577 len += length(value) + length(field[++i])
12578 substed = 1
12579 } else
12580 len += 1 + keylen
12583 print line
12586 _ACAWK
12587 _ACEOF
12588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12589 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12590 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12591 else
12593 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12594 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12595 _ACEOF
12597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12599 # trailing colons and then remove the whole line if VPATH becomes empty
12600 # (actually we leave an empty line to preserve line numbers).
12601 if test "x$srcdir" = x.; then
12602 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12603 s/:*\$(srcdir):*/:/
12604 s/:*\${srcdir}:*/:/
12605 s/:*@srcdir@:*/:/
12606 s/^\([^=]*=[ ]*\):*/\1/
12607 s/:*$//
12608 s/^[^=]*=[ ]*$//
12612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12613 fi # test -n "$CONFIG_FILES"
12615 # Set up the scripts for CONFIG_HEADERS section.
12616 # No need to generate them if there are no CONFIG_HEADERS.
12617 # This happens for instance with `./config.status Makefile'.
12618 if test -n "$CONFIG_HEADERS"; then
12619 cat >"$tmp/defines.awk" <<\_ACAWK ||
12620 BEGIN {
12621 _ACEOF
12623 # Transform confdefs.h into an awk script `defines.awk', embedded as
12624 # here-document in config.status, that substitutes the proper values into
12625 # config.h.in to produce config.h.
12627 # Create a delimiter string that does not exist in confdefs.h, to ease
12628 # handling of long lines.
12629 ac_delim='%!_!# '
12630 for ac_last_try in false false :; do
12631 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12632 if test -z "$ac_t"; then
12633 break
12634 elif $ac_last_try; then
12635 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12636 else
12637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12639 done
12641 # For the awk script, D is an array of macro values keyed by name,
12642 # likewise P contains macro parameters if any. Preserve backslash
12643 # newline sequences.
12645 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12646 sed -n '
12647 s/.\{148\}/&'"$ac_delim"'/g
12648 t rset
12649 :rset
12650 s/^[ ]*#[ ]*define[ ][ ]*/ /
12651 t def
12653 :def
12654 s/\\$//
12655 t bsnl
12656 s/["\\]/\\&/g
12657 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12658 D["\1"]=" \3"/p
12659 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12661 :bsnl
12662 s/["\\]/\\&/g
12663 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12664 D["\1"]=" \3\\\\\\n"\\/p
12665 t cont
12666 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12667 t cont
12669 :cont
12671 s/.\{148\}/&'"$ac_delim"'/g
12672 t clear
12673 :clear
12674 s/\\$//
12675 t bsnlc
12676 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12678 :bsnlc
12679 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12680 b cont
12681 ' <confdefs.h | sed '
12682 s/'"$ac_delim"'/"\\\
12683 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12686 for (key in D) D_is_set[key] = 1
12687 FS = "\a"
12689 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12690 line = \$ 0
12691 split(line, arg, " ")
12692 if (arg[1] == "#") {
12693 defundef = arg[2]
12694 mac1 = arg[3]
12695 } else {
12696 defundef = substr(arg[1], 2)
12697 mac1 = arg[2]
12699 split(mac1, mac2, "(") #)
12700 macro = mac2[1]
12701 prefix = substr(line, 1, index(line, defundef) - 1)
12702 if (D_is_set[macro]) {
12703 # Preserve the white space surrounding the "#".
12704 print prefix "define", macro P[macro] D[macro]
12705 next
12706 } else {
12707 # Replace #undef with comments. This is necessary, for example,
12708 # in the case of _POSIX_SOURCE, which is predefined and required
12709 # on some systems where configure will not decide to define it.
12710 if (defundef == "undef") {
12711 print "/*", prefix defundef, macro, "*/"
12712 next
12716 { print }
12717 _ACAWK
12718 _ACEOF
12719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12720 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12721 fi # test -n "$CONFIG_HEADERS"
12724 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12725 shift
12726 for ac_tag
12728 case $ac_tag in
12729 :[FHLC]) ac_mode=$ac_tag; continue;;
12730 esac
12731 case $ac_mode$ac_tag in
12732 :[FHL]*:*);;
12733 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12734 :[FH]-) ac_tag=-:-;;
12735 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12736 esac
12737 ac_save_IFS=$IFS
12738 IFS=:
12739 set x $ac_tag
12740 IFS=$ac_save_IFS
12741 shift
12742 ac_file=$1
12743 shift
12745 case $ac_mode in
12746 :L) ac_source=$1;;
12747 :[FH])
12748 ac_file_inputs=
12749 for ac_f
12751 case $ac_f in
12752 -) ac_f="$tmp/stdin";;
12753 *) # Look for the file first in the build tree, then in the source tree
12754 # (if the path is not absolute). The absolute path cannot be DOS-style,
12755 # because $ac_f cannot contain `:'.
12756 test -f "$ac_f" ||
12757 case $ac_f in
12758 [\\/$]*) false;;
12759 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12760 esac ||
12761 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12762 esac
12763 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12764 as_fn_append ac_file_inputs " '$ac_f'"
12765 done
12767 # Let's still pretend it is `configure' which instantiates (i.e., don't
12768 # use $as_me), people would be surprised to read:
12769 # /* config.h. Generated by config.status. */
12770 configure_input='Generated from '`
12771 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12772 `' by configure.'
12773 if test x"$ac_file" != x-; then
12774 configure_input="$ac_file. $configure_input"
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12776 $as_echo "$as_me: creating $ac_file" >&6;}
12778 # Neutralize special characters interpreted by sed in replacement strings.
12779 case $configure_input in #(
12780 *\&* | *\|* | *\\* )
12781 ac_sed_conf_input=`$as_echo "$configure_input" |
12782 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12783 *) ac_sed_conf_input=$configure_input;;
12784 esac
12786 case $ac_tag in
12787 *:-:* | *:-) cat >"$tmp/stdin" \
12788 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12789 esac
12791 esac
12793 ac_dir=`$as_dirname -- "$ac_file" ||
12794 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12795 X"$ac_file" : 'X\(//\)[^/]' \| \
12796 X"$ac_file" : 'X\(//\)$' \| \
12797 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12798 $as_echo X"$ac_file" |
12799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12800 s//\1/
12803 /^X\(\/\/\)[^/].*/{
12804 s//\1/
12807 /^X\(\/\/\)$/{
12808 s//\1/
12811 /^X\(\/\).*/{
12812 s//\1/
12815 s/.*/./; q'`
12816 as_dir="$ac_dir"; as_fn_mkdir_p
12817 ac_builddir=.
12819 case "$ac_dir" in
12820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12822 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12823 # A ".." for each directory in $ac_dir_suffix.
12824 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12825 case $ac_top_builddir_sub in
12826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12828 esac ;;
12829 esac
12830 ac_abs_top_builddir=$ac_pwd
12831 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12832 # for backward compatibility:
12833 ac_top_builddir=$ac_top_build_prefix
12835 case $srcdir in
12836 .) # We are building in place.
12837 ac_srcdir=.
12838 ac_top_srcdir=$ac_top_builddir_sub
12839 ac_abs_top_srcdir=$ac_pwd ;;
12840 [\\/]* | ?:[\\/]* ) # Absolute name.
12841 ac_srcdir=$srcdir$ac_dir_suffix;
12842 ac_top_srcdir=$srcdir
12843 ac_abs_top_srcdir=$srcdir ;;
12844 *) # Relative name.
12845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12846 ac_top_srcdir=$ac_top_build_prefix$srcdir
12847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12848 esac
12849 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12852 case $ac_mode in
12855 # CONFIG_FILE
12858 _ACEOF
12860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12861 # If the template does not know about datarootdir, expand it.
12862 # FIXME: This hack should be removed a few years after 2.60.
12863 ac_datarootdir_hack=; ac_datarootdir_seen=
12864 ac_sed_dataroot='
12865 /datarootdir/ {
12869 /@datadir@/p
12870 /@docdir@/p
12871 /@infodir@/p
12872 /@localedir@/p
12873 /@mandir@/p'
12874 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12875 *datarootdir*) ac_datarootdir_seen=yes;;
12876 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12878 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12879 _ACEOF
12880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12881 ac_datarootdir_hack='
12882 s&@datadir@&$datadir&g
12883 s&@docdir@&$docdir&g
12884 s&@infodir@&$infodir&g
12885 s&@localedir@&$localedir&g
12886 s&@mandir@&$mandir&g
12887 s&\\\${datarootdir}&$datarootdir&g' ;;
12888 esac
12889 _ACEOF
12891 # Neutralize VPATH when `$srcdir' = `.'.
12892 # Shell code in configure.ac might set extrasub.
12893 # FIXME: do we really want to maintain this feature?
12894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12895 ac_sed_extra="$ac_vpsub
12896 $extrasub
12897 _ACEOF
12898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12901 s|@configure_input@|$ac_sed_conf_input|;t t
12902 s&@top_builddir@&$ac_top_builddir_sub&;t t
12903 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12904 s&@srcdir@&$ac_srcdir&;t t
12905 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12906 s&@top_srcdir@&$ac_top_srcdir&;t t
12907 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12908 s&@builddir@&$ac_builddir&;t t
12909 s&@abs_builddir@&$ac_abs_builddir&;t t
12910 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12911 $ac_datarootdir_hack
12913 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12914 || as_fn_error "could not create $ac_file" "$LINENO" 5
12916 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12917 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12918 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12920 which seems to be undefined. Please make sure it is defined." >&5
12921 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12922 which seems to be undefined. Please make sure it is defined." >&2;}
12924 rm -f "$tmp/stdin"
12925 case $ac_file in
12926 -) cat "$tmp/out" && rm -f "$tmp/out";;
12927 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12928 esac \
12929 || as_fn_error "could not create $ac_file" "$LINENO" 5
12933 # CONFIG_HEADER
12935 if test x"$ac_file" != x-; then
12937 $as_echo "/* $configure_input */" \
12938 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12939 } >"$tmp/config.h" \
12940 || as_fn_error "could not create $ac_file" "$LINENO" 5
12941 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12943 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12944 else
12945 rm -f "$ac_file"
12946 mv "$tmp/config.h" "$ac_file" \
12947 || as_fn_error "could not create $ac_file" "$LINENO" 5
12949 else
12950 $as_echo "/* $configure_input */" \
12951 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12952 || as_fn_error "could not create -" "$LINENO" 5
12956 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12957 $as_echo "$as_me: executing $ac_file commands" >&6;}
12959 esac
12962 case $ac_file$ac_mode in
12963 "compiler_executable":C)
12964 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12965 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
12967 echo ${prefix2}
12968 echo ${prefix3}
12969 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
12971 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
12972 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
12973 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
12974 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
12975 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
12976 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
12977 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
12979 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
12981 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12983 esac
12984 done # for ac_tag
12987 as_fn_exit 0
12988 _ACEOF
12989 ac_clean_files=$ac_clean_files_save
12991 test $ac_write_fail = 0 ||
12992 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12995 # configure is writing to config.log, and then calls config.status.
12996 # config.status does its own redirection, appending to config.log.
12997 # Unfortunately, on DOS this fails, as config.log is still kept open
12998 # by configure, so config.status won't be able to write to it; its
12999 # output is simply discarded. So we exec the FD to /dev/null,
13000 # effectively closing config.log, so it can be properly (re)opened and
13001 # appended to by config.status. When coming back to configure, we
13002 # need to make the FD available again.
13003 if test "$no_create" != yes; then
13004 ac_cs_success=:
13005 ac_config_status_args=
13006 test "$silent" = yes &&
13007 ac_config_status_args="$ac_config_status_args --quiet"
13008 exec 5>/dev/null
13009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13010 exec 5>>config.log
13011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13012 # would make configure fail if this is the last instruction.
13013 $ac_cs_success || as_fn_exit $?
13015 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13017 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13022 #XXX compatability...
13023 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13025 if test -n "$aros_shared_cflags" ; then
13026 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13027 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg