Tested and debugged ToolTypes.
[AROS.git] / configure
blob41f12328a5ed9905d7ed4ea73d6c1cdd7b841702
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&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, old GNU/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_palm_debug_hack
615 aros_serial_debug
616 aros_host_sdl_libs
617 aros_host_sdl_cflags
618 aros_host_x11_libdirs
619 aros_host_x11_includes
620 DO_VIDMODE_SUPPORT
621 DO_XSHM_SUPPORT
622 aros_default_wbdepth
623 aros_default_wbheight
624 aros_default_wbwidth
625 oss_library_target
626 pci_hidd_target
627 sdl_hidd_target
628 x11_hidd_target
629 crosstools_cxx_target
630 crosstools_target
631 aros_target_strip_flags
632 aros_target_genmap
633 aros_paranoia_cflags
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_kernel_ar
664 aros_kernel_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_PORTSSRCDIR
691 AROS_CROSSTOOLSDIR
692 SRCDIR
693 AROS_BUILDDIR_UNIX
694 AROS_BUILDDIR
695 aros_flavour_uc
696 aros_flavour
697 aros_cpu
698 aros_arch
699 SDL_LIBS
700 SDL_CFLAGS
701 SDL_CONFIG
702 XMKMF
703 aros_cflags_iquote_end
704 aros_cflags_iquote
705 kernel_cflags_iquote_end
706 kernel_cflags_iquote
707 host_cflags_iquote_end
708 host_cflags_iquote
709 aros_target_nostdlib_ldflags
710 aros_target_detach_ldflags
711 aros_target_nix_ldflags
712 aros_target_nostartup_ldflags
713 aros_target_nostdinc_cflags
714 aros_target_ld
715 aros_target_cc
716 aros_target_cxx
717 aros_target_strip_ln
718 aros_target_ranlib_ln
719 aros_target_objdump_ln
720 aros_target_objcopy_ln
721 aros_target_nm_ln
722 aros_target_ar_ln
723 aros_target_as_ln
724 aros_kernel_ld
725 aros_kernel_rescomp
726 android_tool
727 CCACHE
728 DISTCC
729 LIBOBJS
730 EGREP
731 GREP
733 TEST
736 pkgpyexecdir
737 pyexecdir
738 pkgpythondir
739 pythondir
740 PYTHON_PLATFORM
741 PYTHON_EXEC_PREFIX
742 PYTHON_PREFIX
743 PYTHON_VERSION
744 PYTHON
745 PATCH
746 CHMOD
748 PPMTOILBM
749 PNGTOPNM
750 FLEX
751 BISON
754 UNIQ
755 SORT
756 TOUCH
757 MKDIR
758 ECHO
762 aros_host_strip
763 aros_host_ranlib
764 aros_host_ar
765 aros_host_automake
766 aros_host_autoheader
767 aros_host_autoconf
768 aros_host_aclocal
769 aros_host_ld
770 MMAKE
773 OBJEXT
774 EXEEXT
775 ac_ct_CC
776 CPPFLAGS
777 LDFLAGS
778 CFLAGS
780 host_os
781 host_vendor
782 host_cpu
783 host
784 build_os
785 build_vendor
786 build_cpu
787 build
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_build_type
830 enable_debug
831 enable_crosstools
832 enable_distcc
833 enable_ccache
834 with_gcc_version
835 with_optimization
836 with_paranoia
837 enable_target_variant
838 with_xcode
839 with_ios_version
840 with_ios_sdk
841 with_sdk
842 with_ndk
843 with_android_version
844 with_crosstools
845 with_aros_gcc
846 with_portssources
847 with_bootloader
848 with_iconset
849 with_theme
850 enable_includes
851 with_resolution
852 with_serial_debug
853 enable_palm_debug_hack
854 enable_nesting_supervisor
855 enable_mmu
856 enable_x11_hidd
857 with_x
858 enable_x11_shm
859 enable_x11_vidmode
860 enable_sdl_hidd
861 with_sdl_prefix
862 with_sdl_exec_prefix
863 enable_sdltest
864 enable_dbus
866 ac_precious_vars='build_alias
867 host_alias
868 target_alias
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
875 XMKMF'
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 ac_unrecognized_opts=
882 ac_unrecognized_sep=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
926 ac_prev=
927 ac_dashdash=
928 for ac_option
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\$ac_option
933 ac_prev=
934 continue
937 case $ac_option in
938 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 *=) ac_optarg= ;;
940 *) ac_optarg=yes ;;
941 esac
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
947 ac_dashdash=yes ;;
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 ac_prev=bindir ;;
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 bindir=$ac_optarg ;;
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
966 --config-cache | -C)
967 cache_file=config.cache ;;
969 -datadir | --datadir | --datadi | --datad)
970 ac_prev=datadir ;;
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
981 -disable-* | --disable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=no ;;
997 -docdir | --docdir | --docdi | --doc | --do)
998 ac_prev=docdir ;;
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 ac_prev=dvidir ;;
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
1007 -enable-* | --enable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=\$ac_optarg ;;
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1101 no_create=yes ;;
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1211 -with-* | --with-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=no ;;
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1261 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271 esac
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1276 # FIXME: should be removed in autoconf 3.0.
1277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283 esac
1284 done
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $? "missing argument to $ac_option"
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1332 If a cross compiler is detected then cross compile mode will be used" >&2
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1338 ac_tool_prefix=
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341 test "$silent" = yes && exec 6>/dev/null
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $? "working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $? "pwd does not report name of working directory"
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1370 /^X\(\/\/\)$/{
1371 s//\1/
1374 /^X\(\/\).*/{
1375 s//\1/
1378 s/.*/./; q'`
1379 srcdir=$ac_confdir
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 srcdir=..
1383 else
1384 ac_srcdir_defaulted=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 ac_abs_confdir=`(
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures this package to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking ...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1473 cat <<\_ACEOF
1475 X features:
1476 --x-includes=DIR X include files are in DIR
1477 --x-libraries=DIR X library files are in DIR
1479 System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1485 if test -n "$ac_init_help"; then
1487 cat <<\_ACEOF
1489 Optional Features:
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-build-type=TYPE
1494 Select the build type. Available types are:
1495 personal, nightly, snapshot, milestone, release. Do
1496 NOT use this option unless you know what you are
1497 doing! (default=personal)
1498 --enable-debug=list Enable different types of debug. Commas or
1499 whitespaces can be used to separate the items in the
1500 list. Available types of debug are: all, none,
1501 messages, stack, mungwall, modules, symbols. If no
1502 list is provided then "all" is assumed.
1503 (default=none)
1504 --enable-crosstools Build cross-compiler toolchains if necessary
1505 (default=no).
1506 --enable-distcc Use distcc as a front end to the compiler
1507 (default=no).
1508 --enable-ccache Use ccache as a front end to the compiler
1509 (default=no).
1510 --enable-target-variant=NAME
1511 Enable a specific target variant(default=none)
1512 --enable-includes=dir Alternative system include directory
1513 --enable-palm-debug-hack
1514 Enable palm debug output hack in palm native
1515 (default=no)
1516 --enable-nesting-supervisor
1517 Enable nesting supervisor support in unix
1518 (default=no)
1519 --disable-mmu Disable MMU support (default=enabled)
1520 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1521 --enable-x11-shm use X11 shared memory (default=auto)
1522 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1523 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1524 --disable-sdltest Do not try to compile and run a test SDL program
1525 --enable-dbus Enable DBUS support via dbus.library (default=no)
1527 Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-gcc-version=VERSION
1531 Use host gcc-VERSION for building AROS
1532 --with-optimization=FLAGS
1533 Use optimization flags FLAGS (default=-O2).
1534 --with-paranoia=FLAGS CC flags to enable paranoia
1535 --with-xcode=PATH Specify XCode path for iOS targets
1536 (default=/Developer).
1537 --with-ios-version=VERSION
1538 Specify minimum supported iOS version (default=3.0).
1539 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1540 --with-sdk=PATH Specify Android SDK path
1541 (default=$default_android_sdk).
1542 --with-ndk=PATH Specify Android NDK path
1543 (default=$default_android_ndk).
1544 --with-android-version=VERSION
1545 Use Android platform VERSION (default=2.2).
1546 --with-crosstools=DIR Where to install or search for cross tools binaries
1547 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1548 --with-portssources=DIR Where to download sourcecode for external ports
1549 --with-bootloader=NAME Use a specific bootloader
1550 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1551 --with-theme=NAME Use a specific GUI Theme
1552 --with-resolution=XRESxYRESxDEPTH
1553 Default resolution of the initial WorkbenchScreen
1554 --with-serial-debug Enable serial debug output in native (default=no)
1555 --with-x use the X Window System
1556 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1557 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1559 Some influential environment variables:
1560 CC C compiler command
1561 CFLAGS C compiler flags
1562 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1563 nonstandard directory <lib dir>
1564 LIBS libraries to pass to the linker, e.g. -l<library>
1565 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
1567 CPP C preprocessor
1568 XMKMF Path to xmkmf, Makefile generator for X Window System
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 Report bugs to the package provider.
1574 _ACEOF
1575 ac_status=$?
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 continue
1584 ac_builddir=.
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1602 case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1626 else
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1630 done
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635 cat <<\_ACEOF
1636 configure
1637 generated by GNU Autoconf 2.67
1639 Copyright (C) 2010 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643 exit
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 ac_retval=1
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_c_try_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1718 ac_retval=1
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_cpp
1725 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728 # the include files in INCLUDES and setting the cache variable VAR
1729 # accordingly.
1730 ac_fn_c_check_header_mongrel ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if eval "test \"\${$3+set}\"" = set; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval "test \"\${$3+set}\"" = set; then :
1737 $as_echo_n "(cached) " >&6
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 else
1743 # Is the header compilable?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745 $as_echo_n "checking $2 usability... " >&6; }
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1753 else
1754 ac_header_compiler=no
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758 $as_echo "$ac_header_compiler" >&6; }
1760 # Is the header present?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762 $as_echo_n "checking $2 presence... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1769 else
1770 ac_header_preproc=no
1772 rm -f conftest.err conftest.i conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774 $as_echo "$ac_header_preproc" >&6; }
1776 # So? What about this header?
1777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 yes:no: )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 no:yes:* )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 esac
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval "test \"\${$3+set}\"" = set; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 eval "$3=\$ac_header_compiler"
1804 eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } # ac_fn_c_check_header_mongrel
1812 # ac_fn_c_try_run LINENO
1813 # ----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815 # that executables *can* be run.
1816 ac_fn_c_try_run ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_link"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>&5
1827 ac_status=$?
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830 { { case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_try") 2>&5
1837 ac_status=$?
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; }; }; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: program exited with status $ac_status" >&5
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=$ac_status
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_run
1854 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists and can be compiled using the include files in
1857 # INCLUDES, setting the cache variable VAR accordingly.
1858 ac_fn_c_check_header_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval "test \"\${$3+set}\"" = set; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1869 #include <$2>
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872 eval "$3=yes"
1873 else
1874 eval "$3=no"
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_header_compile
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_link ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest$ac_exeext
1892 if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 $as_test_x conftest$ac_exeext
1913 }; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=1
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_c_try_link
1931 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1932 # ----------------------------------------------------
1933 # Tries to find if the field MEMBER exists in type AGGR, after including
1934 # INCLUDES, setting cache variable VAR accordingly.
1935 ac_fn_c_check_member ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1939 $as_echo_n "checking for $2.$3... " >&6; }
1940 if eval "test \"\${$4+set}\"" = set; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 main ()
1949 static $2 ac_aggr;
1950 if (ac_aggr.$3)
1951 return 0;
1953 return 0;
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 eval "$4=yes"
1958 else
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1963 main ()
1965 static $2 ac_aggr;
1966 if (sizeof ac_aggr.$3)
1967 return 0;
1969 return 0;
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973 eval "$4=yes"
1974 else
1975 eval "$4=no"
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 eval ac_res=\$$4
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986 } # ac_fn_c_check_member
1988 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1989 # ---------------------------------------------
1990 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1991 # accordingly.
1992 ac_fn_c_check_decl ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 as_decl_name=`echo $2|sed 's/ *(.*//'`
1996 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1998 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1999 if eval "test \"\${$3+set}\"" = set; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2006 main ()
2008 #ifndef $as_decl_name
2009 #ifdef __cplusplus
2010 (void) $as_decl_use;
2011 #else
2012 (void) $as_decl_name;
2013 #endif
2014 #endif
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 eval "$3=yes"
2022 else
2023 eval "$3=no"
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 eval ac_res=\$$3
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032 } # ac_fn_c_check_decl
2034 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2035 # -------------------------------------------
2036 # Tests whether TYPE exists after having included INCLUDES, setting cache
2037 # variable VAR accordingly.
2038 ac_fn_c_check_type ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval "test \"\${$3+set}\"" = set; then :
2044 $as_echo_n "(cached) " >&6
2045 else
2046 eval "$3=no"
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 if (sizeof ($2))
2054 return 0;
2056 return 0;
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2064 main ()
2066 if (sizeof (($2)))
2067 return 0;
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2074 else
2075 eval "$3=yes"
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 } # ac_fn_c_check_type
2088 # ac_fn_c_check_func LINENO FUNC VAR
2089 # ----------------------------------
2090 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2091 ac_fn_c_check_func ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if eval "test \"\${$3+set}\"" = set; then :
2097 $as_echo_n "(cached) " >&6
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2103 #define $2 innocuous_$2
2105 /* System header to define __stub macros and hopefully few prototypes,
2106 which can conflict with char $2 (); below.
2107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2108 <limits.h> exists even on freestanding compilers. */
2110 #ifdef __STDC__
2111 # include <limits.h>
2112 #else
2113 # include <assert.h>
2114 #endif
2116 #undef $2
2118 /* Override any GCC internal prototype to avoid an error.
2119 Use char because int might match the return type of a GCC
2120 builtin and then its argument prototype would still apply. */
2121 #ifdef __cplusplus
2122 extern "C"
2123 #endif
2124 char $2 ();
2125 /* The GNU C library defines this for functions which it implements
2126 to always fail with ENOSYS. Some functions are actually named
2127 something starting with __ and the normal name is an alias. */
2128 #if defined __stub_$2 || defined __stub___$2
2129 choke me
2130 #endif
2133 main ()
2135 return $2 ();
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_link "$LINENO"; then :
2141 eval "$3=yes"
2142 else
2143 eval "$3=no"
2145 rm -f core conftest.err conftest.$ac_objext \
2146 conftest$ac_exeext conftest.$ac_ext
2148 eval ac_res=\$$3
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153 } # ac_fn_c_check_func
2154 cat >config.log <<_ACEOF
2155 This file contains any messages produced by compilers while
2156 running configure, to aid debugging if configure makes a mistake.
2158 It was created by $as_me, which was
2159 generated by GNU Autoconf 2.67. Invocation command line was
2161 $ $0 $@
2163 _ACEOF
2164 exec 5>>config.log
2166 cat <<_ASUNAME
2167 ## --------- ##
2168 ## Platform. ##
2169 ## --------- ##
2171 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2172 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2173 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2174 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2175 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2177 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2178 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2180 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2181 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2182 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2183 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2184 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2185 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2186 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2188 _ASUNAME
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 $as_echo "PATH: $as_dir"
2196 done
2197 IFS=$as_save_IFS
2199 } >&5
2201 cat >&5 <<_ACEOF
2204 ## ----------- ##
2205 ## Core tests. ##
2206 ## ----------- ##
2208 _ACEOF
2211 # Keep a trace of the command line.
2212 # Strip out --no-create and --no-recursion so they do not pile up.
2213 # Strip out --silent because we don't want to record it for future runs.
2214 # Also quote any args containing shell meta-characters.
2215 # Make two passes to allow for proper duplicate-argument suppression.
2216 ac_configure_args=
2217 ac_configure_args0=
2218 ac_configure_args1=
2219 ac_must_keep_next=false
2220 for ac_pass in 1 2
2222 for ac_arg
2224 case $ac_arg in
2225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2227 | -silent | --silent | --silen | --sile | --sil)
2228 continue ;;
2229 *\'*)
2230 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 esac
2232 case $ac_pass in
2233 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2235 as_fn_append ac_configure_args1 " '$ac_arg'"
2236 if test $ac_must_keep_next = true; then
2237 ac_must_keep_next=false # Got value, back to normal.
2238 else
2239 case $ac_arg in
2240 *=* | --config-cache | -C | -disable-* | --disable-* \
2241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2243 | -with-* | --with-* | -without-* | --without-* | --x)
2244 case "$ac_configure_args0 " in
2245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2246 esac
2248 -* ) ac_must_keep_next=true ;;
2249 esac
2251 as_fn_append ac_configure_args " '$ac_arg'"
2253 esac
2254 done
2255 done
2256 { ac_configure_args0=; unset ac_configure_args0;}
2257 { ac_configure_args1=; unset ac_configure_args1;}
2259 # When interrupted or exit'd, cleanup temporary files, and complete
2260 # config.log. We remove comments because anyway the quotes in there
2261 # would cause problems or look ugly.
2262 # WARNING: Use '\'' to represent an apostrophe within the trap.
2263 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2264 trap 'exit_status=$?
2265 # Save into config.log some information that might help in debugging.
2267 echo
2269 $as_echo "## ---------------- ##
2270 ## Cache variables. ##
2271 ## ---------------- ##"
2272 echo
2273 # The following way of writing the cache mishandles newlines in values,
2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276 eval ac_val=\$$ac_var
2277 case $ac_val in #(
2278 *${as_nl}*)
2279 case $ac_var in #(
2280 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2282 esac
2283 case $ac_var in #(
2284 _ | IFS | as_nl) ;; #(
2285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286 *) { eval $ac_var=; unset $ac_var;} ;;
2287 esac ;;
2288 esac
2289 done
2290 (set) 2>&1 |
2291 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292 *${as_nl}ac_space=\ *)
2293 sed -n \
2294 "s/'\''/'\''\\\\'\'''\''/g;
2295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2296 ;; #(
2298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2300 esac |
2301 sort
2303 echo
2305 $as_echo "## ----------------- ##
2306 ## Output variables. ##
2307 ## ----------------- ##"
2308 echo
2309 for ac_var in $ac_subst_vars
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 $as_echo "$ac_var='\''$ac_val'\''"
2316 done | sort
2317 echo
2319 if test -n "$ac_subst_files"; then
2320 $as_echo "## ------------------- ##
2321 ## File substitutions. ##
2322 ## ------------------- ##"
2323 echo
2324 for ac_var in $ac_subst_files
2326 eval ac_val=\$$ac_var
2327 case $ac_val in
2328 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 esac
2330 $as_echo "$ac_var='\''$ac_val'\''"
2331 done | sort
2332 echo
2335 if test -s confdefs.h; then
2336 $as_echo "## ----------- ##
2337 ## confdefs.h. ##
2338 ## ----------- ##"
2339 echo
2340 cat confdefs.h
2341 echo
2343 test "$ac_signal" != 0 &&
2344 $as_echo "$as_me: caught signal $ac_signal"
2345 $as_echo "$as_me: exit $exit_status"
2346 } >&5
2347 rm -f core *.core core.conftest.* &&
2348 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2349 exit $exit_status
2351 for ac_signal in 1 2 13 15; do
2352 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2353 done
2354 ac_signal=0
2356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2357 rm -f -r conftest* confdefs.h
2359 $as_echo "/* confdefs.h */" > confdefs.h
2361 # Predefined preprocessor variables.
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_NAME "$PACKAGE_NAME"
2365 _ACEOF
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2369 _ACEOF
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2373 _ACEOF
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_STRING "$PACKAGE_STRING"
2377 _ACEOF
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2381 _ACEOF
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_URL "$PACKAGE_URL"
2385 _ACEOF
2388 # Let the site file select an alternate cache file if it wants to.
2389 # Prefer an explicitly selected file to automatically selected ones.
2390 ac_site_file1=NONE
2391 ac_site_file2=NONE
2392 if test -n "$CONFIG_SITE"; then
2393 # We do not want a PATH search for config.site.
2394 case $CONFIG_SITE in #((
2395 -*) ac_site_file1=./$CONFIG_SITE;;
2396 */*) ac_site_file1=$CONFIG_SITE;;
2397 *) ac_site_file1=./$CONFIG_SITE;;
2398 esac
2399 elif test "x$prefix" != xNONE; then
2400 ac_site_file1=$prefix/share/config.site
2401 ac_site_file2=$prefix/etc/config.site
2402 else
2403 ac_site_file1=$ac_default_prefix/share/config.site
2404 ac_site_file2=$ac_default_prefix/etc/config.site
2406 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2408 test "x$ac_site_file" = xNONE && continue
2409 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2411 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2412 sed 's/^/| /' "$ac_site_file" >&5
2413 . "$ac_site_file" \
2414 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416 as_fn_error $? "failed to load site script $ac_site_file
2417 See \`config.log' for more details" "$LINENO" 5 ; }
2419 done
2421 if test -r "$cache_file"; then
2422 # Some versions of bash will fail to source /dev/null (special files
2423 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2424 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2426 $as_echo "$as_me: loading cache $cache_file" >&6;}
2427 case $cache_file in
2428 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2429 *) . "./$cache_file";;
2430 esac
2432 else
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2434 $as_echo "$as_me: creating cache $cache_file" >&6;}
2435 >$cache_file
2438 as_fn_append ac_header_list " stdlib.h"
2439 as_fn_append ac_header_list " unistd.h"
2440 as_fn_append ac_header_list " sys/param.h"
2441 # Check that the precious variables saved in the cache have kept the same
2442 # value.
2443 ac_cache_corrupted=false
2444 for ac_var in $ac_precious_vars; do
2445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2446 eval ac_new_set=\$ac_env_${ac_var}_set
2447 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2448 eval ac_new_val=\$ac_env_${ac_var}_value
2449 case $ac_old_set,$ac_new_set in
2450 set,)
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2453 ac_cache_corrupted=: ;;
2454 ,set)
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2456 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2457 ac_cache_corrupted=: ;;
2458 ,);;
2460 if test "x$ac_old_val" != "x$ac_new_val"; then
2461 # differences in whitespace do not lead to failure.
2462 ac_old_val_w=`echo x $ac_old_val`
2463 ac_new_val_w=`echo x $ac_new_val`
2464 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2466 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2467 ac_cache_corrupted=:
2468 else
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2470 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2471 eval $ac_var=\$ac_old_val
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2474 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2476 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2477 fi;;
2478 esac
2479 # Pass precious variables to config.status.
2480 if test "$ac_new_set" = set; then
2481 case $ac_new_val in
2482 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2483 *) ac_arg=$ac_var=$ac_new_val ;;
2484 esac
2485 case " $ac_configure_args " in
2486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2487 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2488 esac
2490 done
2491 if $ac_cache_corrupted; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2495 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2496 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2498 ## -------------------- ##
2499 ## Main body of script. ##
2500 ## -------------------- ##
2502 ac_ext=c
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 ac_aux_dir=
2511 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2512 if test -f "$ac_dir/install-sh"; then
2513 ac_aux_dir=$ac_dir
2514 ac_install_sh="$ac_aux_dir/install-sh -c"
2515 break
2516 elif test -f "$ac_dir/install.sh"; then
2517 ac_aux_dir=$ac_dir
2518 ac_install_sh="$ac_aux_dir/install.sh -c"
2519 break
2520 elif test -f "$ac_dir/shtool"; then
2521 ac_aux_dir=$ac_dir
2522 ac_install_sh="$ac_aux_dir/shtool install -c"
2523 break
2525 done
2526 if test -z "$ac_aux_dir"; then
2527 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2535 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2536 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2540 # Check what host we are running on.
2541 # If a target is not suggested, we use this one.
2542 # Note that what we call a target, Autoconf calls a host.
2543 # Make sure we can run config.sub.
2544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2545 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2548 $as_echo_n "checking build system type... " >&6; }
2549 if test "${ac_cv_build+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 ac_build_alias=$build_alias
2553 test "x$ac_build_alias" = x &&
2554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2555 test "x$ac_build_alias" = x &&
2556 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2557 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2562 $as_echo "$ac_cv_build" >&6; }
2563 case $ac_cv_build in
2564 *-*-*) ;;
2565 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2566 esac
2567 build=$ac_cv_build
2568 ac_save_IFS=$IFS; IFS='-'
2569 set x $ac_cv_build
2570 shift
2571 build_cpu=$1
2572 build_vendor=$2
2573 shift; shift
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2576 build_os=$*
2577 IFS=$ac_save_IFS
2578 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2582 $as_echo_n "checking host system type... " >&6; }
2583 if test "${ac_cv_host+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 if test "x$host_alias" = x; then
2587 ac_cv_host=$ac_cv_build
2588 else
2589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2595 $as_echo "$ac_cv_host" >&6; }
2596 case $ac_cv_host in
2597 *-*-*) ;;
2598 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2599 esac
2600 host=$ac_cv_host
2601 ac_save_IFS=$IFS; IFS='-'
2602 set x $ac_cv_host
2603 shift
2604 host_cpu=$1
2605 host_vendor=$2
2606 shift; shift
2607 # Remember, the first character of IFS is used to create $*,
2608 # except with old shells:
2609 host_os=$*
2610 IFS=$ac_save_IFS
2611 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2615 # The AROS target is slightly different to the normal GNU style
2616 # format. We don't have the middle part, and we reverse the order
2617 # of the $(CPU) and $(OS) bits.
2619 # Don't strip the version of the target yet, it might be
2620 # useful on some systems.
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2623 $as_echo_n "checking for AROS style target... " >&6; }
2625 if test "$target" = "NONE" ; then
2626 target=$host_os-$host_cpu
2627 else
2628 if test "$target" = "" ; then
2629 target=$host_os-$host_cpu
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2633 $as_echo "$target" >&6; }
2635 if test "$host_os" = "mingw32" ; then
2636 PWDCMD="pwd -W"
2639 #don't know where else to put this...
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2641 $as_echo_n "checking building AROS in... " >&6; }
2642 AROS_BUILDDIR=`${PWDCMD-pwd}`
2643 AROS_BUILDDIR_UNIX=${PWD}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2645 $as_echo "$AROS_BUILDDIR" >&6; }
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2648 $as_echo_n "checking AROS source in... " >&6; }
2649 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2650 SRCDIR=${srcpwd}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2652 $as_echo "$SRCDIR" >&6; }
2654 # Parse the target field into something useful.
2656 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2657 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2660 aros_default_wbwidth=800
2661 aros_default_wbheight=600
2662 aros_default_wbdepth=4
2665 # The first step is to find the host binaries.
2666 # Check for a compiler.
2667 ac_ext=c
2668 ac_cpp='$CPP $CPPFLAGS'
2669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672 if test -n "$ac_tool_prefix"; then
2673 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2674 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if test "${ac_cv_prog_CC+set}" = set; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2694 done
2695 done
2696 IFS=$as_save_IFS
2700 CC=$ac_cv_prog_CC
2701 if test -n "$CC"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2703 $as_echo "$CC" >&6; }
2704 else
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2711 if test -z "$ac_cv_prog_CC"; then
2712 ac_ct_CC=$CC
2713 # Extract the first word of "gcc", so it can be a program name with args.
2714 set dummy gcc; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 if test -n "$ac_ct_CC"; then
2721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_ac_ct_CC="gcc"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2734 done
2735 done
2736 IFS=$as_save_IFS
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2743 $as_echo "$ac_ct_CC" >&6; }
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2749 if test "x$ac_ct_CC" = x; then
2750 CC=""
2751 else
2752 case $cross_compiling:$ac_tool_warned in
2753 yes:)
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756 ac_tool_warned=yes ;;
2757 esac
2758 CC=$ac_ct_CC
2760 else
2761 CC="$ac_cv_prog_CC"
2764 if test -z "$CC"; then
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}cc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CC="${ac_tool_prefix}cc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2787 done
2788 done
2789 IFS=$as_save_IFS
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2805 if test -z "$CC"; then
2806 # Extract the first word of "cc", so it can be a program name with args.
2807 set dummy cc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 ac_prog_rejected=no
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2825 ac_prog_rejected=yes
2826 continue
2828 ac_cv_prog_CC="cc"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2832 done
2833 done
2834 IFS=$as_save_IFS
2836 if test $ac_prog_rejected = yes; then
2837 # We found a bogon in the path, so make sure we never use it.
2838 set dummy $ac_cv_prog_CC
2839 shift
2840 if test $# != 0; then
2841 # We chose a different compiler from the bogus one.
2842 # However, it has the same basename, so the bogon will be chosen
2843 # first if we set CC to just the basename; use the full file name.
2844 shift
2845 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2850 CC=$ac_cv_prog_CC
2851 if test -n "$CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853 $as_echo "$CC" >&6; }
2854 else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2861 if test -z "$CC"; then
2862 if test -n "$ac_tool_prefix"; then
2863 for ac_prog in cl.exe
2865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_CC+set}" = set; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2888 IFS=$as_save_IFS
2892 CC=$ac_cv_prog_CC
2893 if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2902 test -n "$CC" && break
2903 done
2905 if test -z "$CC"; then
2906 ac_ct_CC=$CC
2907 for ac_prog in cl.exe
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_ac_ct_CC="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2930 done
2931 done
2932 IFS=$as_save_IFS
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2946 test -n "$ac_ct_CC" && break
2947 done
2949 if test "x$ac_ct_CC" = x; then
2950 CC=""
2951 else
2952 case $cross_compiling:$ac_tool_warned in
2953 yes:)
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956 ac_tool_warned=yes ;;
2957 esac
2958 CC=$ac_ct_CC
2965 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 as_fn_error $? "no acceptable C compiler found in \$PATH
2968 See \`config.log' for more details" "$LINENO" 5 ; }
2970 # Provide some information about the compiler.
2971 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2972 set X $ac_compile
2973 ac_compiler=$2
2974 for ac_option in --version -v -V -qversion; do
2975 { { ac_try="$ac_compiler $ac_option >&5"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2983 ac_status=$?
2984 if test -s conftest.err; then
2985 sed '10a\
2986 ... rest of stderr output deleted ...
2987 10q' conftest.err >conftest.er1
2988 cat conftest.er1 >&5
2990 rm -f conftest.er1 conftest.err
2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }
2993 done
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h. */
2999 main ()
3003 return 0;
3005 _ACEOF
3006 ac_clean_files_save=$ac_clean_files
3007 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3010 # of exeext.
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3012 $as_echo_n "checking whether the C compiler works... " >&6; }
3013 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015 # The possible output files:
3016 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018 ac_rmfiles=
3019 for ac_file in $ac_files
3021 case $ac_file in
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3023 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3024 esac
3025 done
3026 rm -f $ac_rmfiles
3028 if { { ac_try="$ac_link_default"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_link_default") 2>&5
3036 ac_status=$?
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; then :
3039 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3040 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3041 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3042 # so that the user can short-circuit this test for compilers unknown to
3043 # Autoconf.
3044 for ac_file in $ac_files ''
3046 test -f "$ac_file" || continue
3047 case $ac_file in
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3050 [ab].out )
3051 # We found the default executable, but exeext='' is most
3052 # certainly right.
3053 break;;
3054 *.* )
3055 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3056 then :; else
3057 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 # We set ac_cv_exeext here because the later test for it is not
3060 # safe: cross compilers may not add the suffix if given an `-o'
3061 # argument, so we may need to know it at that point already.
3062 # Even if this section looks crufty: it has the advantage of
3063 # actually working.
3064 break;;
3066 break;;
3067 esac
3068 done
3069 test "$ac_cv_exeext" = no && ac_cv_exeext=
3071 else
3072 ac_file=''
3074 if test -z "$ac_file"; then :
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 $as_echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error 77 "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.i 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.i conftest.$ac_ext
3810 done
3811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3812 rm -f conftest.i 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.i 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.i conftest.$ac_ext
3869 done
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.i 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 for ac_prog in aclocal aclocal19 aclocal-1.9
4076 # Extract the first word of "$ac_prog", so it can be a program name with args.
4077 set dummy $ac_prog; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -n "$aros_host_aclocal"; then
4084 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_aros_host_aclocal="$ac_prog"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4097 done
4098 done
4099 IFS=$as_save_IFS
4103 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4104 if test -n "$aros_host_aclocal"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4106 $as_echo "$aros_host_aclocal" >&6; }
4107 else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4113 test -n "$aros_host_aclocal" && break
4114 done
4116 for ac_prog in autoconf autoconf259 autoconf253
4118 # Extract the first word of "$ac_prog", so it can be a program name with args.
4119 set dummy $ac_prog; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$aros_host_autoconf"; then
4126 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_aros_host_autoconf="$ac_prog"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4141 IFS=$as_save_IFS
4145 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4146 if test -n "$aros_host_autoconf"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4148 $as_echo "$aros_host_autoconf" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4155 test -n "$aros_host_autoconf" && break
4156 done
4158 for ac_prog in autoheader autoheader259 autoheader253
4160 # Extract the first word of "$ac_prog", so it can be a program name with args.
4161 set dummy $ac_prog; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -n "$aros_host_autoheader"; then
4168 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_aros_host_autoheader="$ac_prog"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4181 done
4182 done
4183 IFS=$as_save_IFS
4187 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4188 if test -n "$aros_host_autoheader"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4190 $as_echo "$aros_host_autoheader" >&6; }
4191 else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4197 test -n "$aros_host_autoheader" && break
4198 done
4200 for ac_prog in automake automake19 automake-1.9
4202 # Extract the first word of "$ac_prog", so it can be a program name with args.
4203 set dummy $ac_prog; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$aros_host_automake"; then
4210 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_aros_host_automake="$ac_prog"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 aros_host_automake=$ac_cv_prog_aros_host_automake
4230 if test -n "$aros_host_automake"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4232 $as_echo "$aros_host_automake" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4239 test -n "$aros_host_automake" && break
4240 done
4243 if test "$aros_host_aclocal" = ""; then
4244 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4246 if test "$aros_host_automake" = ""; then
4247 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4250 case "$aros_host_cc" in
4251 *gcc*)
4252 aros_host_cc_pipe="-pipe"
4254 icc)
4255 aros_host_cc_pipe=""
4258 aros_host_cc_pipe=""
4260 esac
4262 aros_kernel_cc_includes=""
4263 aros_target_cc_includes=""
4265 # ----------------------------------------------------------------------------------------
4266 # Host-specific defaults
4268 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4269 # instead of a wrapper script.
4270 # Useful for non-ELF hosts (like Windows and Darwin).
4271 # Can also be overriden in target section below
4272 use_aros_gcc="no"
4274 # This is the main host configuration section. It is where the host
4275 # can change the values of any variables it needs to change. We do
4276 # not look at anything that compiles to the target yet, we'll get
4277 # to that later.
4279 case "$host_os" in
4280 aros*)
4281 aros_host_arch="aros"
4282 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4283 case "$host_cpu" in
4284 *i?86*)
4285 aros_host_cpu="i386"
4287 *x86_64*)
4288 aros_host_cpu="x86_64"
4290 *powerpc*)
4291 aros_host_cpu="ppc"
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4295 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4296 aros_host_cpu="$host_cpu"
4298 esac
4301 linux*)
4302 aros_host_arch="linux"
4303 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4304 case "$host_cpu" in
4305 *i?86*)
4306 aros_host_cpu="i386"
4308 *x86_64*)
4309 aros_host_cpu="x86_64"
4311 *m68k*)
4312 aros_host_cpu="m68k"
4314 *powerpc*)
4315 aros_host_cpu="ppc"
4317 *arm*)
4318 aros_host_cpu="arm"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4322 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4323 aros_host_cpu="$host_cpu"
4325 esac
4328 freebsd*)
4329 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4330 aros_host_make="gmake"
4331 aros_host_arch="freebsd"
4332 aros_host_cpu="i386"
4334 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4336 case $host_os in
4337 freebsd[234]*)
4338 aros_object_format="elf_i386"
4342 aros_object_format="elf_i386_fbsd"
4344 esac
4348 darwin*)
4349 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4350 aros_host_arch="darwin"
4351 use_aros_gcc="yes"
4352 android_build_os="darwin-x86"
4353 android_tool="android"
4354 default_android_sdk="/android-sdk-mac_x86"
4355 default_android_ndk="/android-ndk-r5b"
4356 case "$host_cpu" in
4357 *i?86*)
4358 aros_host_cpu="i386"
4360 *x86_64*)
4361 aros_host_cpu="x86_64"
4363 *powerpc*)
4364 aros_host_cpu="ppc"
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4368 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4369 aros_host_cpu="$host_cpu"
4371 esac
4373 aros_host_ldflags="$aros_host_ldflags -liconv"
4377 dragonfly*)
4378 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4379 aros_host_make="gmake"
4380 aros_host_arch="dragonfly"
4381 case $host_cpu in
4382 *i?86*)
4383 aros_host_cpu="i386"
4385 *amd64*)
4386 aros_host_cpu="x86_64"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4390 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4391 aros_host_cpu="$host_cpu"
4393 esac
4396 netbsd*)
4397 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4398 aros_host_make="gmake"
4399 aros_host_arch="netbsd"
4400 case "$host_cpu" in
4401 *i?86*)
4402 aros_host_cpu="i386"
4404 *m68k*)
4405 aros_host_cpu="m68k"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4409 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4410 aros_host_cpu="$host_cpu"
4412 esac
4413 aros_host_lib_suffix=".0.0"
4416 openbsd*)
4417 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4418 aros_host_make="gmake"
4419 aros_host_arch="openbsd"
4420 case "$host_cpu" in
4421 *i?86*)
4422 aros_host_cpu="i386"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4426 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4427 aros_host_cpu="$host_cpu"
4429 esac
4432 solaris*)
4433 aros_host_arch="solaris"
4434 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4435 case "$host_cpu" in
4436 *i?86*)
4437 aros_host_cpu="i386"
4439 *sparc*)
4440 aros_host_cpu="sparc"
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4444 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4445 aros_host_cpu="$host_cpu"
4447 esac
4450 morphos*)
4451 aros_host_arch="morphos"
4452 aros_host_cpu="ppc"
4455 amiga*)
4456 aros_host_arch="amiga"
4457 SORT="/gg/bin/sort"
4458 TEST="/gg/bin/test"
4459 UNIQ="/gg/bin/uniq"
4460 FOR="for"
4461 TOUCH="/gg/bin/touch"
4462 case "$host_cpu" in
4463 *m68k*)
4464 aros_host_cpu="m68k"
4466 *powerpc*)
4467 aros_host_cpu="ppc"
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4471 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4472 aros_host_cpu="$host_cpu"
4474 esac
4477 cygwin*)
4478 aros_host_arch="cygwin"
4479 use_aros_gcc="yes"
4480 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4481 android_build_os="windows"
4482 android_tool="android.bat"
4483 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4485 case "$host_cpu" in
4486 *i?86*)
4487 aros_host_cpu="i386"
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4491 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4492 aros_host_cpu="$host_cpu"
4494 esac
4497 mingw32*)
4498 aros_host_arch="mingw32"
4499 use_aros_gcc="yes"
4500 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4501 android_build_os="windows"
4502 android_tool="android.bat"
4503 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4505 case "$host_cpu" in
4506 *i?86*)
4507 aros_host_cpu="i386"
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4511 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4512 aros_host_cpu="$host_cpu"
4514 esac
4517 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4519 esac
4521 # Extract the first word of "ar", so it can be a program name with args.
4522 set dummy ar; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test -n "$aros_host_ar"; then
4529 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_aros_host_ar="ar cr"
4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4542 done
4543 done
4544 IFS=$as_save_IFS
4548 aros_host_ar=$ac_cv_prog_aros_host_ar
4549 if test -n "$aros_host_ar"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4551 $as_echo "$aros_host_ar" >&6; }
4552 else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4558 if test "$aros_host_ar" = ""; then
4559 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4561 # Extract the first word of "ranlib", so it can be a program name with args.
4562 set dummy ranlib; ac_word=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -n "$aros_host_ranlib"; then
4569 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_aros_host_ranlib="ranlib "
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4584 IFS=$as_save_IFS
4588 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4589 if test -n "$aros_host_ranlib"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4591 $as_echo "$aros_host_ranlib" >&6; }
4592 else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4598 if test "$aros_host_ranlib" = ""; then
4599 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4601 # Extract the first word of "strip", so it can be a program name with args.
4602 set dummy strip; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$aros_host_strip"; then
4609 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_aros_host_strip="strip "
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4622 done
4623 done
4624 IFS=$as_save_IFS
4628 aros_host_strip=$ac_cv_prog_aros_host_strip
4629 if test -n "$aros_host_strip"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4631 $as_echo "$aros_host_strip" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4638 if test "$aros_host_strip" = ""; then
4639 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4642 # Extract the first word of "rm", so it can be a program name with args.
4643 set dummy rm; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_RM+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$RM"; then
4650 ac_cv_prog_RM="$RM" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_RM="rm -rf"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4669 RM=$ac_cv_prog_RM
4670 if test -n "$RM"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4672 $as_echo "$RM" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4679 if test "$RM" = ""; then
4680 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4682 # Extract the first word of "cp", so it can be a program name with args.
4683 set dummy cp; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_CP+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -n "$CP"; then
4690 ac_cv_prog_CP="$CP" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_CP="cp "
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4709 CP=$ac_cv_prog_CP
4710 if test -n "$CP"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4712 $as_echo "$CP" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4719 if test "$CP" = ""; then
4720 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4722 # Extract the first word of "mv", so it can be a program name with args.
4723 set dummy mv; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_MV+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -n "$MV"; then
4730 ac_cv_prog_MV="$MV" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_MV="mv "
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4743 done
4744 done
4745 IFS=$as_save_IFS
4749 MV=$ac_cv_prog_MV
4750 if test -n "$MV"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4752 $as_echo "$MV" >&6; }
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4759 if test "$MV" = ""; then
4760 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4762 # Extract the first word of "echo", so it can be a program name with args.
4763 set dummy echo; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if test "${ac_cv_prog_ECHO+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$ECHO"; then
4770 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_ECHO="echo "
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4783 done
4784 done
4785 IFS=$as_save_IFS
4789 ECHO=$ac_cv_prog_ECHO
4790 if test -n "$ECHO"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4792 $as_echo "$ECHO" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4799 if test "$ECHO" = ""; then
4800 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4802 # Extract the first word of "mkdir", so it can be a program name with args.
4803 set dummy mkdir; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$MKDIR"; then
4810 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_MKDIR="mkdir -p"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4829 MKDIR=$ac_cv_prog_MKDIR
4830 if test -n "$MKDIR"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4832 $as_echo "$MKDIR" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4839 if test "$MKDIR" = ""; then
4840 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4842 # Extract the first word of "touch", so it can be a program name with args.
4843 set dummy touch; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$TOUCH"; then
4850 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_TOUCH="touch "
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4869 TOUCH=$ac_cv_prog_TOUCH
4870 if test -n "$TOUCH"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4872 $as_echo "$TOUCH" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4879 if test "$TOUCH" = ""; then
4880 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4882 # Extract the first word of "sort", so it can be a program name with args.
4883 set dummy sort; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_SORT+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$SORT"; then
4890 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_SORT="sort "
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4909 SORT=$ac_cv_prog_SORT
4910 if test -n "$SORT"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4912 $as_echo "$SORT" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 if test "$SORT" = ""; then
4920 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4922 # Extract the first word of "uniq", so it can be a program name with args.
4923 set dummy uniq; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$UNIQ"; then
4930 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_UNIQ="uniq "
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4945 IFS=$as_save_IFS
4949 UNIQ=$ac_cv_prog_UNIQ
4950 if test -n "$UNIQ"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4952 $as_echo "$UNIQ" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4959 if test "$UNIQ" = ""; then
4960 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4962 # Extract the first word of "true", so it can be a program name with args.
4963 set dummy true; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_NOP+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if test -n "$NOP"; then
4970 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_prog_NOP="true "
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4983 done
4984 done
4985 IFS=$as_save_IFS
4989 NOP=$ac_cv_prog_NOP
4990 if test -n "$NOP"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4992 $as_echo "$NOP" >&6; }
4993 else
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4999 if test "$NOP" = ""; then
5000 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5002 # Extract the first word of "cat", so it can be a program name with args.
5003 set dummy cat; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_CAT+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$CAT"; then
5010 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_CAT="cat "
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5029 CAT=$ac_cv_prog_CAT
5030 if test -n "$CAT"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5032 $as_echo "$CAT" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5039 if test "$CAT" = ""; then
5040 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5042 # Extract the first word of "bison", so it can be a program name with args.
5043 set dummy bison; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_BISON+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$BISON"; then
5050 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_BISON="bison "
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 BISON=$ac_cv_prog_BISON
5070 if test -n "$BISON"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5072 $as_echo "$BISON" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 if test "$BISON" = ""; then
5080 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5082 # Extract the first word of "flex", so it can be a program name with args.
5083 set dummy flex; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_prog_FLEX+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 if test -n "$FLEX"; then
5090 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_FLEX="flex "
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5103 done
5104 done
5105 IFS=$as_save_IFS
5109 FLEX=$ac_cv_prog_FLEX
5110 if test -n "$FLEX"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5112 $as_echo "$FLEX" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5119 if test "$FLEX" = ""; then
5120 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5122 # Extract the first word of "pngtopnm", so it can be a program name with args.
5123 set dummy pngtopnm; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$PNGTOPNM"; then
5130 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_PNGTOPNM="pngtopnm "
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5149 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5150 if test -n "$PNGTOPNM"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5152 $as_echo "$PNGTOPNM" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5159 if test "$PNGTOPNM" = ""; then
5160 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5162 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5163 set dummy ppmtoilbm; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if test -n "$PPMTOILBM"; then
5170 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5185 IFS=$as_save_IFS
5189 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5190 if test -n "$PPMTOILBM"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5192 $as_echo "$PPMTOILBM" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5199 if test "$PPMTOILBM" = ""; then
5200 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5202 # Extract the first word of "sed", so it can be a program name with args.
5203 set dummy sed; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if test "${ac_cv_prog_SED+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 if test -n "$SED"; then
5210 ac_cv_prog_SED="$SED" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_prog_SED="sed "
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5223 done
5224 done
5225 IFS=$as_save_IFS
5229 SED=$ac_cv_prog_SED
5230 if test -n "$SED"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5232 $as_echo "$SED" >&6; }
5233 else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5239 if test "$SED" = ""; then
5240 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5242 # Extract the first word of "chmod", so it can be a program name with args.
5243 set dummy chmod; ac_word=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 if test -n "$CHMOD"; then
5250 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_prog_CHMOD="chmod "
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5263 done
5264 done
5265 IFS=$as_save_IFS
5269 CHMOD=$ac_cv_prog_CHMOD
5270 if test -n "$CHMOD"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5272 $as_echo "$CHMOD" >&6; }
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5279 if test "$CHMOD" = ""; then
5280 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5282 # Extract the first word of "patch", so it can be a program name with args.
5283 set dummy patch; ac_word=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_prog_PATCH+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 if test -n "$PATCH"; then
5290 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_prog_PATCH="patch "
5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5303 done
5304 done
5305 IFS=$as_save_IFS
5309 PATCH=$ac_cv_prog_PATCH
5310 if test -n "$PATCH"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5312 $as_echo "$PATCH" >&6; }
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5319 if test "$PATCH" = ""; then
5320 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5327 if test -n "$PYTHON"; then
5328 # If the user set $PYTHON, use it and don't search something else.
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5330 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5331 prog="import sys, string
5332 # split strings by '.' and convert to numeric. Append some zeros
5333 # because we need at least 4 digits for the hex conversion.
5334 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5335 minverhex = 0
5336 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5337 sys.exit(sys.hexversion < minverhex)"
5338 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5339 ($PYTHON -c "$prog") >&5 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; then :
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5344 $as_echo "yes" >&6; }
5345 else
5346 as_fn_error $? "too old" "$LINENO" 5
5348 am_display_PYTHON=$PYTHON
5349 else
5350 # Otherwise, try each interpreter until we find one that satisfies
5351 # VERSION.
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5353 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5354 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5358 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
5359 test "$am_cv_pathless_PYTHON" = none && break
5360 prog="import sys, string
5361 # split strings by '.' and convert to numeric. Append some zeros
5362 # because we need at least 4 digits for the hex conversion.
5363 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5364 minverhex = 0
5365 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5366 sys.exit(sys.hexversion < minverhex)"
5367 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5368 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; then :
5372 break
5374 done
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5377 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5378 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5379 if test "$am_cv_pathless_PYTHON" = none; then
5380 PYTHON=:
5381 else
5382 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5383 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if test "${ac_cv_path_PYTHON+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 case $PYTHON in
5390 [\\/]* | ?:[\\/]*)
5391 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5405 done
5406 done
5407 IFS=$as_save_IFS
5410 esac
5412 PYTHON=$ac_cv_path_PYTHON
5413 if test -n "$PYTHON"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5415 $as_echo "$PYTHON" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5423 am_display_PYTHON=$am_cv_pathless_PYTHON
5427 if test "$PYTHON" = :; then
5428 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5429 else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5433 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5434 if test "${am_cv_python_version+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5440 $as_echo "$am_cv_python_version" >&6; }
5441 PYTHON_VERSION=$am_cv_python_version
5445 PYTHON_PREFIX='${prefix}'
5447 PYTHON_EXEC_PREFIX='${exec_prefix}'
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5452 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5453 if test "${am_cv_python_platform+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5459 $as_echo "$am_cv_python_platform" >&6; }
5460 PYTHON_PLATFORM=$am_cv_python_platform
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5466 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5467 if test "${am_cv_python_pythondir+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5471 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5474 $as_echo "$am_cv_python_pythondir" >&6; }
5475 pythondir=$am_cv_python_pythondir
5479 pkgpythondir=\${pythondir}/$PACKAGE
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5483 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5484 if test "${am_cv_python_pyexecdir+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5488 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5491 $as_echo "$am_cv_python_pyexecdir" >&6; }
5492 pyexecdir=$am_cv_python_pyexecdir
5496 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5504 FOR=for
5506 IF=if
5508 TEST=test
5510 CMP=cmp
5514 # Check for some includes for the X11 HIDD and the kernel
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5518 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5519 if test "${ac_cv_path_GREP+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -z "$GREP"; then
5523 ac_path_GREP_found=false
5524 # Loop through the user's path and test for each of PROGNAME-LIST
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_prog in grep ggrep; do
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5533 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5534 # Check for GNU ac_path_GREP and select it if it is found.
5535 # Check for GNU $ac_path_GREP
5536 case `"$ac_path_GREP" --version 2>&1` in
5537 *GNU*)
5538 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5540 ac_count=0
5541 $as_echo_n 0123456789 >"conftest.in"
5542 while :
5544 cat "conftest.in" "conftest.in" >"conftest.tmp"
5545 mv "conftest.tmp" "conftest.in"
5546 cp "conftest.in" "conftest.nl"
5547 $as_echo 'GREP' >> "conftest.nl"
5548 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5550 as_fn_arith $ac_count + 1 && ac_count=$as_val
5551 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5552 # Best one so far, save it but keep looking for a better one
5553 ac_cv_path_GREP="$ac_path_GREP"
5554 ac_path_GREP_max=$ac_count
5556 # 10*(2^10) chars as input seems more than enough
5557 test $ac_count -gt 10 && break
5558 done
5559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5560 esac
5562 $ac_path_GREP_found && break 3
5563 done
5564 done
5565 done
5566 IFS=$as_save_IFS
5567 if test -z "$ac_cv_path_GREP"; then
5568 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5570 else
5571 ac_cv_path_GREP=$GREP
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5576 $as_echo "$ac_cv_path_GREP" >&6; }
5577 GREP="$ac_cv_path_GREP"
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5581 $as_echo_n "checking for egrep... " >&6; }
5582 if test "${ac_cv_path_EGREP+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5586 then ac_cv_path_EGREP="$GREP -E"
5587 else
5588 if test -z "$EGREP"; then
5589 ac_path_EGREP_found=false
5590 # Loop through the user's path and test for each of PROGNAME-LIST
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_prog in egrep; do
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5599 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5600 # Check for GNU ac_path_EGREP and select it if it is found.
5601 # Check for GNU $ac_path_EGREP
5602 case `"$ac_path_EGREP" --version 2>&1` in
5603 *GNU*)
5604 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5606 ac_count=0
5607 $as_echo_n 0123456789 >"conftest.in"
5608 while :
5610 cat "conftest.in" "conftest.in" >"conftest.tmp"
5611 mv "conftest.tmp" "conftest.in"
5612 cp "conftest.in" "conftest.nl"
5613 $as_echo 'EGREP' >> "conftest.nl"
5614 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5616 as_fn_arith $ac_count + 1 && ac_count=$as_val
5617 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5618 # Best one so far, save it but keep looking for a better one
5619 ac_cv_path_EGREP="$ac_path_EGREP"
5620 ac_path_EGREP_max=$ac_count
5622 # 10*(2^10) chars as input seems more than enough
5623 test $ac_count -gt 10 && break
5624 done
5625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5626 esac
5628 $ac_path_EGREP_found && break 3
5629 done
5630 done
5631 done
5632 IFS=$as_save_IFS
5633 if test -z "$ac_cv_path_EGREP"; then
5634 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5636 else
5637 ac_cv_path_EGREP=$EGREP
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5643 $as_echo "$ac_cv_path_EGREP" >&6; }
5644 EGREP="$ac_cv_path_EGREP"
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5648 $as_echo_n "checking for ANSI C header files... " >&6; }
5649 if test "${ac_cv_header_stdc+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <stdlib.h>
5655 #include <stdarg.h>
5656 #include <string.h>
5657 #include <float.h>
5660 main ()
5664 return 0;
5666 _ACEOF
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668 ac_cv_header_stdc=yes
5669 else
5670 ac_cv_header_stdc=no
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 if test $ac_cv_header_stdc = yes; then
5675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #include <string.h>
5680 _ACEOF
5681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5682 $EGREP "memchr" >/dev/null 2>&1; then :
5684 else
5685 ac_cv_header_stdc=no
5687 rm -f conftest*
5691 if test $ac_cv_header_stdc = yes; then
5692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 #include <stdlib.h>
5697 _ACEOF
5698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5699 $EGREP "free" >/dev/null 2>&1; then :
5701 else
5702 ac_cv_header_stdc=no
5704 rm -f conftest*
5708 if test $ac_cv_header_stdc = yes; then
5709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5710 if test "$cross_compiling" = yes; then :
5712 else
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <ctype.h>
5716 #include <stdlib.h>
5717 #if ((' ' & 0x0FF) == 0x020)
5718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5720 #else
5721 # define ISLOWER(c) \
5722 (('a' <= (c) && (c) <= 'i') \
5723 || ('j' <= (c) && (c) <= 'r') \
5724 || ('s' <= (c) && (c) <= 'z'))
5725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5726 #endif
5728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5730 main ()
5732 int i;
5733 for (i = 0; i < 256; i++)
5734 if (XOR (islower (i), ISLOWER (i))
5735 || toupper (i) != TOUPPER (i))
5736 return 2;
5737 return 0;
5739 _ACEOF
5740 if ac_fn_c_try_run "$LINENO"; then :
5742 else
5743 ac_cv_header_stdc=no
5745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5746 conftest.$ac_objext conftest.beam conftest.$ac_ext
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5752 $as_echo "$ac_cv_header_stdc" >&6; }
5753 if test $ac_cv_header_stdc = yes; then
5755 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5759 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5760 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5761 inttypes.h stdint.h unistd.h
5762 do :
5763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5767 cat >>confdefs.h <<_ACEOF
5768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5769 _ACEOF
5773 done
5776 for ac_header in sys/ipc.h sys/shm.h \
5777 sys/mmap.h sys/mman.h sysexits.h \
5778 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5780 do :
5781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5783 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5784 cat >>confdefs.h <<_ACEOF
5785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786 _ACEOF
5790 done
5793 for ac_header in sys/mount.h
5794 do :
5795 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5797 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5798 cat >>confdefs.h <<_ACEOF
5799 #define HAVE_SYS_MOUNT_H 1
5800 _ACEOF
5804 done
5807 ac_header_dirent=no
5808 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5809 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5811 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5812 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #include <sys/types.h>
5818 #include <$ac_hdr>
5821 main ()
5823 if ((DIR *) 0)
5824 return 0;
5826 return 0;
5828 _ACEOF
5829 if ac_fn_c_try_compile "$LINENO"; then :
5830 eval "$as_ac_Header=yes"
5831 else
5832 eval "$as_ac_Header=no"
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 eval ac_res=\$$as_ac_Header
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5838 $as_echo "$ac_res" >&6; }
5839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5840 cat >>confdefs.h <<_ACEOF
5841 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5842 _ACEOF
5844 ac_header_dirent=$ac_hdr; break
5847 done
5848 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5849 if test $ac_header_dirent = dirent.h; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5851 $as_echo_n "checking for library containing opendir... " >&6; }
5852 if test "${ac_cv_search_opendir+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 ac_func_search_save_LIBS=$LIBS
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5859 /* Override any GCC internal prototype to avoid an error.
5860 Use char because int might match the return type of a GCC
5861 builtin and then its argument prototype would still apply. */
5862 #ifdef __cplusplus
5863 extern "C"
5864 #endif
5865 char opendir ();
5867 main ()
5869 return opendir ();
5871 return 0;
5873 _ACEOF
5874 for ac_lib in '' dir; do
5875 if test -z "$ac_lib"; then
5876 ac_res="none required"
5877 else
5878 ac_res=-l$ac_lib
5879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5881 if ac_fn_c_try_link "$LINENO"; then :
5882 ac_cv_search_opendir=$ac_res
5884 rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext
5886 if test "${ac_cv_search_opendir+set}" = set; then :
5887 break
5889 done
5890 if test "${ac_cv_search_opendir+set}" = set; then :
5892 else
5893 ac_cv_search_opendir=no
5895 rm conftest.$ac_ext
5896 LIBS=$ac_func_search_save_LIBS
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5899 $as_echo "$ac_cv_search_opendir" >&6; }
5900 ac_res=$ac_cv_search_opendir
5901 if test "$ac_res" != no; then :
5902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5906 else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5908 $as_echo_n "checking for library containing opendir... " >&6; }
5909 if test "${ac_cv_search_opendir+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 ac_func_search_save_LIBS=$LIBS
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5916 /* Override any GCC internal prototype to avoid an error.
5917 Use char because int might match the return type of a GCC
5918 builtin and then its argument prototype would still apply. */
5919 #ifdef __cplusplus
5920 extern "C"
5921 #endif
5922 char opendir ();
5924 main ()
5926 return opendir ();
5928 return 0;
5930 _ACEOF
5931 for ac_lib in '' x; do
5932 if test -z "$ac_lib"; then
5933 ac_res="none required"
5934 else
5935 ac_res=-l$ac_lib
5936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5938 if ac_fn_c_try_link "$LINENO"; then :
5939 ac_cv_search_opendir=$ac_res
5941 rm -f core conftest.err conftest.$ac_objext \
5942 conftest$ac_exeext
5943 if test "${ac_cv_search_opendir+set}" = set; then :
5944 break
5946 done
5947 if test "${ac_cv_search_opendir+set}" = set; then :
5949 else
5950 ac_cv_search_opendir=no
5952 rm conftest.$ac_ext
5953 LIBS=$ac_func_search_save_LIBS
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5956 $as_echo "$ac_cv_search_opendir" >&6; }
5957 ac_res=$ac_cv_search_opendir
5958 if test "$ac_res" != no; then :
5959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5966 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5967 if test "${ac_cv_header_stat_broken+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 #include <sys/types.h>
5973 #include <sys/stat.h>
5975 #if defined S_ISBLK && defined S_IFDIR
5976 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5977 #endif
5979 #if defined S_ISBLK && defined S_IFCHR
5980 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5981 #endif
5983 #if defined S_ISLNK && defined S_IFREG
5984 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5985 #endif
5987 #if defined S_ISSOCK && defined S_IFREG
5988 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5989 #endif
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"; then :
5993 ac_cv_header_stat_broken=no
5994 else
5995 ac_cv_header_stat_broken=yes
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6000 $as_echo "$ac_cv_header_stat_broken" >&6; }
6001 if test $ac_cv_header_stat_broken = yes; then
6003 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6008 $as_echo_n "checking for ANSI C header files... " >&6; }
6009 if test "${ac_cv_header_stdc+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <stdlib.h>
6015 #include <stdarg.h>
6016 #include <string.h>
6017 #include <float.h>
6020 main ()
6024 return 0;
6026 _ACEOF
6027 if ac_fn_c_try_compile "$LINENO"; then :
6028 ac_cv_header_stdc=yes
6029 else
6030 ac_cv_header_stdc=no
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 if test $ac_cv_header_stdc = yes; then
6035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <string.h>
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "memchr" >/dev/null 2>&1; then :
6044 else
6045 ac_cv_header_stdc=no
6047 rm -f conftest*
6051 if test $ac_cv_header_stdc = yes; then
6052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #include <stdlib.h>
6057 _ACEOF
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059 $EGREP "free" >/dev/null 2>&1; then :
6061 else
6062 ac_cv_header_stdc=no
6064 rm -f conftest*
6068 if test $ac_cv_header_stdc = yes; then
6069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6070 if test "$cross_compiling" = yes; then :
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <ctype.h>
6076 #include <stdlib.h>
6077 #if ((' ' & 0x0FF) == 0x020)
6078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6080 #else
6081 # define ISLOWER(c) \
6082 (('a' <= (c) && (c) <= 'i') \
6083 || ('j' <= (c) && (c) <= 'r') \
6084 || ('s' <= (c) && (c) <= 'z'))
6085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6086 #endif
6088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6090 main ()
6092 int i;
6093 for (i = 0; i < 256; i++)
6094 if (XOR (islower (i), ISLOWER (i))
6095 || toupper (i) != TOUPPER (i))
6096 return 2;
6097 return 0;
6099 _ACEOF
6100 if ac_fn_c_try_run "$LINENO"; then :
6102 else
6103 ac_cv_header_stdc=no
6105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6106 conftest.$ac_objext conftest.beam conftest.$ac_ext
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6112 $as_echo "$ac_cv_header_stdc" >&6; }
6113 if test $ac_cv_header_stdc = yes; then
6115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6120 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6121 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6127 #include <sys/wait.h>
6128 #ifndef WEXITSTATUS
6129 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6130 #endif
6131 #ifndef WIFEXITED
6132 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6133 #endif
6136 main ()
6138 int s;
6139 wait (&s);
6140 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6142 return 0;
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146 ac_cv_header_sys_wait_h=yes
6147 else
6148 ac_cv_header_sys_wait_h=no
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6153 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6154 if test $ac_cv_header_sys_wait_h = yes; then
6156 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6161 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6162 if test "${ac_cv_header_time+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 #include <sys/types.h>
6168 #include <sys/time.h>
6169 #include <time.h>
6172 main ()
6174 if ((struct tm *) 0)
6175 return 0;
6177 return 0;
6179 _ACEOF
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181 ac_cv_header_time=yes
6182 else
6183 ac_cv_header_time=no
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6188 $as_echo "$ac_cv_header_time" >&6; }
6189 if test $ac_cv_header_time = yes; then
6191 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6195 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6196 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6200 _ACEOF
6203 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6208 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6209 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6211 cat >>confdefs.h <<_ACEOF
6212 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6213 _ACEOF
6216 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6218 else
6219 case " $LIBOBJS " in
6220 *" fileblocks.$ac_objext "* ) ;;
6221 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6223 esac
6228 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6229 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6231 cat >>confdefs.h <<_ACEOF
6232 #define HAVE_STRUCT_STAT_ST_RDEV 1
6233 _ACEOF
6236 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6242 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6243 if test "${ac_cv_struct_tm+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248 #include <sys/types.h>
6249 #include <time.h>
6252 main ()
6254 struct tm tm;
6255 int *p = &tm.tm_sec;
6256 return !p;
6258 return 0;
6260 _ACEOF
6261 if ac_fn_c_try_compile "$LINENO"; then :
6262 ac_cv_struct_tm=time.h
6263 else
6264 ac_cv_struct_tm=sys/time.h
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6269 $as_echo "$ac_cv_struct_tm" >&6; }
6270 if test $ac_cv_struct_tm = sys/time.h; then
6272 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6276 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6277 #include <$ac_cv_struct_tm>
6280 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6282 cat >>confdefs.h <<_ACEOF
6283 #define HAVE_STRUCT_TM_TM_ZONE 1
6284 _ACEOF
6289 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6291 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6293 else
6294 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6296 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6297 ac_have_decl=1
6298 else
6299 ac_have_decl=0
6302 cat >>confdefs.h <<_ACEOF
6303 #define HAVE_DECL_TZNAME $ac_have_decl
6304 _ACEOF
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6307 $as_echo_n "checking for tzname... " >&6; }
6308 if test "${ac_cv_var_tzname+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 #include <time.h>
6314 #if !HAVE_DECL_TZNAME
6315 extern char *tzname[];
6316 #endif
6319 main ()
6321 return tzname[0][0];
6323 return 0;
6325 _ACEOF
6326 if ac_fn_c_try_link "$LINENO"; then :
6327 ac_cv_var_tzname=yes
6328 else
6329 ac_cv_var_tzname=no
6331 rm -f core conftest.err conftest.$ac_objext \
6332 conftest$ac_exeext conftest.$ac_ext
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6335 $as_echo "$ac_cv_var_tzname" >&6; }
6336 if test $ac_cv_var_tzname = yes; then
6338 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6343 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6344 if test "x$ac_cv_type_off_t" = x""yes; then :
6346 else
6348 cat >>confdefs.h <<_ACEOF
6349 #define off_t long int
6350 _ACEOF
6354 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6355 if test "x$ac_cv_type_pid_t" = x""yes; then :
6357 else
6359 cat >>confdefs.h <<_ACEOF
6360 #define pid_t int
6361 _ACEOF
6365 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6366 if test "x$ac_cv_type_size_t" = x""yes; then :
6368 else
6370 cat >>confdefs.h <<_ACEOF
6371 #define size_t unsigned int
6372 _ACEOF
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6377 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6378 if test "${ac_cv_type_uid_t+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 #include <sys/types.h>
6385 _ACEOF
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 $EGREP "uid_t" >/dev/null 2>&1; then :
6388 ac_cv_type_uid_t=yes
6389 else
6390 ac_cv_type_uid_t=no
6392 rm -f conftest*
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6396 $as_echo "$ac_cv_type_uid_t" >&6; }
6397 if test $ac_cv_type_uid_t = no; then
6399 $as_echo "#define uid_t int" >>confdefs.h
6402 $as_echo "#define gid_t int" >>confdefs.h
6407 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6408 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6410 cat >>confdefs.h <<_ACEOF
6411 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6412 _ACEOF
6418 # Look for some functions
6419 for ac_func in getpagesize kqueue statfs statvfs \
6420 clone kse_create rfork_thread thr_create sa_register \
6421 getcontext makecontext setcontext sigaltstack swapcontext
6422 do :
6423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6424 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6425 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6426 cat >>confdefs.h <<_ACEOF
6427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6428 _ACEOF
6431 done
6437 for ac_header in $ac_header_list
6438 do :
6439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6440 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6443 cat >>confdefs.h <<_ACEOF
6444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 _ACEOF
6449 done
6458 for ac_func in getpagesize
6459 do :
6460 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6461 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6462 cat >>confdefs.h <<_ACEOF
6463 #define HAVE_GETPAGESIZE 1
6464 _ACEOF
6467 done
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6470 $as_echo_n "checking for working mmap... " >&6; }
6471 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test "$cross_compiling" = yes; then :
6475 ac_cv_func_mmap_fixed_mapped=no
6476 else
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 $ac_includes_default
6480 /* malloc might have been renamed as rpl_malloc. */
6481 #undef malloc
6483 /* Thanks to Mike Haertel and Jim Avera for this test.
6484 Here is a matrix of mmap possibilities:
6485 mmap private not fixed
6486 mmap private fixed at somewhere currently unmapped
6487 mmap private fixed at somewhere already mapped
6488 mmap shared not fixed
6489 mmap shared fixed at somewhere currently unmapped
6490 mmap shared fixed at somewhere already mapped
6491 For private mappings, we should verify that changes cannot be read()
6492 back from the file, nor mmap's back from the file at a different
6493 address. (There have been systems where private was not correctly
6494 implemented like the infamous i386 svr4.0, and systems where the
6495 VM page cache was not coherent with the file system buffer cache
6496 like early versions of FreeBSD and possibly contemporary NetBSD.)
6497 For shared mappings, we should conversely verify that changes get
6498 propagated back to all the places they're supposed to be.
6500 Grep wants private fixed already mapped.
6501 The main things grep needs to know about mmap are:
6502 * does it exist and is it safe to write into the mmap'd area
6503 * how to use it (BSD variants) */
6505 #include <fcntl.h>
6506 #include <sys/mman.h>
6508 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6509 char *malloc ();
6510 #endif
6512 /* This mess was copied from the GNU getpagesize.h. */
6513 #ifndef HAVE_GETPAGESIZE
6514 # ifdef _SC_PAGESIZE
6515 # define getpagesize() sysconf(_SC_PAGESIZE)
6516 # else /* no _SC_PAGESIZE */
6517 # ifdef HAVE_SYS_PARAM_H
6518 # include <sys/param.h>
6519 # ifdef EXEC_PAGESIZE
6520 # define getpagesize() EXEC_PAGESIZE
6521 # else /* no EXEC_PAGESIZE */
6522 # ifdef NBPG
6523 # define getpagesize() NBPG * CLSIZE
6524 # ifndef CLSIZE
6525 # define CLSIZE 1
6526 # endif /* no CLSIZE */
6527 # else /* no NBPG */
6528 # ifdef NBPC
6529 # define getpagesize() NBPC
6530 # else /* no NBPC */
6531 # ifdef PAGESIZE
6532 # define getpagesize() PAGESIZE
6533 # endif /* PAGESIZE */
6534 # endif /* no NBPC */
6535 # endif /* no NBPG */
6536 # endif /* no EXEC_PAGESIZE */
6537 # else /* no HAVE_SYS_PARAM_H */
6538 # define getpagesize() 8192 /* punt totally */
6539 # endif /* no HAVE_SYS_PARAM_H */
6540 # endif /* no _SC_PAGESIZE */
6542 #endif /* no HAVE_GETPAGESIZE */
6545 main ()
6547 char *data, *data2, *data3;
6548 const char *cdata2;
6549 int i, pagesize;
6550 int fd, fd2;
6552 pagesize = getpagesize ();
6554 /* First, make a file with some known garbage in it. */
6555 data = (char *) malloc (pagesize);
6556 if (!data)
6557 return 1;
6558 for (i = 0; i < pagesize; ++i)
6559 *(data + i) = rand ();
6560 umask (0);
6561 fd = creat ("conftest.mmap", 0600);
6562 if (fd < 0)
6563 return 2;
6564 if (write (fd, data, pagesize) != pagesize)
6565 return 3;
6566 close (fd);
6568 /* Next, check that the tail of a page is zero-filled. File must have
6569 non-zero length, otherwise we risk SIGBUS for entire page. */
6570 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6571 if (fd2 < 0)
6572 return 4;
6573 cdata2 = "";
6574 if (write (fd2, cdata2, 1) != 1)
6575 return 5;
6576 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6577 if (data2 == MAP_FAILED)
6578 return 6;
6579 for (i = 0; i < pagesize; ++i)
6580 if (*(data2 + i))
6581 return 7;
6582 close (fd2);
6583 if (munmap (data2, pagesize))
6584 return 8;
6586 /* Next, try to mmap the file at a fixed address which already has
6587 something else allocated at it. If we can, also make sure that
6588 we see the same garbage. */
6589 fd = open ("conftest.mmap", O_RDWR);
6590 if (fd < 0)
6591 return 9;
6592 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6593 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6594 return 10;
6595 for (i = 0; i < pagesize; ++i)
6596 if (*(data + i) != *(data2 + i))
6597 return 11;
6599 /* Finally, make sure that changes to the mapped area do not
6600 percolate back to the file as seen by read(). (This is a bug on
6601 some variants of i386 svr4.0.) */
6602 for (i = 0; i < pagesize; ++i)
6603 *(data2 + i) = *(data2 + i) + 1;
6604 data3 = (char *) malloc (pagesize);
6605 if (!data3)
6606 return 12;
6607 if (read (fd, data3, pagesize) != pagesize)
6608 return 13;
6609 for (i = 0; i < pagesize; ++i)
6610 if (*(data + i) != *(data3 + i))
6611 return 14;
6612 close (fd);
6613 return 0;
6615 _ACEOF
6616 if ac_fn_c_try_run "$LINENO"; then :
6617 ac_cv_func_mmap_fixed_mapped=yes
6618 else
6619 ac_cv_func_mmap_fixed_mapped=no
6621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6622 conftest.$ac_objext conftest.beam conftest.$ac_ext
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6627 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6628 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6630 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6633 rm -f conftest.mmap conftest.txt
6638 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6639 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6640 aros_config_ldflags=""
6642 aros_shared_default=yes
6644 aros_shared_cflags="-fPIC"
6645 aros_shared_aflags=""
6646 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6647 aros_kernel_ldflags="-Wl,-rpath,./lib"
6649 aros_target_ar_flags="cr"
6650 aros_target_nm_flags="-C -ul"
6651 aros_target_strip_flags="--strip-unneeded -R.comment"
6653 aros_compiler_libs=
6654 aros_arch_libs=
6656 aros_target_genmap="-Wl,-Map -Xlinker"
6658 # Native flavour stuff
6659 aros_serial_debug="0"
6661 # Palm native flavour stuff
6662 aros_palm_debug_hack="0"
6664 # Unix flavour stuff
6665 aros_nesting_supervisor="0"
6667 # Collect-aros stuff: "-ius" to ignore undefined symbols
6668 ignore_undefined_symbols=""
6670 # Check for X11 by default
6671 need_x11="auto"
6673 #-----------------------------------------------------------------------------
6676 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6677 # it switched on by default, and we use the host compiler, so it compiles AROS
6678 # code with this enabled resulting in link failures as we don't have support
6679 # for it.
6681 # We use two methods to disable it. For the host compiler (used to compile
6682 # some hosted modules), we test to see if the compiler supports stack
6683 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6684 # work on all platforms.
6686 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6687 # (this is done unconditionally, as it should have no effect on compilers
6688 # without the stack protection feature). This may be specific to the way that
6689 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6690 # strong enough to disable it in a generic way though, so we'll live with it
6691 # until another vendor ships GCC with it enabled in a different way, and deal
6692 # with it then.
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6696 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6697 save_cflags="$CFLAGS"
6698 CFLAGS="$CFLAGS -fno-stack-protector"
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6703 main ()
6707 return 0;
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 use_no_stack_protector="yes"
6712 else
6713 use_no_stack_protector="no"
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6717 $as_echo "$use_no_stack_protector" >&6; }
6718 if test "x-$use_no_stack_protector" = "x-yes" ; then
6719 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6721 CFLAGS="$save_cflags"
6723 #-----------------------------------------------------------------------------
6725 # Disable pointer-signedness warnings if the compiler recognises the option
6726 # (this only works for the host compiler at the moment)
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6729 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6730 save_cflags="$CFLAGS"
6731 CFLAGS="$CFLAGS -Wno-pointer-sign"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6736 main ()
6740 return 0;
6742 _ACEOF
6743 if ac_fn_c_try_compile "$LINENO"; then :
6744 use_no_sign_warning="yes"
6745 else
6746 use_no_sign_warning="no"
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6750 $as_echo "$use_no_sign_warning" >&6; }
6751 if test "x-$use_no_sign_warning" = "x-yes" ; then
6752 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6754 CFLAGS="$save_cflags"
6756 #-----------------------------------------------------------------------------
6758 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6761 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6762 save_cflags="$CFLAGS"
6763 CFLAGS="$CFLAGS -fgnu89-inline"
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6768 main ()
6772 return 0;
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776 use_gnu89_inline="yes"
6777 else
6778 use_gnu89_inline="no"
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6782 $as_echo "$use_gnu89_inline" >&6; }
6783 if test "x-$use_gnu89_inline" = "x-yes" ; then
6784 gnu89_inline="-fgnu89-inline"
6786 CFLAGS="$save_cflags"
6788 #-----------------------------------------------------------------------------
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6791 $as_echo_n "checking for type of build... " >&6; }
6792 # Check whether --enable-build_type was given.
6793 if test "${enable_build_type+set}" = set; then :
6794 enableval=$enable_build_type; build_type=$enableval
6795 else
6796 build_type="personal"
6800 if test "$build_type" = "nightly"; then
6801 build_type_string="NIGHTLY"
6802 elif test "$build_type" = "snapshot"; then
6803 build_type_string="SNAPSHOT"
6804 elif test "$build_type" = "milestone"; then
6805 build_type_string="MILESTONE"
6806 elif test "$build_type" = "release"; then
6807 build_type_string="RELEASE"
6808 else
6809 build_type_string="PERSONAL"
6810 build_type="personal"
6813 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6816 $as_echo "$build_type" >&6; }
6818 #-----------------------------------------------------------------------------
6819 all_debug_types="messages stack modules mungwall symbols"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6822 $as_echo_n "checking which debug types to enable... " >&6; }
6823 # Check whether --enable-debug was given.
6824 if test "${enable_debug+set}" = set; then :
6825 enableval=$enable_debug; debug="$enableval"
6826 else
6827 debug=""
6831 if test "$debug" = "" -o "$debug" = "no"; then
6832 debug="none"
6833 elif test "$debug" = "yes"; then
6834 debug="all"
6837 if test "$debug" = "all" ; then
6838 debug="messages stack modules symbols"
6839 for d in $all_debug_types; do
6840 export aros_${d}_debug="1"
6841 done
6842 else
6843 for d in $all_debug_types; do
6844 export aros_${d}_debug="0"
6845 done
6848 if test "$debug" != "none"; then
6849 debug=`echo $debug | sed s/,/\ /g`
6850 for d in $debug; do
6851 found="0"
6852 for d2 in $all_debug_types; do
6853 if test "$d2" = "$d"; then
6854 found="1"
6855 break
6857 done
6858 if test "$found" = "0"; then
6859 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6861 export aros_${d}_debug="1"
6862 done
6863 aros_debug="yes"
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6866 $as_echo "$debug" >&6; }
6868 if test "$aros_messages_debug" = "1"; then
6869 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6870 else
6871 aros_messages_debug=""
6873 if test "$aros_symbols_debug" = "1"; then
6874 aros_symbols_debug="-g"
6875 else
6876 aros_symbols_debug=""
6879 # These are the flags to pass when compiling debugged programs
6880 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6881 aros_debug_aflags=""
6882 aros_debug_ldflags="$aros_symbols_debug"
6884 #-----------------------------------------------------------------------------
6885 # Checking if we should build crosstools..
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6887 $as_echo_n "checking whether to build crosstools... " >&6; }
6888 # Check whether --enable-crosstools was given.
6889 if test "${enable_crosstools+set}" = set; then :
6890 enableval=$enable_crosstools; crosstools="$enableval"
6891 else
6892 crosstools="no"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6896 $as_echo "$crosstools" >&6; }
6898 #-----------------------------------------------------------------------------
6899 # Checking for distcc and ccache.
6901 # Always apply the transforms in this particular order. Basically you should
6902 # always run 'ccache distcc compiler' in that order for the best performance.
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6905 $as_echo_n "checking whether to enable distcc... " >&6; }
6906 # Check whether --enable-distcc was given.
6907 if test "${enable_distcc+set}" = set; then :
6908 enableval=$enable_distcc; distcc="$enableval"
6909 else
6910 distcc="no"
6913 if test "$distcc" != "" -a "$distcc" != "no"; then
6914 # AC_CHECK_PROG will print out the result in this case
6915 # Extract the first word of "distcc", so it can be a program name with args.
6916 set dummy distcc; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_path_DISTCC+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 case $DISTCC in
6923 [\\/]* | ?:[\\/]*)
6924 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6938 done
6939 done
6940 IFS=$as_save_IFS
6942 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6944 esac
6946 DISTCC=$ac_cv_path_DISTCC
6947 if test -n "$DISTCC"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6949 $as_echo "$DISTCC" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6956 else
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6962 $as_echo_n "checking whether to enable ccache... " >&6; }
6963 # Check whether --enable-ccache was given.
6964 if test "${enable_ccache+set}" = set; then :
6965 enableval=$enable_ccache; ccache="$enableval"
6966 else
6967 ccache="no"
6970 if test "$ccache" != "" -a "$ccache" != "no"; then
6971 # AC_CHECK_PROG will print out the result in this case
6972 # Extract the first word of "ccache", so it can be a program name with args.
6973 set dummy ccache; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$CCACHE"; then
6980 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_CCACHE="ccache"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6993 done
6994 done
6995 IFS=$as_save_IFS
6999 CCACHE=$ac_cv_prog_CCACHE
7000 if test -n "$CCACHE"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7002 $as_echo "$CCACHE" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7014 #-----------------------------------------------------------------------------
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7016 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7018 # Check whether --with-gcc-version was given.
7019 if test "${with_gcc_version+set}" = set; then :
7020 withval=$with_gcc_version; target_tool_version="$withval"
7021 else
7022 target_tool_version="default"
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7026 $as_echo "$target_tool_version" >&6; }
7028 #-----------------------------------------------------------------------------
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7030 $as_echo_n "checking what optimization flags to use... " >&6; }
7032 # Check whether --with-optimization was given.
7033 if test "${with_optimization+set}" = set; then :
7034 withval=$with_optimization; optimization="$withval"
7035 else
7036 optimization="unknown"
7039 if test "$optimization" = "unknown"; then
7040 if test "$debug" != "none"; then
7041 optimization="-O0"
7042 else
7043 optimization="-O2"
7046 aros_config_cflags="$aros_config_cflags $optimization"
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7048 $as_echo "$optimization" >&6; }
7050 #-----------------------------------------------------------------------------
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7052 $as_echo_n "checking what paranoia flags to use... " >&6; }
7054 # Check whether --with-paranoia was given.
7055 if test "${with_paranoia+set}" = set; then :
7056 withval=$with_paranoia; paranoia_flags="$withval"
7057 else
7058 paranoia_flags="default"
7061 if test "$paranoia_flags" = "default"; then
7062 paranoia_flags=""
7063 else if test "$paranoia_flags" = "yes"; then
7064 paranoia_flags="-Wall -Werror"
7065 fi fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7067 $as_echo "$paranoia_flags" >&6; }
7068 aros_paranoia_cflags="$paranoia_flags"
7070 #-----------------------------------------------------------------------------
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7072 $as_echo_n "checking what target variant to enable... " >&6; }
7073 # Check whether --enable-target_variant was given.
7074 if test "${enable_target_variant+set}" = set; then :
7075 enableval=$enable_target_variant; target_variant=$enableval
7076 else
7077 target_variant=""
7080 if test "$target_variant" = ""; then
7081 aros_target_variant=""
7082 aros_target_suffix=""
7083 enableval="none"
7084 else
7085 aros_target_variant="$target_variant"
7086 aros_target_suffix="-$target_variant"
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7089 $as_echo "$enableval" >&6; }
7091 #-----------------------------------------------------------------------------
7092 # Target-specific defaults. You can override then on a per-target basis.
7094 # Bootloader name. Currently used by PC target.
7095 target_bootloader="none"
7097 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7098 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7099 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7100 if test "$crosstools" != "yes"; then
7101 target_tool_prefix=${target_cpu}-elf-
7102 else
7103 target_tool_prefix=${target_cpu}-aros-
7106 #-----------------------------------------------------------------------------
7107 # Additional options for some specific targets
7109 case "$aros_target_variant" in
7110 ios)
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7112 $as_echo_n "checking XCode path... " >&6; }
7114 # Check whether --with-xcode was given.
7115 if test "${with_xcode+set}" = set; then :
7116 withval=$with_xcode; aros_xcode_path="$withval"
7117 else
7118 aros_xcode_path="/Developer"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7122 $as_echo "$aros_xcode_path" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7125 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7127 # Check whether --with-ios-version was given.
7128 if test "${with_ios_version+set}" = set; then :
7129 withval=$with_ios_version; aros_ios_version="$withval"
7130 else
7131 aros_ios_version="3.0"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7135 $as_echo "$aros_ios_version" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7138 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7140 # Check whether --with-ios-sdk was given.
7141 if test "${with_ios_sdk+set}" = set; then :
7142 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7143 else
7144 aros_ios_sdk="4.1"
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7148 $as_echo "$aros_ios_sdk" >&6; }
7152 "android")
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7154 $as_echo_n "checking Android SDK path... " >&6; }
7156 # Check whether --with-sdk was given.
7157 if test "${with_sdk+set}" = set; then :
7158 withval=$with_sdk; aros_android_sdk="$withval"
7159 else
7160 aros_android_sdk=$default_android_sdk
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7164 $as_echo "$aros_android_sdk" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7167 $as_echo_n "checking Android NDK path... " >&6; }
7169 # Check whether --with-ndk was given.
7170 if test "${with_ndk+set}" = set; then :
7171 withval=$with_ndk; aros_android_ndk="$withval"
7172 else
7173 aros_android_ndk="$default_android_ndk"
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7177 $as_echo "$aros_android_ndk" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7180 $as_echo_n "checking what Android version to use... " >&6; }
7182 # Check whether --with-android-version was given.
7183 if test "${with_android_version+set}" = set; then :
7184 withval=$with_android_version; aros_android_version="$withval"
7185 else
7186 aros_android_version="2.2"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7190 $as_echo "$aros_android_version" >&6; }
7192 export PATH="$aros_android_sdk/tools:$PATH"
7193 # Extract the first word of "$android_tool", so it can be a program name with args.
7194 set dummy $android_tool; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if test "${ac_cv_path_android_tool+set}" = set; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 case $android_tool in
7201 [\\/]* | ?:[\\/]*)
7202 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7216 done
7217 done
7218 IFS=$as_save_IFS
7221 esac
7223 android_tool=$ac_cv_path_android_tool
7224 if test -n "$android_tool"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7226 $as_echo "$android_tool" >&6; }
7227 else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7233 if test "$android_tool" = ""; then
7234 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7237 if test $host_os = "mingw32"; then
7238 android_tool="cmd //c $android_tool"
7242 esac
7244 #-----------------------------------------------------------------------------
7245 # This is the target configuration switch.
7246 case "$target_os" in
7247 linux*)
7248 aros_target_arch="linux"
7249 aros_target_family="unix"
7250 case "$target_cpu" in
7251 *m68k*)
7252 aros_target_cpu="m68k"
7253 aros_object_format="m68kelf"
7254 aros_flavour="emulcompat"
7255 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7256 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7257 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7258 gcc_target_cpu="mc68000"
7260 *i?86*)
7261 aros_target_cpu="i386"
7262 aros_object_format="elf_i386"
7263 aros_flavour="emulation"
7264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7265 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7266 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7267 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7268 aros_config_ldflags="-m32 -march=i486"
7269 aros_kernel_ldflags="-melf_i386"
7270 aros_default_wbdepth=8
7271 gcc_target_cpu="i386"
7272 pci_hidd_target="hidd-pci-linux"
7274 *x86_64*)
7275 aros_target_cpu="x86_64"
7276 aros_object_format="elf_x86_64"
7277 aros_flavour="emulation"
7278 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7279 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7280 aros_default_wbdepth=8
7281 pci_hidd_target="hidd-pci-linux"
7283 *powerpc*)
7284 aros_target_cpu="ppc"
7285 aros_object_format="elf32ppc"
7286 aros_flavour="emulation"
7287 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7288 aros_default_wbdepth=8
7289 gcc_target_cpu="ppc"
7291 # TODO
7292 # Same as powerpc, but I need this for the nightly build to work again.
7293 # Actually, the nightly should be made working with powerpc target.
7294 # That just was too much work for the moment, another week or two.
7295 *ppc*)
7296 aros_target_cpu="ppc"
7297 aros_object_format="elf32ppc"
7298 aros_flavour="emulation"
7299 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7300 aros_default_wbdepth=8
7301 gcc_target_cpu="ppc"
7303 *arm*)
7304 aros_target_cpu="arm"
7305 aros_object_format="armelf_linux_eabi"
7306 aros_flavour="emulation"
7307 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7308 gcc_target_cpu="arm"
7309 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7310 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7311 aros_arch_libs="-laeabi"
7314 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7316 esac
7317 case "$aros_target_variant" in
7318 android)
7319 case "$aros_android_version" in
7320 2.2)
7321 aros_android_level=android-8
7324 aros_android_level=android-9
7326 esac
7327 aros_default_wbwidth=320
7328 aros_default_wbheight=480
7329 use_aros_gcc="yes"
7330 if test "$aros_android_ndk" = ""; then
7331 aros_kernel_cflags="-mandroid"
7332 aros_kernel_ldflags="-mandroid"
7333 CFLAGS="-mandroid"
7334 else
7335 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7336 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7337 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7338 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7339 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7340 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7342 need_x11=no
7343 target_tool_prefix="arm-linux-androideabi-"
7345 esac
7349 aros_target_arch="pc"
7350 aros_shared_default="no"
7351 target_bootloader="grub2"
7352 case "$target_cpu" in
7353 *i?86*)
7354 aros_target_cpu="i386"
7357 if test "$aros_object_format" = "" ; then
7358 aros_object_format="elf_i386"
7360 aros_flavour="standalone"
7361 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7362 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7363 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7364 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7365 aros_config_ldflags="-m32 -march=i486"
7366 aros_kernel_ldflags="-melf_i386"
7367 aros_default_wbwidth=640
7368 aros_default_wbheight=480
7369 gcc_target_cpu="i386"
7371 *x86_64*)
7372 aros_target_cpu="x86_64"
7373 aros_serial_debug=1
7374 if test "$aros_object_format" = "" ; then
7375 aros_object_format="elf_x86_64"
7377 aros_flavour="standalone"
7378 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7379 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7380 aros_kernel_ldflags=""
7381 aros_default_wbwidth=640
7382 aros_default_wbheight=480
7385 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7387 esac
7390 prep)
7391 aros_target_arch="prep"
7392 aros_shared_default="no"
7393 aros_target_cpu="ppc"
7394 aros_object_format="elf32ppc"
7395 aros_flavour="ppcnative"
7396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7397 aros_kernel_ldflags=""
7398 aros_default_wbwidth=640
7399 aros_default_wbheight=480
7400 gcc_target_cpu="ppc"
7403 freebsd*)
7404 aros_target_arch="freebsd"
7405 aros_target_family="unix"
7406 aros_target_cpu="i386"
7407 aros_flavour="emulation"
7408 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7409 gcc_target_cpu="i386"
7411 aros_target_strip_flags="-x"
7414 darwin*)
7415 aros_target_arch="darwin"
7416 aros_target_family="unix"
7417 aros_flavour="emulation"
7418 case "$target_cpu" in
7419 *i?86*)
7420 aros_ios_platform="iPhoneSimulator"
7421 aros_target_cpu="i386"
7422 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7423 aros_kernel_ldflags=""
7424 aros_macosx_version="10.4"
7425 aros_default_wbdepth=8
7426 gcc_target_cpu="i386"
7427 aros_object_format="elf_i386"
7428 aros_target_strip_flags="-x"
7429 target_tool_prefix="i686-apple-darwin10-"
7430 target_tool_flags="-m32"
7432 *x86_64*)
7433 aros_target_cpu="x86_64"
7434 aros_object_format="elf_x86_64"
7435 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7436 aros_macosx_version="10.6"
7437 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7438 aros_kernel_cflags="-m64"
7439 aros_kernel_ldflags="-m64"
7440 aros_target_cflags="-mcmodel=large"
7441 aros_default_wbdepth=8
7442 aros_kernel_ld="ld"
7443 target_tool_prefix="i686-apple-darwin10-"
7445 *ppc*)
7446 aros_target_cpu="ppc"
7447 aros_object_format="elf32ppc"
7448 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7449 aros_kernel_ldflags=""
7450 aros_macosx_version="10.0"
7451 aros_default_wbdepth=8
7452 gcc_target_cpu="ppc"
7453 aros_kernel_ld="ld -arch ppc"
7454 target_tool_prefix="powerpc-apple-darwin10-"
7456 *arm*)
7457 aros_ios_platform="iPhoneOS"
7458 aros_target_cpu="arm"
7459 aros_object_format="armelf_linux_eabi"
7460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7461 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7462 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7463 aros_arch_libs="-laeabi"
7464 aros_default_wbdepth=8
7465 gcc_target_cpu="arm"
7466 aros_kernel_ld="ld -arch arm"
7467 target_tool_prefix="arm-apple-darwin10-"
7468 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7471 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7473 esac
7474 case "$aros_target_variant" in
7475 ios)
7476 aros_default_wbwidth=320
7477 aros_default_wbheight=480
7478 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7479 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7480 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7481 need_x11=no
7482 # This is here because it may depend on iOS or SDK version
7483 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7484 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7485 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7488 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7489 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7491 esac
7494 dragonfly*)
7495 aros_target_arch="dragonfly"
7496 aros_target_family="unix"
7497 aros_flavour="emulation"
7498 case "$target_cpu" in
7499 *i?86*)
7500 aros_target_cpu="i386"
7501 aros_object_format="elf_i386"
7502 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7504 *x86_64*)
7505 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7506 aros_target_cpu="x86_64"
7507 aros_object_format="elf_x86_64"
7508 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7511 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7513 esac
7516 netbsd*)
7517 aros_target_arch="netbsd"
7518 aros_target_family="unix"
7519 case "$target_cpu" in
7520 *m68k*)
7521 aros_target_cpu="m68k"
7522 aros_object_format="m68kelf"
7523 aros_flavour="emulcompat"
7524 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7525 gcc_target_cpu="mc68000"
7527 *i?86*)
7528 aros_target_cpu="i386"
7529 aros_object_format="elf_i386"
7530 aros_flavour="emulation"
7531 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7532 aros_default_wbdepth=8
7533 gcc_target_cpu="i386"
7536 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7538 esac
7539 aros_target_genmap="-Wl,-M -Xlinker >"
7540 aros_flavour="emulation"
7541 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7544 openbsd*)
7545 aros_target_arch="openbsd"
7546 aros_target_family="unix"
7547 case "$target_cpu" in
7548 *i?86*)
7549 aros_target_cpu="i386"
7550 aros_object_format="elf_i386"
7551 aros_flavour="emulation"
7552 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7553 gcc_target_cpu="i386"
7556 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7558 esac
7559 aros_target_genmap="-Wl,-M -Xlinker >"
7560 aros_target_nm_flags="-u"
7561 aros_flavour="emulation"
7564 solaris*)
7565 aros_target_arch="solaris"
7566 aros_target_family="unix"
7567 case "$target_cpu" in
7568 *i?86*)
7569 aros_target_cpu="i386"
7570 aros_object_format="elf_i386"
7571 aros_flavour="emulation"
7572 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7573 aros_default_wbdepth=8
7574 gcc_target_cpu="i386"
7576 *sparc*)
7577 aros_target_cpu="sparc"
7578 aros_object_format="elf_sparc"
7579 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7580 gcc_target_cpu="sparc"
7583 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7585 esac
7586 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7587 aros_flavour="emulation"
7590 morphos*)
7591 aros_target_arch="morphos"
7592 aros_shared_default="no"
7593 aros_target_cpu="ppc"
7594 aros_object_format="elf_ppc"
7595 aros_flavour="nativecompat"
7596 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7597 gcc_target_cpu="ppc"
7600 sam440)
7601 aros_target_arch="sam440"
7602 aros_shared_default="no"
7603 aros_target_cpu="ppc"
7604 aros_object_format="elf32ppc"
7605 aros_flavour="ppcnative"
7606 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7607 aros_kernel_ldflags=""
7608 aros_default_wbwidth=1024
7609 aros_default_wbheight=768
7610 aros_default_wbdepth=24
7611 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7612 gcc_target_cpu="powerpc"
7615 efika)
7616 aros_target_arch="efika"
7617 aros_shared_default="no"
7618 aros_target_cpu="arm"
7619 aros_object_format="armelf_linux_eabi"
7620 aros_flavour="standalone"
7621 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7622 aros_kernel_ldflags=""
7623 aros_default_wbwidth=1024
7624 aros_default_wbheight=600
7625 aros_arch_libs="-laeabi"
7626 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"
7627 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"
7630 chrp)
7631 aros_target_arch="chrp"
7632 aros_shared_default="no"
7633 aros_target_cpu="ppc"
7634 aros_object_format="elf32ppc"
7635 aros_flavour="ppcnative"
7636 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7637 aros_kernel_ldflags=""
7638 aros_default_wbwidth=640
7639 aros_default_wbheight=480
7640 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7641 gcc_target_cpu="powerpc"
7642 case "$aros_target_variant" in
7643 efika)
7644 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7646 esac
7649 amiga*)
7650 aros_target_arch="amiga"
7651 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7652 aros_shared_default="no"
7654 case "$target_cpu" in
7655 *m68k*)
7656 aros_enable_mmu=no
7657 aros_target_cpu="m68k"
7658 aros_object_format="m68kelf"
7659 aros_flavour="standcompat"
7660 gcc_target_cpu="m68000"
7661 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS"
7662 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7663 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
7664 aros_debug_cflags="$aros_debug_cflags -Wall -Wno-volatile-register-var"
7665 target_tool_prefix="m68k-elf-"
7666 # Needed to get the correct multilib
7667 aros_config_ldflags="-${gcc_target_cpu}"
7668 aros_shared_ldflags="-${gcc_target_cpu}"
7669 aros_kernel_ldflags="-${gcc_target_cpu}"
7670 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7671 aros_target_strip_flags="-R.comment --strip-debug"
7672 aros_default_wbwidth=640
7673 aros_default_wbheight=256
7674 aros_default_wbdepth=2
7676 *ppc*)
7677 aros_cpu="ppc"
7678 aros_flavour="native"
7679 gcc_target_cpu="ppc"
7682 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7684 esac
7687 mingw*)
7688 aros_target_arch="mingw32"
7689 aros_shared_default="no"
7690 aros_flavour="emulation"
7691 aros_shared_cflags=""
7692 need_dlopen="no"
7693 rescomp="windres"
7694 case "$target_cpu" in
7695 *i?86*)
7696 aros_target_cpu="i386"
7697 aros_object_format="elf_i386"
7698 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7699 aros_default_wbdepth=8
7700 gcc_target_cpu="i386"
7702 aros_target_as="i386-aros-as"
7703 aros_target_ar="i386-aros-ar"
7704 aros_target_ranlib="i386-aros-ranlib"
7705 aros_target_nm="i386-aros-nm"
7706 aros_target_strip="i386-aros-strip"
7707 aros_target_objcopy="i386-aros-objcopy"
7708 aros_target_objdump="i386-aros-objdump"
7710 target_tool_prefix="i386-mingw32-"
7712 *x86_64*)
7713 aros_target_cpu="x86_64"
7714 aros_object_format="elf_x86_64"
7715 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7716 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7717 aros_default_wbdepth=8
7718 target_tool_prefix="x86_64-w64-mingw32-"
7720 *arm*)
7721 aros_target_cpu="arm"
7722 aros_object_format="armelf_linux_eabi"
7723 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7724 aros_arch_libs="-laeabi"
7725 aros_default_wbdepth=8
7726 gcc_target_cpu="arm"
7727 target_tool_prefix="arm-mingw32ce-"
7728 aros_default_wbwidth=160
7729 aros_default_wbheight=160
7732 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7734 esac
7735 if test $host_os = "cygwin"; then
7736 aros_kernel_cflags="-mno-cygwin"
7739 pp*)
7740 aros_target_arch="pp"
7741 aros_shared_default="no"
7742 case "$target_cpu" in
7743 *m68k*)
7744 aros_target_cpu="m68k"
7745 aros_object_format="m68kelf"
7746 aros_flavour="palmnative"
7747 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7748 aros_default_wbwidth=160
7749 aros_default_wbheight=160
7750 aros_default_wbdepth=1
7751 aros_target_ar_flags="cru"
7752 aros_compiler_libs="-lgcc1"
7753 aros_shared_default=no
7754 aros_shared_cflags="-fpic"
7755 aros_shared_aflags=""
7756 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7757 aros_kernel_ldflags="-Wl,-rpath,./lib"
7758 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7759 aros_debug_aflags=""
7760 aros_debug_ldflags="$aros_symbols_debug"
7761 aros_mungwall_debug="0"
7762 aros_modules_debug="0"
7763 gcc_target_cpu="mc68000"
7764 ignore_undefined_symbols="-ius"
7767 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7769 esac
7772 mac*)
7773 aros_target_arch="mac"
7774 aros_shared_default="no"
7775 case "$target_cpu" in
7776 *m68k*)
7777 aros_target_cpu="m68k"
7778 aros_object_format="m68kelf"
7779 aros_flavour="mac68knative"
7780 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7781 aros_default_wbwidth=512
7782 aros_default_wbheight=384
7783 aros_default_wbdepth=8
7784 aros_target_ar_flags="cru"
7785 aros_compiler_libs="-lgcc1"
7786 aros_shared_default=no
7787 aros_shared_cflags="-fpic"
7788 aros_shared_aflags=""
7789 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7790 aros_kernel_ldflags="-Wl,-rpath,./lib"
7791 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7792 aros_debug_aflags=""
7793 aros_debug_ldflags="$aros_symbols_debug"
7794 aros_mungwall_debug="0"
7795 aros_modules_debug="0"
7796 gcc_target_cpu="mc68000"
7797 ignore_undefined_symbols="-ius"
7800 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7802 esac
7806 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7808 esac
7810 #-----------------------------------------------------------------------------
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7812 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7814 # Check whether --with-crosstools was given.
7815 if test "${with_crosstools+set}" = set; then :
7816 withval=$with_crosstools; with_crosstools=$withval
7817 else
7818 with_crosstools="default"
7821 if test "$with_crosstools" = "default"; then
7822 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7823 else
7824 AROS_CROSSTOOLSDIR="$with_crosstools"
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7827 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7829 if test "$crosstools" != "yes" -a "$with_crosstools" != "default"; then
7830 use_aros_gcc=yes
7831 PATH=$AROS_CROSSTOOLSDIR:$PATH
7832 target_tool_prefix=${target_cpu}-aros-
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7836 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7838 # Check whether --with-aros-gcc was given.
7839 if test "${with_aros_gcc+set}" = set; then :
7840 withval=$with_aros_gcc; aros_gcc_version="$withval"
7841 else
7842 aros_gcc_version="$use_aros_gcc"
7845 case "$aros_gcc_version" in
7846 yes)
7847 aros_gcc_version="default"
7850 aros_gcc_version="none"
7852 esac
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7854 $as_echo "$aros_gcc_version" >&6; }
7856 if test "$aros_gcc_version" != "none" -o "$crosstools" = "yes"; then
7857 if test "$aros_gcc_version" != "default" -a "$aros_gcc_version" != "none"; then
7858 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7859 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7860 else
7861 aros_target_cc="$aros_target_cpu-aros-gcc"
7862 aros_target_cxx="$aros_target_cpu-aros-g++"
7865 aros_target_ld="$aros_target_cpu-aros-ld"
7866 aros_target_as="$aros_target_cpu-aros-as"
7867 aros_target_ar="$aros_target_cpu-aros-ar"
7868 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7869 aros_target_nm="$aros_target_cpu-aros-nm"
7870 aros_target_strip="$aros_target_cpu-aros-strip"
7871 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7872 aros_target_objdump="$aros_target_cpu-aros-objdump"
7875 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7876 # Since we override specs, we may need to put these defines there
7877 if test "$gcc_target_cpu" != ""; then
7878 gcc_target_cpu="-D__${gcc_target_cpu}__"
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7882 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7884 # Check whether --with-portssources was given.
7885 if test "${with_portssources+set}" = set; then :
7886 withval=$with_portssources; with_portssrcdir=$withval
7887 else
7888 with_portssrcdir="default"
7891 if test "$with_portssrcdir" = "default"; then
7892 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7893 else
7894 AROS_PORTSSRCDIR="$with_portssrcdir"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7897 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7900 $as_echo_n "checking which bootloader to use... " >&6; }
7902 # Check whether --with-bootloader was given.
7903 if test "${with_bootloader+set}" = set; then :
7904 withval=$with_bootloader; target_bootloader=$withval
7905 else
7906 target_bootloader=$target_bootloader
7909 if test "$target_bootloader" = "none"; then
7910 aros_target_bootloader=""
7911 else
7912 aros_target_bootloader="$target_bootloader"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7915 $as_echo "$target_bootloader" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7918 $as_echo_n "checking which icon-set to use... " >&6; }
7920 # Check whether --with-iconset was given.
7921 if test "${with_iconset+set}" = set; then :
7922 withval=$with_iconset; target_iconset=$withval
7923 else
7924 target_iconset="default"
7927 if test "$target_iconset" = "default"; then
7928 aros_target_iconset="Gorilla"
7929 target_iconset="default (Gorilla)"
7930 else
7931 aros_target_iconset="$target_iconset"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7934 $as_echo "$target_iconset" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7937 $as_echo_n "checking which GUI Theme to use... " >&6; }
7939 # Check whether --with-theme was given.
7940 if test "${with_theme+set}" = set; then :
7941 withval=$with_theme; target_guitheme=$withval
7942 else
7943 target_guitheme="default"
7946 if test "$target_guitheme" = "default"; then
7947 aros_target_guitheme="Ice"
7948 else
7949 aros_target_guitheme="$target_guitheme"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7952 $as_echo "$aros_target_guitheme" >&6; }
7954 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7955 # for target code)
7956 cross_compiling=no
7957 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7958 cross_compiling=yes
7961 if test "$aros_host_cpu" == "x86_64" ; then
7962 if test "$aros_target_cpu" == "i386" ; then
7963 if test "$aros_target_arch" != "mingw32"; then
7964 cross_compiling=no
7969 if test "$aros_host_arch" == "darwin" ; then
7970 if test "$aros_target_arch" != "darwin" ; then
7971 cross_compiling=yes
7975 # I want to have this information in configure output, although it might be
7976 # misleading, e.g. for darwin hosted you cannot compile target code without a
7977 # cross compiler, but here it says no.
7978 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
7980 # Set prefix for target compiler etc. if we're cross-compiling
7981 # (should possibly be earlier but needs to be after AC_PROG_CC)
7982 if test "$cross_compiling" = "yes" ; then
7983 CC=${target_tool_prefix}gcc
7984 CPP=${target_tool_prefix}cpp
7985 if test "$target_tool_version" != "default"; then
7986 CC="$CC-$target_tool_version"
7987 CPP="$CC-$target_tool_version"
7989 if test "$crosstools" != "yes" ; then
7990 # Extract the first word of "$CC", so it can be a program name with args.
7991 set dummy $CC; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_path_CC+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 case $CC in
7998 [\\/]* | ?:[\\/]*)
7999 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8013 done
8014 done
8015 IFS=$as_save_IFS
8018 esac
8020 CC=$ac_cv_path_CC
8021 if test -n "$CC"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8023 $as_echo "$CC" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8030 if test "$CC" = ""; then
8031 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8033 else
8034 CC=$AROS_CROSSTOOLSDIR/$CC
8037 CC="$CC $target_tool_flags"
8039 #-----------------------------------------------------------------------------
8041 # Disable pointer-signedness warnings if the compiler recognises the option
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8044 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8045 save_cflags="$CFLAGS"
8046 if test "$crosstools" != "yes" ; then
8047 CFLAGS="$CFLAGS -Wno-pointer-sign"
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8052 main ()
8056 return 0;
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060 use_no_sign_warning="yes"
8061 else
8062 use_no_sign_warning="no"
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 else
8066 # we do know it is supported for the smallest version of gcc we are going to build
8067 # we assume it's also supported by later versions
8068 use_no_sign_warning=yes
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8071 $as_echo "$use_no_sign_warning" >&6; }
8072 if test "x-$use_no_sign_warning" = "x-yes" ; then
8073 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8075 CFLAGS="$save_cflags"
8077 #-----------------------------------------------------------------------------
8079 # Find all the tools we need to compile. This could be cross-compiling
8080 # though! If that is the case we use the GNU form of the target and
8081 # simply add this to the front of the binary name. This is rather simple,
8082 # but it should work under most circumstances.
8084 # The default tools are to use the same as the host, but only if the
8085 # host and target CPU are the same. With GCC this is normally enough.
8088 aros_cc_pre=""
8089 aros_shared_ld="$aros_host_ld"
8091 aros_target_mkdep="$aros_host_mkdep"
8092 aros_target_incl_def="$aros_host_incl"
8094 aros_kernel_cc="$CC"
8096 # The default tools executables to be linked to.
8097 if test "$rescomp" != ""; then
8098 if test "$cross_compiling" = "yes" ; then
8099 rescomp=${target_tool_prefix}${rescomp}
8101 # Extract the first word of "$rescomp", so it can be a program name with args.
8102 set dummy $rescomp; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 case $aros_kernel_rescomp in
8109 [\\/]* | ?:[\\/]*)
8110 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8124 done
8125 done
8126 IFS=$as_save_IFS
8129 esac
8131 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8132 if test -n "$aros_kernel_rescomp"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8134 $as_echo "$aros_kernel_rescomp" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8141 if test "$aros_kernel_rescomp" = ""; then
8142 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8146 if test "$crosstools" != "yes"; then
8148 if test "$aros_kernel_ld" = ""; then
8149 if test "$cross_compiling" = "yes" ; then
8150 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8151 set dummy ${target_tool_prefix}ld; ac_word=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 case $aros_kernel_ld in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8178 esac
8180 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8181 if test -n "$aros_kernel_ld"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8183 $as_echo "$aros_kernel_ld" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8190 else
8191 if test "$GCC" = "yes"; then
8192 aros_gcc_ld=`$CC -print-prog-name=ld`
8193 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8194 set dummy `basename $aros_gcc_ld`; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 case $aros_kernel_ld in
8201 [\\/]* | ?:[\\/]*)
8202 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in `dirname $aros_gcc_ld`
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8216 done
8217 done
8218 IFS=$as_save_IFS
8221 esac
8223 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8224 if test -n "$aros_kernel_ld"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8226 $as_echo "$aros_kernel_ld" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8234 if test "$aros_kernel_ld" = ""; then
8235 # Extract the first word of "ld", so it can be a program name with args.
8236 set dummy ld; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 case $aros_kernel_ld in
8243 [\\/]* | ?:[\\/]*)
8244 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8258 done
8259 done
8260 IFS=$as_save_IFS
8263 esac
8265 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8266 if test -n "$aros_kernel_ld"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8268 $as_echo "$aros_kernel_ld" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8277 else
8278 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8279 set dummy $aros_kernel_ld; ac_word=$2
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 $as_echo_n "checking for $ac_word... " >&6; }
8282 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 case $aros_kernel_ld in
8286 [\\/]* | ?:[\\/]*)
8287 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8301 done
8302 done
8303 IFS=$as_save_IFS
8306 esac
8308 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8309 if test -n "$aros_kernel_ld"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8311 $as_echo "$aros_kernel_ld" >&6; }
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8320 if test "$aros_kernel_ld" = ""; then
8321 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8324 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8325 target_tool_prefix=${target_cpu}-elf-
8326 if test "$aros_target_cc" == ""; then
8327 aros_target_cc="${target_tool_prefix}gcc"
8329 if test "$aros_target_ld" == ""; then
8330 aros_target_ld="${target_tool_prefix}ld"
8334 if test "$aros_target_as" = ""; then
8335 if test "$cross_compiling" = "yes" ; then
8336 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8337 set dummy ${target_tool_prefix}as; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 case $aros_target_as_ln in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8359 done
8360 done
8361 IFS=$as_save_IFS
8364 esac
8366 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8367 if test -n "$aros_target_as_ln"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8369 $as_echo "$aros_target_as_ln" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8376 else
8377 if test "$GCC" = "yes"; then
8378 aros_gcc_as=`$CC -print-prog-name=as`
8379 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8380 set dummy `basename $aros_gcc_as`; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $aros_target_as_ln in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in `dirname $aros_gcc_as`
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8402 done
8403 done
8404 IFS=$as_save_IFS
8407 esac
8409 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8410 if test -n "$aros_target_as_ln"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8412 $as_echo "$aros_target_as_ln" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8420 if test "$aros_target_as_ln" = ""; then
8421 # Extract the first word of "as", so it can be a program name with args.
8422 set dummy as; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 case $aros_target_as_ln in
8429 [\\/]* | ?:[\\/]*)
8430 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8440 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8444 done
8445 done
8446 IFS=$as_save_IFS
8449 esac
8451 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8452 if test -n "$aros_target_as_ln"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8454 $as_echo "$aros_target_as_ln" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8463 else
8464 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8465 set dummy $aros_target_as; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 case $aros_target_as_ln in
8472 [\\/]* | ?:[\\/]*)
8473 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8487 done
8488 done
8489 IFS=$as_save_IFS
8492 esac
8494 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8495 if test -n "$aros_target_as_ln"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8497 $as_echo "$aros_target_as_ln" >&6; }
8498 else
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8506 if test "$aros_target_as_ln" = ""; then
8507 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8510 if test "$aros_target_ar" = ""; then
8511 if test "$cross_compiling" = "yes" ; then
8512 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8513 set dummy ${target_tool_prefix}ar; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 case $aros_target_ar_ln in
8520 [\\/]* | ?:[\\/]*)
8521 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8540 esac
8542 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8543 if test -n "$aros_target_ar_ln"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8545 $as_echo "$aros_target_ar_ln" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8552 else
8553 if test "$GCC" = "yes"; then
8554 aros_gcc_ar=`$CC -print-prog-name=ar`
8555 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8556 set dummy `basename $aros_gcc_ar`; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 case $aros_target_ar_ln in
8563 [\\/]* | ?:[\\/]*)
8564 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in `dirname $aros_gcc_ar`
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8578 done
8579 done
8580 IFS=$as_save_IFS
8583 esac
8585 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8586 if test -n "$aros_target_ar_ln"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8588 $as_echo "$aros_target_ar_ln" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 if test "$aros_target_ar_ln" = ""; then
8597 # Extract the first word of "ar", so it can be a program name with args.
8598 set dummy ar; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 case $aros_target_ar_ln in
8605 [\\/]* | ?:[\\/]*)
8606 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8616 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 break 2
8620 done
8621 done
8622 IFS=$as_save_IFS
8625 esac
8627 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8628 if test -n "$aros_target_ar_ln"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8630 $as_echo "$aros_target_ar_ln" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8639 else
8640 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8641 set dummy $aros_target_ar; ac_word=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 case $aros_target_ar_ln in
8648 [\\/]* | ?:[\\/]*)
8649 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 for as_dir in $PATH
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8659 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 break 2
8663 done
8664 done
8665 IFS=$as_save_IFS
8668 esac
8670 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8671 if test -n "$aros_target_ar_ln"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8673 $as_echo "$aros_target_ar_ln" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8682 if test "$aros_target_ar_ln" = ""; then
8683 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8686 if test "$aros_target_nm" = ""; then
8687 if test "$cross_compiling" = "yes" ; then
8688 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8689 set dummy ${target_tool_prefix}nm; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 case $aros_target_nm_ln in
8696 [\\/]* | ?:[\\/]*)
8697 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8716 esac
8718 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8719 if test -n "$aros_target_nm_ln"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8721 $as_echo "$aros_target_nm_ln" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8728 else
8729 if test "$GCC" = "yes"; then
8730 aros_gcc_nm=`$CC -print-prog-name=nm`
8731 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8732 set dummy `basename $aros_gcc_nm`; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 case $aros_target_nm_ln in
8739 [\\/]* | ?:[\\/]*)
8740 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in `dirname $aros_gcc_nm`
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8759 esac
8761 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8762 if test -n "$aros_target_nm_ln"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8764 $as_echo "$aros_target_nm_ln" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8772 if test "$aros_target_nm_ln" = ""; then
8773 # Extract the first word of "nm", so it can be a program name with args.
8774 set dummy nm; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 case $aros_target_nm_ln in
8781 [\\/]* | ?:[\\/]*)
8782 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8796 done
8797 done
8798 IFS=$as_save_IFS
8801 esac
8803 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8804 if test -n "$aros_target_nm_ln"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8806 $as_echo "$aros_target_nm_ln" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8815 else
8816 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8817 set dummy $aros_target_nm; ac_word=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 case $aros_target_nm_ln in
8824 [\\/]* | ?:[\\/]*)
8825 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8835 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8839 done
8840 done
8841 IFS=$as_save_IFS
8844 esac
8846 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8847 if test -n "$aros_target_nm_ln"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8849 $as_echo "$aros_target_nm_ln" >&6; }
8850 else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8858 if test "$aros_target_nm_ln" = ""; then
8859 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8862 if test "$aros_target_objcopy" = ""; then
8863 if test "$cross_compiling" = "yes" ; then
8864 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8865 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 case $aros_target_objcopy_ln in
8872 [\\/]* | ?:[\\/]*)
8873 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8887 done
8888 done
8889 IFS=$as_save_IFS
8892 esac
8894 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8895 if test -n "$aros_target_objcopy_ln"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8897 $as_echo "$aros_target_objcopy_ln" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8904 else
8905 if test "$GCC" = "yes"; then
8906 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8907 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8908 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 case $aros_target_objcopy_ln in
8915 [\\/]* | ?:[\\/]*)
8916 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in `dirname $aros_gcc_objcopy`
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8926 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8930 done
8931 done
8932 IFS=$as_save_IFS
8935 esac
8937 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8938 if test -n "$aros_target_objcopy_ln"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8940 $as_echo "$aros_target_objcopy_ln" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8948 if test "$aros_target_objcopy_ln" = ""; then
8949 # Extract the first word of "objcopy", so it can be a program name with args.
8950 set dummy objcopy; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 case $aros_target_objcopy_ln in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8972 done
8973 done
8974 IFS=$as_save_IFS
8977 esac
8979 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8980 if test -n "$aros_target_objcopy_ln"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8982 $as_echo "$aros_target_objcopy_ln" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8991 else
8992 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8993 set dummy $aros_target_objcopy; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 case $aros_target_objcopy_ln in
9000 [\\/]* | ?:[\\/]*)
9001 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9015 done
9016 done
9017 IFS=$as_save_IFS
9020 esac
9022 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9023 if test -n "$aros_target_objcopy_ln"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9025 $as_echo "$aros_target_objcopy_ln" >&6; }
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9034 if test "$aros_target_objcopy_ln" = ""; then
9035 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9038 if test "$aros_target_objdump" = ""; then
9039 if test "$cross_compiling" = "yes" ; then
9040 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9041 set dummy ${target_tool_prefix}objdump; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 case $aros_target_objdump_ln in
9048 [\\/]* | ?:[\\/]*)
9049 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9063 done
9064 done
9065 IFS=$as_save_IFS
9068 esac
9070 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9071 if test -n "$aros_target_objdump_ln"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9073 $as_echo "$aros_target_objdump_ln" >&6; }
9074 else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9080 else
9081 if test "$GCC" = "yes"; then
9082 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9083 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9084 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 case $aros_target_objdump_ln in
9091 [\\/]* | ?:[\\/]*)
9092 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 for as_dir in `dirname $aros_gcc_objdump`
9098 IFS=$as_save_IFS
9099 test -z "$as_dir" && as_dir=.
9100 for ac_exec_ext in '' $ac_executable_extensions; do
9101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9102 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 break 2
9106 done
9107 done
9108 IFS=$as_save_IFS
9111 esac
9113 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9114 if test -n "$aros_target_objdump_ln"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9116 $as_echo "$aros_target_objdump_ln" >&6; }
9117 else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9124 if test "$aros_target_objdump_ln" = ""; then
9125 # Extract the first word of "objdump", so it can be a program name with args.
9126 set dummy objdump; ac_word=$2
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128 $as_echo_n "checking for $ac_word... " >&6; }
9129 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 case $aros_target_objdump_ln in
9133 [\\/]* | ?:[\\/]*)
9134 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9140 IFS=$as_save_IFS
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 break 2
9148 done
9149 done
9150 IFS=$as_save_IFS
9153 esac
9155 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9156 if test -n "$aros_target_objdump_ln"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9158 $as_echo "$aros_target_objdump_ln" >&6; }
9159 else
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9167 else
9168 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9169 set dummy $aros_target_objdump; ac_word=$2
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171 $as_echo_n "checking for $ac_word... " >&6; }
9172 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 case $aros_target_objdump_ln in
9176 [\\/]* | ?:[\\/]*)
9177 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 for as_dir in $PATH
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
9185 for ac_exec_ext in '' $ac_executable_extensions; do
9186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9187 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189 break 2
9191 done
9192 done
9193 IFS=$as_save_IFS
9196 esac
9198 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9199 if test -n "$aros_target_objdump_ln"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9201 $as_echo "$aros_target_objdump_ln" >&6; }
9202 else
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9210 if test "$aros_target_objdump_ln" = ""; then
9211 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9214 if test "$aros_target_ranlib" = ""; then
9215 if test "$cross_compiling" = "yes" ; then
9216 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9217 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 $as_echo_n "checking for $ac_word... " >&6; }
9220 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 case $aros_target_ranlib_ln in
9224 [\\/]* | ?:[\\/]*)
9225 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9231 IFS=$as_save_IFS
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 break 2
9239 done
9240 done
9241 IFS=$as_save_IFS
9244 esac
9246 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9247 if test -n "$aros_target_ranlib_ln"; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9249 $as_echo "$aros_target_ranlib_ln" >&6; }
9250 else
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9256 else
9257 if test "$GCC" = "yes"; then
9258 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9259 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9260 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262 $as_echo_n "checking for $ac_word... " >&6; }
9263 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 case $aros_target_ranlib_ln in
9267 [\\/]* | ?:[\\/]*)
9268 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in `dirname $aros_gcc_ranlib`
9274 IFS=$as_save_IFS
9275 test -z "$as_dir" && as_dir=.
9276 for ac_exec_ext in '' $ac_executable_extensions; do
9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9278 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 break 2
9282 done
9283 done
9284 IFS=$as_save_IFS
9287 esac
9289 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9290 if test -n "$aros_target_ranlib_ln"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9292 $as_echo "$aros_target_ranlib_ln" >&6; }
9293 else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9300 if test "$aros_target_ranlib_ln" = ""; then
9301 # Extract the first word of "ranlib", so it can be a program name with args.
9302 set dummy ranlib; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 case $aros_target_ranlib_ln in
9309 [\\/]* | ?:[\\/]*)
9310 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in $PATH
9316 IFS=$as_save_IFS
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9320 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 break 2
9324 done
9325 done
9326 IFS=$as_save_IFS
9329 esac
9331 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9332 if test -n "$aros_target_ranlib_ln"; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9334 $as_echo "$aros_target_ranlib_ln" >&6; }
9335 else
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 $as_echo "no" >&6; }
9343 else
9344 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9345 set dummy $aros_target_ranlib; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 case $aros_target_ranlib_ln in
9352 [\\/]* | ?:[\\/]*)
9353 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 for as_dir in $PATH
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9363 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9365 break 2
9367 done
9368 done
9369 IFS=$as_save_IFS
9372 esac
9374 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9375 if test -n "$aros_target_ranlib_ln"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9377 $as_echo "$aros_target_ranlib_ln" >&6; }
9378 else
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9386 if test "$aros_target_ranlib_ln" = ""; then
9387 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9390 if test "$aros_target_strip" = ""; then
9391 if test "$cross_compiling" = "yes" ; then
9392 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9393 set dummy ${target_tool_prefix}strip; ac_word=$2
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 $as_echo_n "checking for $ac_word... " >&6; }
9396 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 case $aros_target_strip_ln in
9400 [\\/]* | ?:[\\/]*)
9401 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405 for as_dir in $PATH
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9411 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9415 done
9416 done
9417 IFS=$as_save_IFS
9420 esac
9422 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9423 if test -n "$aros_target_strip_ln"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9425 $as_echo "$aros_target_strip_ln" >&6; }
9426 else
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9432 else
9433 if test "$GCC" = "yes"; then
9434 aros_gcc_strip=`$CC -print-prog-name=strip`
9435 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9436 set dummy `basename $aros_gcc_strip`; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 case $aros_target_strip_ln in
9443 [\\/]* | ?:[\\/]*)
9444 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448 for as_dir in `dirname $aros_gcc_strip`
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9454 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9456 break 2
9458 done
9459 done
9460 IFS=$as_save_IFS
9463 esac
9465 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9466 if test -n "$aros_target_strip_ln"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9468 $as_echo "$aros_target_strip_ln" >&6; }
9469 else
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9476 if test "$aros_target_strip_ln" = ""; then
9477 # Extract the first word of "strip", so it can be a program name with args.
9478 set dummy strip; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 case $aros_target_strip_ln in
9485 [\\/]* | ?:[\\/]*)
9486 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 for as_dir in $PATH
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 break 2
9500 done
9501 done
9502 IFS=$as_save_IFS
9505 esac
9507 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9508 if test -n "$aros_target_strip_ln"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9510 $as_echo "$aros_target_strip_ln" >&6; }
9511 else
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9519 else
9520 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9521 set dummy $aros_target_strip; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 case $aros_target_strip_ln in
9528 [\\/]* | ?:[\\/]*)
9529 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 for as_dir in $PATH
9535 IFS=$as_save_IFS
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 break 2
9543 done
9544 done
9545 IFS=$as_save_IFS
9548 esac
9550 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9551 if test -n "$aros_target_strip_ln"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9553 $as_echo "$aros_target_strip_ln" >&6; }
9554 else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9562 if test "$aros_target_strip_ln" = ""; then
9563 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9565 if test "$aros_target_cxx" != ""; then
9566 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9567 set dummy $aros_target_cxx; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 case $aros_target_cxx in
9574 [\\/]* | ?:[\\/]*)
9575 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579 for as_dir in $PATH
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
9583 for ac_exec_ext in '' $ac_executable_extensions; do
9584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9585 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587 break 2
9589 done
9590 done
9591 IFS=$as_save_IFS
9594 esac
9596 aros_target_cxx=$ac_cv_path_aros_target_cxx
9597 if test -n "$aros_target_cxx"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9599 $as_echo "$aros_target_cxx" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9606 if test "$aros_target_cxx" = ""; then
9607 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9610 else
9611 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
9612 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
9613 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
9614 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
9615 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
9616 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
9617 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
9618 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
9619 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
9621 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
9623 crosstools_target=tools-crosstools
9626 orig_target_cc=$aros_kernel_cc
9627 orig_target_ld=$aros_kernel_ld
9629 if test "$crosstools" != "yes"; then
9630 if test "$aros_target_cc" != ""; then
9631 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9632 set dummy $aros_target_cc; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 case $aros_target_cc in
9639 [\\/]* | ?:[\\/]*)
9640 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9654 done
9655 done
9656 IFS=$as_save_IFS
9659 esac
9661 aros_target_cc=$ac_cv_path_aros_target_cc
9662 if test -n "$aros_target_cc"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
9664 $as_echo "$aros_target_cc" >&6; }
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9671 if test "$aros_target_cc" = ""; then
9672 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
9674 orig_target_cc=$aros_target_cc
9676 if test "$aros_target_ld" != ""; then
9677 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9678 set dummy $aros_target_ld; ac_word=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 case $aros_target_ld in
9685 [\\/]* | ?:[\\/]*)
9686 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9700 done
9701 done
9702 IFS=$as_save_IFS
9705 esac
9707 aros_target_ld=$ac_cv_path_aros_target_ld
9708 if test -n "$aros_target_ld"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
9710 $as_echo "$aros_target_ld" >&6; }
9711 else
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9717 if test "$aros_target_ld" = ""; then
9718 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9720 orig_target_ld=$aros_target_ld
9722 else
9723 orig_target_cc=$aros_target_cc
9724 orig_target_ld=$aros_target_ld
9727 # Build crosstools if we have no C++ - temporary thing
9728 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
9729 crosstools_cxx_target=tools-crosstools
9732 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9733 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9734 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9735 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9736 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9737 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9738 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9740 # aros_cc_pre is a variable that is added to the front of the compiler name
9741 # in the generated aros-gcc shell script. We need this to enable the cache
9742 # to work across cleaned builds. Also, support DISTCC using the correct
9743 # environment variable.
9746 if test "x${DISTCC}" != "x" ; then
9747 if test "x${CCACHE}" != "x" ; then
9748 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9749 else
9750 aros_cc_pre="${DISTCC} "
9752 else
9753 if test "x${CCACHE}" != "x" ; then
9754 aros_cc_pre="${CCACHE} "
9758 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9760 aros_target_nostdinc_cflags=-nostdinc
9762 aros_target_nostartup_ldflags=-nostartfiles
9764 aros_target_nix_ldflags=-nix
9766 aros_target_detach_ldflags=-detach
9768 aros_target_nostdlib_ldflags=-nostdlib
9771 # Target tools
9772 if test "$crosstools" != "yes"; then
9773 if test "$GCC" = "yes"; then
9774 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9776 else
9777 # We do not know which gcc version we are going to build and what we need to know
9778 # here is different for different versions so this will be set later during the
9779 # build of crosstools.
9780 aros_target_cc_path=@aros_target_cc_path@
9782 aros_target_cc="${prefix}-gcc"
9783 aros_target_as="${prefix}-as"
9784 aros_target_ld="${prefix}-ld"
9785 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9786 aros_target_objcopy=${prefix}-objcopy
9787 aros_target_objdump=${prefix}-objdump
9788 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9789 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9790 aros_kernel_nm="${prefix}-nm"
9791 aros_target_strip=${prefix}-strip
9792 aros_kernel_ar="${prefix}-ar"
9794 # Find the system include path. We can suggest that an alternative is
9795 # used if we don't get it correct. The default is to use /usr/include.
9796 # Which is set in the aros_target_incl_def variable.
9798 # Check whether --enable-includes was given.
9799 if test "${enable_includes+set}" = set; then :
9800 enableval=$enable_includes; aros_target_incl=$enable_includes
9801 else
9802 aros_target_incl=$aros_target_incl_def
9806 if test "$aros_kernel_includes" = ""; then
9807 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9808 # FIXME: for cross-compiling this should point to another location
9809 aros_kernel_includes="-isystem $aros_target_incl"
9813 if test "$aros_kernel_includes" != "" ; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9815 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9816 if test "$aros_kernel_cc_includes" = "" ; then
9817 # Try to guess where the directory is.
9818 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9819 if test -d $aros_kernel_cc_includes; then
9820 # Check if there is also an include-fixed directory and add it
9821 # to kernel compiler's include path as it may contain some of
9822 # the headers we need.
9823 if test -d "$aros_kernel_cc_includes"-fixed; then
9824 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9826 else
9827 # The directory doesn't exist, we need to do some more work.
9828 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9830 # These are the headers we're looking for.
9831 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9832 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9833 zutil.h"
9835 dirs=
9836 for h in $headers; do
9837 # Which other headers are needed by each of the above?
9838 deps=$(echo "#include <$h>" | \
9839 $aros_kernel_cc -E -M - 2>/dev/null | \
9840 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9842 # Copy all the needed headers to a directory beneath gendir.
9843 for d in $deps; do
9844 h=$(basename $d)
9845 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9846 sed -n "s,^.*/include\(/.*\),\1,p")
9847 ! test -d $dir && mkdir -p $dir
9848 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9849 done
9850 done
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9854 $as_echo "$aros_kernel_cc_includes" >&6; }
9855 # Adding -nostdinc to kernel includes as they are always used together.
9856 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9859 if test "$crosstools" != "yes"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9861 $as_echo_n "checking for the target compiler's include path... " >&6; }
9862 if test "$aros_target_cc_includes" = "" ; then
9863 #try to guess where the directory is
9864 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9865 if ! test -d $aros_target_cc_includes; then
9866 #the directory doesn't exist, we need to do some more work
9867 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9869 #these are the headers we're looking for
9870 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9871 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9872 zutil.h"
9874 dirs=
9875 for h in $headers; do
9876 #which other headers each of the above headers needs?
9877 deps=$(echo "#include <$h>" | \
9878 $orig_target_cc -E -M - 2>/dev/null | \
9879 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9881 #copy all the needed headers to a directory beneath gendir
9882 for d in $deps; do
9883 h=$(basename $d)
9884 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9885 sed -n "s,^.*/include\(/.*\),\1,p")
9886 ! test -d $dir && mkdir -p $dir
9887 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9888 done
9889 done
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9893 $as_echo "$aros_target_cc_includes" >&6; }
9894 else
9895 # We do not know which gcc version we are going to build and what we need to know
9896 # here is different for different versions so this will be set later during the
9897 # build of crosstools.
9898 aros_target_cc_includes=@aros_target_cc_includes@
9902 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9903 # On GCC >= 4.0 -iquote should be used
9906 save_cc="$CC"
9907 save_cflags="$CFLAGS"
9908 CFLAGS="-iquote."
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9910 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9911 if test "x-$crosstools" != "x-yes"; then
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9916 main ()
9920 return 0;
9922 _ACEOF
9923 if ac_fn_c_try_compile "$LINENO"; then :
9924 has_iquote="yes"
9925 else
9926 has_iquote="no"
9928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929 else
9930 # we do know it is supported for the smallest version of gcc we are going to build
9931 # we assume it's also supported by later versions
9932 has_iquote=yes
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9935 $as_echo "$has_iquote" >&6; }
9936 if test "x-$has_iquote" = "x-yes" ; then
9937 host_cflags_iquote=-iquote
9938 host_cflags_iquote_end=
9939 else
9940 host_cflags_iquote=-I
9941 host_cflags_iquote_end=-I-
9943 kernel_cflags_iquote=$host_cflags_iquote
9944 kernel_cflags_iquote_end=$host_cflags_iquote_end
9945 if test "x-$cross_compiling" = "x-yes"; then
9946 CC="$aros_kernel_cc"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9948 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9949 if test "x-$crosstools" != "x-yes"; then
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9954 main ()
9958 return 0;
9960 _ACEOF
9961 if ac_fn_c_try_compile "$LINENO"; then :
9962 use_no_stack_protector="yes"
9963 else
9964 use_no_stack_protector="no"
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 else
9968 # we do know it is supported for the smallest version of gcc we are going to build
9969 # we assume it's also supported by later versions
9970 use_no_stack_protector=yes
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9973 $as_echo "$use_no_stack_protector" >&6; }
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9975 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9976 if test "x-$crosstools" != "x-yes"; then
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9981 main ()
9985 return 0;
9987 _ACEOF
9988 if ac_fn_c_try_compile "$LINENO"; then :
9989 has_iquote="yes"
9990 else
9991 has_iquote="no"
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 else
9995 # we do know it is supported for the smallest version of gcc we are going to build
9996 # we assume it's also supported by later versions
9997 has_iquote=yes
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10000 $as_echo "$has_iquote" >&6; }
10001 if test "x-$has_iquote" = "x-yes" ; then
10002 kernel_cflags_iquote=-iquote
10003 kernel_cflags_iquote_end=
10004 else
10005 kernel_cflags_iquote=-I
10006 kernel_cflags_iquote_end=-I-
10009 aros_cflags_iquote=$kernel_cflags_iquote
10010 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10011 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10012 CC="$orig_target_cc"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10014 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10015 if test "x-$crosstools" != "x-yes"; then
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10020 main ()
10024 return 0;
10026 _ACEOF
10027 if ac_fn_c_try_compile "$LINENO"; then :
10028 has_iquote="yes"
10029 else
10030 has_iquote="no"
10032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 else
10034 # we do know it is supported for the smallest version of gcc we are going to build
10035 # we assume it's also supported by later versions
10036 has_iquote=yes
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10039 $as_echo "$has_iquote" >&6; }
10040 if test "x-$has_iquote" = "x-yes" ; then
10041 aros_cflags_iquote=-iquote
10042 aros_cflags_iquote_end=
10043 else
10044 aros_cflags_iquote=-I
10045 aros_cflags_iquote_end=-I-
10048 if test "x-$use_no_stack_protector" = "x-yes" ; then
10049 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
10052 #-----------------------------------------------------------------------------
10054 # Check if we can explicitly choose older version of symbol hashing
10056 CFLAGS="save_cflags -Wl,--hash-style=sysv"
10057 CC="$aros_kernel_cc"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10059 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10064 main ()
10068 return 0;
10070 _ACEOF
10071 if ac_fn_c_try_link "$LINENO"; then :
10072 use_hash_style="yes"
10073 else
10074 use_hash_style="no"
10076 rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10079 $as_echo "$use_hash_style" >&6; }
10080 if test "x-$use_hash_style" = "x-yes" ; then
10081 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
10083 CC="$save_cc"
10084 CFLAGS="$save_cflags"
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10095 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10097 # Check whether --with-resolution was given.
10098 if test "${with_resolution+set}" = set; then :
10099 withval=$with_resolution; resolution=$withval
10100 else
10101 resolution=none
10104 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10105 if test "$resolution" = "yes" ; then
10106 resolution="none"
10108 if test "$resolution" = "no" ; then
10109 resolution="none"
10111 if test "$resolution" != "none" ; then
10112 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10113 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10114 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10117 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10118 aros_cv_default_wbwidth=$aros_default_wbwidth
10119 aros_cv_default_wbheight=$aros_default_wbheight
10120 aros_cv_default_wbdepth=$aros_default_wbdepth
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10123 $as_echo_n "checking if serial debug is enabled... " >&6; }
10125 # Check whether --with-serial-debug was given.
10126 if test "${with_serial_debug+set}" = set; then :
10127 withval=$with_serial_debug; serial_debug=$withval
10128 else
10129 serial_debug=none
10132 if test "$aros_serial_debug" = 0 ; then
10133 serial_debug_forced=""
10134 if test "$serial_debug" = "yes" ; then
10135 serial_debug="2"
10137 if test "$serial_debug" = "no" ; then
10138 serial_debug="none"
10140 else
10141 serial_debug_forced="(forced)"
10142 serial_debug=$aros_serial_debug
10144 if test "$serial_debug" != "none" ; then
10145 aros_serial_debug=$serial_debug
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10147 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10148 else
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10154 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10155 # Check whether --enable-palm_debug_hack was given.
10156 if test "${enable_palm_debug_hack+set}" = set; then :
10157 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10158 else
10159 palm_debug_hack="no"
10162 if test "$palm_debug_hack" = "yes" ; then
10163 aros_palm_debug_hack="1"
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10166 $as_echo "$palm_debug_hack" >&6; }
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10170 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10171 # Check whether --enable-nesting_supervisor was given.
10172 if test "${enable_nesting_supervisor+set}" = set; then :
10173 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10174 else
10175 nesting_supervisor="no"
10178 if test "$nesting_supervisor" = "yes" ; then
10179 aros_nesting_supervisor="1"
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10182 $as_echo "$nesting_supervisor" >&6; }
10184 if test "$aros_enable_mmu" = "" ; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10186 $as_echo_n "checking if MMU support is enabled... " >&6; }
10187 # Check whether --enable-mmu was given.
10188 if test "${enable_mmu+set}" = set; then :
10189 enableval=$enable_mmu; aros_enable_mmu=$enableval
10190 else
10191 aros_enable_mmu="yes"
10194 if test "$aros_enable_mmu" = "" ; then
10195 aros_enable_mmu="yes"
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10198 $as_echo "$aros_enable_mmu" >&6; }
10200 if test "$aros_enable_mmu" = "no" ; then
10201 aros_enable_mmu="0"
10202 else
10203 aros_enable_mmu="1"
10207 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10209 if test "x-$need_dlopen" != "x-no" ; then
10210 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10211 if test "x$ac_cv_func_dlopen" = x""yes; then :
10212 have_dl="yes"
10213 else
10214 have_dl="no"
10217 if test "x-$have_dl" = "x-no" ; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10220 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-ldl $LIBS"
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10228 /* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
10231 #ifdef __cplusplus
10232 extern "C"
10233 #endif
10234 char dlopen ();
10236 main ()
10238 return dlopen ();
10240 return 0;
10242 _ACEOF
10243 if ac_fn_c_try_link "$LINENO"; then :
10244 ac_cv_lib_dl_dlopen=yes
10245 else
10246 ac_cv_lib_dl_dlopen=no
10248 rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10254 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10255 have_dl="yes"
10256 aros_host_ldflags="$aros_host_ldflags -ldl"
10257 else
10258 have_dl="no"
10262 if test "x-$have_dl" = "x-no" ; then
10263 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
10268 # Check whether --enable-x11_hidd was given.
10269 if test "${enable_x11_hidd+set}" = set; then :
10270 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10271 else
10272 x11_hidd="$need_x11"
10275 case "x-$x11_hidd" in
10276 x-yes|x-no|x-auto) ;;
10277 *) x11_hidd="$need_x11" ;;
10278 esac
10280 ENABLE_X11=0
10282 if test "x-$x11_hidd" != "x-no" ; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10285 $as_echo_n "checking for X... " >&6; }
10288 # Check whether --with-x was given.
10289 if test "${with_x+set}" = set; then :
10290 withval=$with_x;
10293 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10294 if test "x$with_x" = xno; then
10295 # The user explicitly disabled X.
10296 have_x=disabled
10297 else
10298 case $x_includes,$x_libraries in #(
10299 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
10300 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 # One or both of the vars are not set, and there is no cached value.
10304 ac_x_includes=no ac_x_libraries=no
10305 rm -f -r conftest.dir
10306 if mkdir conftest.dir; then
10307 cd conftest.dir
10308 cat >Imakefile <<'_ACEOF'
10309 incroot:
10310 @echo incroot='${INCROOT}'
10311 usrlibdir:
10312 @echo usrlibdir='${USRLIBDIR}'
10313 libdir:
10314 @echo libdir='${LIBDIR}'
10315 _ACEOF
10316 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10318 for ac_var in incroot usrlibdir libdir; do
10319 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10320 done
10321 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10322 for ac_extension in a so sl dylib la dll; do
10323 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10324 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10325 ac_im_usrlibdir=$ac_im_libdir; break
10327 done
10328 # Screen out bogus values from the imake configuration. They are
10329 # bogus both because they are the default anyway, and because
10330 # using them would break gcc on systems where it needs fixed includes.
10331 case $ac_im_incroot in
10332 /usr/include) ac_x_includes= ;;
10333 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10334 esac
10335 case $ac_im_usrlibdir in
10336 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10337 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10338 esac
10340 cd ..
10341 rm -f -r conftest.dir
10344 # Standard set of common directories for X headers.
10345 # Check X11 before X11Rn because it is often a symlink to the current release.
10346 ac_x_header_dirs='
10347 /usr/X11/include
10348 /usr/X11R7/include
10349 /usr/X11R6/include
10350 /usr/X11R5/include
10351 /usr/X11R4/include
10353 /usr/include/X11
10354 /usr/include/X11R7
10355 /usr/include/X11R6
10356 /usr/include/X11R5
10357 /usr/include/X11R4
10359 /usr/local/X11/include
10360 /usr/local/X11R7/include
10361 /usr/local/X11R6/include
10362 /usr/local/X11R5/include
10363 /usr/local/X11R4/include
10365 /usr/local/include/X11
10366 /usr/local/include/X11R7
10367 /usr/local/include/X11R6
10368 /usr/local/include/X11R5
10369 /usr/local/include/X11R4
10371 /usr/X386/include
10372 /usr/x386/include
10373 /usr/XFree86/include/X11
10375 /usr/include
10376 /usr/local/include
10377 /usr/unsupported/include
10378 /usr/athena/include
10379 /usr/local/x11r5/include
10380 /usr/lpp/Xamples/include
10382 /usr/openwin/include
10383 /usr/openwin/share/include'
10385 if test "$ac_x_includes" = no; then
10386 # Guess where to find include files, by looking for Xlib.h.
10387 # First, try using that file with no special directory specified.
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390 #include <X11/Xlib.h>
10391 _ACEOF
10392 if ac_fn_c_try_cpp "$LINENO"; then :
10393 # We can compile using X headers with no special include directory.
10394 ac_x_includes=
10395 else
10396 for ac_dir in $ac_x_header_dirs; do
10397 if test -r "$ac_dir/X11/Xlib.h"; then
10398 ac_x_includes=$ac_dir
10399 break
10401 done
10403 rm -f conftest.err conftest.i conftest.$ac_ext
10404 fi # $ac_x_includes = no
10406 if test "$ac_x_libraries" = no; then
10407 # Check for the libraries.
10408 # See if we find them without any special options.
10409 # Don't add to $LIBS permanently.
10410 ac_save_LIBS=$LIBS
10411 LIBS="-lX11 $LIBS"
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 #include <X11/Xlib.h>
10416 main ()
10418 XrmInitialize ()
10420 return 0;
10422 _ACEOF
10423 if ac_fn_c_try_link "$LINENO"; then :
10424 LIBS=$ac_save_LIBS
10425 # We can link X programs with no special library path.
10426 ac_x_libraries=
10427 else
10428 LIBS=$ac_save_LIBS
10429 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10431 # Don't even attempt the hair of trying to link an X program!
10432 for ac_extension in a so sl dylib la dll; do
10433 if test -r "$ac_dir/libX11.$ac_extension"; then
10434 ac_x_libraries=$ac_dir
10435 break 2
10437 done
10438 done
10440 rm -f core conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10442 fi # $ac_x_libraries = no
10444 case $ac_x_includes,$ac_x_libraries in #(
10445 no,* | *,no | *\'*)
10446 # Didn't find X, or a directory has "'" in its name.
10447 ac_cv_have_x="have_x=no";; #(
10449 # Record where we found X for the cache.
10450 ac_cv_have_x="have_x=yes\
10451 ac_x_includes='$ac_x_includes'\
10452 ac_x_libraries='$ac_x_libraries'"
10453 esac
10455 ;; #(
10456 *) have_x=yes;;
10457 esac
10458 eval "$ac_cv_have_x"
10459 fi # $with_x != no
10461 if test "$have_x" != yes; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10463 $as_echo "$have_x" >&6; }
10464 no_x=yes
10465 else
10466 # If each of the values was on the command line, it overrides each guess.
10467 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10468 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10469 # Update the cache value to reflect the command line values.
10470 ac_cv_have_x="have_x=yes\
10471 ac_x_includes='$x_includes'\
10472 ac_x_libraries='$x_libraries'"
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10474 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10478 x_cflags=
10479 for path in $x_libraries
10481 x_cflags="$x_cflags -L$path"
10482 done
10484 for path in $x_includes
10486 x_cflags="$x_cflags -I$path"
10487 done
10489 if test "x-$no_x" = "x-yes" ; then
10491 if test "x-$x11_hidd" != "x-auto" ; then
10492 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10495 else
10496 x11_hidd_target=kernel-x11gfx-kobj
10497 ENABLE_X11=1
10499 # Check whether --enable-x11_shm was given.
10500 if test "${enable_x11_shm+set}" = set; then :
10501 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10502 else
10503 x11_hidd_shm="auto"
10506 case "x-$x11_hidd_shm" in
10507 x-yes|x-no|x-auto) ;;
10508 *) x11_hidd_shm="auto" ;;
10509 esac
10511 have_xshm=no
10513 if test "x-$x11_hidd_shm" != "x-no" ; then
10515 for ac_header in sys/ipc.h
10516 do :
10517 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10518 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10519 cat >>confdefs.h <<_ACEOF
10520 #define HAVE_SYS_IPC_H 1
10521 _ACEOF
10525 done
10527 for ac_header in sys/shm.h
10528 do :
10529 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10530 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10531 cat >>confdefs.h <<_ACEOF
10532 #define HAVE_SYS_SHM_H 1
10533 _ACEOF
10537 done
10540 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10542 save_cflags="$CFLAGS"
10543 CFLAGS="$CFLAGS $x_cflags"
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10545 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10546 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 ac_check_lib_save_LIBS=$LIBS
10550 LIBS="-lXext $LIBS"
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 char XShmQueryExtension ();
10562 main ()
10564 return XShmQueryExtension ();
10566 return 0;
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 ac_cv_lib_Xext_XShmQueryExtension=yes
10571 else
10572 ac_cv_lib_Xext_XShmQueryExtension=no
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10579 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10580 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10581 have_xshm=yes
10584 CFLAGS="$save_cflags"
10588 if test "x-$have_xshm" = "x-yes" ; then
10589 DO_XSHM_SUPPORT="1"
10590 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10591 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10592 else
10593 DO_XSHM_SUPPORT="0"
10597 # Check whether --enable-x11_vidmode was given.
10598 if test "${enable_x11_vidmode+set}" = set; then :
10599 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10600 else
10601 x11_hidd_vidmode="auto"
10604 case "x-$x11_hidd_vidmode" in
10605 x-yes|x-no|x-auto) ;;
10606 *) x11_hidd_vidmode="auto" ;;
10607 esac
10609 have_vidmode=no
10611 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10613 save_cflags="$CFLAGS"
10614 CFLAGS="$CFLAGS $x_cflags"
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10616 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10617 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 ac_check_lib_save_LIBS=$LIBS
10621 LIBS="-lXxf86vm $LIBS"
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10625 /* Override any GCC internal prototype to avoid an error.
10626 Use char because int might match the return type of a GCC
10627 builtin and then its argument prototype would still apply. */
10628 #ifdef __cplusplus
10629 extern "C"
10630 #endif
10631 char XF86VidModeQueryExtension ();
10633 main ()
10635 return XF86VidModeQueryExtension ();
10637 return 0;
10639 _ACEOF
10640 if ac_fn_c_try_link "$LINENO"; then :
10641 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10642 else
10643 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10645 rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 LIBS=$ac_check_lib_save_LIBS
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10650 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10651 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10652 have_vidmode=yes
10655 CFLAGS="$save_cflags"
10658 if test "x-$have_vidmode" = "x-yes" ; then
10659 DO_VIDMODE_SUPPORT="1"
10660 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10661 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10662 else
10663 DO_VIDMODE_SUPPORT="0"
10667 aros_host_x11_includes=$x_includes
10668 aros_host_x11_libdirs=$x_libraries
10672 # Check whether --enable-sdl_hidd was given.
10673 if test "${enable_sdl_hidd+set}" = set; then :
10674 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10675 else
10676 sdl_hidd="auto"
10679 case "x-$sdl_hidd" in
10680 x-yes|x-no|x-auto) ;;
10681 *) sdl_hidd="auto" ;;
10682 esac
10684 if test "x-$sdl_hidd" != "x-no" ; then
10687 # Check whether --with-sdl-prefix was given.
10688 if test "${with_sdl_prefix+set}" = set; then :
10689 withval=$with_sdl_prefix; sdl_prefix="$withval"
10690 else
10691 sdl_prefix=""
10695 # Check whether --with-sdl-exec-prefix was given.
10696 if test "${with_sdl_exec_prefix+set}" = set; then :
10697 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10698 else
10699 sdl_exec_prefix=""
10702 # Check whether --enable-sdltest was given.
10703 if test "${enable_sdltest+set}" = set; then :
10704 enableval=$enable_sdltest;
10705 else
10706 enable_sdltest=yes
10710 if test x$sdl_exec_prefix != x ; then
10711 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10712 if test x${SDL_CONFIG+set} != xset ; then
10713 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10716 if test x$sdl_prefix != x ; then
10717 sdl_args="$sdl_args --prefix=$sdl_prefix"
10718 if test x${SDL_CONFIG+set} != xset ; then
10719 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10723 if test "x$prefix" != xNONE; then
10724 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10726 # Extract the first word of "sdl-config", so it can be a program name with args.
10727 set dummy sdl-config; ac_word=$2
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729 $as_echo_n "checking for $ac_word... " >&6; }
10730 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 case $SDL_CONFIG in
10734 [\\/]* | ?:[\\/]*)
10735 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10739 for as_dir in $PATH
10741 IFS=$as_save_IFS
10742 test -z "$as_dir" && as_dir=.
10743 for ac_exec_ext in '' $ac_executable_extensions; do
10744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10745 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10747 break 2
10749 done
10750 done
10751 IFS=$as_save_IFS
10753 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10755 esac
10757 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10758 if test -n "$SDL_CONFIG"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10760 $as_echo "$SDL_CONFIG" >&6; }
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10767 min_sdl_version=1.2.10
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10769 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10770 no_sdl=""
10771 if test "$SDL_CONFIG" = "no" ; then
10772 no_sdl=yes
10773 else
10774 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10775 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10777 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10778 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10779 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10780 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10781 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10782 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10783 if test "x$enable_sdltest" = "xyes" ; then
10784 ac_save_CFLAGS="$CFLAGS"
10785 ac_save_CXXFLAGS="$CXXFLAGS"
10786 ac_save_LIBS="$LIBS"
10787 CFLAGS="$CFLAGS $SDL_CFLAGS"
10788 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10789 LIBS="$LIBS $SDL_LIBS"
10790 rm -f conf.sdltest
10791 if test "$cross_compiling" = yes; then :
10792 echo $ac_n "cross compiling; assumed OK... $ac_c"
10793 else
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 #include <stdio.h>
10798 #include <stdlib.h>
10799 #include <string.h>
10800 #include "SDL.h"
10802 char*
10803 my_strdup (char *str)
10805 char *new_str;
10807 if (str)
10809 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10810 strcpy (new_str, str);
10812 else
10813 new_str = NULL;
10815 return new_str;
10818 int main (int argc, char *argv[])
10820 int major, minor, micro;
10821 char *tmp_version;
10823 /* This hangs on some systems (?)
10824 system ("touch conf.sdltest");
10826 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10828 /* HP/UX 9 (%@#!) writes to sscanf strings */
10829 tmp_version = my_strdup("$min_sdl_version");
10830 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10831 printf("%s, bad version string\n", "$min_sdl_version");
10832 exit(1);
10835 if (($sdl_major_version > major) ||
10836 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10837 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10839 return 0;
10841 else
10843 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10844 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10845 printf("*** best to upgrade to the required version.\n");
10846 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10847 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10848 printf("*** config.cache before re-running configure\n");
10849 return 1;
10854 _ACEOF
10855 if ac_fn_c_try_run "$LINENO"; then :
10857 else
10858 no_sdl=yes
10860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10861 conftest.$ac_objext conftest.beam conftest.$ac_ext
10864 CFLAGS="$ac_save_CFLAGS"
10865 CXXFLAGS="$ac_save_CXXFLAGS"
10866 LIBS="$ac_save_LIBS"
10869 if test "x$no_sdl" = x ; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10871 $as_echo "yes" >&6; }
10872 have_sdl="yes"
10873 else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10876 if test "$SDL_CONFIG" = "no" ; then
10877 echo "*** The sdl-config script installed by SDL could not be found"
10878 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10879 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10880 echo "*** full path to sdl-config."
10881 else
10882 if test -f conf.sdltest ; then
10884 else
10885 echo "*** Could not run SDL test program, checking why..."
10886 CFLAGS="$CFLAGS $SDL_CFLAGS"
10887 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10888 LIBS="$LIBS $SDL_LIBS"
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10892 #include <stdio.h>
10893 #include "SDL.h"
10895 int main(int argc, char *argv[])
10896 { return 0; }
10897 #undef main
10898 #define main K_and_R_C_main
10901 main ()
10903 return 0;
10905 return 0;
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909 echo "*** The test program compiled, but did not run. This usually means"
10910 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10911 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10912 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10913 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10914 echo "*** is required on your system"
10915 echo "***"
10916 echo "*** If you have an old version installed, it is best to remove it, although"
10917 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10918 else
10919 echo "*** The test program failed to compile or link. See the file config.log for the"
10920 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10921 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10922 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10926 CFLAGS="$ac_save_CFLAGS"
10927 CXXFLAGS="$ac_save_CXXFLAGS"
10928 LIBS="$ac_save_LIBS"
10931 SDL_CFLAGS=""
10932 SDL_LIBS=""
10933 have_sdl="no"
10937 rm -f conf.sdltest
10940 if test "x-$have_sdl" != "x-yes" ; then
10942 if test "x-$sdl_hidd" != "x-auto" ; then
10943 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10946 else
10947 sdl_hidd_target=kernel-hidd-sdl
10948 aros_host_sdl_cflags=SDL_CFLAGS
10949 aros_host_sdl_libs=SDL_LIBS
10953 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10954 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10959 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10960 oss_library_target=workbench-libs-oss-unix
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10966 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10967 # Check whether --enable-dbus was given.
10968 if test "${enable_dbus+set}" = set; then :
10969 enableval=$enable_dbus; dbus="yes"
10970 else
10971 dbus="no"
10974 if test "$dbus" = "yes" ; then
10975 ENABLE_DBUS=1
10976 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10977 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10978 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10979 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10980 else
10981 ENABLE_DBUS=0
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10984 $as_echo "$dbus" >&6; }
10988 # Generic
10999 # Host related
11023 # Target Related
11080 # Graphics Related
11097 # Native version related
11100 # Palm native version related
11103 # Unix/Hosted version related
11106 # MMU related
11109 # Apple iOS related
11114 # Android related
11118 # DBUS related
11125 #X11 related
11128 # Debug related
11134 # Collect-aros stuff: "-ius" to ignore undefined symbols
11137 # C compiler related
11140 case "$aros_flavour" in
11141 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11142 aros_flavour="emulation" ;;
11143 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11144 aros_flavour="emulation" ;;
11145 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11146 aros_flavour="standalone";;
11147 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11148 aros_flavour="standalone";;
11149 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11150 aros_flavour="native" ;;
11151 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11152 aros_flavour="native" ;;
11153 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11154 aros_flavour="linklib" ;;
11155 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11156 aros_flavour="palmnative" ;;
11157 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11158 aros_flavour="mac68knative" ;;
11159 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11160 aros_flavour="ppcnative" ;;
11161 esac
11163 if test ! -d ${aros_inc_dir} ; then
11164 ${MKDIR} ${aros_inc_dir}
11166 if test ! -d ${aros_geninc_dir} ; then
11167 ${MKDIR} ${aros_geninc_dir}
11169 if test ! -d ${aros_hostcfg_dir} ; then
11170 ${MKDIR} ${aros_hostcfg_dir}
11172 if test ! -d ${aros_targetcfg_dir} ; then
11173 ${MKDIR} ${aros_targetcfg_dir}
11175 if test ! -d ${aros_tools_dir} ; then
11176 ${MKDIR} ${aros_tools_dir}
11178 if test ! -d ${aros_scripts_dir} ; then
11179 ${MKDIR} ${aros_scripts_dir}
11182 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11185 ac_config_commands="$ac_config_commands compiler_executable"
11187 ac_config_commands="$ac_config_commands genmf_executable"
11190 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_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-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"
11193 cat >confcache <<\_ACEOF
11194 # This file is a shell script that caches the results of configure
11195 # tests run on this system so they can be shared between configure
11196 # scripts and configure runs, see configure's option --config-cache.
11197 # It is not useful on other systems. If it contains results you don't
11198 # want to keep, you may remove or edit it.
11200 # config.status only pays attention to the cache file if you give it
11201 # the --recheck option to rerun configure.
11203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11205 # following values.
11207 _ACEOF
11209 # The following way of writing the cache mishandles newlines in values,
11210 # but we know of no workaround that is simple, portable, and efficient.
11211 # So, we kill variables containing newlines.
11212 # Ultrix sh set writes to stderr and can't be redirected directly,
11213 # and sets the high bit in the cache file unless we assign to the vars.
11215 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11216 eval ac_val=\$$ac_var
11217 case $ac_val in #(
11218 *${as_nl}*)
11219 case $ac_var in #(
11220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11222 esac
11223 case $ac_var in #(
11224 _ | IFS | as_nl) ;; #(
11225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11226 *) { eval $ac_var=; unset $ac_var;} ;;
11227 esac ;;
11228 esac
11229 done
11231 (set) 2>&1 |
11232 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11233 *${as_nl}ac_space=\ *)
11234 # `set' does not quote correctly, so add quotes: double-quote
11235 # substitution turns \\\\ into \\, and sed turns \\ into \.
11236 sed -n \
11237 "s/'/'\\\\''/g;
11238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11239 ;; #(
11241 # `set' quotes correctly as required by POSIX, so do not add quotes.
11242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11244 esac |
11245 sort
11247 sed '
11248 /^ac_cv_env_/b end
11249 t clear
11250 :clear
11251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11252 t end
11253 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11254 :end' >>confcache
11255 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11256 if test -w "$cache_file"; then
11257 test "x$cache_file" != "x/dev/null" &&
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11259 $as_echo "$as_me: updating cache $cache_file" >&6;}
11260 cat confcache >$cache_file
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11263 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11266 rm -f confcache
11268 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11269 # Let make expand exec_prefix.
11270 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11272 DEFS=-DHAVE_CONFIG_H
11274 ac_libobjs=
11275 ac_ltlibobjs=
11277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11278 # 1. Remove the extension, and $U if already installed.
11279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11282 # will be set to the directory where LIBOBJS objects are built.
11283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11285 done
11286 LIBOBJS=$ac_libobjs
11288 LTLIBOBJS=$ac_ltlibobjs
11292 : ${CONFIG_STATUS=./config.status}
11293 ac_write_fail=0
11294 ac_clean_files_save=$ac_clean_files
11295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11297 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11298 as_write_fail=0
11299 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11300 #! $SHELL
11301 # Generated by $as_me.
11302 # Run this file to recreate the current configuration.
11303 # Compiler output produced by configure, useful for debugging
11304 # configure, is in config.log if it exists.
11306 debug=false
11307 ac_cs_recheck=false
11308 ac_cs_silent=false
11310 SHELL=\${CONFIG_SHELL-$SHELL}
11311 export SHELL
11312 _ASEOF
11313 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11314 ## -------------------- ##
11315 ## M4sh Initialization. ##
11316 ## -------------------- ##
11318 # Be more Bourne compatible
11319 DUALCASE=1; export DUALCASE # for MKS sh
11320 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11321 emulate sh
11322 NULLCMD=:
11323 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11324 # is contrary to our usage. Disable this feature.
11325 alias -g '${1+"$@"}'='"$@"'
11326 setopt NO_GLOB_SUBST
11327 else
11328 case `(set -o) 2>/dev/null` in #(
11329 *posix*) :
11330 set -o posix ;; #(
11331 *) :
11333 esac
11337 as_nl='
11339 export as_nl
11340 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11341 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11342 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11344 # Prefer a ksh shell builtin over an external printf program on Solaris,
11345 # but without wasting forks for bash or zsh.
11346 if test -z "$BASH_VERSION$ZSH_VERSION" \
11347 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11348 as_echo='print -r --'
11349 as_echo_n='print -rn --'
11350 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11351 as_echo='printf %s\n'
11352 as_echo_n='printf %s'
11353 else
11354 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11355 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11356 as_echo_n='/usr/ucb/echo -n'
11357 else
11358 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11359 as_echo_n_body='eval
11360 arg=$1;
11361 case $arg in #(
11362 *"$as_nl"*)
11363 expr "X$arg" : "X\\(.*\\)$as_nl";
11364 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11365 esac;
11366 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11368 export as_echo_n_body
11369 as_echo_n='sh -c $as_echo_n_body as_echo'
11371 export as_echo_body
11372 as_echo='sh -c $as_echo_body as_echo'
11375 # The user is always right.
11376 if test "${PATH_SEPARATOR+set}" != set; then
11377 PATH_SEPARATOR=:
11378 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11379 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11380 PATH_SEPARATOR=';'
11385 # IFS
11386 # We need space, tab and new line, in precisely that order. Quoting is
11387 # there to prevent editors from complaining about space-tab.
11388 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11389 # splitting by setting IFS to empty value.)
11390 IFS=" "" $as_nl"
11392 # Find who we are. Look in the path if we contain no directory separator.
11393 case $0 in #((
11394 *[\\/]* ) as_myself=$0 ;;
11395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11401 done
11402 IFS=$as_save_IFS
11405 esac
11406 # We did not find ourselves, most probably we were run as `sh COMMAND'
11407 # in which case we are not to be found in the path.
11408 if test "x$as_myself" = x; then
11409 as_myself=$0
11411 if test ! -f "$as_myself"; then
11412 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11413 exit 1
11416 # Unset variables that we do not need and which cause bugs (e.g. in
11417 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11418 # suppresses any "Segmentation fault" message there. '((' could
11419 # trigger a bug in pdksh 5.2.14.
11420 for as_var in BASH_ENV ENV MAIL MAILPATH
11421 do eval test x\${$as_var+set} = xset \
11422 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11423 done
11424 PS1='$ '
11425 PS2='> '
11426 PS4='+ '
11428 # NLS nuisances.
11429 LC_ALL=C
11430 export LC_ALL
11431 LANGUAGE=C
11432 export LANGUAGE
11434 # CDPATH.
11435 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11438 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11439 # ----------------------------------------
11440 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11441 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11442 # script with STATUS, using 1 if that was 0.
11443 as_fn_error ()
11445 as_status=$1; test $as_status -eq 0 && as_status=1
11446 if test "$4"; then
11447 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11448 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11450 $as_echo "$as_me: error: $2" >&2
11451 as_fn_exit $as_status
11452 } # as_fn_error
11455 # as_fn_set_status STATUS
11456 # -----------------------
11457 # Set $? to STATUS, without forking.
11458 as_fn_set_status ()
11460 return $1
11461 } # as_fn_set_status
11463 # as_fn_exit STATUS
11464 # -----------------
11465 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11466 as_fn_exit ()
11468 set +e
11469 as_fn_set_status $1
11470 exit $1
11471 } # as_fn_exit
11473 # as_fn_unset VAR
11474 # ---------------
11475 # Portably unset VAR.
11476 as_fn_unset ()
11478 { eval $1=; unset $1;}
11480 as_unset=as_fn_unset
11481 # as_fn_append VAR VALUE
11482 # ----------------------
11483 # Append the text in VALUE to the end of the definition contained in VAR. Take
11484 # advantage of any shell optimizations that allow amortized linear growth over
11485 # repeated appends, instead of the typical quadratic growth present in naive
11486 # implementations.
11487 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11488 eval 'as_fn_append ()
11490 eval $1+=\$2
11492 else
11493 as_fn_append ()
11495 eval $1=\$$1\$2
11497 fi # as_fn_append
11499 # as_fn_arith ARG...
11500 # ------------------
11501 # Perform arithmetic evaluation on the ARGs, and store the result in the
11502 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11503 # must be portable across $(()) and expr.
11504 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11505 eval 'as_fn_arith ()
11507 as_val=$(( $* ))
11509 else
11510 as_fn_arith ()
11512 as_val=`expr "$@" || test $? -eq 1`
11514 fi # as_fn_arith
11517 if expr a : '\(a\)' >/dev/null 2>&1 &&
11518 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11519 as_expr=expr
11520 else
11521 as_expr=false
11524 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11525 as_basename=basename
11526 else
11527 as_basename=false
11530 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11531 as_dirname=dirname
11532 else
11533 as_dirname=false
11536 as_me=`$as_basename -- "$0" ||
11537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11538 X"$0" : 'X\(//\)$' \| \
11539 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11540 $as_echo X/"$0" |
11541 sed '/^.*\/\([^/][^/]*\)\/*$/{
11542 s//\1/
11545 /^X\/\(\/\/\)$/{
11546 s//\1/
11549 /^X\/\(\/\).*/{
11550 s//\1/
11553 s/.*/./; q'`
11555 # Avoid depending upon Character Ranges.
11556 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11557 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11558 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11559 as_cr_digits='0123456789'
11560 as_cr_alnum=$as_cr_Letters$as_cr_digits
11562 ECHO_C= ECHO_N= ECHO_T=
11563 case `echo -n x` in #(((((
11564 -n*)
11565 case `echo 'xy\c'` in
11566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11567 xy) ECHO_C='\c';;
11568 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11569 ECHO_T=' ';;
11570 esac;;
11572 ECHO_N='-n';;
11573 esac
11575 rm -f conf$$ conf$$.exe conf$$.file
11576 if test -d conf$$.dir; then
11577 rm -f conf$$.dir/conf$$.file
11578 else
11579 rm -f conf$$.dir
11580 mkdir conf$$.dir 2>/dev/null
11582 if (echo >conf$$.file) 2>/dev/null; then
11583 if ln -s conf$$.file conf$$ 2>/dev/null; then
11584 as_ln_s='ln -s'
11585 # ... but there are two gotchas:
11586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11588 # In both cases, we have to default to `cp -p'.
11589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11590 as_ln_s='cp -p'
11591 elif ln conf$$.file conf$$ 2>/dev/null; then
11592 as_ln_s=ln
11593 else
11594 as_ln_s='cp -p'
11596 else
11597 as_ln_s='cp -p'
11599 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11600 rmdir conf$$.dir 2>/dev/null
11603 # as_fn_mkdir_p
11604 # -------------
11605 # Create "$as_dir" as a directory, including parents if necessary.
11606 as_fn_mkdir_p ()
11609 case $as_dir in #(
11610 -*) as_dir=./$as_dir;;
11611 esac
11612 test -d "$as_dir" || eval $as_mkdir_p || {
11613 as_dirs=
11614 while :; do
11615 case $as_dir in #(
11616 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11617 *) as_qdir=$as_dir;;
11618 esac
11619 as_dirs="'$as_qdir' $as_dirs"
11620 as_dir=`$as_dirname -- "$as_dir" ||
11621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11622 X"$as_dir" : 'X\(//\)[^/]' \| \
11623 X"$as_dir" : 'X\(//\)$' \| \
11624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11625 $as_echo X"$as_dir" |
11626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11627 s//\1/
11630 /^X\(\/\/\)[^/].*/{
11631 s//\1/
11634 /^X\(\/\/\)$/{
11635 s//\1/
11638 /^X\(\/\).*/{
11639 s//\1/
11642 s/.*/./; q'`
11643 test -d "$as_dir" && break
11644 done
11645 test -z "$as_dirs" || eval "mkdir $as_dirs"
11646 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11649 } # as_fn_mkdir_p
11650 if mkdir -p . 2>/dev/null; then
11651 as_mkdir_p='mkdir -p "$as_dir"'
11652 else
11653 test -d ./-p && rmdir ./-p
11654 as_mkdir_p=false
11657 if test -x / >/dev/null 2>&1; then
11658 as_test_x='test -x'
11659 else
11660 if ls -dL / >/dev/null 2>&1; then
11661 as_ls_L_option=L
11662 else
11663 as_ls_L_option=
11665 as_test_x='
11666 eval sh -c '\''
11667 if test -d "$1"; then
11668 test -d "$1/.";
11669 else
11670 case $1 in #(
11671 -*)set "./$1";;
11672 esac;
11673 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11674 ???[sx]*):;;*)false;;esac;fi
11675 '\'' sh
11678 as_executable_p=$as_test_x
11680 # Sed expression to map a string onto a valid CPP name.
11681 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11683 # Sed expression to map a string onto a valid variable name.
11684 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11687 exec 6>&1
11688 ## ----------------------------------- ##
11689 ## Main body of $CONFIG_STATUS script. ##
11690 ## ----------------------------------- ##
11691 _ASEOF
11692 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11695 # Save the log message, to keep $0 and so on meaningful, and to
11696 # report actual input values of CONFIG_FILES etc. instead of their
11697 # values after options handling.
11698 ac_log="
11699 This file was extended by $as_me, which was
11700 generated by GNU Autoconf 2.67. Invocation command line was
11702 CONFIG_FILES = $CONFIG_FILES
11703 CONFIG_HEADERS = $CONFIG_HEADERS
11704 CONFIG_LINKS = $CONFIG_LINKS
11705 CONFIG_COMMANDS = $CONFIG_COMMANDS
11706 $ $0 $@
11708 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11711 _ACEOF
11713 case $ac_config_files in *"
11714 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11715 esac
11717 case $ac_config_headers in *"
11718 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11719 esac
11722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11723 # Files that config.status was made for.
11724 config_files="$ac_config_files"
11725 config_headers="$ac_config_headers"
11726 config_commands="$ac_config_commands"
11728 _ACEOF
11730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11731 ac_cs_usage="\
11732 \`$as_me' instantiates files and other configuration actions
11733 from templates according to the current configuration. Unless the files
11734 and actions are specified as TAGs, all are instantiated by default.
11736 Usage: $0 [OPTION]... [TAG]...
11738 -h, --help print this help, then exit
11739 -V, --version print version number and configuration settings, then exit
11740 --config print configuration, then exit
11741 -q, --quiet, --silent
11742 do not print progress messages
11743 -d, --debug don't remove temporary files
11744 --recheck update $as_me by reconfiguring in the same conditions
11745 --file=FILE[:TEMPLATE]
11746 instantiate the configuration file FILE
11747 --header=FILE[:TEMPLATE]
11748 instantiate the configuration header FILE
11750 Configuration files:
11751 $config_files
11753 Configuration headers:
11754 $config_headers
11756 Configuration commands:
11757 $config_commands
11759 Report bugs to the package provider."
11761 _ACEOF
11762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11763 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11764 ac_cs_version="\\
11765 config.status
11766 configured by $0, generated by GNU Autoconf 2.67,
11767 with options \\"\$ac_cs_config\\"
11769 Copyright (C) 2010 Free Software Foundation, Inc.
11770 This config.status script is free software; the Free Software Foundation
11771 gives unlimited permission to copy, distribute and modify it."
11773 ac_pwd='$ac_pwd'
11774 srcdir='$srcdir'
11775 test -n "\$AWK" || AWK=awk
11776 _ACEOF
11778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11779 # The default lists apply if the user does not specify any file.
11780 ac_need_defaults=:
11781 while test $# != 0
11783 case $1 in
11784 --*=?*)
11785 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11786 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11787 ac_shift=:
11789 --*=)
11790 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11791 ac_optarg=
11792 ac_shift=:
11795 ac_option=$1
11796 ac_optarg=$2
11797 ac_shift=shift
11799 esac
11801 case $ac_option in
11802 # Handling of the options.
11803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11804 ac_cs_recheck=: ;;
11805 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11806 $as_echo "$ac_cs_version"; exit ;;
11807 --config | --confi | --conf | --con | --co | --c )
11808 $as_echo "$ac_cs_config"; exit ;;
11809 --debug | --debu | --deb | --de | --d | -d )
11810 debug=: ;;
11811 --file | --fil | --fi | --f )
11812 $ac_shift
11813 case $ac_optarg in
11814 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11815 '') as_fn_error $? "missing file argument" ;;
11816 esac
11817 as_fn_append CONFIG_FILES " '$ac_optarg'"
11818 ac_need_defaults=false;;
11819 --header | --heade | --head | --hea )
11820 $ac_shift
11821 case $ac_optarg in
11822 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11823 esac
11824 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11825 ac_need_defaults=false;;
11826 --he | --h)
11827 # Conflict between --help and --header
11828 as_fn_error $? "ambiguous option: \`$1'
11829 Try \`$0 --help' for more information.";;
11830 --help | --hel | -h )
11831 $as_echo "$ac_cs_usage"; exit ;;
11832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11834 ac_cs_silent=: ;;
11836 # This is an error.
11837 -*) as_fn_error $? "unrecognized option: \`$1'
11838 Try \`$0 --help' for more information." ;;
11840 *) as_fn_append ac_config_targets " $1"
11841 ac_need_defaults=false ;;
11843 esac
11844 shift
11845 done
11847 ac_configure_extra_args=
11849 if $ac_cs_silent; then
11850 exec 6>/dev/null
11851 ac_configure_extra_args="$ac_configure_extra_args --silent"
11854 _ACEOF
11855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11856 if \$ac_cs_recheck; then
11857 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11858 shift
11859 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11860 CONFIG_SHELL='$SHELL'
11861 export CONFIG_SHELL
11862 exec "\$@"
11865 _ACEOF
11866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11867 exec 5>>config.log
11869 echo
11870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11871 ## Running $as_me. ##
11872 _ASBOX
11873 $as_echo "$ac_log"
11874 } >&5
11876 _ACEOF
11877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11879 # INIT-COMMANDS
11882 aros_host_exe_suffix=${aros_host_exe_suffix}
11883 aros_tools_dir=${aros_tools_dir}
11884 aros_target_cpu=${aros_target_cpu}
11885 aros_target_arch=${aros_target_arch}
11886 aros_target_suffix=${aros_target_suffix}
11887 aros_target_nm_ln=${aros_target_nm_ln}
11888 aros_target_as_ln=${aros_target_as_ln}
11889 aros_target_ar_ln=${aros_target_ar_ln}
11890 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11891 aros_target_objdump_ln=${aros_target_objdump_ln}
11892 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11893 aros_target_strip_ln=${aros_target_strip_ln}
11896 aros_tools_dir=${aros_tools_dir}
11899 _ACEOF
11901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11903 # Handling of arguments.
11904 for ac_config_target in $ac_config_targets
11906 case $ac_config_target in
11907 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11908 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11909 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11910 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11911 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11912 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11913 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11914 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11915 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11916 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11917 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11918 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11919 "${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" ;;
11920 "${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" ;;
11921 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11922 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11923 "${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" ;;
11925 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11926 esac
11927 done
11930 # If the user did not use the arguments to specify the items to instantiate,
11931 # then the envvar interface is used. Set only those that are not.
11932 # We use the long form for the default assignment because of an extremely
11933 # bizarre bug on SunOS 4.1.3.
11934 if $ac_need_defaults; then
11935 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11936 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11937 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11940 # Have a temporary directory for convenience. Make it in the build tree
11941 # simply because there is no reason against having it here, and in addition,
11942 # creating and moving files from /tmp can sometimes cause problems.
11943 # Hook for its removal unless debugging.
11944 # Note that there is a small window in which the directory will not be cleaned:
11945 # after its creation but before its name has been assigned to `$tmp'.
11946 $debug ||
11948 tmp=
11949 trap 'exit_status=$?
11950 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11952 trap 'as_fn_exit 1' 1 2 13 15
11954 # Create a (secure) tmp directory for tmp files.
11957 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11958 test -n "$tmp" && test -d "$tmp"
11959 } ||
11961 tmp=./conf$$-$RANDOM
11962 (umask 077 && mkdir "$tmp")
11963 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11965 # Set up the scripts for CONFIG_FILES section.
11966 # No need to generate them if there are no CONFIG_FILES.
11967 # This happens for instance with `./config.status config.h'.
11968 if test -n "$CONFIG_FILES"; then
11971 ac_cr=`echo X | tr X '\015'`
11972 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11973 # But we know of no other shell where ac_cr would be empty at this
11974 # point, so we can use a bashism as a fallback.
11975 if test "x$ac_cr" = x; then
11976 eval ac_cr=\$\'\\r\'
11978 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11979 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11980 ac_cs_awk_cr='\\r'
11981 else
11982 ac_cs_awk_cr=$ac_cr
11985 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11986 _ACEOF
11990 echo "cat >conf$$subs.awk <<_ACEOF" &&
11991 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11992 echo "_ACEOF"
11993 } >conf$$subs.sh ||
11994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11995 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11996 ac_delim='%!_!# '
11997 for ac_last_try in false false false false false :; do
11998 . ./conf$$subs.sh ||
11999 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12001 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12002 if test $ac_delim_n = $ac_delim_num; then
12003 break
12004 elif $ac_last_try; then
12005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12006 else
12007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12009 done
12010 rm -f conf$$subs.sh
12012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12013 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12014 _ACEOF
12015 sed -n '
12017 s/^/S["/; s/!.*/"]=/
12020 s/^[^!]*!//
12021 :repl
12022 t repl
12023 s/'"$ac_delim"'$//
12024 t delim
12027 s/\(.\{148\}\)..*/\1/
12028 t more1
12029 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12032 b repl
12033 :more1
12034 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12037 s/.\{148\}//
12038 t nl
12039 :delim
12041 s/\(.\{148\}\)..*/\1/
12042 t more2
12043 s/["\\]/\\&/g; s/^/"/; s/$/"/
12046 :more2
12047 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12050 s/.\{148\}//
12051 t delim
12052 ' <conf$$subs.awk | sed '
12053 /^[^""]/{
12055 s/\n//
12057 ' >>$CONFIG_STATUS || ac_write_fail=1
12058 rm -f conf$$subs.awk
12059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12060 _ACAWK
12061 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12062 for (key in S) S_is_set[key] = 1
12063 FS = "\a"
12067 line = $ 0
12068 nfields = split(line, field, "@")
12069 substed = 0
12070 len = length(field[1])
12071 for (i = 2; i < nfields; i++) {
12072 key = field[i]
12073 keylen = length(key)
12074 if (S_is_set[key]) {
12075 value = S[key]
12076 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12077 len += length(value) + length(field[++i])
12078 substed = 1
12079 } else
12080 len += 1 + keylen
12083 print line
12086 _ACAWK
12087 _ACEOF
12088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12089 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12090 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12091 else
12093 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12094 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12095 _ACEOF
12097 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12098 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12099 # trailing colons and then remove the whole line if VPATH becomes empty
12100 # (actually we leave an empty line to preserve line numbers).
12101 if test "x$srcdir" = x.; then
12102 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12104 s///
12105 s/^/:/
12106 s/[ ]*$/:/
12107 s/:\$(srcdir):/:/g
12108 s/:\${srcdir}:/:/g
12109 s/:@srcdir@:/:/g
12110 s/^:*//
12111 s/:*$//
12113 s/\(=[ ]*\).*/\1/
12115 s/\n//
12116 s/^[^=]*=[ ]*$//
12120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12121 fi # test -n "$CONFIG_FILES"
12123 # Set up the scripts for CONFIG_HEADERS section.
12124 # No need to generate them if there are no CONFIG_HEADERS.
12125 # This happens for instance with `./config.status Makefile'.
12126 if test -n "$CONFIG_HEADERS"; then
12127 cat >"$tmp/defines.awk" <<\_ACAWK ||
12128 BEGIN {
12129 _ACEOF
12131 # Transform confdefs.h into an awk script `defines.awk', embedded as
12132 # here-document in config.status, that substitutes the proper values into
12133 # config.h.in to produce config.h.
12135 # Create a delimiter string that does not exist in confdefs.h, to ease
12136 # handling of long lines.
12137 ac_delim='%!_!# '
12138 for ac_last_try in false false :; do
12139 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12140 if test -z "$ac_t"; then
12141 break
12142 elif $ac_last_try; then
12143 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12144 else
12145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12147 done
12149 # For the awk script, D is an array of macro values keyed by name,
12150 # likewise P contains macro parameters if any. Preserve backslash
12151 # newline sequences.
12153 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12154 sed -n '
12155 s/.\{148\}/&'"$ac_delim"'/g
12156 t rset
12157 :rset
12158 s/^[ ]*#[ ]*define[ ][ ]*/ /
12159 t def
12161 :def
12162 s/\\$//
12163 t bsnl
12164 s/["\\]/\\&/g
12165 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12166 D["\1"]=" \3"/p
12167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12169 :bsnl
12170 s/["\\]/\\&/g
12171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12172 D["\1"]=" \3\\\\\\n"\\/p
12173 t cont
12174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12175 t cont
12177 :cont
12179 s/.\{148\}/&'"$ac_delim"'/g
12180 t clear
12181 :clear
12182 s/\\$//
12183 t bsnlc
12184 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12186 :bsnlc
12187 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12188 b cont
12189 ' <confdefs.h | sed '
12190 s/'"$ac_delim"'/"\\\
12191 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12194 for (key in D) D_is_set[key] = 1
12195 FS = "\a"
12197 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12198 line = \$ 0
12199 split(line, arg, " ")
12200 if (arg[1] == "#") {
12201 defundef = arg[2]
12202 mac1 = arg[3]
12203 } else {
12204 defundef = substr(arg[1], 2)
12205 mac1 = arg[2]
12207 split(mac1, mac2, "(") #)
12208 macro = mac2[1]
12209 prefix = substr(line, 1, index(line, defundef) - 1)
12210 if (D_is_set[macro]) {
12211 # Preserve the white space surrounding the "#".
12212 print prefix "define", macro P[macro] D[macro]
12213 next
12214 } else {
12215 # Replace #undef with comments. This is necessary, for example,
12216 # in the case of _POSIX_SOURCE, which is predefined and required
12217 # on some systems where configure will not decide to define it.
12218 if (defundef == "undef") {
12219 print "/*", prefix defundef, macro, "*/"
12220 next
12224 { print }
12225 _ACAWK
12226 _ACEOF
12227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12228 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12229 fi # test -n "$CONFIG_HEADERS"
12232 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12233 shift
12234 for ac_tag
12236 case $ac_tag in
12237 :[FHLC]) ac_mode=$ac_tag; continue;;
12238 esac
12239 case $ac_mode$ac_tag in
12240 :[FHL]*:*);;
12241 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12242 :[FH]-) ac_tag=-:-;;
12243 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12244 esac
12245 ac_save_IFS=$IFS
12246 IFS=:
12247 set x $ac_tag
12248 IFS=$ac_save_IFS
12249 shift
12250 ac_file=$1
12251 shift
12253 case $ac_mode in
12254 :L) ac_source=$1;;
12255 :[FH])
12256 ac_file_inputs=
12257 for ac_f
12259 case $ac_f in
12260 -) ac_f="$tmp/stdin";;
12261 *) # Look for the file first in the build tree, then in the source tree
12262 # (if the path is not absolute). The absolute path cannot be DOS-style,
12263 # because $ac_f cannot contain `:'.
12264 test -f "$ac_f" ||
12265 case $ac_f in
12266 [\\/$]*) false;;
12267 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12268 esac ||
12269 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12270 esac
12271 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12272 as_fn_append ac_file_inputs " '$ac_f'"
12273 done
12275 # Let's still pretend it is `configure' which instantiates (i.e., don't
12276 # use $as_me), people would be surprised to read:
12277 # /* config.h. Generated by config.status. */
12278 configure_input='Generated from '`
12279 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12280 `' by configure.'
12281 if test x"$ac_file" != x-; then
12282 configure_input="$ac_file. $configure_input"
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12284 $as_echo "$as_me: creating $ac_file" >&6;}
12286 # Neutralize special characters interpreted by sed in replacement strings.
12287 case $configure_input in #(
12288 *\&* | *\|* | *\\* )
12289 ac_sed_conf_input=`$as_echo "$configure_input" |
12290 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12291 *) ac_sed_conf_input=$configure_input;;
12292 esac
12294 case $ac_tag in
12295 *:-:* | *:-) cat >"$tmp/stdin" \
12296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12297 esac
12299 esac
12301 ac_dir=`$as_dirname -- "$ac_file" ||
12302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12303 X"$ac_file" : 'X\(//\)[^/]' \| \
12304 X"$ac_file" : 'X\(//\)$' \| \
12305 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12306 $as_echo X"$ac_file" |
12307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12308 s//\1/
12311 /^X\(\/\/\)[^/].*/{
12312 s//\1/
12315 /^X\(\/\/\)$/{
12316 s//\1/
12319 /^X\(\/\).*/{
12320 s//\1/
12323 s/.*/./; q'`
12324 as_dir="$ac_dir"; as_fn_mkdir_p
12325 ac_builddir=.
12327 case "$ac_dir" in
12328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12331 # A ".." for each directory in $ac_dir_suffix.
12332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12333 case $ac_top_builddir_sub in
12334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12336 esac ;;
12337 esac
12338 ac_abs_top_builddir=$ac_pwd
12339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12340 # for backward compatibility:
12341 ac_top_builddir=$ac_top_build_prefix
12343 case $srcdir in
12344 .) # We are building in place.
12345 ac_srcdir=.
12346 ac_top_srcdir=$ac_top_builddir_sub
12347 ac_abs_top_srcdir=$ac_pwd ;;
12348 [\\/]* | ?:[\\/]* ) # Absolute name.
12349 ac_srcdir=$srcdir$ac_dir_suffix;
12350 ac_top_srcdir=$srcdir
12351 ac_abs_top_srcdir=$srcdir ;;
12352 *) # Relative name.
12353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12354 ac_top_srcdir=$ac_top_build_prefix$srcdir
12355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12356 esac
12357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12360 case $ac_mode in
12363 # CONFIG_FILE
12366 _ACEOF
12368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12369 # If the template does not know about datarootdir, expand it.
12370 # FIXME: This hack should be removed a few years after 2.60.
12371 ac_datarootdir_hack=; ac_datarootdir_seen=
12372 ac_sed_dataroot='
12373 /datarootdir/ {
12377 /@datadir@/p
12378 /@docdir@/p
12379 /@infodir@/p
12380 /@localedir@/p
12381 /@mandir@/p'
12382 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12383 *datarootdir*) ac_datarootdir_seen=yes;;
12384 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12386 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12387 _ACEOF
12388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12389 ac_datarootdir_hack='
12390 s&@datadir@&$datadir&g
12391 s&@docdir@&$docdir&g
12392 s&@infodir@&$infodir&g
12393 s&@localedir@&$localedir&g
12394 s&@mandir@&$mandir&g
12395 s&\\\${datarootdir}&$datarootdir&g' ;;
12396 esac
12397 _ACEOF
12399 # Neutralize VPATH when `$srcdir' = `.'.
12400 # Shell code in configure.ac might set extrasub.
12401 # FIXME: do we really want to maintain this feature?
12402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12403 ac_sed_extra="$ac_vpsub
12404 $extrasub
12405 _ACEOF
12406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12409 s|@configure_input@|$ac_sed_conf_input|;t t
12410 s&@top_builddir@&$ac_top_builddir_sub&;t t
12411 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12412 s&@srcdir@&$ac_srcdir&;t t
12413 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12414 s&@top_srcdir@&$ac_top_srcdir&;t t
12415 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12416 s&@builddir@&$ac_builddir&;t t
12417 s&@abs_builddir@&$ac_abs_builddir&;t t
12418 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12419 $ac_datarootdir_hack
12421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12425 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12428 which seems to be undefined. Please make sure it is defined" >&5
12429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12430 which seems to be undefined. Please make sure it is defined" >&2;}
12432 rm -f "$tmp/stdin"
12433 case $ac_file in
12434 -) cat "$tmp/out" && rm -f "$tmp/out";;
12435 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12436 esac \
12437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12441 # CONFIG_HEADER
12443 if test x"$ac_file" != x-; then
12445 $as_echo "/* $configure_input */" \
12446 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12447 } >"$tmp/config.h" \
12448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12449 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12452 else
12453 rm -f "$ac_file"
12454 mv "$tmp/config.h" "$ac_file" \
12455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12457 else
12458 $as_echo "/* $configure_input */" \
12459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12460 || as_fn_error $? "could not create -" "$LINENO" 5
12464 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12465 $as_echo "$as_me: executing $ac_file commands" >&6;}
12467 esac
12470 case $ac_file$ac_mode in
12471 "compiler_executable":C)
12472 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12473 mkdir -p $prefix
12474 prefix="${prefix}/${aros_target_cpu}-aros"
12475 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12477 echo ${prefix}
12478 echo ${prefix2}
12479 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12481 ln -sf ${prefix2}-gcc ${prefix}-gcc
12482 ln -sf ${prefix2}-ld ${prefix}-ld
12484 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12485 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12486 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12487 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12488 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12489 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12490 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12492 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12493 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12494 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12495 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12496 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12497 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12498 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12500 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12502 esac
12503 done # for ac_tag
12506 as_fn_exit 0
12507 _ACEOF
12508 ac_clean_files=$ac_clean_files_save
12510 test $ac_write_fail = 0 ||
12511 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12514 # configure is writing to config.log, and then calls config.status.
12515 # config.status does its own redirection, appending to config.log.
12516 # Unfortunately, on DOS this fails, as config.log is still kept open
12517 # by configure, so config.status won't be able to write to it; its
12518 # output is simply discarded. So we exec the FD to /dev/null,
12519 # effectively closing config.log, so it can be properly (re)opened and
12520 # appended to by config.status. When coming back to configure, we
12521 # need to make the FD available again.
12522 if test "$no_create" != yes; then
12523 ac_cs_success=:
12524 ac_config_status_args=
12525 test "$silent" = yes &&
12526 ac_config_status_args="$ac_config_status_args --quiet"
12527 exec 5>/dev/null
12528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12529 exec 5>>config.log
12530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12531 # would make configure fail if this is the last instruction.
12532 $ac_cs_success || as_fn_exit 1
12534 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12536 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12541 #XXX compatability...
12542 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12544 if test -n "$aros_shared_cflags" ; then
12545 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12546 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg