Experimental scons files removed. It should somehow be possible to build AROS with...
[AROS.git] / configure
blobcac25ccb19c5ee4017e83c9813a3e7943d228a8d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_usb30_code
623 aros_palm_debug_hack
624 aros_serial_debug
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_libdirs
628 aros_host_x11_includes
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 aros_default_wbdepth
632 aros_default_wbheight
633 aros_default_wbwidth
634 oss_library_target
635 pci_hidd_target
636 sdl_hidd_target
637 x11_hidd_target
638 aros_cflags_format_security
639 aros_cflags_strict_overflow
640 aros_cflags_enum_compare
641 aros_cflags_array_bounds
642 aros_cflags_unused_but_set_variable
643 crosstools_cxx_target
644 crosstools_target
645 aros_target_strip_flags
646 aros_target_genmap
647 aros_debug_ldflags
648 aros_debug_aflags
649 aros_debug_cflags
650 aros_target_cflags
651 aros_kernel_ldflags
652 aros_kernel_objcflags
653 aros_kernel_includes
654 aros_kernel_cflags
655 aros_shared_ldflags
656 aros_shared_aflags
657 aros_shared_cflags
658 aros_config_ldflags
659 aros_config_aflags
660 aros_config_cflags
661 aros_arch_libs
662 aros_compiler_libs
663 aros_object_format
664 aros_shared_ld
665 aros_shared_default
666 aros_target_nm
667 aros_target_strip
668 aros_target_objcopy
669 aros_target_objdump
670 aros_target_cc_path
671 aros_target_cc_includes
672 orig_target_ld
673 aros_target_as
674 aros_kernel_cc
675 orig_target_cc
676 aros_plain_ar
677 aros_plain_nm
678 aros_target_ranlib
679 aros_target_ar
680 aros_target_incl
681 aros_target_suffix
682 aros_target_variant
683 aros_target_cpu
684 aros_target_family
685 aros_target_arch
686 aros_target_bootloader
687 aros_target_iconset
688 aros_target_guitheme
689 aros_tools_dir
690 aros_host_lib_suffix
691 aros_host_exe_suffix
692 aros_host_mkargs
693 aros_host_mkdep
694 aros_host_debug
695 aros_host_ldflags
696 gnu89_inline
697 aros_host_cflags
698 aros_host_make
699 aros_host_cc
700 aros_host_cpu
701 aros_host_arch
702 aros_cc_pre
703 aros_amigaos_compliance
704 AROS_PORTSSRCDIR
705 AROS_CROSSTOOLSDIR
706 SRCDIR
707 AROS_BUILDDIR_UNIX
708 AROS_BUILDDIR
709 aros_flavour_uc
710 aros_flavour
711 aros_cpu
712 aros_arch
713 SDL_LIBS
714 SDL_CFLAGS
715 SDL_CONFIG
716 XMKMF
717 aros_cflags_iquote_end
718 aros_cflags_iquote
719 kernel_cflags_iquote_end
720 kernel_cflags_iquote
721 host_cflags_iquote_end
722 host_cflags_iquote
723 aros_target_nostdlib_ldflags
724 aros_target_detach_ldflags
725 aros_target_nix_ldflags
726 aros_target_nostartup_ldflags
727 aros_target_nostdinc_cflags
728 aros_target_ld
729 aros_target_cc
730 aros_target_cxx
731 aros_target_strip_ln
732 aros_target_ranlib_ln
733 aros_target_objdump_ln
734 aros_target_objcopy_ln
735 aros_target_nm_ln
736 aros_target_ar_ln
737 aros_target_as_ln
738 aros_kernel_ranlib
739 aros_kernel_ar
740 aros_kernel_ld
741 aros_kernel_rescomp
743 android_tool
744 CCACHE
745 DISTCC
746 LIBOBJS
747 EGREP
748 GREP
750 TEST
753 pkgpyexecdir
754 pyexecdir
755 pkgpythondir
756 pythondir
757 PYTHON_PLATFORM
758 PYTHON_EXEC_PREFIX
759 PYTHON_PREFIX
760 PYTHON_VERSION
761 PYTHON
762 PATCH
763 CHMOD
765 PPMTOILBM
766 PNGTOPNM
767 FLEX
768 BISON
771 UNIQ
772 SORT
773 TOUCH
774 MKDIR
775 ECHO
779 aros_host_strip
780 aros_host_ranlib
781 aros_host_ar
782 aros_host_automake
783 aros_host_autoheader
784 aros_host_autoconf
785 aros_host_aclocal
786 aros_host_ld
787 MMAKE
790 OBJEXT
791 EXEEXT
792 ac_ct_CC
793 CPPFLAGS
794 LDFLAGS
795 CFLAGS
797 host_os
798 host_vendor
799 host_cpu
800 host
801 build_os
802 build_vendor
803 build_cpu
804 build
805 target_alias
806 host_alias
807 build_alias
808 LIBS
809 ECHO_T
810 ECHO_N
811 ECHO_C
812 DEFS
813 mandir
814 localedir
815 libdir
816 psdir
817 pdfdir
818 dvidir
819 htmldir
820 infodir
821 docdir
822 oldincludedir
823 includedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL'
843 ac_subst_files=''
844 ac_user_opts='
845 enable_option_checking
846 enable_build_type
847 enable_debug
848 enable_crosstools
849 enable_distcc
850 enable_ccache
851 with_gcc_version
852 with_optimization
853 with_paranoia
854 enable_target_variant
855 with_xcode
856 with_sdk_version
857 with_sdk
858 with_ndk
859 with_ndk_version
860 enable_amigaos_compliance
861 with_cpu
862 with_fpu
863 with_float
864 with_crosstools
865 with_aros_gcc
866 with_portssources
867 with_bootloader
868 with_iconset
869 with_theme
870 enable_includes
871 with_resolution
872 with_serial_debug
873 enable_palm_debug_hack
874 enable_usb30_code
875 enable_nesting_supervisor
876 enable_mmu
877 enable_x11_hidd
878 with_x
879 enable_x11_shm
880 enable_x11_vidmode
881 enable_sdl_hidd
882 with_sdl_prefix
883 with_sdl_exec_prefix
884 enable_sdltest
885 enable_dbus
887 ac_precious_vars='build_alias
888 host_alias
889 target_alias
891 CFLAGS
892 LDFLAGS
893 LIBS
894 CPPFLAGS
896 XMKMF'
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
947 ac_prev=
948 ac_dashdash=
949 for ac_option
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
958 case $ac_option in
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
962 esac
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
968 ac_dashdash=yes ;;
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
987 --config-cache | -C)
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1232 -with-* | --with-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information"
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1297 # FIXME: should be removed in autoconf 3.0.
1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304 esac
1305 done
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error $? "missing argument to $ac_option"
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
1334 case $ac_val in
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 esac
1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1353 If a cross compiler is detected then cross compile mode will be used" >&2
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1391 /^X\(\/\/\)$/{
1392 s//\1/
1395 /^X\(\/\).*/{
1396 s//\1/
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1404 else
1405 ac_srcdir_defaulted=no
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures this package to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1492 _ACEOF
1494 cat <<\_ACEOF
1496 X features:
1497 --x-includes=DIR X include files are in DIR
1498 --x-libraries=DIR X library files are in DIR
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1506 if test -n "$ac_init_help"; then
1508 cat <<\_ACEOF
1510 Optional Features:
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-build-type=TYPE
1515 Select the build type. Available types are:
1516 personal, nightly, snapshot, milestone, release. Do
1517 NOT use this option unless you know what you are
1518 doing! (default=personal)
1519 --enable-debug=list Enable different types of debug. Commas or
1520 whitespaces can be used to separate the items in the
1521 list. Available types of debug are: all, none,
1522 messages, stack, mungwall, modules, symbols. If no
1523 list is provided then "all" is assumed.
1524 (default=none)
1525 --enable-crosstools Build cross-compiler toolchains if necessary
1526 (default=no).
1527 --enable-distcc Use distcc as a front end to the compiler
1528 (default=no).
1529 --enable-ccache Use ccache as a front end to the compiler
1530 (default=no).
1531 --enable-target-variant=NAME
1532 Enable a specific target variant(default=none)
1533 --enable-amigaos-compliance=VERSION
1534 Enforce userspace AmigaOS compliance to a specific
1535 KickStart version (default=none).
1536 --enable-includes=dir Alternative system include directory
1537 --enable-palm-debug-hack
1538 Enable palm debug output hack in palm native
1539 (default=no)
1540 --enable-usb30-code Enable usb3.0 code (default=no)
1541 --enable-nesting-supervisor
1542 Enable nesting supervisor support in unix
1543 (default=no)
1544 --disable-mmu Disable MMU support (default=enabled)
1545 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1546 --enable-x11-shm use X11 shared memory (default=auto)
1547 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1548 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1549 --disable-sdltest Do not try to compile and run a test SDL program
1550 --enable-dbus Enable DBUS support via dbus.library (default=no)
1552 Optional Packages:
1553 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1554 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1555 --with-gcc-version=VERSION
1556 Use host gcc-VERSION for building AROS
1557 --with-optimization=FLAGS
1558 Use optimization flags FLAGS (default=-O2).
1559 --with-paranoia=FLAGS CC flags to enable paranoia
1560 --with-xcode=PATH Specify XCode path for iOS targets
1561 (default=/Developer).
1562 --with-sdk-version=VERSION
1563 Use iOS SDK version VERSION (default=4.1).
1564 --with-sdk=PATH Specify Android SDK path
1565 (default=$default_android_sdk).
1566 --with-ndk=PATH Specify Android NDK path (default=none).
1567 --with-sdk-version=LEVEL
1568 Use Android SDK for API LEVEL (default=12).
1569 --with-ndk-version=LEVEL
1570 Use Android NDK for API LEVEL (default=9).
1571 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1572 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1573 --with-float=<spec> Specify floating point ABI
1574 (default=$gcc_default_float_abi).
1575 --with-crosstools=DIR Where to install or search for cross tools binaries
1576 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1577 --with-portssources=DIR Where to download sourcecode for external ports
1578 --with-bootloader=NAME Use a specific bootloader
1579 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1580 --with-theme=NAME Use a specific GUI Theme
1581 --with-resolution=XRESxYRESxDEPTH
1582 Default resolution of the initial WorkbenchScreen
1583 --with-serial-debug Enable serial debug output in native (default=no)
1584 --with-x use the X Window System
1585 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1586 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1596 CPP C preprocessor
1597 XMKMF Path to xmkmf, Makefile generator for X Window System
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to the package provider.
1603 _ACEOF
1604 ac_status=$?
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
1613 ac_builddir=.
1615 case "$ac_dir" in
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625 esac
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1631 case $srcdir in
1632 .) # We are building in place.
1633 ac_srcdir=.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 esac
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1659 done
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1664 cat <<\_ACEOF
1665 configure
1666 generated by GNU Autoconf 2.68
1668 Copyright (C) 2010 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1671 _ACEOF
1672 exit
1675 ## ------------------------ ##
1676 ## Autoconf initialization. ##
1677 ## ------------------------ ##
1679 # ac_fn_c_try_compile LINENO
1680 # --------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=1
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_compile
1717 # ac_fn_c_try_cpp LINENO
1718 # ----------------------
1719 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_cpp ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_cpp conftest.$ac_ext"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } > conftest.i && {
1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 }; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=1
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_c_try_cpp
1754 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757 # the include files in INCLUDES and setting the cache variable VAR
1758 # accordingly.
1759 ac_fn_c_check_header_mongrel ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if eval \${$3+:} false; then :
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1768 eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 else
1772 # Is the header compilable?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774 $as_echo_n "checking $2 usability... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 ac_header_compiler=yes
1782 else
1783 ac_header_compiler=no
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787 $as_echo "$ac_header_compiler" >&6; }
1789 # Is the header present?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791 $as_echo_n "checking $2 presence... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_cpp "$LINENO"; then :
1797 ac_header_preproc=yes
1798 else
1799 ac_header_preproc=no
1801 rm -f conftest.err conftest.i conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803 $as_echo "$ac_header_preproc" >&6; }
1805 # So? What about this header?
1806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1807 yes:no: )
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813 no:yes:* )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1817 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1821 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 esac
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1830 else
1831 eval "$3=\$ac_header_compiler"
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 } # ac_fn_c_check_header_mongrel
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1845 ac_fn_c_try_run ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>&5
1856 ac_status=$?
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859 { { case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_try") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; }; }; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: program exited with status $ac_status" >&5
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=$ac_status
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_c_try_run
1883 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884 # -------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_c_check_header_compile ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1894 else
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1898 #include <$2>
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901 eval "$3=yes"
1902 else
1903 eval "$3=no"
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 } # ac_fn_c_check_header_compile
1914 # ac_fn_c_try_link LINENO
1915 # -----------------------
1916 # Try to link conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_c_try_link ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 rm -f conftest.$ac_objext conftest$ac_exeext
1921 if { { ac_try="$ac_link"
1922 case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_link") 2>conftest.err
1929 ac_status=$?
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && {
1937 test -z "$ac_c_werror_flag" ||
1938 test ! -s conftest.err
1939 } && test -s conftest$ac_exeext && {
1940 test "$cross_compiling" = yes ||
1941 $as_test_x conftest$ac_exeext
1942 }; then :
1943 ac_retval=0
1944 else
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1948 ac_retval=1
1950 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952 # interfere with the next link command; also delete a directory that is
1953 # left behind by Apple's compiler. We do this before executing the actions.
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1958 } # ac_fn_c_try_link
1960 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1961 # ----------------------------------------------------
1962 # Tries to find if the field MEMBER exists in type AGGR, after including
1963 # INCLUDES, setting cache variable VAR accordingly.
1964 ac_fn_c_check_member ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1968 $as_echo_n "checking for $2.$3... " >&6; }
1969 if eval \${$4+:} false; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 static $2 ac_aggr;
1979 if (ac_aggr.$3)
1980 return 0;
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$4=yes"
1987 else
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1992 main ()
1994 static $2 ac_aggr;
1995 if (sizeof ac_aggr.$3)
1996 return 0;
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$4=yes"
2003 else
2004 eval "$4=no"
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 eval ac_res=\$$4
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_member
2017 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2018 # ---------------------------------------------
2019 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2020 # accordingly.
2021 ac_fn_c_check_decl ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 as_decl_name=`echo $2|sed 's/ *(.*//'`
2025 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2027 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2028 if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 main ()
2037 #ifndef $as_decl_name
2038 #ifdef __cplusplus
2039 (void) $as_decl_use;
2040 #else
2041 (void) $as_decl_name;
2042 #endif
2043 #endif
2046 return 0;
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 eval "$3=yes"
2051 else
2052 eval "$3=no"
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_decl
2063 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064 # -------------------------------------------
2065 # Tests whether TYPE exists after having included INCLUDES, setting cache
2066 # variable VAR accordingly.
2067 ac_fn_c_check_type ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if eval \${$3+:} false; then :
2073 $as_echo_n "(cached) " >&6
2074 else
2075 eval "$3=no"
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 if (sizeof ($2))
2083 return 0;
2085 return 0;
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 if (sizeof (($2)))
2096 return 0;
2098 return 0;
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2103 else
2104 eval "$3=yes"
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115 } # ac_fn_c_check_type
2117 # ac_fn_c_check_func LINENO FUNC VAR
2118 # ----------------------------------
2119 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2120 ac_fn_c_check_func ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2127 else
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2132 #define $2 innocuous_$2
2134 /* System header to define __stub macros and hopefully few prototypes,
2135 which can conflict with char $2 (); below.
2136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2137 <limits.h> exists even on freestanding compilers. */
2139 #ifdef __STDC__
2140 # include <limits.h>
2141 #else
2142 # include <assert.h>
2143 #endif
2145 #undef $2
2147 /* Override any GCC internal prototype to avoid an error.
2148 Use char because int might match the return type of a GCC
2149 builtin and then its argument prototype would still apply. */
2150 #ifdef __cplusplus
2151 extern "C"
2152 #endif
2153 char $2 ();
2154 /* The GNU C library defines this for functions which it implements
2155 to always fail with ENOSYS. Some functions are actually named
2156 something starting with __ and the normal name is an alias. */
2157 #if defined __stub_$2 || defined __stub___$2
2158 choke me
2159 #endif
2162 main ()
2164 return $2 ();
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_link "$LINENO"; then :
2170 eval "$3=yes"
2171 else
2172 eval "$3=no"
2174 rm -f core conftest.err conftest.$ac_objext \
2175 conftest$ac_exeext conftest.$ac_ext
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_func
2183 cat >config.log <<_ACEOF
2184 This file contains any messages produced by compilers while
2185 running configure, to aid debugging if configure makes a mistake.
2187 It was created by $as_me, which was
2188 generated by GNU Autoconf 2.68. Invocation command line was
2190 $ $0 $@
2192 _ACEOF
2193 exec 5>>config.log
2195 cat <<_ASUNAME
2196 ## --------- ##
2197 ## Platform. ##
2198 ## --------- ##
2200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2212 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2217 _ASUNAME
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 $as_echo "PATH: $as_dir"
2225 done
2226 IFS=$as_save_IFS
2228 } >&5
2230 cat >&5 <<_ACEOF
2233 ## ----------- ##
2234 ## Core tests. ##
2235 ## ----------- ##
2237 _ACEOF
2240 # Keep a trace of the command line.
2241 # Strip out --no-create and --no-recursion so they do not pile up.
2242 # Strip out --silent because we don't want to record it for future runs.
2243 # Also quote any args containing shell meta-characters.
2244 # Make two passes to allow for proper duplicate-argument suppression.
2245 ac_configure_args=
2246 ac_configure_args0=
2247 ac_configure_args1=
2248 ac_must_keep_next=false
2249 for ac_pass in 1 2
2251 for ac_arg
2253 case $ac_arg in
2254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2256 | -silent | --silent | --silen | --sile | --sil)
2257 continue ;;
2258 *\'*)
2259 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2260 esac
2261 case $ac_pass in
2262 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2264 as_fn_append ac_configure_args1 " '$ac_arg'"
2265 if test $ac_must_keep_next = true; then
2266 ac_must_keep_next=false # Got value, back to normal.
2267 else
2268 case $ac_arg in
2269 *=* | --config-cache | -C | -disable-* | --disable-* \
2270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2272 | -with-* | --with-* | -without-* | --without-* | --x)
2273 case "$ac_configure_args0 " in
2274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2275 esac
2277 -* ) ac_must_keep_next=true ;;
2278 esac
2280 as_fn_append ac_configure_args " '$ac_arg'"
2282 esac
2283 done
2284 done
2285 { ac_configure_args0=; unset ac_configure_args0;}
2286 { ac_configure_args1=; unset ac_configure_args1;}
2288 # When interrupted or exit'd, cleanup temporary files, and complete
2289 # config.log. We remove comments because anyway the quotes in there
2290 # would cause problems or look ugly.
2291 # WARNING: Use '\'' to represent an apostrophe within the trap.
2292 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2293 trap 'exit_status=$?
2294 # Save into config.log some information that might help in debugging.
2296 echo
2298 $as_echo "## ---------------- ##
2299 ## Cache variables. ##
2300 ## ---------------- ##"
2301 echo
2302 # The following way of writing the cache mishandles newlines in values,
2304 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2305 eval ac_val=\$$ac_var
2306 case $ac_val in #(
2307 *${as_nl}*)
2308 case $ac_var in #(
2309 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2311 esac
2312 case $ac_var in #(
2313 _ | IFS | as_nl) ;; #(
2314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2315 *) { eval $ac_var=; unset $ac_var;} ;;
2316 esac ;;
2317 esac
2318 done
2319 (set) 2>&1 |
2320 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2321 *${as_nl}ac_space=\ *)
2322 sed -n \
2323 "s/'\''/'\''\\\\'\'''\''/g;
2324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2325 ;; #(
2327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2329 esac |
2330 sort
2332 echo
2334 $as_echo "## ----------------- ##
2335 ## Output variables. ##
2336 ## ----------------- ##"
2337 echo
2338 for ac_var in $ac_subst_vars
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2348 if test -n "$ac_subst_files"; then
2349 $as_echo "## ------------------- ##
2350 ## File substitutions. ##
2351 ## ------------------- ##"
2352 echo
2353 for ac_var in $ac_subst_files
2355 eval ac_val=\$$ac_var
2356 case $ac_val in
2357 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 esac
2359 $as_echo "$ac_var='\''$ac_val'\''"
2360 done | sort
2361 echo
2364 if test -s confdefs.h; then
2365 $as_echo "## ----------- ##
2366 ## confdefs.h. ##
2367 ## ----------- ##"
2368 echo
2369 cat confdefs.h
2370 echo
2372 test "$ac_signal" != 0 &&
2373 $as_echo "$as_me: caught signal $ac_signal"
2374 $as_echo "$as_me: exit $exit_status"
2375 } >&5
2376 rm -f core *.core core.conftest.* &&
2377 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2378 exit $exit_status
2380 for ac_signal in 1 2 13 15; do
2381 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2382 done
2383 ac_signal=0
2385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2386 rm -f -r conftest* confdefs.h
2388 $as_echo "/* confdefs.h */" > confdefs.h
2390 # Predefined preprocessor variables.
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_NAME "$PACKAGE_NAME"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2398 _ACEOF
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2402 _ACEOF
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_STRING "$PACKAGE_STRING"
2406 _ACEOF
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2410 _ACEOF
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_URL "$PACKAGE_URL"
2414 _ACEOF
2417 # Let the site file select an alternate cache file if it wants to.
2418 # Prefer an explicitly selected file to automatically selected ones.
2419 ac_site_file1=NONE
2420 ac_site_file2=NONE
2421 if test -n "$CONFIG_SITE"; then
2422 # We do not want a PATH search for config.site.
2423 case $CONFIG_SITE in #((
2424 -*) ac_site_file1=./$CONFIG_SITE;;
2425 */*) ac_site_file1=$CONFIG_SITE;;
2426 *) ac_site_file1=./$CONFIG_SITE;;
2427 esac
2428 elif test "x$prefix" != xNONE; then
2429 ac_site_file1=$prefix/share/config.site
2430 ac_site_file2=$prefix/etc/config.site
2431 else
2432 ac_site_file1=$ac_default_prefix/share/config.site
2433 ac_site_file2=$ac_default_prefix/etc/config.site
2435 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2437 test "x$ac_site_file" = xNONE && continue
2438 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2440 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2441 sed 's/^/| /' "$ac_site_file" >&5
2442 . "$ac_site_file" \
2443 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445 as_fn_error $? "failed to load site script $ac_site_file
2446 See \`config.log' for more details" "$LINENO" 5; }
2448 done
2450 if test -r "$cache_file"; then
2451 # Some versions of bash will fail to source /dev/null (special files
2452 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2453 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2455 $as_echo "$as_me: loading cache $cache_file" >&6;}
2456 case $cache_file in
2457 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2458 *) . "./$cache_file";;
2459 esac
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2463 $as_echo "$as_me: creating cache $cache_file" >&6;}
2464 >$cache_file
2467 as_fn_append ac_header_list " stdlib.h"
2468 as_fn_append ac_header_list " unistd.h"
2469 as_fn_append ac_header_list " sys/param.h"
2470 # Check that the precious variables saved in the cache have kept the same
2471 # value.
2472 ac_cache_corrupted=false
2473 for ac_var in $ac_precious_vars; do
2474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2475 eval ac_new_set=\$ac_env_${ac_var}_set
2476 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2477 eval ac_new_val=\$ac_env_${ac_var}_value
2478 case $ac_old_set,$ac_new_set in
2479 set,)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2481 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,set)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2485 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2486 ac_cache_corrupted=: ;;
2487 ,);;
2489 if test "x$ac_old_val" != "x$ac_new_val"; then
2490 # differences in whitespace do not lead to failure.
2491 ac_old_val_w=`echo x $ac_old_val`
2492 ac_new_val_w=`echo x $ac_new_val`
2493 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2495 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2496 ac_cache_corrupted=:
2497 else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2499 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2500 eval $ac_var=\$ac_old_val
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2503 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2505 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2506 fi;;
2507 esac
2508 # Pass precious variables to config.status.
2509 if test "$ac_new_set" = set; then
2510 case $ac_new_val in
2511 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 *) ac_arg=$ac_var=$ac_new_val ;;
2513 esac
2514 case " $ac_configure_args " in
2515 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2516 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2517 esac
2519 done
2520 if $ac_cache_corrupted; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2524 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2525 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2527 ## -------------------- ##
2528 ## Main body of script. ##
2529 ## -------------------- ##
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 ac_aux_dir=
2540 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2541 if test -f "$ac_dir/install-sh"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/install-sh -c"
2544 break
2545 elif test -f "$ac_dir/install.sh"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/install.sh -c"
2548 break
2549 elif test -f "$ac_dir/shtool"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/shtool install -c"
2552 break
2554 done
2555 if test -z "$ac_aux_dir"; then
2556 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2559 # These three variables are undocumented and unsupported,
2560 # and are intended to be withdrawn in a future Autoconf release.
2561 # They can cause serious problems if a builder's source tree is in a directory
2562 # whose full name contains unusual characters.
2563 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2564 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2565 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2569 # Check what host we are running on.
2570 # If a target is not suggested, we use this one.
2571 # Note that what we call a target, Autoconf calls a host.
2572 # Make sure we can run config.sub.
2573 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2574 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2577 $as_echo_n "checking build system type... " >&6; }
2578 if ${ac_cv_build+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 ac_build_alias=$build_alias
2582 test "x$ac_build_alias" = x &&
2583 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2584 test "x$ac_build_alias" = x &&
2585 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2586 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2591 $as_echo "$ac_cv_build" >&6; }
2592 case $ac_cv_build in
2593 *-*-*) ;;
2594 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2595 esac
2596 build=$ac_cv_build
2597 ac_save_IFS=$IFS; IFS='-'
2598 set x $ac_cv_build
2599 shift
2600 build_cpu=$1
2601 build_vendor=$2
2602 shift; shift
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2605 build_os=$*
2606 IFS=$ac_save_IFS
2607 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2611 $as_echo_n "checking host system type... " >&6; }
2612 if ${ac_cv_host+:} false; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test "x$host_alias" = x; then
2616 ac_cv_host=$ac_cv_build
2617 else
2618 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2624 $as_echo "$ac_cv_host" >&6; }
2625 case $ac_cv_host in
2626 *-*-*) ;;
2627 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2628 esac
2629 host=$ac_cv_host
2630 ac_save_IFS=$IFS; IFS='-'
2631 set x $ac_cv_host
2632 shift
2633 host_cpu=$1
2634 host_vendor=$2
2635 shift; shift
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2638 host_os=$*
2639 IFS=$ac_save_IFS
2640 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2644 # The AROS target is slightly different to the normal GNU style
2645 # format. We don't have the middle part, and we reverse the order
2646 # of the $(CPU) and $(OS) bits.
2648 # Don't strip the version of the target yet, it might be
2649 # useful on some systems.
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2652 $as_echo_n "checking for AROS style target... " >&6; }
2654 if test "$target" = "NONE" ; then
2655 target=$host_os-$host_cpu
2656 else
2657 if test "$target" = "" ; then
2658 target=$host_os-$host_cpu
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2662 $as_echo "$target" >&6; }
2664 if test "$host_os" = "mingw32" ; then
2665 PWDCMD="pwd -W"
2668 #don't know where else to put this...
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2670 $as_echo_n "checking building AROS in... " >&6; }
2671 AROS_BUILDDIR=`${PWDCMD-pwd}`
2672 AROS_BUILDDIR_UNIX=${PWD}
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2674 $as_echo "$AROS_BUILDDIR" >&6; }
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2677 $as_echo_n "checking AROS source in... " >&6; }
2678 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2679 SRCDIR=${srcpwd}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2681 $as_echo "$SRCDIR" >&6; }
2683 # Parse the target field into something useful.
2685 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2686 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2689 aros_default_wbwidth=800
2690 aros_default_wbheight=600
2691 aros_default_wbdepth=4
2694 # The first step is to find the host binaries.
2695 # Check for a compiler.
2696 ac_ext=c
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 if test -n "$ac_tool_prefix"; then
2702 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2703 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_CC+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2723 done
2724 done
2725 IFS=$as_save_IFS
2729 CC=$ac_cv_prog_CC
2730 if test -n "$CC"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2732 $as_echo "$CC" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2740 if test -z "$ac_cv_prog_CC"; then
2741 ac_ct_CC=$CC
2742 # Extract the first word of "gcc", so it can be a program name with args.
2743 set dummy gcc; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$ac_ct_CC"; then
2750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_ac_ct_CC="gcc"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2763 done
2764 done
2765 IFS=$as_save_IFS
2769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770 if test -n "$ac_ct_CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2772 $as_echo "$ac_ct_CC" >&6; }
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2778 if test "x$ac_ct_CC" = x; then
2779 CC=""
2780 else
2781 case $cross_compiling:$ac_tool_warned in
2782 yes:)
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2785 ac_tool_warned=yes ;;
2786 esac
2787 CC=$ac_ct_CC
2789 else
2790 CC="$ac_cv_prog_CC"
2793 if test -z "$CC"; then
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}cc; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_CC+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CC="${ac_tool_prefix}cc"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2818 IFS=$as_save_IFS
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2834 if test -z "$CC"; then
2835 # Extract the first word of "cc", so it can be a program name with args.
2836 set dummy cc; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_CC+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 ac_prog_rejected=no
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2854 ac_prog_rejected=yes
2855 continue
2857 ac_cv_prog_CC="cc"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2861 done
2862 done
2863 IFS=$as_save_IFS
2865 if test $ac_prog_rejected = yes; then
2866 # We found a bogon in the path, so make sure we never use it.
2867 set dummy $ac_cv_prog_CC
2868 shift
2869 if test $# != 0; then
2870 # We chose a different compiler from the bogus one.
2871 # However, it has the same basename, so the bogon will be chosen
2872 # first if we set CC to just the basename; use the full file name.
2873 shift
2874 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2890 if test -z "$CC"; then
2891 if test -n "$ac_tool_prefix"; then
2892 for ac_prog in cl.exe
2894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_CC+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2915 done
2916 done
2917 IFS=$as_save_IFS
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2931 test -n "$CC" && break
2932 done
2934 if test -z "$CC"; then
2935 ac_ct_CC=$CC
2936 for ac_prog in cl.exe
2938 # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 set dummy $ac_prog; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_ac_ct_CC="$ac_prog"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2959 done
2960 done
2961 IFS=$as_save_IFS
2965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966 if test -n "$ac_ct_CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2968 $as_echo "$ac_ct_CC" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2975 test -n "$ac_ct_CC" && break
2976 done
2978 if test "x$ac_ct_CC" = x; then
2979 CC=""
2980 else
2981 case $cross_compiling:$ac_tool_warned in
2982 yes:)
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2985 ac_tool_warned=yes ;;
2986 esac
2987 CC=$ac_ct_CC
2994 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error $? "no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details" "$LINENO" 5; }
2999 # Provide some information about the compiler.
3000 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3001 set X $ac_compile
3002 ac_compiler=$2
3003 for ac_option in --version -v -V -qversion; do
3004 { { ac_try="$ac_compiler $ac_option >&5"
3005 case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008 esac
3009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010 $as_echo "$ac_try_echo"; } >&5
3011 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3012 ac_status=$?
3013 if test -s conftest.err; then
3014 sed '10a\
3015 ... rest of stderr output deleted ...
3016 10q' conftest.err >conftest.er1
3017 cat conftest.er1 >&5
3019 rm -f conftest.er1 conftest.err
3020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021 test $ac_status = 0; }
3022 done
3024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025 /* end confdefs.h. */
3028 main ()
3032 return 0;
3034 _ACEOF
3035 ac_clean_files_save=$ac_clean_files
3036 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3039 # of exeext.
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3041 $as_echo_n "checking whether the C compiler works... " >&6; }
3042 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3044 # The possible output files:
3045 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3047 ac_rmfiles=
3048 for ac_file in $ac_files
3050 case $ac_file in
3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3053 esac
3054 done
3055 rm -f $ac_rmfiles
3057 if { { ac_try="$ac_link_default"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063 $as_echo "$ac_try_echo"; } >&5
3064 (eval "$ac_link_default") 2>&5
3065 ac_status=$?
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }; then :
3068 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3069 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3070 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3071 # so that the user can short-circuit this test for compilers unknown to
3072 # Autoconf.
3073 for ac_file in $ac_files ''
3075 test -f "$ac_file" || continue
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3079 [ab].out )
3080 # We found the default executable, but exeext='' is most
3081 # certainly right.
3082 break;;
3083 *.* )
3084 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3085 then :; else
3086 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 # We set ac_cv_exeext here because the later test for it is not
3089 # safe: cross compilers may not add the suffix if given an `-o'
3090 # argument, so we may need to know it at that point already.
3091 # Even if this section looks crufty: it has the advantage of
3092 # actually working.
3093 break;;
3095 break;;
3096 esac
3097 done
3098 test "$ac_cv_exeext" = no && ac_cv_exeext=
3100 else
3101 ac_file=''
3103 if test -z "$ac_file"; then :
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 $as_echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 as_fn_error 77 "C compiler cannot create executables
3112 See \`config.log' for more details" "$LINENO" 5; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115 $as_echo "yes" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3118 $as_echo_n "checking for C compiler default output file name... " >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3120 $as_echo "$ac_file" >&6; }
3121 ac_exeext=$ac_cv_exeext
3123 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3124 ac_clean_files=$ac_clean_files_save
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3126 $as_echo_n "checking for suffix of executables... " >&6; }
3127 if { { ac_try="$ac_link"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_link") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }; then :
3138 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3139 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3140 # work properly (i.e., refer to `conftest.exe'), while it won't with
3141 # `rm'.
3142 for ac_file in conftest.exe conftest conftest.*; do
3143 test -f "$ac_file" || continue
3144 case $ac_file in
3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3146 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147 break;;
3148 * ) break;;
3149 esac
3150 done
3151 else
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3155 See \`config.log' for more details" "$LINENO" 5; }
3157 rm -f conftest conftest$ac_cv_exeext
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3159 $as_echo "$ac_cv_exeext" >&6; }
3161 rm -f conftest.$ac_ext
3162 EXEEXT=$ac_cv_exeext
3163 ac_exeext=$EXEEXT
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3166 #include <stdio.h>
3168 main ()
3170 FILE *f = fopen ("conftest.out", "w");
3171 return ferror (f) || fclose (f) != 0;
3174 return 0;
3176 _ACEOF
3177 ac_clean_files="$ac_clean_files conftest.out"
3178 # Check that the compiler produces executables we can run. If not, either
3179 # the compiler is broken, or we cross compile.
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3181 $as_echo_n "checking whether we are cross compiling... " >&6; }
3182 if test "$cross_compiling" != yes; then
3183 { { ac_try="$ac_link"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_link") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }
3194 if { ac_try='./conftest$ac_cv_exeext'
3195 { { case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; }; then
3205 cross_compiling=no
3206 else
3207 if test "$cross_compiling" = maybe; then
3208 cross_compiling=yes
3209 else
3210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 as_fn_error $? "cannot run C compiled programs.
3213 If you meant to cross compile, use \`--host'.
3214 See \`config.log' for more details" "$LINENO" 5; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3219 $as_echo "$cross_compiling" >&6; }
3221 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3222 ac_clean_files=$ac_clean_files_save
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3224 $as_echo_n "checking for suffix of object files... " >&6; }
3225 if ${ac_cv_objext+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3232 main ()
3236 return 0;
3238 _ACEOF
3239 rm -f conftest.o conftest.obj
3240 if { { ac_try="$ac_compile"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_compile") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
3251 for ac_file in conftest.o conftest.obj conftest.*; do
3252 test -f "$ac_file" || continue;
3253 case $ac_file in
3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3255 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3256 break;;
3257 esac
3258 done
3259 else
3260 $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error $? "cannot compute suffix of object files: cannot compile
3266 See \`config.log' for more details" "$LINENO" 5; }
3268 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3271 $as_echo "$ac_cv_objext" >&6; }
3272 OBJEXT=$ac_cv_objext
3273 ac_objext=$OBJEXT
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3275 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3276 if ${ac_cv_c_compiler_gnu+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3283 main ()
3285 #ifndef __GNUC__
3286 choke me
3287 #endif
3290 return 0;
3292 _ACEOF
3293 if ac_fn_c_try_compile "$LINENO"; then :
3294 ac_compiler_gnu=yes
3295 else
3296 ac_compiler_gnu=no
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3303 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3304 if test $ac_compiler_gnu = yes; then
3305 GCC=yes
3306 else
3307 GCC=
3309 ac_test_CFLAGS=${CFLAGS+set}
3310 ac_save_CFLAGS=$CFLAGS
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3312 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3313 if ${ac_cv_prog_cc_g+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 ac_save_c_werror_flag=$ac_c_werror_flag
3317 ac_c_werror_flag=yes
3318 ac_cv_prog_cc_g=no
3319 CFLAGS="-g"
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3324 main ()
3328 return 0;
3330 _ACEOF
3331 if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_g=yes
3333 else
3334 CFLAGS=""
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3339 main ()
3343 return 0;
3345 _ACEOF
3346 if ac_fn_c_try_compile "$LINENO"; then :
3348 else
3349 ac_c_werror_flag=$ac_save_c_werror_flag
3350 CFLAGS="-g"
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3355 main ()
3359 return 0;
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"; then :
3363 ac_cv_prog_cc_g=yes
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_c_werror_flag=$ac_save_c_werror_flag
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3373 $as_echo "$ac_cv_prog_cc_g" >&6; }
3374 if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS=$ac_save_CFLAGS
3376 elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3378 CFLAGS="-g -O2"
3379 else
3380 CFLAGS="-g"
3382 else
3383 if test "$GCC" = yes; then
3384 CFLAGS="-O2"
3385 else
3386 CFLAGS=
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3390 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3391 if ${ac_cv_prog_cc_c89+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 ac_cv_prog_cc_c89=no
3395 ac_save_CC=$CC
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398 #include <stdarg.h>
3399 #include <stdio.h>
3400 #include <sys/types.h>
3401 #include <sys/stat.h>
3402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3403 struct buf { int x; };
3404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3405 static char *e (p, i)
3406 char **p;
3407 int i;
3409 return p[i];
3411 static char *f (char * (*g) (char **, int), char **p, ...)
3413 char *s;
3414 va_list v;
3415 va_start (v,p);
3416 s = g (p, va_arg (v,int));
3417 va_end (v);
3418 return s;
3421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3422 function prototypes and stuff, but not '\xHH' hex character constants.
3423 These don't provoke an error unfortunately, instead are silently treated
3424 as 'x'. The following induces an error, until -std is added to get
3425 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3426 array size at least. It's necessary to write '\x00'==0 to get something
3427 that's true only with -std. */
3428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3431 inside strings and character constants. */
3432 #define FOO(x) 'x'
3433 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3435 int test (int i, double x);
3436 struct s1 {int (*f) (int a);};
3437 struct s2 {int (*f) (double a);};
3438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3439 int argc;
3440 char **argv;
3442 main ()
3444 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3446 return 0;
3448 _ACEOF
3449 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3450 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452 CC="$ac_save_CC $ac_arg"
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454 ac_cv_prog_cc_c89=$ac_arg
3456 rm -f core conftest.err conftest.$ac_objext
3457 test "x$ac_cv_prog_cc_c89" != "xno" && break
3458 done
3459 rm -f conftest.$ac_ext
3460 CC=$ac_save_CC
3463 # AC_CACHE_VAL
3464 case "x$ac_cv_prog_cc_c89" in
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3467 $as_echo "none needed" >&6; } ;;
3468 xno)
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3470 $as_echo "unsupported" >&6; } ;;
3472 CC="$CC $ac_cv_prog_cc_c89"
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3474 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3475 esac
3476 if test "x$ac_cv_prog_cc_c89" != xno; then :
3480 ac_ext=c
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 case $ac_cv_prog_cc_stdc in #(
3487 no) :
3488 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3489 *) :
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3491 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3492 if ${ac_cv_prog_cc_c99+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 ac_cv_prog_cc_c99=no
3496 ac_save_CC=$CC
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499 #include <stdarg.h>
3500 #include <stdbool.h>
3501 #include <stdlib.h>
3502 #include <wchar.h>
3503 #include <stdio.h>
3505 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3506 #define debug(...) fprintf (stderr, __VA_ARGS__)
3507 #define showlist(...) puts (#__VA_ARGS__)
3508 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3509 static void
3510 test_varargs_macros (void)
3512 int x = 1234;
3513 int y = 5678;
3514 debug ("Flag");
3515 debug ("X = %d\n", x);
3516 showlist (The first, second, and third items.);
3517 report (x>y, "x is %d but y is %d", x, y);
3520 // Check long long types.
3521 #define BIG64 18446744073709551615ull
3522 #define BIG32 4294967295ul
3523 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3524 #if !BIG_OK
3525 your preprocessor is broken;
3526 #endif
3527 #if BIG_OK
3528 #else
3529 your preprocessor is broken;
3530 #endif
3531 static long long int bignum = -9223372036854775807LL;
3532 static unsigned long long int ubignum = BIG64;
3534 struct incomplete_array
3536 int datasize;
3537 double data[];
3540 struct named_init {
3541 int number;
3542 const wchar_t *name;
3543 double average;
3546 typedef const char *ccp;
3548 static inline int
3549 test_restrict (ccp restrict text)
3551 // See if C++-style comments work.
3552 // Iterate through items via the restricted pointer.
3553 // Also check for declarations in for loops.
3554 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3555 continue;
3556 return 0;
3559 // Check varargs and va_copy.
3560 static void
3561 test_varargs (const char *format, ...)
3563 va_list args;
3564 va_start (args, format);
3565 va_list args_copy;
3566 va_copy (args_copy, args);
3568 const char *str;
3569 int number;
3570 float fnumber;
3572 while (*format)
3574 switch (*format++)
3576 case 's': // string
3577 str = va_arg (args_copy, const char *);
3578 break;
3579 case 'd': // int
3580 number = va_arg (args_copy, int);
3581 break;
3582 case 'f': // float
3583 fnumber = va_arg (args_copy, double);
3584 break;
3585 default:
3586 break;
3589 va_end (args_copy);
3590 va_end (args);
3594 main ()
3597 // Check bool.
3598 _Bool success = false;
3600 // Check restrict.
3601 if (test_restrict ("String literal") == 0)
3602 success = true;
3603 char *restrict newvar = "Another string";
3605 // Check varargs.
3606 test_varargs ("s, d' f .", "string", 65, 34.234);
3607 test_varargs_macros ();
3609 // Check flexible array members.
3610 struct incomplete_array *ia =
3611 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3612 ia->datasize = 10;
3613 for (int i = 0; i < ia->datasize; ++i)
3614 ia->data[i] = i * 1.234;
3616 // Check named initializers.
3617 struct named_init ni = {
3618 .number = 34,
3619 .name = L"Test wide string",
3620 .average = 543.34343,
3623 ni.number = 58;
3625 int dynamic_array[ni.number];
3626 dynamic_array[ni.number - 1] = 543;
3628 // work around unused variable warnings
3629 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3630 || dynamic_array[ni.number - 1] != 543);
3633 return 0;
3635 _ACEOF
3636 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3638 CC="$ac_save_CC $ac_arg"
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640 ac_cv_prog_cc_c99=$ac_arg
3642 rm -f core conftest.err conftest.$ac_objext
3643 test "x$ac_cv_prog_cc_c99" != "xno" && break
3644 done
3645 rm -f conftest.$ac_ext
3646 CC=$ac_save_CC
3649 # AC_CACHE_VAL
3650 case "x$ac_cv_prog_cc_c99" in
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3653 $as_echo "none needed" >&6; } ;;
3654 xno)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3656 $as_echo "unsupported" >&6; } ;;
3658 CC="$CC $ac_cv_prog_cc_c99"
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3660 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3661 esac
3662 if test "x$ac_cv_prog_cc_c99" != xno; then :
3663 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3666 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3667 if ${ac_cv_prog_cc_c89+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 ac_cv_prog_cc_c89=no
3671 ac_save_CC=$CC
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674 #include <stdarg.h>
3675 #include <stdio.h>
3676 #include <sys/types.h>
3677 #include <sys/stat.h>
3678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3682 char **p;
3683 int i;
3685 return p[i];
3687 static char *f (char * (*g) (char **, int), char **p, ...)
3689 char *s;
3690 va_list v;
3691 va_start (v,p);
3692 s = g (p, va_arg (v,int));
3693 va_end (v);
3694 return s;
3697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3698 function prototypes and stuff, but not '\xHH' hex character constants.
3699 These don't provoke an error unfortunately, instead are silently treated
3700 as 'x'. The following induces an error, until -std is added to get
3701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3702 array size at least. It's necessary to write '\x00'==0 to get something
3703 that's true only with -std. */
3704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3707 inside strings and character constants. */
3708 #define FOO(x) 'x'
3709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3711 int test (int i, double x);
3712 struct s1 {int (*f) (int a);};
3713 struct s2 {int (*f) (double a);};
3714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715 int argc;
3716 char **argv;
3718 main ()
3720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3722 return 0;
3724 _ACEOF
3725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3728 CC="$ac_save_CC $ac_arg"
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_prog_cc_c89=$ac_arg
3732 rm -f core conftest.err conftest.$ac_objext
3733 test "x$ac_cv_prog_cc_c89" != "xno" && break
3734 done
3735 rm -f conftest.$ac_ext
3736 CC=$ac_save_CC
3739 # AC_CACHE_VAL
3740 case "x$ac_cv_prog_cc_c89" in
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743 $as_echo "none needed" >&6; } ;;
3744 xno)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3746 $as_echo "unsupported" >&6; } ;;
3748 CC="$CC $ac_cv_prog_cc_c89"
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3750 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3751 esac
3752 if test "x$ac_cv_prog_cc_c89" != xno; then :
3753 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3754 else
3755 ac_cv_prog_cc_stdc=no
3760 esac
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3762 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3763 if ${ac_cv_prog_cc_stdc+:} false; then :
3764 $as_echo_n "(cached) " >&6
3767 case $ac_cv_prog_cc_stdc in #(
3768 no) :
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3770 $as_echo "unsupported" >&6; } ;; #(
3771 '') :
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3773 $as_echo "none needed" >&6; } ;; #(
3774 *) :
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3776 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3777 esac
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3785 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3786 # On Suns, sometimes $CPP names a directory.
3787 if test -n "$CPP" && test -d "$CPP"; then
3788 CPP=
3790 if test -z "$CPP"; then
3791 if ${ac_cv_prog_CPP+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 # Double quotes because CPP needs to be expanded
3795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3797 ac_preproc_ok=false
3798 for ac_c_preproc_warn_flag in '' yes
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808 #ifdef __STDC__
3809 # include <limits.h>
3810 #else
3811 # include <assert.h>
3812 #endif
3813 Syntax error
3814 _ACEOF
3815 if ac_fn_c_try_cpp "$LINENO"; then :
3817 else
3818 # Broken: fails on valid input.
3819 continue
3821 rm -f conftest.err conftest.i conftest.$ac_ext
3823 # OK, works on sane cases. Now check whether nonexistent headers
3824 # can be detected and how.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3828 _ACEOF
3829 if ac_fn_c_try_cpp "$LINENO"; then :
3830 # Broken: success on invalid input.
3831 continue
3832 else
3833 # Passes both tests.
3834 ac_preproc_ok=:
3835 break
3837 rm -f conftest.err conftest.i conftest.$ac_ext
3839 done
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.i conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then :
3843 break
3846 done
3847 ac_cv_prog_CPP=$CPP
3850 CPP=$ac_cv_prog_CPP
3851 else
3852 ac_cv_prog_CPP=$CPP
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3855 $as_echo "$CPP" >&6; }
3856 ac_preproc_ok=false
3857 for ac_c_preproc_warn_flag in '' yes
3859 # Use a header file that comes with gcc, so configuring glibc
3860 # with a fresh cross-compiler works.
3861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862 # <limits.h> exists even on freestanding compilers.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp. "Syntax error" is here to catch this case.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #ifdef __STDC__
3868 # include <limits.h>
3869 #else
3870 # include <assert.h>
3871 #endif
3872 Syntax error
3873 _ACEOF
3874 if ac_fn_c_try_cpp "$LINENO"; then :
3876 else
3877 # Broken: fails on valid input.
3878 continue
3880 rm -f conftest.err conftest.i conftest.$ac_ext
3882 # OK, works on sane cases. Now check whether nonexistent headers
3883 # can be detected and how.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3887 _ACEOF
3888 if ac_fn_c_try_cpp "$LINENO"; then :
3889 # Broken: success on invalid input.
3890 continue
3891 else
3892 # Passes both tests.
3893 ac_preproc_ok=:
3894 break
3896 rm -f conftest.err conftest.i conftest.$ac_ext
3898 done
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.i conftest.err conftest.$ac_ext
3901 if $ac_preproc_ok; then :
3903 else
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3907 See \`config.log' for more details" "$LINENO" 5; }
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917 # Check for a compatible awk
3918 for ac_prog in gawk nawk
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_AWK+:} false; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 if test -n "$AWK"; then
3928 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_AWK="$ac_prog"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3941 done
3942 done
3943 IFS=$as_save_IFS
3947 AWK=$ac_cv_prog_AWK
3948 if test -n "$AWK"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3950 $as_echo "$AWK" >&6; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3957 test -n "$AWK" && break
3958 done
3960 if test "$AWK" = ""; then
3961 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3963 # Extract the first word of "mmake", so it can be a program name with args.
3964 set dummy mmake; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_MMAKE+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$MMAKE"; then
3971 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980 ac_cv_prog_MMAKE="mmake "
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3984 done
3985 done
3986 IFS=$as_save_IFS
3990 MMAKE=$ac_cv_prog_MMAKE
3991 if test -n "$MMAKE"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3993 $as_echo "$MMAKE" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
4001 # Perform some default variable assignments. Note all of these will be
4002 # Regenerated from the script, so there is no need to cache them.
4004 aros_host_cc="$CC"
4005 if test "$GCC" = "yes"; then
4006 aros_gcc_ld=`$CC -print-prog-name=ld`
4007 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4008 set dummy `basename $aros_gcc_ld`; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_path_aros_host_ld+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 case $aros_host_ld in
4015 [\\/]* | ?:[\\/]*)
4016 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in `dirname $aros_gcc_ld`
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 break 2
4030 done
4031 done
4032 IFS=$as_save_IFS
4035 esac
4037 aros_host_ld=$ac_cv_path_aros_host_ld
4038 if test -n "$aros_host_ld"; then
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4040 $as_echo "$aros_host_ld" >&6; }
4041 else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 $as_echo "no" >&6; }
4048 if test "$aros_host_ld" = ""; then
4049 # Extract the first word of "ld", so it can be a program name with args.
4050 set dummy ld; ac_word=$2
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052 $as_echo_n "checking for $ac_word... " >&6; }
4053 if ${ac_cv_path_aros_host_ld+:} false; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 case $aros_host_ld in
4057 [\\/]* | ?:[\\/]*)
4058 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4068 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4072 done
4073 done
4074 IFS=$as_save_IFS
4077 esac
4079 aros_host_ld=$ac_cv_path_aros_host_ld
4080 if test -n "$aros_host_ld"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4082 $as_echo "$aros_host_ld" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4090 if test "$aros_host_ld" = ""; then
4091 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4093 aros_host_make="make"
4094 aros_host_cflags=$CFLAGS
4095 aros_host_ldflags=$LDFLAGS
4096 aros_host_debug="-g -O0"
4097 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4098 aros_host_mkargs="--no-print-directory"
4099 aros_host_incl="/usr/include"
4100 aros_host_exe_suffix="$EXEEXT"
4101 aros_host_lib_suffix=""
4103 # Ignore all compliance, AROS ROMs = 0
4104 # KickStart v1.0 = 30
4105 # KickStart v1.3 = 34
4106 # KickStart v2.0 = 37
4107 # KickStart v3.0 = 39
4108 # KickStart v3.1 = 40
4109 # AmigaOS v3.5 = 44
4110 aros_amigaos_compliance=0
4112 for ac_prog in aclocal aclocal19 aclocal-1.9
4114 # Extract the first word of "$ac_prog", so it can be a program name with args.
4115 set dummy $ac_prog; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test -n "$aros_host_aclocal"; then
4122 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_aros_host_aclocal="$ac_prog"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4137 IFS=$as_save_IFS
4141 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4142 if test -n "$aros_host_aclocal"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4144 $as_echo "$aros_host_aclocal" >&6; }
4145 else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4151 test -n "$aros_host_aclocal" && break
4152 done
4154 for ac_prog in autoconf autoconf259 autoconf253
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$aros_host_autoconf"; then
4164 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_aros_host_autoconf="$ac_prog"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4179 IFS=$as_save_IFS
4183 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4184 if test -n "$aros_host_autoconf"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4186 $as_echo "$aros_host_autoconf" >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 test -n "$aros_host_autoconf" && break
4194 done
4196 for ac_prog in autoheader autoheader259 autoheader253
4198 # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 if test -n "$aros_host_autoheader"; then
4206 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_aros_host_autoheader="$ac_prog"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4226 if test -n "$aros_host_autoheader"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4228 $as_echo "$aros_host_autoheader" >&6; }
4229 else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4235 test -n "$aros_host_autoheader" && break
4236 done
4238 for ac_prog in automake automake19 automake-1.9
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy $ac_prog; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if ${ac_cv_prog_aros_host_automake+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 if test -n "$aros_host_automake"; then
4248 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_aros_host_automake="$ac_prog"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4261 done
4262 done
4263 IFS=$as_save_IFS
4267 aros_host_automake=$ac_cv_prog_aros_host_automake
4268 if test -n "$aros_host_automake"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4270 $as_echo "$aros_host_automake" >&6; }
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4277 test -n "$aros_host_automake" && break
4278 done
4281 if test "$aros_host_aclocal" = ""; then
4282 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4284 if test "$aros_host_automake" = ""; then
4285 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4288 case "$aros_host_cc" in
4289 *gcc*)
4290 aros_host_cc_pipe="-pipe"
4292 icc)
4293 aros_host_cc_pipe=""
4296 aros_host_cc_pipe=""
4298 esac
4300 aros_kernel_cc_includes=""
4301 aros_target_cc_includes=""
4303 # ----------------------------------------------------------------------------------------
4304 # Host-specific defaults
4306 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4307 # instead of a wrapper script.
4308 # Useful for non-ELF hosts (like Windows and Darwin).
4309 # Can also be overriden in target section below
4310 use_aros_gcc="no"
4312 # This is the main host configuration section. It is where the host
4313 # can change the values of any variables it needs to change. We do
4314 # not look at anything that compiles to the target yet, we'll get
4315 # to that later.
4317 case "$host_os" in
4318 aros*)
4319 aros_host_arch="aros"
4320 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4321 case "$host_cpu" in
4322 *i?86*)
4323 aros_host_cpu="i386"
4325 *x86_64*)
4326 aros_host_cpu="x86_64"
4328 *powerpc*)
4329 aros_host_cpu="ppc"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4333 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4334 aros_host_cpu="$host_cpu"
4336 esac
4339 linux*)
4340 aros_host_arch="linux"
4341 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4342 android_build_os="linux-x86"
4343 android_tool="android"
4344 default_android_sdk="/opt/android-sdk-linux_x86"
4345 case "$host_cpu" in
4346 *i?86*)
4347 aros_host_cpu="i386"
4349 *x86_64*)
4350 aros_host_cpu="x86_64"
4352 *m68k*)
4353 aros_host_cpu="m68k"
4355 *powerpc*)
4356 aros_host_cpu="ppc"
4358 *arm*)
4359 aros_host_cpu="arm"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4363 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4364 aros_host_cpu="$host_cpu"
4366 esac
4369 freebsd*)
4370 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4371 aros_host_make="gmake"
4372 aros_host_arch="freebsd"
4373 aros_host_cpu="i386"
4375 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4377 case $host_os in
4378 freebsd[234]*)
4379 aros_object_format="elf_i386"
4383 aros_object_format="elf_i386_fbsd"
4385 esac
4389 darwin*)
4390 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4391 aros_host_arch="darwin"
4392 use_aros_gcc="yes"
4393 android_build_os="darwin-x86"
4394 android_tool="android"
4395 default_android_sdk="/android-sdk-mac_x86"
4396 case "$host_cpu" in
4397 *i?86*)
4398 aros_host_cpu="i386"
4400 *x86_64*)
4401 aros_host_cpu="x86_64"
4403 *powerpc*)
4404 aros_host_cpu="ppc"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4408 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4409 aros_host_cpu="$host_cpu"
4411 esac
4413 aros_host_ldflags="$aros_host_ldflags -liconv"
4417 dragonfly*)
4418 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4419 aros_host_make="gmake"
4420 aros_host_arch="dragonfly"
4421 case $host_cpu in
4422 *i?86*)
4423 aros_host_cpu="i386"
4425 *amd64*)
4426 aros_host_cpu="x86_64"
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4430 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4431 aros_host_cpu="$host_cpu"
4433 esac
4436 netbsd*)
4437 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4438 aros_host_make="gmake"
4439 aros_host_arch="netbsd"
4440 case "$host_cpu" in
4441 *i?86*)
4442 aros_host_cpu="i386"
4444 *m68k*)
4445 aros_host_cpu="m68k"
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4449 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4450 aros_host_cpu="$host_cpu"
4452 esac
4453 aros_host_lib_suffix=".0.0"
4456 openbsd*)
4457 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4458 aros_host_make="gmake"
4459 aros_host_arch="openbsd"
4460 case "$host_cpu" in
4461 *i?86*)
4462 aros_host_cpu="i386"
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4466 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4467 aros_host_cpu="$host_cpu"
4469 esac
4472 solaris*)
4473 aros_host_arch="solaris"
4474 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4475 case "$host_cpu" in
4476 *i?86*)
4477 aros_host_cpu="i386"
4479 *sparc*)
4480 aros_host_cpu="sparc"
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4484 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4485 aros_host_cpu="$host_cpu"
4487 esac
4490 morphos*)
4491 aros_host_arch="morphos"
4492 aros_host_cpu="ppc"
4495 amiga*)
4496 aros_host_arch="amiga"
4497 SORT="/gg/bin/sort"
4498 TEST="/gg/bin/test"
4499 UNIQ="/gg/bin/uniq"
4500 FOR="for"
4501 TOUCH="/gg/bin/touch"
4502 case "$host_cpu" in
4503 *m68k*)
4504 aros_host_cpu="m68k"
4506 *powerpc*)
4507 aros_host_cpu="ppc"
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 cygwin*)
4518 aros_host_arch="cygwin"
4519 use_aros_gcc="yes"
4520 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4521 android_build_os="windows"
4522 android_tool="android.bat"
4523 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4525 case "$host_cpu" in
4526 *i?86*)
4527 aros_host_cpu="i386"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4531 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4532 aros_host_cpu="$host_cpu"
4534 esac
4537 mingw32*)
4538 aros_host_arch="mingw32"
4539 use_aros_gcc="yes"
4540 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4541 android_build_os="windows"
4542 android_tool="android.bat"
4543 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4545 case "$host_cpu" in
4546 *i?86*)
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4549 $as_echo_n "checking for Windows native gcc target... " >&6; }
4550 host_cpu=`gcc -dumpmachine`
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4552 $as_echo "$host_cpu" >&6; }
4555 esac
4557 case "$host_cpu" in
4558 *i?86*)
4559 aros_host_cpu="i386"
4562 *x86_64*)
4563 aros_host_cpu="x86_64"
4564 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4569 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4570 aros_host_cpu="$host_cpu"
4572 esac
4575 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4577 esac
4579 # Extract the first word of "ar", so it can be a program name with args.
4580 set dummy ar; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_aros_host_ar+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if test -n "$aros_host_ar"; then
4587 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_prog_aros_host_ar="ar cr"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4600 done
4601 done
4602 IFS=$as_save_IFS
4606 aros_host_ar=$ac_cv_prog_aros_host_ar
4607 if test -n "$aros_host_ar"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4609 $as_echo "$aros_host_ar" >&6; }
4610 else
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4616 if test "$aros_host_ar" = ""; then
4617 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4619 # Extract the first word of "ranlib", so it can be a program name with args.
4620 set dummy ranlib; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$aros_host_ranlib"; then
4627 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_aros_host_ranlib="ranlib "
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4647 if test -n "$aros_host_ranlib"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4649 $as_echo "$aros_host_ranlib" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4656 if test "$aros_host_ranlib" = ""; then
4657 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4659 # Extract the first word of "strip", so it can be a program name with args.
4660 set dummy strip; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_aros_host_strip+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$aros_host_strip"; then
4667 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_aros_host_strip="strip "
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 aros_host_strip=$ac_cv_prog_aros_host_strip
4687 if test -n "$aros_host_strip"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4689 $as_echo "$aros_host_strip" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4696 if test "$aros_host_strip" = ""; then
4697 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4700 # Extract the first word of "rm", so it can be a program name with args.
4701 set dummy rm; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_RM+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$RM"; then
4708 ac_cv_prog_RM="$RM" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_RM="rm -rf"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4721 done
4722 done
4723 IFS=$as_save_IFS
4727 RM=$ac_cv_prog_RM
4728 if test -n "$RM"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4730 $as_echo "$RM" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4737 if test "$RM" = ""; then
4738 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4740 # Extract the first word of "cp", so it can be a program name with args.
4741 set dummy cp; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_CP+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$CP"; then
4748 ac_cv_prog_CP="$CP" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_CP="cp "
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4761 done
4762 done
4763 IFS=$as_save_IFS
4767 CP=$ac_cv_prog_CP
4768 if test -n "$CP"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4770 $as_echo "$CP" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4777 if test "$CP" = ""; then
4778 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4780 # Extract the first word of "mv", so it can be a program name with args.
4781 set dummy mv; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_MV+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$MV"; then
4788 ac_cv_prog_MV="$MV" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_MV="mv "
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 MV=$ac_cv_prog_MV
4808 if test -n "$MV"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4810 $as_echo "$MV" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 if test "$MV" = ""; then
4818 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4820 # Extract the first word of "echo", so it can be a program name with args.
4821 set dummy echo; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_ECHO+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$ECHO"; then
4828 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_ECHO="echo "
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4841 done
4842 done
4843 IFS=$as_save_IFS
4847 ECHO=$ac_cv_prog_ECHO
4848 if test -n "$ECHO"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4850 $as_echo "$ECHO" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4857 if test "$ECHO" = ""; then
4858 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4860 # Extract the first word of "mkdir", so it can be a program name with args.
4861 set dummy mkdir; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_prog_MKDIR+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$MKDIR"; then
4868 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_MKDIR="mkdir -p"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4881 done
4882 done
4883 IFS=$as_save_IFS
4887 MKDIR=$ac_cv_prog_MKDIR
4888 if test -n "$MKDIR"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4890 $as_echo "$MKDIR" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4897 if test "$MKDIR" = ""; then
4898 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4900 # Extract the first word of "touch", so it can be a program name with args.
4901 set dummy touch; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if ${ac_cv_prog_TOUCH+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -n "$TOUCH"; then
4908 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_TOUCH="touch "
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4921 done
4922 done
4923 IFS=$as_save_IFS
4927 TOUCH=$ac_cv_prog_TOUCH
4928 if test -n "$TOUCH"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4930 $as_echo "$TOUCH" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4937 if test "$TOUCH" = ""; then
4938 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4940 # Extract the first word of "sort", so it can be a program name with args.
4941 set dummy sort; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_prog_SORT+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$SORT"; then
4948 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_prog_SORT="sort "
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4967 SORT=$ac_cv_prog_SORT
4968 if test -n "$SORT"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4970 $as_echo "$SORT" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4977 if test "$SORT" = ""; then
4978 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4980 # Extract the first word of "uniq", so it can be a program name with args.
4981 set dummy uniq; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_prog_UNIQ+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -n "$UNIQ"; then
4988 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_UNIQ="uniq "
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5003 IFS=$as_save_IFS
5007 UNIQ=$ac_cv_prog_UNIQ
5008 if test -n "$UNIQ"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5010 $as_echo "$UNIQ" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5017 if test "$UNIQ" = ""; then
5018 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5020 # Extract the first word of "true", so it can be a program name with args.
5021 set dummy true; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_NOP+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$NOP"; then
5028 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_NOP="true "
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5043 IFS=$as_save_IFS
5047 NOP=$ac_cv_prog_NOP
5048 if test -n "$NOP"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5050 $as_echo "$NOP" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5057 if test "$NOP" = ""; then
5058 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5060 # Extract the first word of "cat", so it can be a program name with args.
5061 set dummy cat; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if ${ac_cv_prog_CAT+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -n "$CAT"; then
5068 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CAT="cat "
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5087 CAT=$ac_cv_prog_CAT
5088 if test -n "$CAT"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5090 $as_echo "$CAT" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5097 if test "$CAT" = ""; then
5098 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5100 # Extract the first word of "bison", so it can be a program name with args.
5101 set dummy bison; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if ${ac_cv_prog_BISON+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -n "$BISON"; then
5108 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_BISON="bison "
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5121 done
5122 done
5123 IFS=$as_save_IFS
5127 BISON=$ac_cv_prog_BISON
5128 if test -n "$BISON"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5130 $as_echo "$BISON" >&6; }
5131 else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 if test "$BISON" = ""; then
5138 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5140 # Extract the first word of "flex", so it can be a program name with args.
5141 set dummy flex; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_FLEX+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$FLEX"; then
5148 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_FLEX="flex "
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5163 IFS=$as_save_IFS
5167 FLEX=$ac_cv_prog_FLEX
5168 if test -n "$FLEX"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5170 $as_echo "$FLEX" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 if test "$FLEX" = ""; then
5178 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5180 # Extract the first word of "pngtopnm", so it can be a program name with args.
5181 set dummy pngtopnm; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$PNGTOPNM"; then
5188 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_PNGTOPNM="pngtopnm "
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5201 done
5202 done
5203 IFS=$as_save_IFS
5207 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5208 if test -n "$PNGTOPNM"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5210 $as_echo "$PNGTOPNM" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 if test "$PNGTOPNM" = ""; then
5218 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5220 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5221 set dummy ppmtoilbm; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 if test -n "$PPMTOILBM"; then
5228 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5243 IFS=$as_save_IFS
5247 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5248 if test -n "$PPMTOILBM"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5250 $as_echo "$PPMTOILBM" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5257 if test "$PPMTOILBM" = ""; then
5258 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5260 # Extract the first word of "sed", so it can be a program name with args.
5261 set dummy sed; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_SED+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -n "$SED"; then
5268 ac_cv_prog_SED="$SED" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_prog_SED="sed "
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5281 done
5282 done
5283 IFS=$as_save_IFS
5287 SED=$ac_cv_prog_SED
5288 if test -n "$SED"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5290 $as_echo "$SED" >&6; }
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5297 if test "$SED" = ""; then
5298 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5300 # Extract the first word of "chmod", so it can be a program name with args.
5301 set dummy chmod; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_CHMOD+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 if test -n "$CHMOD"; then
5308 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_prog_CHMOD="chmod "
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5323 IFS=$as_save_IFS
5327 CHMOD=$ac_cv_prog_CHMOD
5328 if test -n "$CHMOD"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5330 $as_echo "$CHMOD" >&6; }
5331 else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5337 if test "$CHMOD" = ""; then
5338 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5340 # Extract the first word of "patch", so it can be a program name with args.
5341 set dummy patch; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_PATCH+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 if test -n "$PATCH"; then
5348 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_prog_PATCH="patch "
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5363 IFS=$as_save_IFS
5367 PATCH=$ac_cv_prog_PATCH
5368 if test -n "$PATCH"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5370 $as_echo "$PATCH" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5377 if test "$PATCH" = ""; then
5378 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5385 if test -n "$PYTHON"; then
5386 # If the user set $PYTHON, use it and don't search something else.
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5388 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5389 prog="import sys, string
5390 # split strings by '.' and convert to numeric. Append some zeros
5391 # because we need at least 4 digits for the hex conversion.
5392 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5393 minverhex = 0
5394 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5395 sys.exit(sys.hexversion < minverhex)"
5396 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5397 ($PYTHON -c "$prog") >&5 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; then :
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }
5403 else
5404 as_fn_error $? "too old" "$LINENO" 5
5406 am_display_PYTHON=$PYTHON
5407 else
5408 # Otherwise, try each interpreter until we find one that satisfies
5409 # VERSION.
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5411 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5412 if ${am_cv_pathless_PYTHON+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5416 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
5417 test "$am_cv_pathless_PYTHON" = none && break
5418 prog="import sys, string
5419 # split strings by '.' and convert to numeric. Append some zeros
5420 # because we need at least 4 digits for the hex conversion.
5421 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5422 minverhex = 0
5423 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5424 sys.exit(sys.hexversion < minverhex)"
5425 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5426 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; then :
5430 break
5432 done
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5435 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5436 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5437 if test "$am_cv_pathless_PYTHON" = none; then
5438 PYTHON=:
5439 else
5440 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5441 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_path_PYTHON+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 case $PYTHON in
5448 [\\/]* | ?:[\\/]*)
5449 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5463 done
5464 done
5465 IFS=$as_save_IFS
5468 esac
5470 PYTHON=$ac_cv_path_PYTHON
5471 if test -n "$PYTHON"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5473 $as_echo "$PYTHON" >&6; }
5474 else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5481 am_display_PYTHON=$am_cv_pathless_PYTHON
5485 if test "$PYTHON" = :; then
5486 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5487 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5491 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5492 if ${am_cv_python_version+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5498 $as_echo "$am_cv_python_version" >&6; }
5499 PYTHON_VERSION=$am_cv_python_version
5503 PYTHON_PREFIX='${prefix}'
5505 PYTHON_EXEC_PREFIX='${exec_prefix}'
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5510 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5511 if ${am_cv_python_platform+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5517 $as_echo "$am_cv_python_platform" >&6; }
5518 PYTHON_PLATFORM=$am_cv_python_platform
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5524 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5525 if ${am_cv_python_pythondir+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5529 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5532 $as_echo "$am_cv_python_pythondir" >&6; }
5533 pythondir=$am_cv_python_pythondir
5537 pkgpythondir=\${pythondir}/$PACKAGE
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5541 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5542 if ${am_cv_python_pyexecdir+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5546 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5549 $as_echo "$am_cv_python_pyexecdir" >&6; }
5550 pyexecdir=$am_cv_python_pyexecdir
5554 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5562 FOR=for
5564 IF=if
5566 TEST=test
5568 CMP=cmp
5572 # Check for some includes for the X11 HIDD and the kernel
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5576 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5577 if ${ac_cv_path_GREP+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -z "$GREP"; then
5581 ac_path_GREP_found=false
5582 # Loop through the user's path and test for each of PROGNAME-LIST
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_prog in grep ggrep; do
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5591 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5592 # Check for GNU ac_path_GREP and select it if it is found.
5593 # Check for GNU $ac_path_GREP
5594 case `"$ac_path_GREP" --version 2>&1` in
5595 *GNU*)
5596 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5598 ac_count=0
5599 $as_echo_n 0123456789 >"conftest.in"
5600 while :
5602 cat "conftest.in" "conftest.in" >"conftest.tmp"
5603 mv "conftest.tmp" "conftest.in"
5604 cp "conftest.in" "conftest.nl"
5605 $as_echo 'GREP' >> "conftest.nl"
5606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5608 as_fn_arith $ac_count + 1 && ac_count=$as_val
5609 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5610 # Best one so far, save it but keep looking for a better one
5611 ac_cv_path_GREP="$ac_path_GREP"
5612 ac_path_GREP_max=$ac_count
5614 # 10*(2^10) chars as input seems more than enough
5615 test $ac_count -gt 10 && break
5616 done
5617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5618 esac
5620 $ac_path_GREP_found && break 3
5621 done
5622 done
5623 done
5624 IFS=$as_save_IFS
5625 if test -z "$ac_cv_path_GREP"; then
5626 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5628 else
5629 ac_cv_path_GREP=$GREP
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5634 $as_echo "$ac_cv_path_GREP" >&6; }
5635 GREP="$ac_cv_path_GREP"
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5639 $as_echo_n "checking for egrep... " >&6; }
5640 if ${ac_cv_path_EGREP+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5644 then ac_cv_path_EGREP="$GREP -E"
5645 else
5646 if test -z "$EGREP"; then
5647 ac_path_EGREP_found=false
5648 # Loop through the user's path and test for each of PROGNAME-LIST
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_prog in egrep; do
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5657 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5658 # Check for GNU ac_path_EGREP and select it if it is found.
5659 # Check for GNU $ac_path_EGREP
5660 case `"$ac_path_EGREP" --version 2>&1` in
5661 *GNU*)
5662 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5664 ac_count=0
5665 $as_echo_n 0123456789 >"conftest.in"
5666 while :
5668 cat "conftest.in" "conftest.in" >"conftest.tmp"
5669 mv "conftest.tmp" "conftest.in"
5670 cp "conftest.in" "conftest.nl"
5671 $as_echo 'EGREP' >> "conftest.nl"
5672 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5674 as_fn_arith $ac_count + 1 && ac_count=$as_val
5675 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5676 # Best one so far, save it but keep looking for a better one
5677 ac_cv_path_EGREP="$ac_path_EGREP"
5678 ac_path_EGREP_max=$ac_count
5680 # 10*(2^10) chars as input seems more than enough
5681 test $ac_count -gt 10 && break
5682 done
5683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5684 esac
5686 $ac_path_EGREP_found && break 3
5687 done
5688 done
5689 done
5690 IFS=$as_save_IFS
5691 if test -z "$ac_cv_path_EGREP"; then
5692 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5694 else
5695 ac_cv_path_EGREP=$EGREP
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5701 $as_echo "$ac_cv_path_EGREP" >&6; }
5702 EGREP="$ac_cv_path_EGREP"
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5706 $as_echo_n "checking for ANSI C header files... " >&6; }
5707 if ${ac_cv_header_stdc+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 #include <stdlib.h>
5713 #include <stdarg.h>
5714 #include <string.h>
5715 #include <float.h>
5718 main ()
5722 return 0;
5724 _ACEOF
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726 ac_cv_header_stdc=yes
5727 else
5728 ac_cv_header_stdc=no
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 if test $ac_cv_header_stdc = yes; then
5733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #include <string.h>
5738 _ACEOF
5739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5740 $EGREP "memchr" >/dev/null 2>&1; then :
5742 else
5743 ac_cv_header_stdc=no
5745 rm -f conftest*
5749 if test $ac_cv_header_stdc = yes; then
5750 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #include <stdlib.h>
5755 _ACEOF
5756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5757 $EGREP "free" >/dev/null 2>&1; then :
5759 else
5760 ac_cv_header_stdc=no
5762 rm -f conftest*
5766 if test $ac_cv_header_stdc = yes; then
5767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5768 if test "$cross_compiling" = yes; then :
5770 else
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <ctype.h>
5774 #include <stdlib.h>
5775 #if ((' ' & 0x0FF) == 0x020)
5776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5778 #else
5779 # define ISLOWER(c) \
5780 (('a' <= (c) && (c) <= 'i') \
5781 || ('j' <= (c) && (c) <= 'r') \
5782 || ('s' <= (c) && (c) <= 'z'))
5783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5784 #endif
5786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5788 main ()
5790 int i;
5791 for (i = 0; i < 256; i++)
5792 if (XOR (islower (i), ISLOWER (i))
5793 || toupper (i) != TOUPPER (i))
5794 return 2;
5795 return 0;
5797 _ACEOF
5798 if ac_fn_c_try_run "$LINENO"; then :
5800 else
5801 ac_cv_header_stdc=no
5803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5804 conftest.$ac_objext conftest.beam conftest.$ac_ext
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5810 $as_echo "$ac_cv_header_stdc" >&6; }
5811 if test $ac_cv_header_stdc = yes; then
5813 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5817 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5818 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5819 inttypes.h stdint.h unistd.h
5820 do :
5821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5822 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5825 cat >>confdefs.h <<_ACEOF
5826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5827 _ACEOF
5831 done
5834 for ac_header in sys/ipc.h sys/shm.h \
5835 sys/mmap.h sys/mman.h sysexits.h \
5836 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5838 do :
5839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5840 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5841 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5842 cat >>confdefs.h <<_ACEOF
5843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5844 _ACEOF
5848 done
5851 for ac_header in sys/mount.h
5852 do :
5853 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5855 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5856 cat >>confdefs.h <<_ACEOF
5857 #define HAVE_SYS_MOUNT_H 1
5858 _ACEOF
5862 done
5865 ac_header_dirent=no
5866 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5867 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5869 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5870 if eval \${$as_ac_Header+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 #include <sys/types.h>
5876 #include <$ac_hdr>
5879 main ()
5881 if ((DIR *) 0)
5882 return 0;
5884 return 0;
5886 _ACEOF
5887 if ac_fn_c_try_compile "$LINENO"; then :
5888 eval "$as_ac_Header=yes"
5889 else
5890 eval "$as_ac_Header=no"
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 eval ac_res=\$$as_ac_Header
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5896 $as_echo "$ac_res" >&6; }
5897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5898 cat >>confdefs.h <<_ACEOF
5899 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5900 _ACEOF
5902 ac_header_dirent=$ac_hdr; break
5905 done
5906 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5907 if test $ac_header_dirent = dirent.h; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5909 $as_echo_n "checking for library containing opendir... " >&6; }
5910 if ${ac_cv_search_opendir+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 ac_func_search_save_LIBS=$LIBS
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5917 /* Override any GCC internal prototype to avoid an error.
5918 Use char because int might match the return type of a GCC
5919 builtin and then its argument prototype would still apply. */
5920 #ifdef __cplusplus
5921 extern "C"
5922 #endif
5923 char opendir ();
5925 main ()
5927 return opendir ();
5929 return 0;
5931 _ACEOF
5932 for ac_lib in '' dir; do
5933 if test -z "$ac_lib"; then
5934 ac_res="none required"
5935 else
5936 ac_res=-l$ac_lib
5937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5939 if ac_fn_c_try_link "$LINENO"; then :
5940 ac_cv_search_opendir=$ac_res
5942 rm -f core conftest.err conftest.$ac_objext \
5943 conftest$ac_exeext
5944 if ${ac_cv_search_opendir+:} false; then :
5945 break
5947 done
5948 if ${ac_cv_search_opendir+:} false; then :
5950 else
5951 ac_cv_search_opendir=no
5953 rm conftest.$ac_ext
5954 LIBS=$ac_func_search_save_LIBS
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5957 $as_echo "$ac_cv_search_opendir" >&6; }
5958 ac_res=$ac_cv_search_opendir
5959 if test "$ac_res" != no; then :
5960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5966 $as_echo_n "checking for library containing opendir... " >&6; }
5967 if ${ac_cv_search_opendir+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 ac_func_search_save_LIBS=$LIBS
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5974 /* Override any GCC internal prototype to avoid an error.
5975 Use char because int might match the return type of a GCC
5976 builtin and then its argument prototype would still apply. */
5977 #ifdef __cplusplus
5978 extern "C"
5979 #endif
5980 char opendir ();
5982 main ()
5984 return opendir ();
5986 return 0;
5988 _ACEOF
5989 for ac_lib in '' x; do
5990 if test -z "$ac_lib"; then
5991 ac_res="none required"
5992 else
5993 ac_res=-l$ac_lib
5994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5996 if ac_fn_c_try_link "$LINENO"; then :
5997 ac_cv_search_opendir=$ac_res
5999 rm -f core conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext
6001 if ${ac_cv_search_opendir+:} false; then :
6002 break
6004 done
6005 if ${ac_cv_search_opendir+:} false; then :
6007 else
6008 ac_cv_search_opendir=no
6010 rm conftest.$ac_ext
6011 LIBS=$ac_func_search_save_LIBS
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6014 $as_echo "$ac_cv_search_opendir" >&6; }
6015 ac_res=$ac_cv_search_opendir
6016 if test "$ac_res" != no; then :
6017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6024 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6025 if ${ac_cv_header_stat_broken+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 #include <sys/types.h>
6031 #include <sys/stat.h>
6033 #if defined S_ISBLK && defined S_IFDIR
6034 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6035 #endif
6037 #if defined S_ISBLK && defined S_IFCHR
6038 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6039 #endif
6041 #if defined S_ISLNK && defined S_IFREG
6042 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6043 #endif
6045 #if defined S_ISSOCK && defined S_IFREG
6046 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6047 #endif
6049 _ACEOF
6050 if ac_fn_c_try_compile "$LINENO"; then :
6051 ac_cv_header_stat_broken=no
6052 else
6053 ac_cv_header_stat_broken=yes
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6058 $as_echo "$ac_cv_header_stat_broken" >&6; }
6059 if test $ac_cv_header_stat_broken = yes; then
6061 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6066 $as_echo_n "checking for ANSI C header files... " >&6; }
6067 if ${ac_cv_header_stdc+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #include <stdlib.h>
6073 #include <stdarg.h>
6074 #include <string.h>
6075 #include <float.h>
6078 main ()
6082 return 0;
6084 _ACEOF
6085 if ac_fn_c_try_compile "$LINENO"; then :
6086 ac_cv_header_stdc=yes
6087 else
6088 ac_cv_header_stdc=no
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 if test $ac_cv_header_stdc = yes; then
6093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 #include <string.h>
6098 _ACEOF
6099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6100 $EGREP "memchr" >/dev/null 2>&1; then :
6102 else
6103 ac_cv_header_stdc=no
6105 rm -f conftest*
6109 if test $ac_cv_header_stdc = yes; then
6110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <stdlib.h>
6115 _ACEOF
6116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6117 $EGREP "free" >/dev/null 2>&1; then :
6119 else
6120 ac_cv_header_stdc=no
6122 rm -f conftest*
6126 if test $ac_cv_header_stdc = yes; then
6127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6128 if test "$cross_compiling" = yes; then :
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ctype.h>
6134 #include <stdlib.h>
6135 #if ((' ' & 0x0FF) == 0x020)
6136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6138 #else
6139 # define ISLOWER(c) \
6140 (('a' <= (c) && (c) <= 'i') \
6141 || ('j' <= (c) && (c) <= 'r') \
6142 || ('s' <= (c) && (c) <= 'z'))
6143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6144 #endif
6146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6148 main ()
6150 int i;
6151 for (i = 0; i < 256; i++)
6152 if (XOR (islower (i), ISLOWER (i))
6153 || toupper (i) != TOUPPER (i))
6154 return 2;
6155 return 0;
6157 _ACEOF
6158 if ac_fn_c_try_run "$LINENO"; then :
6160 else
6161 ac_cv_header_stdc=no
6163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6164 conftest.$ac_objext conftest.beam conftest.$ac_ext
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6170 $as_echo "$ac_cv_header_stdc" >&6; }
6171 if test $ac_cv_header_stdc = yes; then
6173 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6178 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6179 if ${ac_cv_header_sys_wait_h+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 #include <sys/types.h>
6185 #include <sys/wait.h>
6186 #ifndef WEXITSTATUS
6187 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6188 #endif
6189 #ifndef WIFEXITED
6190 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6191 #endif
6194 main ()
6196 int s;
6197 wait (&s);
6198 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6200 return 0;
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6204 ac_cv_header_sys_wait_h=yes
6205 else
6206 ac_cv_header_sys_wait_h=no
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6211 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6212 if test $ac_cv_header_sys_wait_h = yes; then
6214 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6219 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6220 if ${ac_cv_header_time+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #include <sys/types.h>
6226 #include <sys/time.h>
6227 #include <time.h>
6230 main ()
6232 if ((struct tm *) 0)
6233 return 0;
6235 return 0;
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239 ac_cv_header_time=yes
6240 else
6241 ac_cv_header_time=no
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6246 $as_echo "$ac_cv_header_time" >&6; }
6247 if test $ac_cv_header_time = yes; then
6249 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6253 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6254 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6256 cat >>confdefs.h <<_ACEOF
6257 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6258 _ACEOF
6261 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6266 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6267 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6269 cat >>confdefs.h <<_ACEOF
6270 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6271 _ACEOF
6274 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6276 else
6277 case " $LIBOBJS " in
6278 *" fileblocks.$ac_objext "* ) ;;
6279 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6281 esac
6286 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6287 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6289 cat >>confdefs.h <<_ACEOF
6290 #define HAVE_STRUCT_STAT_ST_RDEV 1
6291 _ACEOF
6294 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6300 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6301 if ${ac_cv_struct_tm+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <sys/types.h>
6307 #include <time.h>
6310 main ()
6312 struct tm tm;
6313 int *p = &tm.tm_sec;
6314 return !p;
6316 return 0;
6318 _ACEOF
6319 if ac_fn_c_try_compile "$LINENO"; then :
6320 ac_cv_struct_tm=time.h
6321 else
6322 ac_cv_struct_tm=sys/time.h
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6327 $as_echo "$ac_cv_struct_tm" >&6; }
6328 if test $ac_cv_struct_tm = sys/time.h; then
6330 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6334 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6335 #include <$ac_cv_struct_tm>
6338 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_STRUCT_TM_TM_ZONE 1
6342 _ACEOF
6347 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6349 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6351 else
6352 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6354 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6355 ac_have_decl=1
6356 else
6357 ac_have_decl=0
6360 cat >>confdefs.h <<_ACEOF
6361 #define HAVE_DECL_TZNAME $ac_have_decl
6362 _ACEOF
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6365 $as_echo_n "checking for tzname... " >&6; }
6366 if ${ac_cv_var_tzname+:} false; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371 #include <time.h>
6372 #if !HAVE_DECL_TZNAME
6373 extern char *tzname[];
6374 #endif
6377 main ()
6379 return tzname[0][0];
6381 return 0;
6383 _ACEOF
6384 if ac_fn_c_try_link "$LINENO"; then :
6385 ac_cv_var_tzname=yes
6386 else
6387 ac_cv_var_tzname=no
6389 rm -f core conftest.err conftest.$ac_objext \
6390 conftest$ac_exeext conftest.$ac_ext
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6393 $as_echo "$ac_cv_var_tzname" >&6; }
6394 if test $ac_cv_var_tzname = yes; then
6396 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6401 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6402 if test "x$ac_cv_type_off_t" = xyes; then :
6404 else
6406 cat >>confdefs.h <<_ACEOF
6407 #define off_t long int
6408 _ACEOF
6412 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6413 if test "x$ac_cv_type_pid_t" = xyes; then :
6415 else
6417 cat >>confdefs.h <<_ACEOF
6418 #define pid_t int
6419 _ACEOF
6423 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6424 if test "x$ac_cv_type_size_t" = xyes; then :
6426 else
6428 cat >>confdefs.h <<_ACEOF
6429 #define size_t unsigned int
6430 _ACEOF
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6435 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6436 if ${ac_cv_type_uid_t+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 #include <sys/types.h>
6443 _ACEOF
6444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6445 $EGREP "uid_t" >/dev/null 2>&1; then :
6446 ac_cv_type_uid_t=yes
6447 else
6448 ac_cv_type_uid_t=no
6450 rm -f conftest*
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6454 $as_echo "$ac_cv_type_uid_t" >&6; }
6455 if test $ac_cv_type_uid_t = no; then
6457 $as_echo "#define uid_t int" >>confdefs.h
6460 $as_echo "#define gid_t int" >>confdefs.h
6465 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6466 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6468 cat >>confdefs.h <<_ACEOF
6469 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6470 _ACEOF
6476 # Look for some functions
6477 for ac_func in getpagesize kqueue statfs statvfs \
6478 clone kse_create rfork_thread thr_create sa_register \
6479 getcontext makecontext setcontext sigaltstack swapcontext
6480 do :
6481 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6482 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6483 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6484 cat >>confdefs.h <<_ACEOF
6485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6486 _ACEOF
6489 done
6495 for ac_header in $ac_header_list
6496 do :
6497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6498 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6500 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6501 cat >>confdefs.h <<_ACEOF
6502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6503 _ACEOF
6507 done
6516 for ac_func in getpagesize
6517 do :
6518 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6519 if test "x$ac_cv_func_getpagesize" = xyes; then :
6520 cat >>confdefs.h <<_ACEOF
6521 #define HAVE_GETPAGESIZE 1
6522 _ACEOF
6525 done
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6528 $as_echo_n "checking for working mmap... " >&6; }
6529 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test "$cross_compiling" = yes; then :
6533 ac_cv_func_mmap_fixed_mapped=no
6534 else
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 /* malloc might have been renamed as rpl_malloc. */
6539 #undef malloc
6541 /* Thanks to Mike Haertel and Jim Avera for this test.
6542 Here is a matrix of mmap possibilities:
6543 mmap private not fixed
6544 mmap private fixed at somewhere currently unmapped
6545 mmap private fixed at somewhere already mapped
6546 mmap shared not fixed
6547 mmap shared fixed at somewhere currently unmapped
6548 mmap shared fixed at somewhere already mapped
6549 For private mappings, we should verify that changes cannot be read()
6550 back from the file, nor mmap's back from the file at a different
6551 address. (There have been systems where private was not correctly
6552 implemented like the infamous i386 svr4.0, and systems where the
6553 VM page cache was not coherent with the file system buffer cache
6554 like early versions of FreeBSD and possibly contemporary NetBSD.)
6555 For shared mappings, we should conversely verify that changes get
6556 propagated back to all the places they're supposed to be.
6558 Grep wants private fixed already mapped.
6559 The main things grep needs to know about mmap are:
6560 * does it exist and is it safe to write into the mmap'd area
6561 * how to use it (BSD variants) */
6563 #include <fcntl.h>
6564 #include <sys/mman.h>
6566 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6567 char *malloc ();
6568 #endif
6570 /* This mess was copied from the GNU getpagesize.h. */
6571 #ifndef HAVE_GETPAGESIZE
6572 # ifdef _SC_PAGESIZE
6573 # define getpagesize() sysconf(_SC_PAGESIZE)
6574 # else /* no _SC_PAGESIZE */
6575 # ifdef HAVE_SYS_PARAM_H
6576 # include <sys/param.h>
6577 # ifdef EXEC_PAGESIZE
6578 # define getpagesize() EXEC_PAGESIZE
6579 # else /* no EXEC_PAGESIZE */
6580 # ifdef NBPG
6581 # define getpagesize() NBPG * CLSIZE
6582 # ifndef CLSIZE
6583 # define CLSIZE 1
6584 # endif /* no CLSIZE */
6585 # else /* no NBPG */
6586 # ifdef NBPC
6587 # define getpagesize() NBPC
6588 # else /* no NBPC */
6589 # ifdef PAGESIZE
6590 # define getpagesize() PAGESIZE
6591 # endif /* PAGESIZE */
6592 # endif /* no NBPC */
6593 # endif /* no NBPG */
6594 # endif /* no EXEC_PAGESIZE */
6595 # else /* no HAVE_SYS_PARAM_H */
6596 # define getpagesize() 8192 /* punt totally */
6597 # endif /* no HAVE_SYS_PARAM_H */
6598 # endif /* no _SC_PAGESIZE */
6600 #endif /* no HAVE_GETPAGESIZE */
6603 main ()
6605 char *data, *data2, *data3;
6606 const char *cdata2;
6607 int i, pagesize;
6608 int fd, fd2;
6610 pagesize = getpagesize ();
6612 /* First, make a file with some known garbage in it. */
6613 data = (char *) malloc (pagesize);
6614 if (!data)
6615 return 1;
6616 for (i = 0; i < pagesize; ++i)
6617 *(data + i) = rand ();
6618 umask (0);
6619 fd = creat ("conftest.mmap", 0600);
6620 if (fd < 0)
6621 return 2;
6622 if (write (fd, data, pagesize) != pagesize)
6623 return 3;
6624 close (fd);
6626 /* Next, check that the tail of a page is zero-filled. File must have
6627 non-zero length, otherwise we risk SIGBUS for entire page. */
6628 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6629 if (fd2 < 0)
6630 return 4;
6631 cdata2 = "";
6632 if (write (fd2, cdata2, 1) != 1)
6633 return 5;
6634 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6635 if (data2 == MAP_FAILED)
6636 return 6;
6637 for (i = 0; i < pagesize; ++i)
6638 if (*(data2 + i))
6639 return 7;
6640 close (fd2);
6641 if (munmap (data2, pagesize))
6642 return 8;
6644 /* Next, try to mmap the file at a fixed address which already has
6645 something else allocated at it. If we can, also make sure that
6646 we see the same garbage. */
6647 fd = open ("conftest.mmap", O_RDWR);
6648 if (fd < 0)
6649 return 9;
6650 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6651 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6652 return 10;
6653 for (i = 0; i < pagesize; ++i)
6654 if (*(data + i) != *(data2 + i))
6655 return 11;
6657 /* Finally, make sure that changes to the mapped area do not
6658 percolate back to the file as seen by read(). (This is a bug on
6659 some variants of i386 svr4.0.) */
6660 for (i = 0; i < pagesize; ++i)
6661 *(data2 + i) = *(data2 + i) + 1;
6662 data3 = (char *) malloc (pagesize);
6663 if (!data3)
6664 return 12;
6665 if (read (fd, data3, pagesize) != pagesize)
6666 return 13;
6667 for (i = 0; i < pagesize; ++i)
6668 if (*(data + i) != *(data3 + i))
6669 return 14;
6670 close (fd);
6671 return 0;
6673 _ACEOF
6674 if ac_fn_c_try_run "$LINENO"; then :
6675 ac_cv_func_mmap_fixed_mapped=yes
6676 else
6677 ac_cv_func_mmap_fixed_mapped=no
6679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6680 conftest.$ac_objext conftest.beam conftest.$ac_ext
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6685 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6686 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6688 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6691 rm -f conftest.mmap conftest.txt
6696 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6697 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6698 aros_config_ldflags=""
6700 aros_shared_default=yes
6702 aros_shared_cflags="-fPIC"
6703 aros_shared_aflags=""
6704 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6705 aros_kernel_ldflags="-Wl,-rpath,./lib"
6707 aros_kernel_ar_flags="cr"
6708 aros_target_ar_flags="cr"
6709 aros_target_nm_flags="-C -ul"
6710 aros_target_strip_flags="--strip-unneeded -R.comment"
6712 aros_compiler_libs=
6713 aros_arch_libs=
6715 aros_target_genmap="-Wl,-Map -Xlinker"
6717 # Native flavour stuff
6718 aros_serial_debug="0"
6720 # Palm native flavour stuff
6721 aros_palm_debug_hack="0"
6723 # Unix flavour stuff
6724 aros_nesting_supervisor="0"
6726 # Collect-aros stuff: "-ius" to ignore undefined symbols
6727 ignore_undefined_symbols=""
6729 # Check for X11 by default
6730 need_x11="auto"
6732 #-----------------------------------------------------------------------------
6735 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6736 # it switched on by default, and we use the host compiler, so it compiles AROS
6737 # code with this enabled resulting in link failures as we don't have support
6738 # for it.
6740 # We use two methods to disable it. For the host compiler (used to compile
6741 # some hosted modules), we test to see if the compiler supports stack
6742 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6743 # work on all platforms.
6745 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6746 # (this is done unconditionally, as it should have no effect on compilers
6747 # without the stack protection feature). This may be specific to the way that
6748 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6749 # strong enough to disable it in a generic way though, so we'll live with it
6750 # until another vendor ships GCC with it enabled in a different way, and deal
6751 # with it then.
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6755 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6756 save_cflags="$CFLAGS"
6757 CFLAGS="$CFLAGS -fno-stack-protector"
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6762 main ()
6766 return 0;
6768 _ACEOF
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770 use_no_stack_protector="yes"
6771 else
6772 use_no_stack_protector="no"
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6776 $as_echo "$use_no_stack_protector" >&6; }
6777 if test "x-$use_no_stack_protector" = "x-yes" ; then
6778 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6780 CFLAGS="$save_cflags"
6782 #-----------------------------------------------------------------------------
6784 # Disable pointer-signedness warnings if the compiler recognises the option
6785 # (this only works for the host compiler at the moment)
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6788 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6789 save_cflags="$CFLAGS"
6790 CFLAGS="$CFLAGS -Wno-pointer-sign"
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6795 main ()
6799 return 0;
6801 _ACEOF
6802 if ac_fn_c_try_compile "$LINENO"; then :
6803 use_no_sign_warning="yes"
6804 else
6805 use_no_sign_warning="no"
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6809 $as_echo "$use_no_sign_warning" >&6; }
6810 if test "x-$use_no_sign_warning" = "x-yes" ; then
6811 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6813 CFLAGS="$save_cflags"
6815 #-----------------------------------------------------------------------------
6817 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6820 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6821 save_cflags="$CFLAGS"
6822 CFLAGS="$CFLAGS -fgnu89-inline"
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6827 main ()
6831 return 0;
6833 _ACEOF
6834 if ac_fn_c_try_compile "$LINENO"; then :
6835 use_gnu89_inline="yes"
6836 else
6837 use_gnu89_inline="no"
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6841 $as_echo "$use_gnu89_inline" >&6; }
6842 if test "x-$use_gnu89_inline" = "x-yes" ; then
6843 gnu89_inline="-fgnu89-inline"
6845 CFLAGS="$save_cflags"
6847 #-----------------------------------------------------------------------------
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6850 $as_echo_n "checking for type of build... " >&6; }
6851 # Check whether --enable-build_type was given.
6852 if test "${enable_build_type+set}" = set; then :
6853 enableval=$enable_build_type; build_type=$enableval
6854 else
6855 build_type="personal"
6859 if test "$build_type" = "nightly"; then
6860 build_type_string="NIGHTLY"
6861 elif test "$build_type" = "snapshot"; then
6862 build_type_string="SNAPSHOT"
6863 elif test "$build_type" = "milestone"; then
6864 build_type_string="MILESTONE"
6865 elif test "$build_type" = "release"; then
6866 build_type_string="RELEASE"
6867 else
6868 build_type_string="PERSONAL"
6869 build_type="personal"
6872 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6875 $as_echo "$build_type" >&6; }
6877 #-----------------------------------------------------------------------------
6878 all_debug_types="messages stack modules mungwall symbols"
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6881 $as_echo_n "checking which debug types to enable... " >&6; }
6882 # Check whether --enable-debug was given.
6883 if test "${enable_debug+set}" = set; then :
6884 enableval=$enable_debug; debug="$enableval"
6885 else
6886 debug=""
6890 if test "$debug" = "" -o "$debug" = "no"; then
6891 debug="none"
6892 elif test "$debug" = "yes"; then
6893 debug="all"
6896 if test "$debug" = "all" ; then
6897 debug="messages stack modules symbols"
6898 for d in $all_debug_types; do
6899 export aros_${d}_debug="1"
6900 done
6901 else
6902 for d in $all_debug_types; do
6903 export aros_${d}_debug="0"
6904 done
6907 if test "$debug" != "none"; then
6908 debug=`echo $debug | sed s/,/\ /g`
6909 for d in $debug; do
6910 found="0"
6911 for d2 in $all_debug_types; do
6912 if test "$d2" = "$d"; then
6913 found="1"
6914 break
6916 done
6917 if test "$found" = "0"; then
6918 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6920 export aros_${d}_debug="1"
6921 done
6922 aros_debug="yes"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6925 $as_echo "$debug" >&6; }
6927 if test "$aros_messages_debug" = "1"; then
6928 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6929 else
6930 aros_messages_debug=""
6932 if test "$aros_symbols_debug" = "1"; then
6933 aros_symbols_debug="-g"
6934 else
6935 aros_symbols_debug=""
6938 # These are the flags to pass when compiling debugged programs
6939 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6940 aros_debug_aflags=""
6941 aros_debug_ldflags="$aros_symbols_debug"
6943 #-----------------------------------------------------------------------------
6944 # Checking if we should build crosstools..
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6946 $as_echo_n "checking whether to build crosstools... " >&6; }
6947 # Check whether --enable-crosstools was given.
6948 if test "${enable_crosstools+set}" = set; then :
6949 enableval=$enable_crosstools; crosstools="$enableval"
6950 else
6951 crosstools="no"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6955 $as_echo "$crosstools" >&6; }
6957 #-----------------------------------------------------------------------------
6958 # Checking for distcc and ccache.
6960 # Always apply the transforms in this particular order. Basically you should
6961 # always run 'ccache distcc compiler' in that order for the best performance.
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6964 $as_echo_n "checking whether to enable distcc... " >&6; }
6965 # Check whether --enable-distcc was given.
6966 if test "${enable_distcc+set}" = set; then :
6967 enableval=$enable_distcc; distcc="$enableval"
6968 else
6969 distcc="no"
6972 if test "$distcc" != "" -a "$distcc" != "no"; then
6973 # AC_CHECK_PROG will print out the result in this case
6974 # Extract the first word of "distcc", so it can be a program name with args.
6975 set dummy distcc; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_path_DISTCC+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 case $DISTCC in
6982 [\\/]* | ?:[\\/]*)
6983 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7001 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7003 esac
7005 DISTCC=$ac_cv_path_DISTCC
7006 if test -n "$DISTCC"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7008 $as_echo "$DISTCC" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7021 $as_echo_n "checking whether to enable ccache... " >&6; }
7022 # Check whether --enable-ccache was given.
7023 if test "${enable_ccache+set}" = set; then :
7024 enableval=$enable_ccache; ccache="$enableval"
7025 else
7026 ccache="no"
7029 if test "$ccache" != "" -a "$ccache" != "no"; then
7030 # AC_CHECK_PROG will print out the result in this case
7031 # Extract the first word of "ccache", so it can be a program name with args.
7032 set dummy ccache; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_CCACHE+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$CCACHE"; then
7039 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_CCACHE="ccache"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7052 done
7053 done
7054 IFS=$as_save_IFS
7058 CCACHE=$ac_cv_prog_CCACHE
7059 if test -n "$CCACHE"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7061 $as_echo "$CCACHE" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7068 else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7073 #-----------------------------------------------------------------------------
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7075 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7077 # Check whether --with-gcc-version was given.
7078 if test "${with_gcc_version+set}" = set; then :
7079 withval=$with_gcc_version; target_tool_version="$withval"
7080 else
7081 target_tool_version="default"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7085 $as_echo "$target_tool_version" >&6; }
7087 #-----------------------------------------------------------------------------
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7089 $as_echo_n "checking what optimization flags to use... " >&6; }
7091 # Check whether --with-optimization was given.
7092 if test "${with_optimization+set}" = set; then :
7093 withval=$with_optimization; optimization="$withval"
7094 else
7095 optimization="unknown"
7098 if test "$optimization" = "unknown"; then
7099 if test "$debug" != "none"; then
7100 optimization="-O0"
7101 else
7102 optimization="-O2"
7105 aros_config_cflags="$aros_config_cflags $optimization"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7107 $as_echo "$optimization" >&6; }
7109 #-----------------------------------------------------------------------------
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7111 $as_echo_n "checking what paranoia flags to use... " >&6; }
7113 # Check whether --with-paranoia was given.
7114 if test "${with_paranoia+set}" = set; then :
7115 withval=$with_paranoia; paranoia_flags="$withval"
7116 else
7117 paranoia_flags="default"
7120 if test "$paranoia_flags" = "default"; then
7121 paranoia_flags=""
7122 else if test "$paranoia_flags" = "yes"; then
7123 paranoia_flags="-Wall -Werror"
7124 fi fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7126 $as_echo "$paranoia_flags" >&6; }
7127 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7129 #-----------------------------------------------------------------------------
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7131 $as_echo_n "checking what target variant to enable... " >&6; }
7132 # Check whether --enable-target_variant was given.
7133 if test "${enable_target_variant+set}" = set; then :
7134 enableval=$enable_target_variant; target_variant=$enableval
7135 else
7136 target_variant=""
7139 if test "$target_variant" = ""; then
7140 aros_target_variant=""
7141 aros_target_suffix=""
7142 enableval="none"
7143 else
7144 aros_target_variant="$target_variant"
7145 aros_target_suffix="-$target_variant"
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7148 $as_echo "$enableval" >&6; }
7150 #-----------------------------------------------------------------------------
7151 # Target-specific defaults. You can override then on a per-target basis.
7153 # Bootloader name. Currently used by PC target.
7154 target_bootloader="none"
7156 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7157 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7158 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7159 if test "$crosstools" != "yes"; then
7160 target_tool_prefix=${target_cpu}-elf-
7161 else
7162 target_tool_prefix=${target_cpu}-aros-
7165 #-----------------------------------------------------------------------------
7166 # Additional options for some specific targets
7168 case "$aros_target_variant" in
7169 ios)
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7171 $as_echo_n "checking XCode path... " >&6; }
7173 # Check whether --with-xcode was given.
7174 if test "${with_xcode+set}" = set; then :
7175 withval=$with_xcode; aros_xcode_path="$withval"
7176 else
7177 aros_xcode_path="/Developer"
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7181 $as_echo "$aros_xcode_path" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7184 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7186 # Check whether --with-sdk-version was given.
7187 if test "${with_sdk_version+set}" = set; then :
7188 withval=$with_sdk_version; aros_sdk_version="$withval"
7189 else
7190 aros_sdk_version="4.1"
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7194 $as_echo "$aros_sdk_version" >&6; }
7198 "android")
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7200 $as_echo_n "checking Android SDK path... " >&6; }
7202 # Check whether --with-sdk was given.
7203 if test "${with_sdk+set}" = set; then :
7204 withval=$with_sdk; aros_android_sdk="$withval"
7205 else
7206 aros_android_sdk=$default_android_sdk
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7210 $as_echo "$aros_android_sdk" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7213 $as_echo_n "checking Android NDK path... " >&6; }
7215 # Check whether --with-ndk was given.
7216 if test "${with_ndk+set}" = set; then :
7217 withval=$with_ndk; aros_android_ndk="$withval"
7218 else
7219 aros_android_ndk="none"
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7223 $as_echo "$aros_android_ndk" >&6; }
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7226 $as_echo_n "checking what Android SDK version to use... " >&6; }
7228 # Check whether --with-sdk-version was given.
7229 if test "${with_sdk_version+set}" = set; then :
7230 withval=$with_sdk_version; aros_sdk_version="$withval"
7231 else
7232 aros_sdk_version="12"
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7236 $as_echo "$aros_sdk_version" >&6; }
7238 if test "$aros_android_ndk" != "none"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7240 $as_echo_n "checking what Android NDK version to use... " >&6; }
7242 # Check whether --with-ndk-version was given.
7243 if test "${with_ndk_version+set}" = set; then :
7244 withval=$with_ndk_version; aros_ndk_version="$withval"
7245 else
7246 aros_ndk_version="9"
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7250 $as_echo "$aros_ndk_version" >&6; }
7253 export PATH="$aros_android_sdk/tools:$PATH"
7254 # Extract the first word of "$android_tool", so it can be a program name with args.
7255 set dummy $android_tool; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_path_android_tool+:} false; then :
7259 $as_echo_n "(cached) " >&6
7260 else
7261 case $android_tool in
7262 [\\/]* | ?:[\\/]*)
7263 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7273 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 break 2
7277 done
7278 done
7279 IFS=$as_save_IFS
7282 esac
7284 android_tool=$ac_cv_path_android_tool
7285 if test -n "$android_tool"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7287 $as_echo "$android_tool" >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7294 if test "$android_tool" = ""; then
7295 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7298 aros_android_level=android-$aros_sdk_version
7299 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7300 echo "Platform $aros_android_level is not installed in your SDK"
7301 echo "Use --with-sdk-version=<API level number> to select another platform version"
7302 echo "You can check what plaform versions are installed in your SDK"
7303 echo "by examining contents of $aros_android_sdk/platforms directory"
7304 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7307 # Extract the first word of "ant", so it can be a program name with args.
7308 set dummy ant; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_path_ant+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 case $ant in
7315 [\\/]* | ?:[\\/]*)
7316 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7330 done
7331 done
7332 IFS=$as_save_IFS
7335 esac
7337 ant=$ac_cv_path_ant
7338 if test -n "$ant"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7340 $as_echo "$ant" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7347 if test "$ant" = ""; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7349 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7352 if test "$host_os" = "mingw32"; then
7353 android_tool="cmd //c $android_tool"
7357 esac
7359 #-----------------------------------------------------------------------------
7361 # This is the target configuration switch.
7362 case "$target_os" in
7363 linux*)
7364 aros_target_arch="linux"
7365 aros_target_family="unix"
7366 case "$target_cpu" in
7367 *m68k*)
7368 aros_target_cpu="m68k"
7369 aros_object_format="m68kelf"
7370 aros_flavour="emulcompat"
7371 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7372 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7373 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7374 gcc_target_cpu="mc68000"
7376 *i?86*)
7377 aros_target_cpu="i386"
7378 aros_object_format="elf_i386"
7379 aros_flavour="emulation"
7380 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7381 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7382 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7383 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7384 aros_config_ldflags="-m32 -march=i486"
7385 aros_kernel_ldflags="-melf_i386"
7386 aros_default_wbdepth=8
7387 gcc_target_cpu="i386"
7388 pci_hidd_target="hidd-pci-linux"
7389 android_tool_dir_prefix="x86"
7390 android_tool_prefix="i686-android-linux"
7391 android_ndk_arch="x86"
7393 *x86_64*)
7394 aros_target_cpu="x86_64"
7395 aros_object_format="elf_x86_64"
7396 aros_flavour="emulation"
7397 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7398 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7399 aros_default_wbdepth=8
7400 pci_hidd_target="hidd-pci-linux"
7402 *powerpc*)
7403 aros_target_cpu="ppc"
7404 aros_object_format="elf32ppc"
7405 aros_flavour="emulation"
7406 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7407 aros_default_wbdepth=8
7408 gcc_target_cpu="ppc"
7410 # TODO
7411 # Same as powerpc, but I need this for the nightly build to work again.
7412 # Actually, the nightly should be made working with powerpc target.
7413 # That just was too much work for the moment, another week or two.
7414 *ppc*)
7415 aros_target_cpu="ppc"
7416 aros_object_format="elf32ppc"
7417 aros_flavour="emulation"
7418 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7419 aros_default_wbdepth=8
7420 gcc_target_cpu="ppc"
7422 *arm*)
7423 aros_target_cpu="arm"
7424 aros_object_format="armelf_linux_eabi"
7425 aros_flavour="emulation"
7426 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7427 gcc_target_cpu="arm"
7428 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7429 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7430 aros_arch_libs="-laeabi"
7431 android_tool_dir_prefix="arm-linux-androideabi"
7432 android_tool_prefix="arm-linux-androideabi"
7433 android_ndk_arch="arm"
7436 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7438 esac
7439 case "$aros_target_variant" in
7440 android)
7442 if test "$android_ndk_arch" = ""; then
7443 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7446 aros_default_wbwidth=320
7447 aros_default_wbheight=480
7448 if test "$aros_android_ndk" = "none"; then
7449 aros_kernel_cflags="-mandroid"
7450 aros_kernel_ldflags="-mandroid"
7451 CFLAGS="-mandroid"
7452 else
7453 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7454 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7455 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7456 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7457 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7458 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7460 need_x11=no
7461 x11_hidd_target=kernel-hidd-androidgfx-kobj
7462 target_tool_prefix="$android_tool_prefix-"
7464 esac
7468 aros_target_arch="pc"
7469 aros_shared_default="no"
7470 target_bootloader="grub2"
7471 case "$target_cpu" in
7472 *i?86*)
7473 aros_target_cpu="i386"
7476 if test "$aros_object_format" = "" ; then
7477 aros_object_format="elf_i386"
7479 aros_flavour="standalone"
7480 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7481 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7482 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7483 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7484 aros_config_ldflags="-m32 -march=i486"
7485 aros_kernel_ldflags="-melf_i386"
7486 aros_default_wbwidth=640
7487 aros_default_wbheight=480
7488 gcc_target_cpu="i386"
7490 *x86_64*)
7491 aros_target_cpu="x86_64"
7492 aros_serial_debug=1
7493 if test "$aros_object_format" = "" ; then
7494 aros_object_format="elf_x86_64"
7496 aros_flavour="standalone"
7497 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7498 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7499 aros_kernel_ldflags=""
7500 aros_default_wbwidth=640
7501 aros_default_wbheight=480
7504 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7506 esac
7509 prep)
7510 aros_target_arch="prep"
7511 aros_shared_default="no"
7512 aros_target_cpu="ppc"
7513 aros_object_format="elf32ppc"
7514 aros_flavour="ppcnative"
7515 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7516 aros_kernel_ldflags=""
7517 aros_default_wbwidth=640
7518 aros_default_wbheight=480
7519 gcc_target_cpu="ppc"
7522 freebsd*)
7523 aros_target_arch="freebsd"
7524 aros_target_family="unix"
7525 aros_target_cpu="i386"
7526 aros_flavour="emulation"
7527 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7528 gcc_target_cpu="i386"
7530 aros_target_strip_flags="-x"
7533 darwin*)
7534 aros_target_arch="darwin"
7535 aros_target_family="unix"
7536 aros_flavour="emulation"
7537 case "$target_cpu" in
7538 *i?86*)
7539 aros_ios_platform="iPhoneSimulator"
7540 aros_target_cpu="i386"
7541 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7542 aros_kernel_ldflags=""
7543 aros_macosx_version="10.4"
7544 aros_default_wbdepth=8
7545 gcc_target_cpu="i386"
7546 aros_object_format="elf_i386"
7547 aros_kernel_ar_flags="-cr"
7548 aros_target_strip_flags="-x"
7549 target_tool_prefix="i686-apple-darwin10-"
7550 target_tool_flags="-m32"
7552 *x86_64*)
7553 aros_target_cpu="x86_64"
7554 aros_object_format="elf_x86_64"
7555 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7556 aros_macosx_version="10.6"
7557 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7558 aros_kernel_cflags="-m64"
7559 aros_kernel_ldflags="-m64"
7560 aros_target_cflags="-mcmodel=large"
7561 aros_default_wbdepth=8
7562 aros_kernel_ar="ar"
7563 aros_kernel_ar_flags="-cr"
7564 aros_kernel_ld="ld"
7565 aros_kernel_ranlib="ranlib"
7566 target_tool_prefix="i686-apple-darwin10-"
7568 *ppc*)
7569 aros_target_cpu="ppc"
7570 aros_object_format="elf32ppc"
7571 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7572 aros_kernel_ldflags=""
7573 aros_macosx_version="10.0"
7574 aros_default_wbdepth=8
7575 gcc_target_cpu="ppc"
7576 aros_kernel_ar="ar"
7577 aros_kernel_ar_flags="-cr"
7578 aros_kernel_ld="ld -arch ppc"
7579 aros_kernel_ranlib="ranlib -arch ppc"
7580 target_tool_prefix="powerpc-apple-darwin10-"
7582 *arm*)
7583 aros_ios_platform="iPhoneOS"
7584 aros_target_cpu="arm"
7585 aros_object_format="armelf_linux_eabi"
7586 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7587 aros_arch_libs="-laeabi"
7588 aros_default_wbdepth=8
7589 gcc_target_cpu="arm"
7590 aros_kernel_ar="ar"
7591 aros_kernel_ar_flags="-cr"
7592 aros_kernel_ld="ld -arch arm"
7593 aros_kernel_ranlib="ranlib -arch arm"
7594 target_tool_prefix="arm-apple-darwin10-"
7595 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7598 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7600 esac
7601 case "$aros_target_variant" in
7602 ios)
7603 aros_ios_version="3.0"
7604 aros_default_wbwidth=320
7605 aros_default_wbheight=480
7606 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7607 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7608 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7609 need_x11=no
7610 # This is here because it may depend on iOS or SDK version
7611 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7612 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7613 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7616 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7617 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7619 esac
7622 dragonfly*)
7623 aros_target_arch="dragonfly"
7624 aros_target_family="unix"
7625 aros_flavour="emulation"
7626 case "$target_cpu" in
7627 *i?86*)
7628 aros_target_cpu="i386"
7629 aros_object_format="elf_i386"
7630 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7632 *x86_64*)
7633 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7634 aros_target_cpu="x86_64"
7635 aros_object_format="elf_x86_64"
7636 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7639 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7641 esac
7644 netbsd*)
7645 aros_target_arch="netbsd"
7646 aros_target_family="unix"
7647 case "$target_cpu" in
7648 *m68k*)
7649 aros_target_cpu="m68k"
7650 aros_object_format="m68kelf"
7651 aros_flavour="emulcompat"
7652 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7653 gcc_target_cpu="mc68000"
7655 *i?86*)
7656 aros_target_cpu="i386"
7657 aros_object_format="elf_i386"
7658 aros_flavour="emulation"
7659 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7660 aros_default_wbdepth=8
7661 gcc_target_cpu="i386"
7664 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7666 esac
7667 aros_target_genmap="-Wl,-M -Xlinker >"
7668 aros_flavour="emulation"
7669 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7672 openbsd*)
7673 aros_target_arch="openbsd"
7674 aros_target_family="unix"
7675 case "$target_cpu" in
7676 *i?86*)
7677 aros_target_cpu="i386"
7678 aros_object_format="elf_i386"
7679 aros_flavour="emulation"
7680 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7681 gcc_target_cpu="i386"
7684 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7686 esac
7687 aros_target_genmap="-Wl,-M -Xlinker >"
7688 aros_target_nm_flags="-u"
7689 aros_flavour="emulation"
7692 solaris*)
7693 aros_target_arch="solaris"
7694 aros_target_family="unix"
7695 case "$target_cpu" in
7696 *i?86*)
7697 aros_target_cpu="i386"
7698 aros_object_format="elf_i386"
7699 aros_flavour="emulation"
7700 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7701 aros_default_wbdepth=8
7702 gcc_target_cpu="i386"
7704 *sparc*)
7705 aros_target_cpu="sparc"
7706 aros_object_format="elf_sparc"
7707 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7708 gcc_target_cpu="sparc"
7711 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7713 esac
7714 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7715 aros_flavour="emulation"
7718 morphos*)
7719 aros_target_arch="morphos"
7720 aros_shared_default="no"
7721 aros_target_cpu="ppc"
7722 aros_object_format="elf_ppc"
7723 aros_flavour="nativecompat"
7724 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7725 gcc_target_cpu="ppc"
7728 sam440)
7729 aros_target_arch="sam440"
7730 aros_shared_default="no"
7731 aros_target_cpu="ppc"
7732 aros_object_format="elf32ppc"
7733 aros_flavour="ppcnative"
7734 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7735 aros_kernel_ldflags=""
7736 aros_default_wbwidth=1024
7737 aros_default_wbheight=768
7738 aros_default_wbdepth=24
7739 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7740 gcc_target_cpu="powerpc"
7743 efika)
7744 aros_target_arch="efika"
7745 aros_shared_default="no"
7746 aros_target_cpu="arm"
7747 aros_object_format="armelf_linux_eabi"
7748 aros_flavour="standalone"
7749 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7750 aros_kernel_ldflags=""
7751 aros_default_wbwidth=1024
7752 aros_default_wbheight=600
7753 aros_arch_libs="-laeabi"
7754 gcc_default_cpu="armv7-a"
7755 gcc_default_fpu="vfpv3"
7756 gcc_default_float_abi="hard"
7757 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
7758 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
7761 chrp)
7762 aros_target_arch="chrp"
7763 aros_shared_default="no"
7764 aros_target_cpu="ppc"
7765 aros_object_format="elf32ppc"
7766 aros_flavour="ppcnative"
7767 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7768 aros_kernel_ldflags=""
7769 aros_default_wbwidth=640
7770 aros_default_wbheight=480
7771 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7772 gcc_target_cpu="powerpc"
7773 case "$aros_target_variant" in
7774 efika)
7775 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7777 esac
7780 amiga*)
7781 aros_target_arch="amiga"
7782 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7783 aros_shared_default="no"
7785 case "$target_cpu" in
7786 *m68k*)
7787 # Check whether --enable-amigaos_compliance was given.
7788 if test "${enable_amigaos_compliance+set}" = set; then :
7789 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7792 aros_enable_mmu=no
7793 aros_target_cpu="m68k"
7794 aros_object_format="m68kelf"
7795 aros_flavour="standcompat"
7796 gcc_target_cpu="m68000"
7797 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7798 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7799 target_tool_prefix="m68k-elf-"
7800 # Needed to get the correct multilib
7801 aros_config_ldflags="-${gcc_target_cpu}"
7802 aros_shared_ldflags="-${gcc_target_cpu}"
7803 aros_kernel_ldflags="-${gcc_target_cpu}"
7804 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7805 aros_target_strip_flags="-R.comment --strip-debug"
7806 aros_default_wbwidth=640
7807 aros_default_wbheight=256
7808 aros_default_wbdepth=2
7810 *ppc*)
7811 aros_cpu="ppc"
7812 aros_flavour="native"
7813 gcc_target_cpu="ppc"
7816 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7818 esac
7821 mingw*)
7822 aros_target_arch="mingw32"
7823 aros_shared_default="no"
7824 aros_flavour="emulation"
7825 aros_shared_cflags=""
7826 need_dlopen="no"
7827 rescomp="windres"
7828 case "$target_cpu" in
7829 *i?86*)
7830 aros_target_cpu="i386"
7831 aros_object_format="elf_i386"
7832 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7833 aros_default_wbdepth=8
7834 gcc_target_cpu="i386"
7836 aros_target_as="i386-aros-as"
7837 aros_target_ar="i386-aros-ar"
7838 aros_target_ranlib="i386-aros-ranlib"
7839 aros_target_nm="i386-aros-nm"
7840 aros_target_strip="i386-aros-strip"
7841 aros_target_objcopy="i386-aros-objcopy"
7842 aros_target_objdump="i386-aros-objdump"
7844 target_tool_prefix="i386-mingw32-"
7846 *x86_64*)
7847 aros_target_cpu="x86_64"
7848 aros_object_format="elf_x86_64"
7849 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7850 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7851 aros_default_wbdepth=8
7852 target_tool_prefix="x86_64-w64-mingw32-"
7854 *arm*)
7855 aros_target_cpu="arm"
7856 aros_object_format="armelf_linux_eabi"
7857 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7858 aros_arch_libs="-laeabi"
7859 aros_default_wbdepth=8
7860 gcc_target_cpu="arm"
7861 gcc_default_float_abi="soft"
7862 target_tool_prefix="arm-mingw32ce-"
7863 aros_default_wbwidth=160
7864 aros_default_wbheight=160
7867 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7869 esac
7870 if test $host_os = "cygwin"; then
7871 aros_kernel_cflags="-mno-cygwin"
7874 pp*)
7875 aros_target_arch="pp"
7876 aros_shared_default="no"
7877 case "$target_cpu" in
7878 *m68k*)
7879 aros_target_cpu="m68k"
7880 aros_object_format="m68kelf"
7881 aros_flavour="palmnative"
7882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7883 aros_default_wbwidth=160
7884 aros_default_wbheight=160
7885 aros_default_wbdepth=1
7886 aros_target_ar_flags="cru"
7887 aros_compiler_libs="-lgcc1"
7888 aros_shared_default=no
7889 aros_shared_cflags="-fpic"
7890 aros_shared_aflags=""
7891 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7892 aros_kernel_ldflags="-Wl,-rpath,./lib"
7893 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7894 aros_debug_aflags=""
7895 aros_debug_ldflags="$aros_symbols_debug"
7896 aros_mungwall_debug="0"
7897 aros_modules_debug="0"
7898 gcc_target_cpu="mc68000"
7899 ignore_undefined_symbols="-ius"
7902 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7904 esac
7907 mac*)
7908 aros_target_arch="mac"
7909 aros_shared_default="no"
7910 case "$target_cpu" in
7911 *m68k*)
7912 aros_target_cpu="m68k"
7913 aros_object_format="m68kelf"
7914 aros_flavour="mac68knative"
7915 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7916 aros_default_wbwidth=512
7917 aros_default_wbheight=384
7918 aros_default_wbdepth=8
7919 aros_target_ar_flags="cru"
7920 aros_compiler_libs="-lgcc1"
7921 aros_shared_default=no
7922 aros_shared_cflags="-fpic"
7923 aros_shared_aflags=""
7924 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7925 aros_kernel_ldflags="-Wl,-rpath,./lib"
7926 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7927 aros_debug_aflags=""
7928 aros_debug_ldflags="$aros_symbols_debug"
7929 aros_mungwall_debug="0"
7930 aros_modules_debug="0"
7931 gcc_target_cpu="mc68000"
7932 ignore_undefined_symbols="-ius"
7935 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7937 esac
7941 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7943 esac
7945 # Now process extra architecture-specific options.
7946 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
7947 # as well as floating-point ABI.
7948 case "$aros_target_cpu" in
7949 arm)
7950 if test "$gcc_default_cpu" = ""; then
7951 gcc_default_cpu="armv6"
7953 if test "$gcc_default_fpu" = ""; then
7954 gcc_default_fpu="vfp"
7956 if test "$gcc_default_float_abi" = ""; then
7957 gcc_default_float_abi="softfp"
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
7961 $as_echo_n "checking Which minimum CPU to use... " >&6; }
7963 # Check whether --with-cpu was given.
7964 if test "${with_cpu+set}" = set; then :
7965 withval=$with_cpu; aros_gcc_cpu="$withval"
7966 else
7967 aros_gcc_cpu=$gcc_default_cpu
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
7971 $as_echo "$aros_gcc_cpu" >&6; }
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
7974 $as_echo_n "checking Which minimum FPU to use... " >&6; }
7976 # Check whether --with-fpu was given.
7977 if test "${with_fpu+set}" = set; then :
7978 withval=$with_fpu; aros_gcc_fpu="$withval"
7979 else
7980 aros_gcc_fpu=$gcc_default_fpu
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
7984 $as_echo "$aros_gcc_fpu" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
7987 $as_echo_n "checking Which floating point ABI to use... " >&6; }
7989 # Check whether --with-float was given.
7990 if test "${with_float+set}" = set; then :
7991 withval=$with_float; aros_gcc_float_abi="$withval"
7992 else
7993 aros_gcc_float_abi=$gcc_default_float_abi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
7997 $as_echo "$aros_gcc_float_abi" >&6; }
7999 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8000 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8002 esac
8004 # Some formats need custom ELF specs.
8005 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8006 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8007 elf_specs_in=config/${aros_object_format}-specs.in
8008 else
8009 elf_specs_in=config/elf-specs.in
8012 #-----------------------------------------------------------------------------
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8014 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8016 # Check whether --with-crosstools was given.
8017 if test "${with_crosstools+set}" = set; then :
8018 withval=$with_crosstools; with_crosstools=$withval
8019 else
8020 with_crosstools="default"
8023 if test "$with_crosstools" = "default"; then
8024 crosstools=yes
8025 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8026 else
8027 AROS_CROSSTOOLSDIR="$with_crosstools"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8030 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8032 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
8035 use_aros_gcc=yes
8036 PATH=$AROS_CROSSTOOLSDIR:$PATH
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8040 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8042 # Check whether --with-aros-gcc was given.
8043 if test "${with_aros_gcc+set}" = set; then :
8044 withval=$with_aros_gcc; aros_gcc_version="$withval"
8045 else
8046 aros_gcc_version="$use_aros_gcc"
8049 case "$aros_gcc_version" in
8050 yes)
8051 aros_gcc_version="default"
8054 aros_gcc_version="none"
8056 esac
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8058 $as_echo "$aros_gcc_version" >&6; }
8060 if test "$aros_gcc_version" != "none"; then
8063 if test "$aros_gcc_version" != "default"; then
8064 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
8065 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
8066 else
8067 aros_target_cc="$aros_target_cpu-aros-gcc"
8068 aros_target_cxx="$aros_target_cpu-aros-g++"
8071 aros_target_ld="$aros_target_cpu-aros-ld"
8072 aros_target_as="$aros_target_cpu-aros-as"
8073 aros_target_ar="$aros_target_cpu-aros-ar"
8074 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
8075 aros_target_nm="$aros_target_cpu-aros-nm"
8076 aros_target_strip="$aros_target_cpu-aros-strip"
8077 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
8078 aros_target_objdump="$aros_target_cpu-aros-objdump"
8081 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8082 # Since we override specs, we may need to put these defines there
8083 if test "$gcc_target_cpu" != ""; then
8084 gcc_target_cpu="-D__${gcc_target_cpu}__"
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8088 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8090 # Check whether --with-portssources was given.
8091 if test "${with_portssources+set}" = set; then :
8092 withval=$with_portssources; with_portssrcdir=$withval
8093 else
8094 with_portssrcdir="default"
8097 if test "$with_portssrcdir" = "default"; then
8098 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8099 else
8100 AROS_PORTSSRCDIR="$with_portssrcdir"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8103 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8106 $as_echo_n "checking which bootloader to use... " >&6; }
8108 # Check whether --with-bootloader was given.
8109 if test "${with_bootloader+set}" = set; then :
8110 withval=$with_bootloader; target_bootloader=$withval
8111 else
8112 target_bootloader=$target_bootloader
8115 if test "$target_bootloader" = "none"; then
8116 aros_target_bootloader=""
8117 else
8118 aros_target_bootloader="$target_bootloader"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8121 $as_echo "$target_bootloader" >&6; }
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8124 $as_echo_n "checking which icon-set to use... " >&6; }
8126 # Check whether --with-iconset was given.
8127 if test "${with_iconset+set}" = set; then :
8128 withval=$with_iconset; target_iconset=$withval
8129 else
8130 target_iconset="default"
8133 if test "$target_iconset" = "default"; then
8134 aros_target_iconset="Gorilla"
8135 target_iconset="default (Gorilla)"
8136 else
8137 aros_target_iconset="$target_iconset"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8140 $as_echo "$target_iconset" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8143 $as_echo_n "checking which GUI Theme to use... " >&6; }
8145 # Check whether --with-theme was given.
8146 if test "${with_theme+set}" = set; then :
8147 withval=$with_theme; target_guitheme=$withval
8148 else
8149 target_guitheme="default"
8152 if test "$target_guitheme" = "default"; then
8153 aros_target_guitheme="Ice"
8154 else
8155 aros_target_guitheme="$target_guitheme"
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8158 $as_echo "$aros_target_guitheme" >&6; }
8160 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8161 # for target code)
8162 cross_compiling=no
8163 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8164 cross_compiling=yes
8167 if test "$aros_host_cpu" == "x86_64" ; then
8168 if test "$aros_target_cpu" == "i386" ; then
8169 if test "$aros_target_arch" != "mingw32"; then
8170 cross_compiling=no
8175 if test "$aros_host_arch" == "darwin" ; then
8176 if test "$aros_target_arch" != "darwin" ; then
8177 cross_compiling=yes
8181 if test "$aros_host_arch" == "mingw32" ; then
8182 if test "$aros_target_arch" != "mingw32" ; then
8183 cross_compiling=yes
8187 # I want to have this information in configure output, although it might be
8188 # misleading, e.g. for darwin hosted you cannot compile target code without a
8189 # cross compiler, but here it says no.
8191 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8192 # Target code is a little bit different thing.
8193 # sonic
8194 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8196 # Set prefix for target compiler etc. if we're cross-compiling
8197 # (should possibly be earlier but needs to be after AC_PROG_CC)
8198 if test "$cross_compiling" = "yes" ; then
8200 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8201 if test "$aros_gcc_version" != "none"; then
8204 target_tool_prefix=${target_cpu}-aros-
8205 target_tool_version=$aros_gcc_version
8206 use_kernel_cc_wrapper=yes
8208 if test "$crosstools" != yes; then
8209 aros_target_cc=
8210 aros_target_ld=
8211 aros_target_as=
8212 aros_target_ar=
8213 aros_target_ranlib=
8214 aros_target_nm=
8215 aros_target_strip=
8216 aros_target_objcopy=
8217 aros_target_objdump=
8222 CC=${target_tool_prefix}gcc
8223 CPP=${target_tool_prefix}cpp
8224 if test "$target_tool_version" != "default"; then
8225 CC="$CC-$target_tool_version"
8226 CPP="$CC-$target_tool_version"
8228 if test "$crosstools" != "yes" ; then
8229 # Extract the first word of "$CC", so it can be a program name with args.
8230 set dummy $CC; ac_word=$2
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 $as_echo_n "checking for $ac_word... " >&6; }
8233 if ${ac_cv_path_CC+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 case $CC in
8237 [\\/]* | ?:[\\/]*)
8238 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8252 done
8253 done
8254 IFS=$as_save_IFS
8257 esac
8259 CC=$ac_cv_path_CC
8260 if test -n "$CC"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8262 $as_echo "$CC" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8269 if test "$CC" = ""; then
8270 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8272 else
8273 CC=$AROS_CROSSTOOLSDIR/$CC
8276 CC="$CC $target_tool_flags"
8278 #-----------------------------------------------------------------------------
8280 # Disable pointer-signedness warnings if the compiler recognises the option
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8283 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8284 save_cflags="$CFLAGS"
8285 if test "$crosstools" != "yes" ; then
8286 CFLAGS="$CFLAGS -Wno-pointer-sign"
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8291 main ()
8295 return 0;
8297 _ACEOF
8298 if ac_fn_c_try_compile "$LINENO"; then :
8299 use_no_sign_warning="yes"
8300 else
8301 use_no_sign_warning="no"
8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 else
8305 # we do know it is supported for the smallest version of gcc we are going to build
8306 # we assume it's also supported by later versions
8307 use_no_sign_warning=yes
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8310 $as_echo "$use_no_sign_warning" >&6; }
8311 if test "x-$use_no_sign_warning" = "x-yes" ; then
8312 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8314 CFLAGS="$save_cflags"
8316 #-----------------------------------------------------------------------------
8318 # Find all the tools we need to compile. This could be cross-compiling
8319 # though! If that is the case we use the GNU form of the target and
8320 # simply add this to the front of the binary name. This is rather simple,
8321 # but it should work under most circumstances.
8323 # The default tools are to use the same as the host, but only if the
8324 # host and target CPU are the same. With GCC this is normally enough.
8327 aros_cc_pre=""
8328 aros_shared_ld="$aros_host_ld"
8330 aros_target_mkdep="$aros_host_mkdep"
8331 aros_target_incl_def="$aros_host_incl"
8333 aros_kernel_cc="$CC"
8335 # The default tools executables to be linked to.
8336 if test "$rescomp" != ""; then
8337 if test "$cross_compiling" = "yes" ; then
8338 rescomp=${target_tool_prefix}${rescomp}
8340 # Extract the first word of "$rescomp", so it can be a program name with args.
8341 set dummy $rescomp; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 case $aros_kernel_rescomp in
8348 [\\/]* | ?:[\\/]*)
8349 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8363 done
8364 done
8365 IFS=$as_save_IFS
8368 esac
8370 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8371 if test -n "$aros_kernel_rescomp"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8373 $as_echo "$aros_kernel_rescomp" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8380 if test "$aros_kernel_rescomp" = ""; then
8381 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8385 if test "$crosstools" != "yes"; then
8387 if test "$aros_kernel_ld" = ""; then
8388 if test "$cross_compiling" = "yes" ; then
8389 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8390 set dummy ${target_tool_prefix}ld; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 case $aros_kernel_ld in
8397 [\\/]* | ?:[\\/]*)
8398 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8417 esac
8419 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8420 if test -n "$aros_kernel_ld"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8422 $as_echo "$aros_kernel_ld" >&6; }
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8429 else
8430 if test "$GCC" = "yes"; then
8431 aros_gcc_ld=`$CC -print-prog-name=ld`
8432 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8433 set dummy `basename $aros_gcc_ld`; ac_word=$2
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 $as_echo_n "checking for $ac_word... " >&6; }
8436 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 case $aros_kernel_ld in
8440 [\\/]* | ?:[\\/]*)
8441 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in `dirname $aros_gcc_ld`
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8451 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8455 done
8456 done
8457 IFS=$as_save_IFS
8460 esac
8462 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8463 if test -n "$aros_kernel_ld"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8465 $as_echo "$aros_kernel_ld" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8473 if test "$aros_kernel_ld" = ""; then
8474 # Extract the first word of "ld", so it can be a program name with args.
8475 set dummy ld; ac_word=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 case $aros_kernel_ld in
8482 [\\/]* | ?:[\\/]*)
8483 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8493 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 break 2
8497 done
8498 done
8499 IFS=$as_save_IFS
8502 esac
8504 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8505 if test -n "$aros_kernel_ld"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8507 $as_echo "$aros_kernel_ld" >&6; }
8508 else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8516 else
8517 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8518 set dummy $aros_kernel_ld; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 case $aros_kernel_ld in
8525 [\\/]* | ?:[\\/]*)
8526 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8536 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 break 2
8540 done
8541 done
8542 IFS=$as_save_IFS
8545 esac
8547 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8548 if test -n "$aros_kernel_ld"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8550 $as_echo "$aros_kernel_ld" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8559 if test "$aros_kernel_ld" = ""; then
8560 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8563 if test "$aros_kernel_ar" = ""; then
8564 if test "$cross_compiling" = "yes" ; then
8565 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8566 set dummy ${target_tool_prefix}ar; ac_word=$2
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 $as_echo_n "checking for $ac_word... " >&6; }
8569 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 case $aros_kernel_ar in
8573 [\\/]* | ?:[\\/]*)
8574 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8580 IFS=$as_save_IFS
8581 test -z "$as_dir" && as_dir=.
8582 for ac_exec_ext in '' $ac_executable_extensions; do
8583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8584 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 break 2
8588 done
8589 done
8590 IFS=$as_save_IFS
8593 esac
8595 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8596 if test -n "$aros_kernel_ar"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8598 $as_echo "$aros_kernel_ar" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8605 else
8606 if test "$GCC" = "yes"; then
8607 aros_gcc_ar=`$CC -print-prog-name=ar`
8608 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8609 set dummy `basename $aros_gcc_ar`; ac_word=$2
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8611 $as_echo_n "checking for $ac_word... " >&6; }
8612 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 case $aros_kernel_ar in
8616 [\\/]* | ?:[\\/]*)
8617 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in `dirname $aros_gcc_ar`
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8631 done
8632 done
8633 IFS=$as_save_IFS
8636 esac
8638 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8639 if test -n "$aros_kernel_ar"; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8641 $as_echo "$aros_kernel_ar" >&6; }
8642 else
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644 $as_echo "no" >&6; }
8649 if test "$aros_kernel_ar" = ""; then
8650 # Extract the first word of "ar", so it can be a program name with args.
8651 set dummy ar; ac_word=$2
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653 $as_echo_n "checking for $ac_word... " >&6; }
8654 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 case $aros_kernel_ar in
8658 [\\/]* | ?:[\\/]*)
8659 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8669 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8673 done
8674 done
8675 IFS=$as_save_IFS
8678 esac
8680 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8681 if test -n "$aros_kernel_ar"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8683 $as_echo "$aros_kernel_ar" >&6; }
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8692 else
8693 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8694 set dummy $aros_kernel_ar; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 case $aros_kernel_ar in
8701 [\\/]* | ?:[\\/]*)
8702 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 for as_dir in $PATH
8708 IFS=$as_save_IFS
8709 test -z "$as_dir" && as_dir=.
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8712 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 break 2
8716 done
8717 done
8718 IFS=$as_save_IFS
8721 esac
8723 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8724 if test -n "$aros_kernel_ar"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8726 $as_echo "$aros_kernel_ar" >&6; }
8727 else
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8735 if test "$aros_kernel_ar" = ""; then
8736 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8739 if test "$aros_kernel_ranlib" = ""; then
8740 if test "$cross_compiling" = "yes" ; then
8741 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8742 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 case $aros_kernel_ranlib in
8749 [\\/]* | ?:[\\/]*)
8750 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8760 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8764 done
8765 done
8766 IFS=$as_save_IFS
8769 esac
8771 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8772 if test -n "$aros_kernel_ranlib"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8774 $as_echo "$aros_kernel_ranlib" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8781 else
8782 if test "$GCC" = "yes"; then
8783 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8784 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8785 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 case $aros_kernel_ranlib in
8792 [\\/]* | ?:[\\/]*)
8793 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in `dirname $aros_gcc_ranlib`
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8807 done
8808 done
8809 IFS=$as_save_IFS
8812 esac
8814 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8815 if test -n "$aros_kernel_ranlib"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8817 $as_echo "$aros_kernel_ranlib" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8825 if test "$aros_kernel_ranlib" = ""; then
8826 # Extract the first word of "ranlib", so it can be a program name with args.
8827 set dummy ranlib; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 case $aros_kernel_ranlib in
8834 [\\/]* | ?:[\\/]*)
8835 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8845 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8849 done
8850 done
8851 IFS=$as_save_IFS
8854 esac
8856 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8857 if test -n "$aros_kernel_ranlib"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8859 $as_echo "$aros_kernel_ranlib" >&6; }
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8868 else
8869 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8870 set dummy $aros_kernel_ranlib; ac_word=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872 $as_echo_n "checking for $ac_word... " >&6; }
8873 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 case $aros_kernel_ranlib in
8877 [\\/]* | ?:[\\/]*)
8878 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8892 done
8893 done
8894 IFS=$as_save_IFS
8897 esac
8899 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8900 if test -n "$aros_kernel_ranlib"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8902 $as_echo "$aros_kernel_ranlib" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8911 if test "$aros_kernel_ranlib" = ""; then
8912 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8915 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8916 target_tool_prefix=${target_cpu}-elf-
8917 if test "$aros_target_cc" == ""; then
8918 aros_target_cc="${target_tool_prefix}gcc"
8920 if test "$aros_target_ld" == ""; then
8921 aros_target_ld="${target_tool_prefix}ld"
8925 if test "$aros_target_as" = ""; then
8926 if test "$cross_compiling" = "yes" ; then
8927 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8928 set dummy ${target_tool_prefix}as; ac_word=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 case $aros_target_as_ln in
8935 [\\/]* | ?:[\\/]*)
8936 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in $PATH
8942 IFS=$as_save_IFS
8943 test -z "$as_dir" && as_dir=.
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8946 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8948 break 2
8950 done
8951 done
8952 IFS=$as_save_IFS
8955 esac
8957 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8958 if test -n "$aros_target_as_ln"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8960 $as_echo "$aros_target_as_ln" >&6; }
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8967 else
8968 if test "$GCC" = "yes"; then
8969 aros_gcc_as=`$CC -print-prog-name=as`
8970 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8971 set dummy `basename $aros_gcc_as`; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 case $aros_target_as_ln in
8978 [\\/]* | ?:[\\/]*)
8979 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 for as_dir in `dirname $aros_gcc_as`
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8989 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8993 done
8994 done
8995 IFS=$as_save_IFS
8998 esac
9000 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9001 if test -n "$aros_target_as_ln"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9003 $as_echo "$aros_target_as_ln" >&6; }
9004 else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9011 if test "$aros_target_as_ln" = ""; then
9012 # Extract the first word of "as", so it can be a program name with args.
9013 set dummy as; ac_word=$2
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015 $as_echo_n "checking for $ac_word... " >&6; }
9016 if ${ac_cv_path_aros_target_as_ln+:} false; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 case $aros_target_as_ln in
9020 [\\/]* | ?:[\\/]*)
9021 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 for as_dir in $PATH
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9031 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9033 break 2
9035 done
9036 done
9037 IFS=$as_save_IFS
9040 esac
9042 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9043 if test -n "$aros_target_as_ln"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9045 $as_echo "$aros_target_as_ln" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9054 else
9055 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9056 set dummy $aros_target_as; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if ${ac_cv_path_aros_target_as_ln+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 case $aros_target_as_ln in
9063 [\\/]* | ?:[\\/]*)
9064 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9074 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 break 2
9078 done
9079 done
9080 IFS=$as_save_IFS
9083 esac
9085 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9086 if test -n "$aros_target_as_ln"; then
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9088 $as_echo "$aros_target_as_ln" >&6; }
9089 else
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9097 if test "$aros_target_as_ln" = ""; then
9098 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9101 if test "$aros_target_ar" = ""; then
9102 if test "$cross_compiling" = "yes" ; then
9103 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9104 set dummy ${target_tool_prefix}ar; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 case $aros_target_ar_ln in
9111 [\\/]* | ?:[\\/]*)
9112 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9122 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9126 done
9127 done
9128 IFS=$as_save_IFS
9131 esac
9133 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9134 if test -n "$aros_target_ar_ln"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9136 $as_echo "$aros_target_ar_ln" >&6; }
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9143 else
9144 if test "$GCC" = "yes"; then
9145 aros_gcc_ar=`$CC -print-prog-name=ar`
9146 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9147 set dummy `basename $aros_gcc_ar`; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 case $aros_target_ar_ln in
9154 [\\/]* | ?:[\\/]*)
9155 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in `dirname $aros_gcc_ar`
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9169 done
9170 done
9171 IFS=$as_save_IFS
9174 esac
9176 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9177 if test -n "$aros_target_ar_ln"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9179 $as_echo "$aros_target_ar_ln" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9187 if test "$aros_target_ar_ln" = ""; then
9188 # Extract the first word of "ar", so it can be a program name with args.
9189 set dummy ar; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 case $aros_target_ar_ln in
9196 [\\/]* | ?:[\\/]*)
9197 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9207 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9211 done
9212 done
9213 IFS=$as_save_IFS
9216 esac
9218 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9219 if test -n "$aros_target_ar_ln"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9221 $as_echo "$aros_target_ar_ln" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9230 else
9231 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9232 set dummy $aros_target_ar; ac_word=$2
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234 $as_echo_n "checking for $ac_word... " >&6; }
9235 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 case $aros_target_ar_ln in
9239 [\\/]* | ?:[\\/]*)
9240 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH
9246 IFS=$as_save_IFS
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9250 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 break 2
9254 done
9255 done
9256 IFS=$as_save_IFS
9259 esac
9261 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9262 if test -n "$aros_target_ar_ln"; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9264 $as_echo "$aros_target_ar_ln" >&6; }
9265 else
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 $as_echo "no" >&6; }
9273 if test "$aros_target_ar_ln" = ""; then
9274 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9277 if test "$aros_target_nm" = ""; then
9278 if test "$cross_compiling" = "yes" ; then
9279 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9280 set dummy ${target_tool_prefix}nm; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 case $aros_target_nm_ln in
9287 [\\/]* | ?:[\\/]*)
9288 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9298 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 break 2
9302 done
9303 done
9304 IFS=$as_save_IFS
9307 esac
9309 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9310 if test -n "$aros_target_nm_ln"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9312 $as_echo "$aros_target_nm_ln" >&6; }
9313 else
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9319 else
9320 if test "$GCC" = "yes"; then
9321 aros_gcc_nm=`$CC -print-prog-name=nm`
9322 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9323 set dummy `basename $aros_gcc_nm`; ac_word=$2
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9325 $as_echo_n "checking for $ac_word... " >&6; }
9326 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 case $aros_target_nm_ln in
9330 [\\/]* | ?:[\\/]*)
9331 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in `dirname $aros_gcc_nm`
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 break 2
9345 done
9346 done
9347 IFS=$as_save_IFS
9350 esac
9352 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9353 if test -n "$aros_target_nm_ln"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9355 $as_echo "$aros_target_nm_ln" >&6; }
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9363 if test "$aros_target_nm_ln" = ""; then
9364 # Extract the first word of "nm", so it can be a program name with args.
9365 set dummy nm; ac_word=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 case $aros_target_nm_ln in
9372 [\\/]* | ?:[\\/]*)
9373 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9377 for as_dir in $PATH
9379 IFS=$as_save_IFS
9380 test -z "$as_dir" && as_dir=.
9381 for ac_exec_ext in '' $ac_executable_extensions; do
9382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9383 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9385 break 2
9387 done
9388 done
9389 IFS=$as_save_IFS
9392 esac
9394 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9395 if test -n "$aros_target_nm_ln"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9397 $as_echo "$aros_target_nm_ln" >&6; }
9398 else
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 $as_echo "no" >&6; }
9406 else
9407 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9408 set dummy $aros_target_nm; ac_word=$2
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410 $as_echo_n "checking for $ac_word... " >&6; }
9411 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 case $aros_target_nm_ln in
9415 [\\/]* | ?:[\\/]*)
9416 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420 for as_dir in $PATH
9422 IFS=$as_save_IFS
9423 test -z "$as_dir" && as_dir=.
9424 for ac_exec_ext in '' $ac_executable_extensions; do
9425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9426 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9428 break 2
9430 done
9431 done
9432 IFS=$as_save_IFS
9435 esac
9437 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9438 if test -n "$aros_target_nm_ln"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9440 $as_echo "$aros_target_nm_ln" >&6; }
9441 else
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9449 if test "$aros_target_nm_ln" = ""; then
9450 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9453 if test "$aros_target_objcopy" = ""; then
9454 if test "$cross_compiling" = "yes" ; then
9455 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9456 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458 $as_echo_n "checking for $ac_word... " >&6; }
9459 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 case $aros_target_objcopy_ln in
9463 [\\/]* | ?:[\\/]*)
9464 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468 for as_dir in $PATH
9470 IFS=$as_save_IFS
9471 test -z "$as_dir" && as_dir=.
9472 for ac_exec_ext in '' $ac_executable_extensions; do
9473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9474 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9476 break 2
9478 done
9479 done
9480 IFS=$as_save_IFS
9483 esac
9485 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9486 if test -n "$aros_target_objcopy_ln"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9488 $as_echo "$aros_target_objcopy_ln" >&6; }
9489 else
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 $as_echo "no" >&6; }
9495 else
9496 if test "$GCC" = "yes"; then
9497 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9498 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9499 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501 $as_echo_n "checking for $ac_word... " >&6; }
9502 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 case $aros_target_objcopy_ln in
9506 [\\/]* | ?:[\\/]*)
9507 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511 for as_dir in `dirname $aros_gcc_objcopy`
9513 IFS=$as_save_IFS
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9517 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9519 break 2
9521 done
9522 done
9523 IFS=$as_save_IFS
9526 esac
9528 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9529 if test -n "$aros_target_objcopy_ln"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9531 $as_echo "$aros_target_objcopy_ln" >&6; }
9532 else
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9539 if test "$aros_target_objcopy_ln" = ""; then
9540 # Extract the first word of "objcopy", so it can be a program name with args.
9541 set dummy objcopy; ac_word=$2
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 case $aros_target_objcopy_ln in
9548 [\\/]* | ?:[\\/]*)
9549 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in $PATH
9555 IFS=$as_save_IFS
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9559 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561 break 2
9563 done
9564 done
9565 IFS=$as_save_IFS
9568 esac
9570 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9571 if test -n "$aros_target_objcopy_ln"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9573 $as_echo "$aros_target_objcopy_ln" >&6; }
9574 else
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9582 else
9583 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9584 set dummy $aros_target_objcopy; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 case $aros_target_objcopy_ln in
9591 [\\/]* | ?:[\\/]*)
9592 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9602 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 break 2
9606 done
9607 done
9608 IFS=$as_save_IFS
9611 esac
9613 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9614 if test -n "$aros_target_objcopy_ln"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9616 $as_echo "$aros_target_objcopy_ln" >&6; }
9617 else
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9625 if test "$aros_target_objcopy_ln" = ""; then
9626 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9629 if test "$aros_target_objdump" = ""; then
9630 if test "$cross_compiling" = "yes" ; then
9631 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9632 set dummy ${target_tool_prefix}objdump; 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 ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 case $aros_target_objdump_ln in
9639 [\\/]* | ?:[\\/]*)
9640 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # 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_objdump_ln="$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_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9662 if test -n "$aros_target_objdump_ln"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9664 $as_echo "$aros_target_objdump_ln" >&6; }
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9671 else
9672 if test "$GCC" = "yes"; then
9673 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9674 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9675 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9679 $as_echo_n "(cached) " >&6
9680 else
9681 case $aros_target_objdump_ln in
9682 [\\/]* | ?:[\\/]*)
9683 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in `dirname $aros_gcc_objdump`
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9697 done
9698 done
9699 IFS=$as_save_IFS
9702 esac
9704 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9705 if test -n "$aros_target_objdump_ln"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9707 $as_echo "$aros_target_objdump_ln" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9715 if test "$aros_target_objdump_ln" = ""; then
9716 # Extract the first word of "objdump", so it can be a program name with args.
9717 set dummy objdump; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 case $aros_target_objdump_ln in
9724 [\\/]* | ?:[\\/]*)
9725 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9739 done
9740 done
9741 IFS=$as_save_IFS
9744 esac
9746 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9747 if test -n "$aros_target_objdump_ln"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9749 $as_echo "$aros_target_objdump_ln" >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9758 else
9759 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9760 set dummy $aros_target_objdump; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 case $aros_target_objdump_ln in
9767 [\\/]* | ?:[\\/]*)
9768 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9782 done
9783 done
9784 IFS=$as_save_IFS
9787 esac
9789 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9790 if test -n "$aros_target_objdump_ln"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9792 $as_echo "$aros_target_objdump_ln" >&6; }
9793 else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9801 if test "$aros_target_objdump_ln" = ""; then
9802 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9805 if test "$aros_target_ranlib" = ""; then
9806 if test "$cross_compiling" = "yes" ; then
9807 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9808 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 case $aros_target_ranlib_ln in
9815 [\\/]* | ?:[\\/]*)
9816 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $PATH
9822 IFS=$as_save_IFS
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9826 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 break 2
9830 done
9831 done
9832 IFS=$as_save_IFS
9835 esac
9837 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9838 if test -n "$aros_target_ranlib_ln"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9840 $as_echo "$aros_target_ranlib_ln" >&6; }
9841 else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9847 else
9848 if test "$GCC" = "yes"; then
9849 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9850 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9851 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853 $as_echo_n "checking for $ac_word... " >&6; }
9854 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 case $aros_target_ranlib_ln in
9858 [\\/]* | ?:[\\/]*)
9859 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 for as_dir in `dirname $aros_gcc_ranlib`
9865 IFS=$as_save_IFS
9866 test -z "$as_dir" && as_dir=.
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9869 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 break 2
9873 done
9874 done
9875 IFS=$as_save_IFS
9878 esac
9880 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9881 if test -n "$aros_target_ranlib_ln"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9883 $as_echo "$aros_target_ranlib_ln" >&6; }
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9891 if test "$aros_target_ranlib_ln" = ""; then
9892 # Extract the first word of "ranlib", so it can be a program name with args.
9893 set dummy ranlib; ac_word=$2
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 $as_echo_n "checking for $ac_word... " >&6; }
9896 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 case $aros_target_ranlib_ln in
9900 [\\/]* | ?:[\\/]*)
9901 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9911 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 break 2
9915 done
9916 done
9917 IFS=$as_save_IFS
9920 esac
9922 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9923 if test -n "$aros_target_ranlib_ln"; then
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9925 $as_echo "$aros_target_ranlib_ln" >&6; }
9926 else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9934 else
9935 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9936 set dummy $aros_target_ranlib; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 case $aros_target_ranlib_ln in
9943 [\\/]* | ?:[\\/]*)
9944 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9954 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 break 2
9958 done
9959 done
9960 IFS=$as_save_IFS
9963 esac
9965 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9966 if test -n "$aros_target_ranlib_ln"; then
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9968 $as_echo "$aros_target_ranlib_ln" >&6; }
9969 else
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9977 if test "$aros_target_ranlib_ln" = ""; then
9978 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9981 if test "$aros_target_strip" = ""; then
9982 if test "$cross_compiling" = "yes" ; then
9983 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9984 set dummy ${target_tool_prefix}strip; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 $as_echo_n "checking for $ac_word... " >&6; }
9987 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 case $aros_target_strip_ln in
9991 [\\/]* | ?:[\\/]*)
9992 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10002 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10006 done
10007 done
10008 IFS=$as_save_IFS
10011 esac
10013 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10014 if test -n "$aros_target_strip_ln"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10016 $as_echo "$aros_target_strip_ln" >&6; }
10017 else
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10023 else
10024 if test "$GCC" = "yes"; then
10025 aros_gcc_strip=`$CC -print-prog-name=strip`
10026 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10027 set dummy `basename $aros_gcc_strip`; ac_word=$2
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029 $as_echo_n "checking for $ac_word... " >&6; }
10030 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 case $aros_target_strip_ln in
10034 [\\/]* | ?:[\\/]*)
10035 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in `dirname $aros_gcc_strip`
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10045 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10049 done
10050 done
10051 IFS=$as_save_IFS
10054 esac
10056 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10057 if test -n "$aros_target_strip_ln"; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10059 $as_echo "$aros_target_strip_ln" >&6; }
10060 else
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10067 if test "$aros_target_strip_ln" = ""; then
10068 # Extract the first word of "strip", so it can be a program name with args.
10069 set dummy strip; ac_word=$2
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071 $as_echo_n "checking for $ac_word... " >&6; }
10072 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 case $aros_target_strip_ln in
10076 [\\/]* | ?:[\\/]*)
10077 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10087 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 break 2
10091 done
10092 done
10093 IFS=$as_save_IFS
10096 esac
10098 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10099 if test -n "$aros_target_strip_ln"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10101 $as_echo "$aros_target_strip_ln" >&6; }
10102 else
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10110 else
10111 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10112 set dummy $aros_target_strip; ac_word=$2
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114 $as_echo_n "checking for $ac_word... " >&6; }
10115 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 case $aros_target_strip_ln in
10119 [\\/]* | ?:[\\/]*)
10120 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10130 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10134 done
10135 done
10136 IFS=$as_save_IFS
10139 esac
10141 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10142 if test -n "$aros_target_strip_ln"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10144 $as_echo "$aros_target_strip_ln" >&6; }
10145 else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10153 if test "$aros_target_strip_ln" = ""; then
10154 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10156 if test "$aros_target_cxx" != ""; then
10157 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10158 set dummy $aros_target_cxx; ac_word=$2
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160 $as_echo_n "checking for $ac_word... " >&6; }
10161 if ${ac_cv_path_aros_target_cxx+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 case $aros_target_cxx in
10165 [\\/]* | ?:[\\/]*)
10166 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170 for as_dir in $PATH
10172 IFS=$as_save_IFS
10173 test -z "$as_dir" && as_dir=.
10174 for ac_exec_ext in '' $ac_executable_extensions; do
10175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10176 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178 break 2
10180 done
10181 done
10182 IFS=$as_save_IFS
10185 esac
10187 aros_target_cxx=$ac_cv_path_aros_target_cxx
10188 if test -n "$aros_target_cxx"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10190 $as_echo "$aros_target_cxx" >&6; }
10191 else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10197 if test "$aros_target_cxx" = ""; then
10198 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10201 else
10202 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10203 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10204 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10205 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10206 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10207 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10208 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10209 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10210 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10212 if test "$target_tool_prefix" != "${target_cpu}-aros-" ; then
10214 if test "$aros_kernel_ld" = ""; then
10215 if test "$cross_compiling" = "yes" ; then
10216 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10217 set dummy ${target_tool_prefix}ld; ac_word=$2
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219 $as_echo_n "checking for $ac_word... " >&6; }
10220 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 case $aros_kernel_ld in
10224 [\\/]* | ?:[\\/]*)
10225 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229 for as_dir in $PATH
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
10233 for ac_exec_ext in '' $ac_executable_extensions; do
10234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10235 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 break 2
10239 done
10240 done
10241 IFS=$as_save_IFS
10244 esac
10246 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10247 if test -n "$aros_kernel_ld"; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10249 $as_echo "$aros_kernel_ld" >&6; }
10250 else
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252 $as_echo "no" >&6; }
10256 else
10257 if test "$GCC" = "yes"; then
10258 aros_gcc_ld=`$CC -print-prog-name=ld`
10259 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10260 set dummy `basename $aros_gcc_ld`; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 case $aros_kernel_ld in
10267 [\\/]* | ?:[\\/]*)
10268 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272 for as_dir in `dirname $aros_gcc_ld`
10274 IFS=$as_save_IFS
10275 test -z "$as_dir" && as_dir=.
10276 for ac_exec_ext in '' $ac_executable_extensions; do
10277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10278 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 break 2
10282 done
10283 done
10284 IFS=$as_save_IFS
10287 esac
10289 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10290 if test -n "$aros_kernel_ld"; then
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10292 $as_echo "$aros_kernel_ld" >&6; }
10293 else
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10300 if test "$aros_kernel_ld" = ""; then
10301 # Extract the first word of "ld", so it can be a program name with args.
10302 set dummy ld; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 case $aros_kernel_ld in
10309 [\\/]* | ?:[\\/]*)
10310 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10324 done
10325 done
10326 IFS=$as_save_IFS
10329 esac
10331 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10332 if test -n "$aros_kernel_ld"; then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10334 $as_echo "$aros_kernel_ld" >&6; }
10335 else
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10343 else
10344 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10345 set dummy $aros_kernel_ld; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 case $aros_kernel_ld in
10352 [\\/]* | ?:[\\/]*)
10353 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10363 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10367 done
10368 done
10369 IFS=$as_save_IFS
10372 esac
10374 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10375 if test -n "$aros_kernel_ld"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10377 $as_echo "$aros_kernel_ld" >&6; }
10378 else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10386 if test "$aros_kernel_ld" = ""; then
10387 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10390 if test "$aros_kernel_ar" = ""; then
10391 if test "$cross_compiling" = "yes" ; then
10392 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10393 set dummy ${target_tool_prefix}ar; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 case $aros_kernel_ar in
10400 [\\/]* | ?:[\\/]*)
10401 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10411 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10415 done
10416 done
10417 IFS=$as_save_IFS
10420 esac
10422 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10423 if test -n "$aros_kernel_ar"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10425 $as_echo "$aros_kernel_ar" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10432 else
10433 if test "$GCC" = "yes"; then
10434 aros_gcc_ar=`$CC -print-prog-name=ar`
10435 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10436 set dummy `basename $aros_gcc_ar`; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 case $aros_kernel_ar in
10443 [\\/]* | ?:[\\/]*)
10444 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in `dirname $aros_gcc_ar`
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10454 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10458 done
10459 done
10460 IFS=$as_save_IFS
10463 esac
10465 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10466 if test -n "$aros_kernel_ar"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10468 $as_echo "$aros_kernel_ar" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10476 if test "$aros_kernel_ar" = ""; then
10477 # Extract the first word of "ar", so it can be a program name with args.
10478 set dummy ar; ac_word=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 $as_echo_n "checking for $ac_word... " >&6; }
10481 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 case $aros_kernel_ar in
10485 [\\/]* | ?:[\\/]*)
10486 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10496 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10500 done
10501 done
10502 IFS=$as_save_IFS
10505 esac
10507 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10508 if test -n "$aros_kernel_ar"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10510 $as_echo "$aros_kernel_ar" >&6; }
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10519 else
10520 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10521 set dummy $aros_kernel_ar; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 case $aros_kernel_ar in
10528 [\\/]* | ?:[\\/]*)
10529 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10539 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10543 done
10544 done
10545 IFS=$as_save_IFS
10548 esac
10550 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10551 if test -n "$aros_kernel_ar"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10553 $as_echo "$aros_kernel_ar" >&6; }
10554 else
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10562 if test "$aros_kernel_ar" = ""; then
10563 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10566 if test "$aros_kernel_ranlib" = ""; then
10567 if test "$cross_compiling" = "yes" ; then
10568 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10569 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571 $as_echo_n "checking for $ac_word... " >&6; }
10572 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 case $aros_kernel_ranlib in
10576 [\\/]* | ?:[\\/]*)
10577 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10587 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10591 done
10592 done
10593 IFS=$as_save_IFS
10596 esac
10598 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10599 if test -n "$aros_kernel_ranlib"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10601 $as_echo "$aros_kernel_ranlib" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10608 else
10609 if test "$GCC" = "yes"; then
10610 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10611 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10612 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614 $as_echo_n "checking for $ac_word... " >&6; }
10615 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 case $aros_kernel_ranlib in
10619 [\\/]* | ?:[\\/]*)
10620 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in `dirname $aros_gcc_ranlib`
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10630 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10634 done
10635 done
10636 IFS=$as_save_IFS
10639 esac
10641 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10642 if test -n "$aros_kernel_ranlib"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10644 $as_echo "$aros_kernel_ranlib" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10652 if test "$aros_kernel_ranlib" = ""; then
10653 # Extract the first word of "ranlib", so it can be a program name with args.
10654 set dummy ranlib; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 case $aros_kernel_ranlib in
10661 [\\/]* | ?:[\\/]*)
10662 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10672 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 break 2
10676 done
10677 done
10678 IFS=$as_save_IFS
10681 esac
10683 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10684 if test -n "$aros_kernel_ranlib"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10686 $as_echo "$aros_kernel_ranlib" >&6; }
10687 else
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10695 else
10696 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10697 set dummy $aros_kernel_ranlib; ac_word=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 case $aros_kernel_ranlib in
10704 [\\/]* | ?:[\\/]*)
10705 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709 for as_dir in $PATH
10711 IFS=$as_save_IFS
10712 test -z "$as_dir" && as_dir=.
10713 for ac_exec_ext in '' $ac_executable_extensions; do
10714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10715 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10719 done
10720 done
10721 IFS=$as_save_IFS
10724 esac
10726 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10727 if test -n "$aros_kernel_ranlib"; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10729 $as_echo "$aros_kernel_ranlib" >&6; }
10730 else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10738 if test "$aros_kernel_ranlib" = ""; then
10739 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10741 else
10742 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10743 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10744 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10747 crosstools_target=tools-crosstools
10750 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10752 orig_target_cc=$aros_kernel_cc
10753 orig_target_ld=$aros_kernel_ld
10755 if test "$crosstools" != "yes"; then
10756 if test "$aros_target_cc" != ""; then
10757 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10758 set dummy $aros_target_cc; ac_word=$2
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760 $as_echo_n "checking for $ac_word... " >&6; }
10761 if ${ac_cv_path_aros_target_cc+:} false; then :
10762 $as_echo_n "(cached) " >&6
10763 else
10764 case $aros_target_cc in
10765 [\\/]* | ?:[\\/]*)
10766 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770 for as_dir in $PATH
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10776 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10780 done
10781 done
10782 IFS=$as_save_IFS
10785 esac
10787 aros_target_cc=$ac_cv_path_aros_target_cc
10788 if test -n "$aros_target_cc"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10790 $as_echo "$aros_target_cc" >&6; }
10791 else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10797 if test "$aros_target_cc" = ""; then
10798 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10800 orig_target_cc=$aros_target_cc
10802 if test "$aros_target_ld" != ""; then
10803 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10804 set dummy $aros_target_ld; ac_word=$2
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 $as_echo_n "checking for $ac_word... " >&6; }
10807 if ${ac_cv_path_aros_target_ld+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 case $aros_target_ld in
10811 [\\/]* | ?:[\\/]*)
10812 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816 for as_dir in $PATH
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10822 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10826 done
10827 done
10828 IFS=$as_save_IFS
10831 esac
10833 aros_target_ld=$ac_cv_path_aros_target_ld
10834 if test -n "$aros_target_ld"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10836 $as_echo "$aros_target_ld" >&6; }
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10843 if test "$aros_target_ld" = ""; then
10844 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10846 orig_target_ld=$aros_target_ld
10848 else
10849 orig_target_cc=$aros_target_cc
10850 orig_target_ld=$aros_target_ld
10853 # Build crosstools if we have no C++ - temporary thing
10854 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10855 crosstools_cxx_target=tools-crosstools
10858 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10859 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10860 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10861 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10862 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10863 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10864 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10866 # aros_cc_pre is a variable that is added to the front of the compiler name
10867 # in the generated aros-gcc shell script. We need this to enable the cache
10868 # to work across cleaned builds. Also, support DISTCC using the correct
10869 # environment variable.
10872 if test "x${DISTCC}" != "x" ; then
10873 if test "x${CCACHE}" != "x" ; then
10874 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10875 else
10876 aros_cc_pre="${DISTCC} "
10878 else
10879 if test "x${CCACHE}" != "x" ; then
10880 aros_cc_pre="${CCACHE} "
10884 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10886 aros_target_nostdinc_cflags=-nostdinc
10888 aros_target_nostartup_ldflags=-nostartfiles
10890 aros_target_nix_ldflags=-nix
10892 aros_target_detach_ldflags=-detach
10894 aros_target_nostdlib_ldflags=-nostdlib
10897 # Target tools
10898 if test "$crosstools" != "yes"; then
10899 if test "$GCC" = "yes"; then
10900 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10902 else
10903 # We do not know which gcc version we are going to build and what we need to know
10904 # here is different for different versions so this will be set later during the
10905 # build of crosstools.
10906 aros_target_cc_path=@aros_target_cc_path@
10908 aros_target_cc="${prefix}-gcc"
10909 aros_target_as="${prefix}-as"
10910 aros_target_ld="${prefix}-ld"
10911 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10912 aros_target_objcopy=${prefix}-objcopy
10913 aros_target_objdump=${prefix}-objdump
10914 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10915 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10916 aros_target_strip=${prefix}-strip
10917 aros_plain_nm="${prefix}-nm"
10918 aros_plain_ar="${prefix}-ar"
10920 # Find the system include path. We can suggest that an alternative is
10921 # used if we don't get it correct. The default is to use /usr/include.
10922 # Which is set in the aros_target_incl_def variable.
10924 # Check whether --enable-includes was given.
10925 if test "${enable_includes+set}" = set; then :
10926 enableval=$enable_includes; aros_target_incl=$enable_includes
10927 else
10928 aros_target_incl=$aros_target_incl_def
10932 if test "$aros_kernel_includes" = ""; then
10933 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10934 # FIXME: for cross-compiling this should point to another location
10935 aros_kernel_includes="-isystem $aros_target_incl"
10939 if test "$aros_kernel_includes" != "" ; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10941 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10942 if test "$aros_kernel_cc_includes" = "" ; then
10943 # Try to guess where the directory is.
10944 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10945 if test -d $aros_kernel_cc_includes; then
10946 # Check if there is also an include-fixed directory and add it
10947 # to kernel compiler's include path as it may contain some of
10948 # the headers we need.
10949 if test -d "$aros_kernel_cc_includes"-fixed; then
10950 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10952 # Check for specific includes directory. Neede for Ubuntu 11.10
10953 if test -d "/usr/include/i386-linux-gnu"; then
10954 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
10956 else
10957 # The directory doesn't exist, we need to do some more work.
10958 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10960 # These are the headers we're looking for.
10961 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10962 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10963 zutil.h"
10965 if test ! -f $aros_target_incl/stdint.h; then
10966 headers="$headers stdint.h"
10969 dirs=
10970 for h in $headers; do
10971 # Which other headers are needed by each of the above?
10972 deps=$(echo "#include <$h>" | \
10973 $aros_kernel_cc -E -M - 2>/dev/null | \
10974 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10976 # Copy all the needed headers to a directory beneath gendir.
10977 for d in $deps; do
10978 h=$(basename $d)
10979 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10980 sed -n "s,^.*/include\(/.*\),\1,p")
10981 ! test -d $dir && mkdir -p $dir
10982 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10983 done
10984 done
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10988 $as_echo "$aros_kernel_cc_includes" >&6; }
10989 # Adding -nostdinc to kernel includes as they are always used together.
10990 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10993 if test "$crosstools" != "yes"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10995 $as_echo_n "checking for the target compiler's include path... " >&6; }
10996 if test "$aros_target_cc_includes" = "" ; then
10997 #try to guess where the directory is
10998 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10999 if ! test -d $aros_target_cc_includes; then
11000 #the directory doesn't exist, we need to do some more work
11001 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11003 #these are the headers we're looking for
11004 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11005 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11006 zutil.h"
11008 dirs=
11009 for h in $headers; do
11010 #which other headers each of the above headers needs?
11011 deps=$(echo "#include <$h>" | \
11012 $orig_target_cc -E -M - 2>/dev/null | \
11013 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11015 #copy all the needed headers to a directory beneath gendir
11016 for d in $deps; do
11017 h=$(basename $d)
11018 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11019 sed -n "s,^.*/include\(/.*\),\1,p")
11020 ! test -d $dir && mkdir -p $dir
11021 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11022 done
11023 done
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
11027 $as_echo "$aros_target_cc_includes" >&6; }
11028 else
11029 # We do not know which gcc version we are going to build and what we need to know
11030 # here is different for different versions so this will be set later during the
11031 # build of crosstools.
11032 aros_target_cc_includes=@aros_target_cc_includes@
11036 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11037 # On GCC >= 4.0 -iquote should be used
11040 save_cc="$CC"
11041 save_cflags="$CFLAGS"
11042 CFLAGS="-iquote."
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11044 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11045 if test "x-$crosstools" != "x-yes"; then
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11050 main ()
11054 return 0;
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"; then :
11058 has_iquote="yes"
11059 else
11060 has_iquote="no"
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 else
11064 # we do know it is supported for the smallest version of gcc we are going to build
11065 # we assume it's also supported by later versions
11066 has_iquote=yes
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11069 $as_echo "$has_iquote" >&6; }
11070 if test "x-$has_iquote" = "x-yes" ; then
11071 host_cflags_iquote=-iquote
11072 host_cflags_iquote_end=
11073 else
11074 host_cflags_iquote=-I
11075 host_cflags_iquote_end=-I-
11077 kernel_cflags_iquote=$host_cflags_iquote
11078 kernel_cflags_iquote_end=$host_cflags_iquote_end
11079 if test "x-$cross_compiling" = "x-yes"; then
11080 CC="$aros_kernel_cc"
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11082 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11083 if test "x-$crosstools" != "x-yes"; then
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11088 main ()
11092 return 0;
11094 _ACEOF
11095 if ac_fn_c_try_compile "$LINENO"; then :
11096 use_no_stack_protector="yes"
11097 else
11098 use_no_stack_protector="no"
11100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11101 else
11102 # we do know it is supported for the smallest version of gcc we are going to build
11103 # we assume it's also supported by later versions
11104 use_no_stack_protector=yes
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11107 $as_echo "$use_no_stack_protector" >&6; }
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11109 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11110 if test "x-$crosstools" != "x-yes"; then
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11115 main ()
11119 return 0;
11121 _ACEOF
11122 if ac_fn_c_try_compile "$LINENO"; then :
11123 has_iquote="yes"
11124 else
11125 has_iquote="no"
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 else
11129 # we do know it is supported for the smallest version of gcc we are going to build
11130 # we assume it's also supported by later versions
11131 has_iquote=yes
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11134 $as_echo "$has_iquote" >&6; }
11135 if test "x-$has_iquote" = "x-yes" ; then
11136 kernel_cflags_iquote=-iquote
11137 kernel_cflags_iquote_end=
11138 else
11139 kernel_cflags_iquote=-I
11140 kernel_cflags_iquote_end=-I-
11143 aros_cflags_iquote=$kernel_cflags_iquote
11144 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11145 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11146 CC="$orig_target_cc"
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11148 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11149 if test "x-$crosstools" != "x-yes"; then
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11154 main ()
11158 return 0;
11160 _ACEOF
11161 if ac_fn_c_try_compile "$LINENO"; then :
11162 has_iquote="yes"
11163 else
11164 has_iquote="no"
11166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 else
11168 # we do know it is supported for the smallest version of gcc we are going to build
11169 # we assume it's also supported by later versions
11170 has_iquote=yes
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11173 $as_echo "$has_iquote" >&6; }
11174 if test "x-$has_iquote" = "x-yes" ; then
11175 aros_cflags_iquote=-iquote
11176 aros_cflags_iquote_end=
11177 else
11178 aros_cflags_iquote=-I
11179 aros_cflags_iquote_end=-I-
11182 if test "x-$use_no_stack_protector" = "x-yes" ; then
11183 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11187 #-----------------------------------------------------------------------------
11189 # Check if the target compiler supports some options used for delinting:
11190 # -Wunused-but-set-variable
11191 # -Warray-bounds
11192 # -Wenum-compare
11193 # -Wstrict-overflow
11194 # -Wformat-security
11196 if test "x-$crosstools" != "x-yes"; then
11197 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11198 CC="$orig_target_cc"
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11201 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11202 CFLAGS=-Wunused-but-set-variable
11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h. */
11207 main ()
11211 return 0;
11213 _ACEOF
11214 if ac_fn_c_try_compile "$LINENO"; then :
11215 aros_unused_but_set_variable="yes"
11216 else
11217 aros_unused_but_set_variable="no"
11219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11221 $as_echo "$aros_unused_but_set_variable" >&6; }
11222 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11223 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11227 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11228 CFLAGS=-Warray-bounds
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11233 main ()
11237 return 0;
11239 _ACEOF
11240 if ac_fn_c_try_compile "$LINENO"; then :
11241 aros_array_bounds="yes"
11242 else
11243 aros_array_bounds="no"
11245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11247 $as_echo "$aros_array_bounds" >&6; }
11248 if test "x-$aros_array_bounds" = "x-yes" ; then
11249 aros_cflags_array_bounds=-Wno-array-bounds
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11253 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11254 CFLAGS=-Wenum-compare
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11259 main ()
11263 return 0;
11265 _ACEOF
11266 if ac_fn_c_try_compile "$LINENO"; then :
11267 aros_enum_compare="yes"
11268 else
11269 aros_enum_compare="no"
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11273 $as_echo "$aros_enum_compare" >&6; }
11274 if test "x-$aros_enum_compare" = "x-yes" ; then
11275 aros_cflags_enum_compare=-Wno-enum-compare
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11279 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11280 CFLAGS=-Wstrict-overflow
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11285 main ()
11289 return 0;
11291 _ACEOF
11292 if ac_fn_c_try_compile "$LINENO"; then :
11293 aros_strict_overflow="yes"
11294 else
11295 aros_strict_overflow="no"
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11299 $as_echo "$aros_strict_overflow" >&6; }
11300 if test "x-$aros_strict_overflow" = "x-yes" ; then
11301 aros_cflags_strict_overflow=-Wno-strict-overflow
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11305 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11306 CFLAGS=-Wformat-security
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11311 main ()
11315 return 0;
11317 _ACEOF
11318 if ac_fn_c_try_compile "$LINENO"; then :
11319 aros_format_security="yes"
11320 else
11321 aros_format_security="no"
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11325 $as_echo "$aros_format_security" >&6; }
11326 if test "x-$aros_format_security" = "x-yes" ; then
11327 aros_cflags_format_security=-Wno-format-security
11329 else
11330 # We do not know which gcc version we are going to build and what we need to know
11331 # here is different for different versions so this will be set later during the
11332 # build of crosstools.
11333 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
11334 aros_cflags_array_bounds=@aros_cflags_array_bounds@
11335 aros_cflags_enum_compare=@aros_cflags_enum_compare@
11336 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
11337 aros_cflags_format_security=@aros_cflags_format_security@
11340 #-----------------------------------------------------------------------------
11342 # Check if we can explicitly choose older version of symbol hashing
11344 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11345 CC="$aros_kernel_cc"
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11347 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11352 main ()
11356 return 0;
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 use_hash_style="yes"
11361 else
11362 use_hash_style="no"
11364 rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11367 $as_echo "$use_hash_style" >&6; }
11368 if test "x-$use_hash_style" = "x-yes" ; then
11369 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11371 CC="$save_cc"
11372 CFLAGS="$save_cflags"
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11383 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11385 # Check whether --with-resolution was given.
11386 if test "${with_resolution+set}" = set; then :
11387 withval=$with_resolution; resolution=$withval
11388 else
11389 resolution=none
11392 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11393 if test "$resolution" = "yes" ; then
11394 resolution="none"
11396 if test "$resolution" = "no" ; then
11397 resolution="none"
11399 if test "$resolution" != "none" ; then
11400 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11401 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11402 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11405 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11406 aros_cv_default_wbwidth=$aros_default_wbwidth
11407 aros_cv_default_wbheight=$aros_default_wbheight
11408 aros_cv_default_wbdepth=$aros_default_wbdepth
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11411 $as_echo_n "checking if serial debug is enabled... " >&6; }
11413 # Check whether --with-serial-debug was given.
11414 if test "${with_serial_debug+set}" = set; then :
11415 withval=$with_serial_debug; serial_debug=$withval
11416 else
11417 serial_debug=none
11420 if test "$aros_serial_debug" = 0 ; then
11421 serial_debug_forced=""
11422 if test "$serial_debug" = "yes" ; then
11423 serial_debug="1"
11425 if test "$serial_debug" = "no" ; then
11426 serial_debug="none"
11428 else
11429 serial_debug_forced="(forced)"
11430 serial_debug=$aros_serial_debug
11432 if test "$serial_debug" != "none" ; then
11433 aros_serial_debug=$serial_debug
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11435 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11442 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11443 # Check whether --enable-palm_debug_hack was given.
11444 if test "${enable_palm_debug_hack+set}" = set; then :
11445 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11446 else
11447 palm_debug_hack="no"
11450 if test "$palm_debug_hack" = "yes" ; then
11451 aros_palm_debug_hack="1"
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11454 $as_echo "$palm_debug_hack" >&6; }
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11457 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11458 # Check whether --enable-usb30_code was given.
11459 if test "${enable_usb30_code+set}" = set; then :
11460 enableval=$enable_usb30_code; usb30_code="yes"
11461 else
11462 usb30_code="no"
11465 if test "$usb30_code" = "yes" ; then
11466 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11467 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11470 $as_echo "$usb30_code" >&6; }
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11473 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11474 # Check whether --enable-nesting_supervisor was given.
11475 if test "${enable_nesting_supervisor+set}" = set; then :
11476 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11477 else
11478 nesting_supervisor="no"
11481 if test "$nesting_supervisor" = "yes" ; then
11482 aros_nesting_supervisor="1"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11485 $as_echo "$nesting_supervisor" >&6; }
11487 if test "$aros_enable_mmu" = "" ; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11489 $as_echo_n "checking if MMU support is enabled... " >&6; }
11490 # Check whether --enable-mmu was given.
11491 if test "${enable_mmu+set}" = set; then :
11492 enableval=$enable_mmu; aros_enable_mmu=$enableval
11493 else
11494 aros_enable_mmu="yes"
11497 if test "$aros_enable_mmu" = "" ; then
11498 aros_enable_mmu="yes"
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11501 $as_echo "$aros_enable_mmu" >&6; }
11503 if test "$aros_enable_mmu" = "no" ; then
11504 aros_enable_mmu="0"
11505 else
11506 aros_enable_mmu="1"
11510 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11512 if test "x-$need_dlopen" != "x-no" ; then
11513 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11514 if test "x$ac_cv_func_dlopen" = xyes; then :
11515 have_dl="yes"
11516 else
11517 have_dl="no"
11520 if test "x-$have_dl" = "x-no" ; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11522 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11523 if ${ac_cv_lib_dl_dlopen+:} false; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 ac_check_lib_save_LIBS=$LIBS
11527 LIBS="-ldl $LIBS"
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11531 /* Override any GCC internal prototype to avoid an error.
11532 Use char because int might match the return type of a GCC
11533 builtin and then its argument prototype would still apply. */
11534 #ifdef __cplusplus
11535 extern "C"
11536 #endif
11537 char dlopen ();
11539 main ()
11541 return dlopen ();
11543 return 0;
11545 _ACEOF
11546 if ac_fn_c_try_link "$LINENO"; then :
11547 ac_cv_lib_dl_dlopen=yes
11548 else
11549 ac_cv_lib_dl_dlopen=no
11551 rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553 LIBS=$ac_check_lib_save_LIBS
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11556 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11557 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11558 have_dl="yes"
11559 aros_host_ldflags="$aros_host_ldflags -ldl"
11560 else
11561 have_dl="no"
11565 if test "x-$have_dl" = "x-no" ; then
11566 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11571 # Check whether --enable-x11_hidd was given.
11572 if test "${enable_x11_hidd+set}" = set; then :
11573 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11574 else
11575 x11_hidd="$need_x11"
11578 case "x-$x11_hidd" in
11579 x-yes|x-no|x-auto) ;;
11580 *) x11_hidd="$need_x11" ;;
11581 esac
11583 ENABLE_X11=0
11585 if test "x-$x11_hidd" != "x-no" ; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11588 $as_echo_n "checking for X... " >&6; }
11591 # Check whether --with-x was given.
11592 if test "${with_x+set}" = set; then :
11593 withval=$with_x;
11596 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11597 if test "x$with_x" = xno; then
11598 # The user explicitly disabled X.
11599 have_x=disabled
11600 else
11601 case $x_includes,$x_libraries in #(
11602 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11603 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 # One or both of the vars are not set, and there is no cached value.
11607 ac_x_includes=no ac_x_libraries=no
11608 rm -f -r conftest.dir
11609 if mkdir conftest.dir; then
11610 cd conftest.dir
11611 cat >Imakefile <<'_ACEOF'
11612 incroot:
11613 @echo incroot='${INCROOT}'
11614 usrlibdir:
11615 @echo usrlibdir='${USRLIBDIR}'
11616 libdir:
11617 @echo libdir='${LIBDIR}'
11618 _ACEOF
11619 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11620 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11621 for ac_var in incroot usrlibdir libdir; do
11622 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11623 done
11624 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11625 for ac_extension in a so sl dylib la dll; do
11626 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11627 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11628 ac_im_usrlibdir=$ac_im_libdir; break
11630 done
11631 # Screen out bogus values from the imake configuration. They are
11632 # bogus both because they are the default anyway, and because
11633 # using them would break gcc on systems where it needs fixed includes.
11634 case $ac_im_incroot in
11635 /usr/include) ac_x_includes= ;;
11636 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11637 esac
11638 case $ac_im_usrlibdir in
11639 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11640 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11641 esac
11643 cd ..
11644 rm -f -r conftest.dir
11647 # Standard set of common directories for X headers.
11648 # Check X11 before X11Rn because it is often a symlink to the current release.
11649 ac_x_header_dirs='
11650 /usr/X11/include
11651 /usr/X11R7/include
11652 /usr/X11R6/include
11653 /usr/X11R5/include
11654 /usr/X11R4/include
11656 /usr/include/X11
11657 /usr/include/X11R7
11658 /usr/include/X11R6
11659 /usr/include/X11R5
11660 /usr/include/X11R4
11662 /usr/local/X11/include
11663 /usr/local/X11R7/include
11664 /usr/local/X11R6/include
11665 /usr/local/X11R5/include
11666 /usr/local/X11R4/include
11668 /usr/local/include/X11
11669 /usr/local/include/X11R7
11670 /usr/local/include/X11R6
11671 /usr/local/include/X11R5
11672 /usr/local/include/X11R4
11674 /usr/X386/include
11675 /usr/x386/include
11676 /usr/XFree86/include/X11
11678 /usr/include
11679 /usr/local/include
11680 /usr/unsupported/include
11681 /usr/athena/include
11682 /usr/local/x11r5/include
11683 /usr/lpp/Xamples/include
11685 /usr/openwin/include
11686 /usr/openwin/share/include'
11688 if test "$ac_x_includes" = no; then
11689 # Guess where to find include files, by looking for Xlib.h.
11690 # First, try using that file with no special directory specified.
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11693 #include <X11/Xlib.h>
11694 _ACEOF
11695 if ac_fn_c_try_cpp "$LINENO"; then :
11696 # We can compile using X headers with no special include directory.
11697 ac_x_includes=
11698 else
11699 for ac_dir in $ac_x_header_dirs; do
11700 if test -r "$ac_dir/X11/Xlib.h"; then
11701 ac_x_includes=$ac_dir
11702 break
11704 done
11706 rm -f conftest.err conftest.i conftest.$ac_ext
11707 fi # $ac_x_includes = no
11709 if test "$ac_x_libraries" = no; then
11710 # Check for the libraries.
11711 # See if we find them without any special options.
11712 # Don't add to $LIBS permanently.
11713 ac_save_LIBS=$LIBS
11714 LIBS="-lX11 $LIBS"
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11717 #include <X11/Xlib.h>
11719 main ()
11721 XrmInitialize ()
11723 return 0;
11725 _ACEOF
11726 if ac_fn_c_try_link "$LINENO"; then :
11727 LIBS=$ac_save_LIBS
11728 # We can link X programs with no special library path.
11729 ac_x_libraries=
11730 else
11731 LIBS=$ac_save_LIBS
11732 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11734 # Don't even attempt the hair of trying to link an X program!
11735 for ac_extension in a so sl dylib la dll; do
11736 if test -r "$ac_dir/libX11.$ac_extension"; then
11737 ac_x_libraries=$ac_dir
11738 break 2
11740 done
11741 done
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11745 fi # $ac_x_libraries = no
11747 case $ac_x_includes,$ac_x_libraries in #(
11748 no,* | *,no | *\'*)
11749 # Didn't find X, or a directory has "'" in its name.
11750 ac_cv_have_x="have_x=no";; #(
11752 # Record where we found X for the cache.
11753 ac_cv_have_x="have_x=yes\
11754 ac_x_includes='$ac_x_includes'\
11755 ac_x_libraries='$ac_x_libraries'"
11756 esac
11758 ;; #(
11759 *) have_x=yes;;
11760 esac
11761 eval "$ac_cv_have_x"
11762 fi # $with_x != no
11764 if test "$have_x" != yes; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11766 $as_echo "$have_x" >&6; }
11767 no_x=yes
11768 else
11769 # If each of the values was on the command line, it overrides each guess.
11770 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11771 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11772 # Update the cache value to reflect the command line values.
11773 ac_cv_have_x="have_x=yes\
11774 ac_x_includes='$x_includes'\
11775 ac_x_libraries='$x_libraries'"
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11777 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11781 x_cflags=
11782 for path in $x_libraries
11784 x_cflags="$x_cflags -L$path"
11785 done
11787 for path in $x_includes
11789 x_cflags="$x_cflags -I$path"
11790 done
11792 if test "x-$no_x" = "x-yes" ; then
11794 if test "x-$x11_hidd" != "x-auto" ; then
11795 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11798 else
11799 x11_hidd_target=kernel-x11gfx-kobj
11800 ENABLE_X11=1
11802 # Check whether --enable-x11_shm was given.
11803 if test "${enable_x11_shm+set}" = set; then :
11804 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11805 else
11806 x11_hidd_shm="auto"
11809 case "x-$x11_hidd_shm" in
11810 x-yes|x-no|x-auto) ;;
11811 *) x11_hidd_shm="auto" ;;
11812 esac
11814 have_xshm=no
11816 if test "x-$x11_hidd_shm" != "x-no" ; then
11818 for ac_header in sys/ipc.h
11819 do :
11820 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11821 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11822 cat >>confdefs.h <<_ACEOF
11823 #define HAVE_SYS_IPC_H 1
11824 _ACEOF
11828 done
11830 for ac_header in sys/shm.h
11831 do :
11832 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11833 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11834 cat >>confdefs.h <<_ACEOF
11835 #define HAVE_SYS_SHM_H 1
11836 _ACEOF
11840 done
11843 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11845 save_cflags="$CFLAGS"
11846 CFLAGS="$CFLAGS $x_cflags"
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11848 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11849 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 ac_check_lib_save_LIBS=$LIBS
11853 LIBS="-lXext $LIBS"
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char XShmQueryExtension ();
11865 main ()
11867 return XShmQueryExtension ();
11869 return 0;
11871 _ACEOF
11872 if ac_fn_c_try_link "$LINENO"; then :
11873 ac_cv_lib_Xext_XShmQueryExtension=yes
11874 else
11875 ac_cv_lib_Xext_XShmQueryExtension=no
11877 rm -f core conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_lib_save_LIBS
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11882 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11883 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11884 have_xshm=yes
11887 CFLAGS="$save_cflags"
11891 if test "x-$have_xshm" = "x-yes" ; then
11892 DO_XSHM_SUPPORT="1"
11893 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11894 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11895 else
11896 DO_XSHM_SUPPORT="0"
11900 # Check whether --enable-x11_vidmode was given.
11901 if test "${enable_x11_vidmode+set}" = set; then :
11902 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11903 else
11904 x11_hidd_vidmode="auto"
11907 case "x-$x11_hidd_vidmode" in
11908 x-yes|x-no|x-auto) ;;
11909 *) x11_hidd_vidmode="auto" ;;
11910 esac
11912 have_vidmode=no
11914 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11916 save_cflags="$CFLAGS"
11917 CFLAGS="$CFLAGS $x_cflags"
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11919 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11920 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 ac_check_lib_save_LIBS=$LIBS
11924 LIBS="-lXxf86vm $LIBS"
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11928 /* Override any GCC internal prototype to avoid an error.
11929 Use char because int might match the return type of a GCC
11930 builtin and then its argument prototype would still apply. */
11931 #ifdef __cplusplus
11932 extern "C"
11933 #endif
11934 char XF86VidModeQueryExtension ();
11936 main ()
11938 return XF86VidModeQueryExtension ();
11940 return 0;
11942 _ACEOF
11943 if ac_fn_c_try_link "$LINENO"; then :
11944 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11945 else
11946 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11948 rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11953 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11954 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11955 have_vidmode=yes
11958 CFLAGS="$save_cflags"
11961 if test "x-$have_vidmode" = "x-yes" ; then
11962 DO_VIDMODE_SUPPORT="1"
11963 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11964 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11965 else
11966 DO_VIDMODE_SUPPORT="0"
11970 aros_host_x11_includes=$x_includes
11971 aros_host_x11_libdirs=$x_libraries
11975 # Check whether --enable-sdl_hidd was given.
11976 if test "${enable_sdl_hidd+set}" = set; then :
11977 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11978 else
11979 sdl_hidd="auto"
11982 case "x-$sdl_hidd" in
11983 x-yes|x-no|x-auto) ;;
11984 *) sdl_hidd="auto" ;;
11985 esac
11987 if test "x-$sdl_hidd" != "x-no" ; then
11990 # Check whether --with-sdl-prefix was given.
11991 if test "${with_sdl_prefix+set}" = set; then :
11992 withval=$with_sdl_prefix; sdl_prefix="$withval"
11993 else
11994 sdl_prefix=""
11998 # Check whether --with-sdl-exec-prefix was given.
11999 if test "${with_sdl_exec_prefix+set}" = set; then :
12000 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12001 else
12002 sdl_exec_prefix=""
12005 # Check whether --enable-sdltest was given.
12006 if test "${enable_sdltest+set}" = set; then :
12007 enableval=$enable_sdltest;
12008 else
12009 enable_sdltest=yes
12013 if test x$sdl_exec_prefix != x ; then
12014 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12015 if test x${SDL_CONFIG+set} != xset ; then
12016 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12019 if test x$sdl_prefix != x ; then
12020 sdl_args="$sdl_args --prefix=$sdl_prefix"
12021 if test x${SDL_CONFIG+set} != xset ; then
12022 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12026 if test "x$prefix" != xNONE; then
12027 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12029 # Extract the first word of "sdl-config", so it can be a program name with args.
12030 set dummy sdl-config; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if ${ac_cv_path_SDL_CONFIG+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 case $SDL_CONFIG in
12037 [\\/]* | ?:[\\/]*)
12038 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12052 done
12053 done
12054 IFS=$as_save_IFS
12056 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12058 esac
12060 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12061 if test -n "$SDL_CONFIG"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12063 $as_echo "$SDL_CONFIG" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12070 min_sdl_version=1.2.10
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12072 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12073 no_sdl=""
12074 if test "$SDL_CONFIG" = "no" ; then
12075 no_sdl=yes
12076 else
12077 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12078 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12080 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12081 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12082 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12083 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12084 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12085 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12086 if test "x$enable_sdltest" = "xyes" ; then
12087 ac_save_CFLAGS="$CFLAGS"
12088 ac_save_CXXFLAGS="$CXXFLAGS"
12089 ac_save_LIBS="$LIBS"
12090 CFLAGS="$CFLAGS $SDL_CFLAGS"
12091 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12092 LIBS="$LIBS $SDL_LIBS"
12093 rm -f conf.sdltest
12094 if test "$cross_compiling" = yes; then :
12095 echo $ac_n "cross compiling; assumed OK... $ac_c"
12096 else
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12100 #include <stdio.h>
12101 #include <stdlib.h>
12102 #include <string.h>
12103 #include "SDL.h"
12105 char*
12106 my_strdup (char *str)
12108 char *new_str;
12110 if (str)
12112 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12113 strcpy (new_str, str);
12115 else
12116 new_str = NULL;
12118 return new_str;
12121 int main (int argc, char *argv[])
12123 int major, minor, micro;
12124 char *tmp_version;
12126 /* This hangs on some systems (?)
12127 system ("touch conf.sdltest");
12129 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12131 /* HP/UX 9 (%@#!) writes to sscanf strings */
12132 tmp_version = my_strdup("$min_sdl_version");
12133 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12134 printf("%s, bad version string\n", "$min_sdl_version");
12135 exit(1);
12138 if (($sdl_major_version > major) ||
12139 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12140 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12142 return 0;
12144 else
12146 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12147 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12148 printf("*** best to upgrade to the required version.\n");
12149 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12150 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12151 printf("*** config.cache before re-running configure\n");
12152 return 1;
12157 _ACEOF
12158 if ac_fn_c_try_run "$LINENO"; then :
12160 else
12161 no_sdl=yes
12163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12164 conftest.$ac_objext conftest.beam conftest.$ac_ext
12167 CFLAGS="$ac_save_CFLAGS"
12168 CXXFLAGS="$ac_save_CXXFLAGS"
12169 LIBS="$ac_save_LIBS"
12172 if test "x$no_sdl" = x ; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12174 $as_echo "yes" >&6; }
12175 have_sdl="yes"
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12179 if test "$SDL_CONFIG" = "no" ; then
12180 echo "*** The sdl-config script installed by SDL could not be found"
12181 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12182 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12183 echo "*** full path to sdl-config."
12184 else
12185 if test -f conf.sdltest ; then
12187 else
12188 echo "*** Could not run SDL test program, checking why..."
12189 CFLAGS="$CFLAGS $SDL_CFLAGS"
12190 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12191 LIBS="$LIBS $SDL_LIBS"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12195 #include <stdio.h>
12196 #include "SDL.h"
12198 int main(int argc, char *argv[])
12199 { return 0; }
12200 #undef main
12201 #define main K_and_R_C_main
12204 main ()
12206 return 0;
12208 return 0;
12210 _ACEOF
12211 if ac_fn_c_try_link "$LINENO"; then :
12212 echo "*** The test program compiled, but did not run. This usually means"
12213 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12214 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12215 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12216 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12217 echo "*** is required on your system"
12218 echo "***"
12219 echo "*** If you have an old version installed, it is best to remove it, although"
12220 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12221 else
12222 echo "*** The test program failed to compile or link. See the file config.log for the"
12223 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12224 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12225 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 CFLAGS="$ac_save_CFLAGS"
12230 CXXFLAGS="$ac_save_CXXFLAGS"
12231 LIBS="$ac_save_LIBS"
12234 SDL_CFLAGS=""
12235 SDL_LIBS=""
12236 have_sdl="no"
12240 rm -f conf.sdltest
12243 if test "x-$have_sdl" != "x-yes" ; then
12245 if test "x-$sdl_hidd" != "x-auto" ; then
12246 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12249 else
12250 sdl_hidd_target=kernel-hidd-sdl
12251 aros_host_sdl_cflags=SDL_CFLAGS
12252 aros_host_sdl_libs=SDL_LIBS
12256 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12257 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12262 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12263 oss_library_target=workbench-libs-oss-unix
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12269 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12270 # Check whether --enable-dbus was given.
12271 if test "${enable_dbus+set}" = set; then :
12272 enableval=$enable_dbus; dbus="yes"
12273 else
12274 dbus="no"
12277 if test "$dbus" = "yes" ; then
12278 ENABLE_DBUS=1
12279 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12280 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12281 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12282 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12283 else
12284 ENABLE_DBUS=0
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12287 $as_echo "$dbus" >&6; }
12289 if test "$use_kernel_cc_wrapper" = "yes" ; then
12290 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12294 # Generic
12305 # Compatability with other Amiga-like operation systems
12308 # Host related
12333 # Target Related
12391 # Delinting target compiler flags
12398 # Graphics Related
12415 # Native version related
12418 # Palm native version related
12421 # USB3.0 code
12424 # Unix/Hosted version related
12427 # MMU related
12430 # Apple iOS related
12435 # Android related
12439 # DBUS related
12446 #X11 related
12449 # Debug related
12455 # Collect-aros stuff: "-ius" to ignore undefined symbols
12458 # C compiler related
12461 case "$aros_flavour" in
12462 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12463 aros_flavour="emulation" ;;
12464 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12465 aros_flavour="emulation" ;;
12466 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12467 aros_flavour="standalone";;
12468 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12469 aros_flavour="standalone";;
12470 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12471 aros_flavour="native" ;;
12472 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12473 aros_flavour="native" ;;
12474 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12475 aros_flavour="linklib" ;;
12476 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12477 aros_flavour="palmnative" ;;
12478 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12479 aros_flavour="mac68knative" ;;
12480 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12481 aros_flavour="ppcnative" ;;
12482 esac
12484 if test ! -d ${aros_inc_dir} ; then
12485 ${MKDIR} ${aros_inc_dir}
12487 if test ! -d ${aros_geninc_dir} ; then
12488 ${MKDIR} ${aros_geninc_dir}
12490 if test ! -d ${aros_hostcfg_dir} ; then
12491 ${MKDIR} ${aros_hostcfg_dir}
12493 if test ! -d ${aros_targetcfg_dir} ; then
12494 ${MKDIR} ${aros_targetcfg_dir}
12496 if test ! -d ${aros_tools_dir} ; then
12497 ${MKDIR} ${aros_tools_dir}
12499 if test ! -d ${aros_scripts_dir} ; then
12500 ${MKDIR} ${aros_scripts_dir}
12503 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12506 ac_config_commands="$ac_config_commands compiler_executable"
12508 ac_config_commands="$ac_config_commands genmf_executable"
12511 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
12514 cat >confcache <<\_ACEOF
12515 # This file is a shell script that caches the results of configure
12516 # tests run on this system so they can be shared between configure
12517 # scripts and configure runs, see configure's option --config-cache.
12518 # It is not useful on other systems. If it contains results you don't
12519 # want to keep, you may remove or edit it.
12521 # config.status only pays attention to the cache file if you give it
12522 # the --recheck option to rerun configure.
12524 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12525 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12526 # following values.
12528 _ACEOF
12530 # The following way of writing the cache mishandles newlines in values,
12531 # but we know of no workaround that is simple, portable, and efficient.
12532 # So, we kill variables containing newlines.
12533 # Ultrix sh set writes to stderr and can't be redirected directly,
12534 # and sets the high bit in the cache file unless we assign to the vars.
12536 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12537 eval ac_val=\$$ac_var
12538 case $ac_val in #(
12539 *${as_nl}*)
12540 case $ac_var in #(
12541 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12542 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12543 esac
12544 case $ac_var in #(
12545 _ | IFS | as_nl) ;; #(
12546 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12547 *) { eval $ac_var=; unset $ac_var;} ;;
12548 esac ;;
12549 esac
12550 done
12552 (set) 2>&1 |
12553 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12554 *${as_nl}ac_space=\ *)
12555 # `set' does not quote correctly, so add quotes: double-quote
12556 # substitution turns \\\\ into \\, and sed turns \\ into \.
12557 sed -n \
12558 "s/'/'\\\\''/g;
12559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12560 ;; #(
12562 # `set' quotes correctly as required by POSIX, so do not add quotes.
12563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12565 esac |
12566 sort
12568 sed '
12569 /^ac_cv_env_/b end
12570 t clear
12571 :clear
12572 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12573 t end
12574 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12575 :end' >>confcache
12576 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12577 if test -w "$cache_file"; then
12578 if test "x$cache_file" != "x/dev/null"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12580 $as_echo "$as_me: updating cache $cache_file" >&6;}
12581 if test ! -f "$cache_file" || test -h "$cache_file"; then
12582 cat confcache >"$cache_file"
12583 else
12584 case $cache_file in #(
12585 */* | ?:*)
12586 mv -f confcache "$cache_file"$$ &&
12587 mv -f "$cache_file"$$ "$cache_file" ;; #(
12589 mv -f confcache "$cache_file" ;;
12590 esac
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12595 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12598 rm -f confcache
12600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12601 # Let make expand exec_prefix.
12602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12604 DEFS=-DHAVE_CONFIG_H
12606 ac_libobjs=
12607 ac_ltlibobjs=
12609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12610 # 1. Remove the extension, and $U if already installed.
12611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12614 # will be set to the directory where LIBOBJS objects are built.
12615 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12616 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12617 done
12618 LIBOBJS=$ac_libobjs
12620 LTLIBOBJS=$ac_ltlibobjs
12624 : "${CONFIG_STATUS=./config.status}"
12625 ac_write_fail=0
12626 ac_clean_files_save=$ac_clean_files
12627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12630 as_write_fail=0
12631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12632 #! $SHELL
12633 # Generated by $as_me.
12634 # Run this file to recreate the current configuration.
12635 # Compiler output produced by configure, useful for debugging
12636 # configure, is in config.log if it exists.
12638 debug=false
12639 ac_cs_recheck=false
12640 ac_cs_silent=false
12642 SHELL=\${CONFIG_SHELL-$SHELL}
12643 export SHELL
12644 _ASEOF
12645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12646 ## -------------------- ##
12647 ## M4sh Initialization. ##
12648 ## -------------------- ##
12650 # Be more Bourne compatible
12651 DUALCASE=1; export DUALCASE # for MKS sh
12652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12653 emulate sh
12654 NULLCMD=:
12655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12656 # is contrary to our usage. Disable this feature.
12657 alias -g '${1+"$@"}'='"$@"'
12658 setopt NO_GLOB_SUBST
12659 else
12660 case `(set -o) 2>/dev/null` in #(
12661 *posix*) :
12662 set -o posix ;; #(
12663 *) :
12665 esac
12669 as_nl='
12671 export as_nl
12672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12673 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12676 # Prefer a ksh shell builtin over an external printf program on Solaris,
12677 # but without wasting forks for bash or zsh.
12678 if test -z "$BASH_VERSION$ZSH_VERSION" \
12679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12680 as_echo='print -r --'
12681 as_echo_n='print -rn --'
12682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12683 as_echo='printf %s\n'
12684 as_echo_n='printf %s'
12685 else
12686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12688 as_echo_n='/usr/ucb/echo -n'
12689 else
12690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12691 as_echo_n_body='eval
12692 arg=$1;
12693 case $arg in #(
12694 *"$as_nl"*)
12695 expr "X$arg" : "X\\(.*\\)$as_nl";
12696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12697 esac;
12698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12700 export as_echo_n_body
12701 as_echo_n='sh -c $as_echo_n_body as_echo'
12703 export as_echo_body
12704 as_echo='sh -c $as_echo_body as_echo'
12707 # The user is always right.
12708 if test "${PATH_SEPARATOR+set}" != set; then
12709 PATH_SEPARATOR=:
12710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12712 PATH_SEPARATOR=';'
12717 # IFS
12718 # We need space, tab and new line, in precisely that order. Quoting is
12719 # there to prevent editors from complaining about space-tab.
12720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12721 # splitting by setting IFS to empty value.)
12722 IFS=" "" $as_nl"
12724 # Find who we are. Look in the path if we contain no directory separator.
12725 as_myself=
12726 case $0 in #((
12727 *[\\/]* ) as_myself=$0 ;;
12728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
12733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12734 done
12735 IFS=$as_save_IFS
12738 esac
12739 # We did not find ourselves, most probably we were run as `sh COMMAND'
12740 # in which case we are not to be found in the path.
12741 if test "x$as_myself" = x; then
12742 as_myself=$0
12744 if test ! -f "$as_myself"; then
12745 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12746 exit 1
12749 # Unset variables that we do not need and which cause bugs (e.g. in
12750 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12751 # suppresses any "Segmentation fault" message there. '((' could
12752 # trigger a bug in pdksh 5.2.14.
12753 for as_var in BASH_ENV ENV MAIL MAILPATH
12754 do eval test x\${$as_var+set} = xset \
12755 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12756 done
12757 PS1='$ '
12758 PS2='> '
12759 PS4='+ '
12761 # NLS nuisances.
12762 LC_ALL=C
12763 export LC_ALL
12764 LANGUAGE=C
12765 export LANGUAGE
12767 # CDPATH.
12768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12771 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12772 # ----------------------------------------
12773 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12774 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12775 # script with STATUS, using 1 if that was 0.
12776 as_fn_error ()
12778 as_status=$1; test $as_status -eq 0 && as_status=1
12779 if test "$4"; then
12780 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12781 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12783 $as_echo "$as_me: error: $2" >&2
12784 as_fn_exit $as_status
12785 } # as_fn_error
12788 # as_fn_set_status STATUS
12789 # -----------------------
12790 # Set $? to STATUS, without forking.
12791 as_fn_set_status ()
12793 return $1
12794 } # as_fn_set_status
12796 # as_fn_exit STATUS
12797 # -----------------
12798 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12799 as_fn_exit ()
12801 set +e
12802 as_fn_set_status $1
12803 exit $1
12804 } # as_fn_exit
12806 # as_fn_unset VAR
12807 # ---------------
12808 # Portably unset VAR.
12809 as_fn_unset ()
12811 { eval $1=; unset $1;}
12813 as_unset=as_fn_unset
12814 # as_fn_append VAR VALUE
12815 # ----------------------
12816 # Append the text in VALUE to the end of the definition contained in VAR. Take
12817 # advantage of any shell optimizations that allow amortized linear growth over
12818 # repeated appends, instead of the typical quadratic growth present in naive
12819 # implementations.
12820 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12821 eval 'as_fn_append ()
12823 eval $1+=\$2
12825 else
12826 as_fn_append ()
12828 eval $1=\$$1\$2
12830 fi # as_fn_append
12832 # as_fn_arith ARG...
12833 # ------------------
12834 # Perform arithmetic evaluation on the ARGs, and store the result in the
12835 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12836 # must be portable across $(()) and expr.
12837 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12838 eval 'as_fn_arith ()
12840 as_val=$(( $* ))
12842 else
12843 as_fn_arith ()
12845 as_val=`expr "$@" || test $? -eq 1`
12847 fi # as_fn_arith
12850 if expr a : '\(a\)' >/dev/null 2>&1 &&
12851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12852 as_expr=expr
12853 else
12854 as_expr=false
12857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12858 as_basename=basename
12859 else
12860 as_basename=false
12863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12864 as_dirname=dirname
12865 else
12866 as_dirname=false
12869 as_me=`$as_basename -- "$0" ||
12870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12871 X"$0" : 'X\(//\)$' \| \
12872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12873 $as_echo X/"$0" |
12874 sed '/^.*\/\([^/][^/]*\)\/*$/{
12875 s//\1/
12878 /^X\/\(\/\/\)$/{
12879 s//\1/
12882 /^X\/\(\/\).*/{
12883 s//\1/
12886 s/.*/./; q'`
12888 # Avoid depending upon Character Ranges.
12889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12892 as_cr_digits='0123456789'
12893 as_cr_alnum=$as_cr_Letters$as_cr_digits
12895 ECHO_C= ECHO_N= ECHO_T=
12896 case `echo -n x` in #(((((
12897 -n*)
12898 case `echo 'xy\c'` in
12899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12900 xy) ECHO_C='\c';;
12901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12902 ECHO_T=' ';;
12903 esac;;
12905 ECHO_N='-n';;
12906 esac
12908 rm -f conf$$ conf$$.exe conf$$.file
12909 if test -d conf$$.dir; then
12910 rm -f conf$$.dir/conf$$.file
12911 else
12912 rm -f conf$$.dir
12913 mkdir conf$$.dir 2>/dev/null
12915 if (echo >conf$$.file) 2>/dev/null; then
12916 if ln -s conf$$.file conf$$ 2>/dev/null; then
12917 as_ln_s='ln -s'
12918 # ... but there are two gotchas:
12919 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12920 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12921 # In both cases, we have to default to `cp -p'.
12922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12923 as_ln_s='cp -p'
12924 elif ln conf$$.file conf$$ 2>/dev/null; then
12925 as_ln_s=ln
12926 else
12927 as_ln_s='cp -p'
12929 else
12930 as_ln_s='cp -p'
12932 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12933 rmdir conf$$.dir 2>/dev/null
12936 # as_fn_mkdir_p
12937 # -------------
12938 # Create "$as_dir" as a directory, including parents if necessary.
12939 as_fn_mkdir_p ()
12942 case $as_dir in #(
12943 -*) as_dir=./$as_dir;;
12944 esac
12945 test -d "$as_dir" || eval $as_mkdir_p || {
12946 as_dirs=
12947 while :; do
12948 case $as_dir in #(
12949 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12950 *) as_qdir=$as_dir;;
12951 esac
12952 as_dirs="'$as_qdir' $as_dirs"
12953 as_dir=`$as_dirname -- "$as_dir" ||
12954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12955 X"$as_dir" : 'X\(//\)[^/]' \| \
12956 X"$as_dir" : 'X\(//\)$' \| \
12957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12958 $as_echo X"$as_dir" |
12959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12960 s//\1/
12963 /^X\(\/\/\)[^/].*/{
12964 s//\1/
12967 /^X\(\/\/\)$/{
12968 s//\1/
12971 /^X\(\/\).*/{
12972 s//\1/
12975 s/.*/./; q'`
12976 test -d "$as_dir" && break
12977 done
12978 test -z "$as_dirs" || eval "mkdir $as_dirs"
12979 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12982 } # as_fn_mkdir_p
12983 if mkdir -p . 2>/dev/null; then
12984 as_mkdir_p='mkdir -p "$as_dir"'
12985 else
12986 test -d ./-p && rmdir ./-p
12987 as_mkdir_p=false
12990 if test -x / >/dev/null 2>&1; then
12991 as_test_x='test -x'
12992 else
12993 if ls -dL / >/dev/null 2>&1; then
12994 as_ls_L_option=L
12995 else
12996 as_ls_L_option=
12998 as_test_x='
12999 eval sh -c '\''
13000 if test -d "$1"; then
13001 test -d "$1/.";
13002 else
13003 case $1 in #(
13004 -*)set "./$1";;
13005 esac;
13006 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13007 ???[sx]*):;;*)false;;esac;fi
13008 '\'' sh
13011 as_executable_p=$as_test_x
13013 # Sed expression to map a string onto a valid CPP name.
13014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13016 # Sed expression to map a string onto a valid variable name.
13017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13020 exec 6>&1
13021 ## ----------------------------------- ##
13022 ## Main body of $CONFIG_STATUS script. ##
13023 ## ----------------------------------- ##
13024 _ASEOF
13025 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13028 # Save the log message, to keep $0 and so on meaningful, and to
13029 # report actual input values of CONFIG_FILES etc. instead of their
13030 # values after options handling.
13031 ac_log="
13032 This file was extended by $as_me, which was
13033 generated by GNU Autoconf 2.68. Invocation command line was
13035 CONFIG_FILES = $CONFIG_FILES
13036 CONFIG_HEADERS = $CONFIG_HEADERS
13037 CONFIG_LINKS = $CONFIG_LINKS
13038 CONFIG_COMMANDS = $CONFIG_COMMANDS
13039 $ $0 $@
13041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13044 _ACEOF
13046 case $ac_config_files in *"
13047 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13048 esac
13050 case $ac_config_headers in *"
13051 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13052 esac
13055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13056 # Files that config.status was made for.
13057 config_files="$ac_config_files"
13058 config_headers="$ac_config_headers"
13059 config_commands="$ac_config_commands"
13061 _ACEOF
13063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13064 ac_cs_usage="\
13065 \`$as_me' instantiates files and other configuration actions
13066 from templates according to the current configuration. Unless the files
13067 and actions are specified as TAGs, all are instantiated by default.
13069 Usage: $0 [OPTION]... [TAG]...
13071 -h, --help print this help, then exit
13072 -V, --version print version number and configuration settings, then exit
13073 --config print configuration, then exit
13074 -q, --quiet, --silent
13075 do not print progress messages
13076 -d, --debug don't remove temporary files
13077 --recheck update $as_me by reconfiguring in the same conditions
13078 --file=FILE[:TEMPLATE]
13079 instantiate the configuration file FILE
13080 --header=FILE[:TEMPLATE]
13081 instantiate the configuration header FILE
13083 Configuration files:
13084 $config_files
13086 Configuration headers:
13087 $config_headers
13089 Configuration commands:
13090 $config_commands
13092 Report bugs to the package provider."
13094 _ACEOF
13095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13096 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13097 ac_cs_version="\\
13098 config.status
13099 configured by $0, generated by GNU Autoconf 2.68,
13100 with options \\"\$ac_cs_config\\"
13102 Copyright (C) 2010 Free Software Foundation, Inc.
13103 This config.status script is free software; the Free Software Foundation
13104 gives unlimited permission to copy, distribute and modify it."
13106 ac_pwd='$ac_pwd'
13107 srcdir='$srcdir'
13108 test -n "\$AWK" || AWK=awk
13109 _ACEOF
13111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13112 # The default lists apply if the user does not specify any file.
13113 ac_need_defaults=:
13114 while test $# != 0
13116 case $1 in
13117 --*=?*)
13118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13119 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13120 ac_shift=:
13122 --*=)
13123 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13124 ac_optarg=
13125 ac_shift=:
13128 ac_option=$1
13129 ac_optarg=$2
13130 ac_shift=shift
13132 esac
13134 case $ac_option in
13135 # Handling of the options.
13136 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13137 ac_cs_recheck=: ;;
13138 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13139 $as_echo "$ac_cs_version"; exit ;;
13140 --config | --confi | --conf | --con | --co | --c )
13141 $as_echo "$ac_cs_config"; exit ;;
13142 --debug | --debu | --deb | --de | --d | -d )
13143 debug=: ;;
13144 --file | --fil | --fi | --f )
13145 $ac_shift
13146 case $ac_optarg in
13147 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13148 '') as_fn_error $? "missing file argument" ;;
13149 esac
13150 as_fn_append CONFIG_FILES " '$ac_optarg'"
13151 ac_need_defaults=false;;
13152 --header | --heade | --head | --hea )
13153 $ac_shift
13154 case $ac_optarg in
13155 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13156 esac
13157 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13158 ac_need_defaults=false;;
13159 --he | --h)
13160 # Conflict between --help and --header
13161 as_fn_error $? "ambiguous option: \`$1'
13162 Try \`$0 --help' for more information.";;
13163 --help | --hel | -h )
13164 $as_echo "$ac_cs_usage"; exit ;;
13165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13166 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13167 ac_cs_silent=: ;;
13169 # This is an error.
13170 -*) as_fn_error $? "unrecognized option: \`$1'
13171 Try \`$0 --help' for more information." ;;
13173 *) as_fn_append ac_config_targets " $1"
13174 ac_need_defaults=false ;;
13176 esac
13177 shift
13178 done
13180 ac_configure_extra_args=
13182 if $ac_cs_silent; then
13183 exec 6>/dev/null
13184 ac_configure_extra_args="$ac_configure_extra_args --silent"
13187 _ACEOF
13188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13189 if \$ac_cs_recheck; then
13190 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13191 shift
13192 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13193 CONFIG_SHELL='$SHELL'
13194 export CONFIG_SHELL
13195 exec "\$@"
13198 _ACEOF
13199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13200 exec 5>>config.log
13202 echo
13203 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13204 ## Running $as_me. ##
13205 _ASBOX
13206 $as_echo "$ac_log"
13207 } >&5
13209 _ACEOF
13210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13212 # INIT-COMMANDS
13215 aros_host_exe_suffix=${aros_host_exe_suffix}
13216 aros_tools_dir=${aros_tools_dir}
13217 aros_target_cpu=${aros_target_cpu}
13218 aros_target_arch=${aros_target_arch}
13219 aros_target_suffix=${aros_target_suffix}
13220 aros_target_nm_ln=${aros_target_nm_ln}
13221 aros_target_as_ln=${aros_target_as_ln}
13222 aros_target_ar_ln=${aros_target_ar_ln}
13223 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13224 aros_target_objdump_ln=${aros_target_objdump_ln}
13225 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13226 aros_target_strip_ln=${aros_target_strip_ln}
13227 aros_kernel_ld=${aros_kernel_ld}
13230 aros_tools_dir=${aros_tools_dir}
13233 _ACEOF
13235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13237 # Handling of arguments.
13238 for ac_config_target in $ac_config_targets
13240 case $ac_config_target in
13241 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13242 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13243 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13244 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13245 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13246 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13247 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13248 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13249 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13250 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13251 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13252 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13253 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13254 "${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" ;;
13255 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in" ;;
13256 "${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" ;;
13257 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13258 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13259 "${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" ;;
13261 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13262 esac
13263 done
13266 # If the user did not use the arguments to specify the items to instantiate,
13267 # then the envvar interface is used. Set only those that are not.
13268 # We use the long form for the default assignment because of an extremely
13269 # bizarre bug on SunOS 4.1.3.
13270 if $ac_need_defaults; then
13271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13276 # Have a temporary directory for convenience. Make it in the build tree
13277 # simply because there is no reason against having it here, and in addition,
13278 # creating and moving files from /tmp can sometimes cause problems.
13279 # Hook for its removal unless debugging.
13280 # Note that there is a small window in which the directory will not be cleaned:
13281 # after its creation but before its name has been assigned to `$tmp'.
13282 $debug ||
13284 tmp= ac_tmp=
13285 trap 'exit_status=$?
13286 : "${ac_tmp:=$tmp}"
13287 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13289 trap 'as_fn_exit 1' 1 2 13 15
13291 # Create a (secure) tmp directory for tmp files.
13294 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13295 test -d "$tmp"
13296 } ||
13298 tmp=./conf$$-$RANDOM
13299 (umask 077 && mkdir "$tmp")
13300 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13301 ac_tmp=$tmp
13303 # Set up the scripts for CONFIG_FILES section.
13304 # No need to generate them if there are no CONFIG_FILES.
13305 # This happens for instance with `./config.status config.h'.
13306 if test -n "$CONFIG_FILES"; then
13309 ac_cr=`echo X | tr X '\015'`
13310 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13311 # But we know of no other shell where ac_cr would be empty at this
13312 # point, so we can use a bashism as a fallback.
13313 if test "x$ac_cr" = x; then
13314 eval ac_cr=\$\'\\r\'
13316 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13317 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13318 ac_cs_awk_cr='\\r'
13319 else
13320 ac_cs_awk_cr=$ac_cr
13323 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13324 _ACEOF
13328 echo "cat >conf$$subs.awk <<_ACEOF" &&
13329 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13330 echo "_ACEOF"
13331 } >conf$$subs.sh ||
13332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13333 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13334 ac_delim='%!_!# '
13335 for ac_last_try in false false false false false :; do
13336 . ./conf$$subs.sh ||
13337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13339 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13340 if test $ac_delim_n = $ac_delim_num; then
13341 break
13342 elif $ac_last_try; then
13343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13344 else
13345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13347 done
13348 rm -f conf$$subs.sh
13350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13351 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13352 _ACEOF
13353 sed -n '
13355 s/^/S["/; s/!.*/"]=/
13358 s/^[^!]*!//
13359 :repl
13360 t repl
13361 s/'"$ac_delim"'$//
13362 t delim
13365 s/\(.\{148\}\)..*/\1/
13366 t more1
13367 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13370 b repl
13371 :more1
13372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13375 s/.\{148\}//
13376 t nl
13377 :delim
13379 s/\(.\{148\}\)..*/\1/
13380 t more2
13381 s/["\\]/\\&/g; s/^/"/; s/$/"/
13384 :more2
13385 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13388 s/.\{148\}//
13389 t delim
13390 ' <conf$$subs.awk | sed '
13391 /^[^""]/{
13393 s/\n//
13395 ' >>$CONFIG_STATUS || ac_write_fail=1
13396 rm -f conf$$subs.awk
13397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13398 _ACAWK
13399 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13400 for (key in S) S_is_set[key] = 1
13401 FS = "\a"
13405 line = $ 0
13406 nfields = split(line, field, "@")
13407 substed = 0
13408 len = length(field[1])
13409 for (i = 2; i < nfields; i++) {
13410 key = field[i]
13411 keylen = length(key)
13412 if (S_is_set[key]) {
13413 value = S[key]
13414 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13415 len += length(value) + length(field[++i])
13416 substed = 1
13417 } else
13418 len += 1 + keylen
13421 print line
13424 _ACAWK
13425 _ACEOF
13426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13427 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13428 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13429 else
13431 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13432 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13433 _ACEOF
13435 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13436 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13437 # trailing colons and then remove the whole line if VPATH becomes empty
13438 # (actually we leave an empty line to preserve line numbers).
13439 if test "x$srcdir" = x.; then
13440 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13442 s///
13443 s/^/:/
13444 s/[ ]*$/:/
13445 s/:\$(srcdir):/:/g
13446 s/:\${srcdir}:/:/g
13447 s/:@srcdir@:/:/g
13448 s/^:*//
13449 s/:*$//
13451 s/\(=[ ]*\).*/\1/
13453 s/\n//
13454 s/^[^=]*=[ ]*$//
13458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13459 fi # test -n "$CONFIG_FILES"
13461 # Set up the scripts for CONFIG_HEADERS section.
13462 # No need to generate them if there are no CONFIG_HEADERS.
13463 # This happens for instance with `./config.status Makefile'.
13464 if test -n "$CONFIG_HEADERS"; then
13465 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13466 BEGIN {
13467 _ACEOF
13469 # Transform confdefs.h into an awk script `defines.awk', embedded as
13470 # here-document in config.status, that substitutes the proper values into
13471 # config.h.in to produce config.h.
13473 # Create a delimiter string that does not exist in confdefs.h, to ease
13474 # handling of long lines.
13475 ac_delim='%!_!# '
13476 for ac_last_try in false false :; do
13477 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13478 if test -z "$ac_tt"; then
13479 break
13480 elif $ac_last_try; then
13481 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13482 else
13483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13485 done
13487 # For the awk script, D is an array of macro values keyed by name,
13488 # likewise P contains macro parameters if any. Preserve backslash
13489 # newline sequences.
13491 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13492 sed -n '
13493 s/.\{148\}/&'"$ac_delim"'/g
13494 t rset
13495 :rset
13496 s/^[ ]*#[ ]*define[ ][ ]*/ /
13497 t def
13499 :def
13500 s/\\$//
13501 t bsnl
13502 s/["\\]/\\&/g
13503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13504 D["\1"]=" \3"/p
13505 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13507 :bsnl
13508 s/["\\]/\\&/g
13509 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13510 D["\1"]=" \3\\\\\\n"\\/p
13511 t cont
13512 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13513 t cont
13515 :cont
13517 s/.\{148\}/&'"$ac_delim"'/g
13518 t clear
13519 :clear
13520 s/\\$//
13521 t bsnlc
13522 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13524 :bsnlc
13525 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13526 b cont
13527 ' <confdefs.h | sed '
13528 s/'"$ac_delim"'/"\\\
13529 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13532 for (key in D) D_is_set[key] = 1
13533 FS = "\a"
13535 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13536 line = \$ 0
13537 split(line, arg, " ")
13538 if (arg[1] == "#") {
13539 defundef = arg[2]
13540 mac1 = arg[3]
13541 } else {
13542 defundef = substr(arg[1], 2)
13543 mac1 = arg[2]
13545 split(mac1, mac2, "(") #)
13546 macro = mac2[1]
13547 prefix = substr(line, 1, index(line, defundef) - 1)
13548 if (D_is_set[macro]) {
13549 # Preserve the white space surrounding the "#".
13550 print prefix "define", macro P[macro] D[macro]
13551 next
13552 } else {
13553 # Replace #undef with comments. This is necessary, for example,
13554 # in the case of _POSIX_SOURCE, which is predefined and required
13555 # on some systems where configure will not decide to define it.
13556 if (defundef == "undef") {
13557 print "/*", prefix defundef, macro, "*/"
13558 next
13562 { print }
13563 _ACAWK
13564 _ACEOF
13565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13566 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13567 fi # test -n "$CONFIG_HEADERS"
13570 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13571 shift
13572 for ac_tag
13574 case $ac_tag in
13575 :[FHLC]) ac_mode=$ac_tag; continue;;
13576 esac
13577 case $ac_mode$ac_tag in
13578 :[FHL]*:*);;
13579 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13580 :[FH]-) ac_tag=-:-;;
13581 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13582 esac
13583 ac_save_IFS=$IFS
13584 IFS=:
13585 set x $ac_tag
13586 IFS=$ac_save_IFS
13587 shift
13588 ac_file=$1
13589 shift
13591 case $ac_mode in
13592 :L) ac_source=$1;;
13593 :[FH])
13594 ac_file_inputs=
13595 for ac_f
13597 case $ac_f in
13598 -) ac_f="$ac_tmp/stdin";;
13599 *) # Look for the file first in the build tree, then in the source tree
13600 # (if the path is not absolute). The absolute path cannot be DOS-style,
13601 # because $ac_f cannot contain `:'.
13602 test -f "$ac_f" ||
13603 case $ac_f in
13604 [\\/$]*) false;;
13605 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13606 esac ||
13607 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13608 esac
13609 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13610 as_fn_append ac_file_inputs " '$ac_f'"
13611 done
13613 # Let's still pretend it is `configure' which instantiates (i.e., don't
13614 # use $as_me), people would be surprised to read:
13615 # /* config.h. Generated by config.status. */
13616 configure_input='Generated from '`
13617 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13618 `' by configure.'
13619 if test x"$ac_file" != x-; then
13620 configure_input="$ac_file. $configure_input"
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13622 $as_echo "$as_me: creating $ac_file" >&6;}
13624 # Neutralize special characters interpreted by sed in replacement strings.
13625 case $configure_input in #(
13626 *\&* | *\|* | *\\* )
13627 ac_sed_conf_input=`$as_echo "$configure_input" |
13628 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13629 *) ac_sed_conf_input=$configure_input;;
13630 esac
13632 case $ac_tag in
13633 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13635 esac
13637 esac
13639 ac_dir=`$as_dirname -- "$ac_file" ||
13640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13641 X"$ac_file" : 'X\(//\)[^/]' \| \
13642 X"$ac_file" : 'X\(//\)$' \| \
13643 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13644 $as_echo X"$ac_file" |
13645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13646 s//\1/
13649 /^X\(\/\/\)[^/].*/{
13650 s//\1/
13653 /^X\(\/\/\)$/{
13654 s//\1/
13657 /^X\(\/\).*/{
13658 s//\1/
13661 s/.*/./; q'`
13662 as_dir="$ac_dir"; as_fn_mkdir_p
13663 ac_builddir=.
13665 case "$ac_dir" in
13666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13669 # A ".." for each directory in $ac_dir_suffix.
13670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13671 case $ac_top_builddir_sub in
13672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13674 esac ;;
13675 esac
13676 ac_abs_top_builddir=$ac_pwd
13677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13678 # for backward compatibility:
13679 ac_top_builddir=$ac_top_build_prefix
13681 case $srcdir in
13682 .) # We are building in place.
13683 ac_srcdir=.
13684 ac_top_srcdir=$ac_top_builddir_sub
13685 ac_abs_top_srcdir=$ac_pwd ;;
13686 [\\/]* | ?:[\\/]* ) # Absolute name.
13687 ac_srcdir=$srcdir$ac_dir_suffix;
13688 ac_top_srcdir=$srcdir
13689 ac_abs_top_srcdir=$srcdir ;;
13690 *) # Relative name.
13691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13692 ac_top_srcdir=$ac_top_build_prefix$srcdir
13693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13694 esac
13695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13698 case $ac_mode in
13701 # CONFIG_FILE
13704 _ACEOF
13706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13707 # If the template does not know about datarootdir, expand it.
13708 # FIXME: This hack should be removed a few years after 2.60.
13709 ac_datarootdir_hack=; ac_datarootdir_seen=
13710 ac_sed_dataroot='
13711 /datarootdir/ {
13715 /@datadir@/p
13716 /@docdir@/p
13717 /@infodir@/p
13718 /@localedir@/p
13719 /@mandir@/p'
13720 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13721 *datarootdir*) ac_datarootdir_seen=yes;;
13722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13724 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13725 _ACEOF
13726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727 ac_datarootdir_hack='
13728 s&@datadir@&$datadir&g
13729 s&@docdir@&$docdir&g
13730 s&@infodir@&$infodir&g
13731 s&@localedir@&$localedir&g
13732 s&@mandir@&$mandir&g
13733 s&\\\${datarootdir}&$datarootdir&g' ;;
13734 esac
13735 _ACEOF
13737 # Neutralize VPATH when `$srcdir' = `.'.
13738 # Shell code in configure.ac might set extrasub.
13739 # FIXME: do we really want to maintain this feature?
13740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13741 ac_sed_extra="$ac_vpsub
13742 $extrasub
13743 _ACEOF
13744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13747 s|@configure_input@|$ac_sed_conf_input|;t t
13748 s&@top_builddir@&$ac_top_builddir_sub&;t t
13749 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13750 s&@srcdir@&$ac_srcdir&;t t
13751 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13752 s&@top_srcdir@&$ac_top_srcdir&;t t
13753 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13754 s&@builddir@&$ac_builddir&;t t
13755 s&@abs_builddir@&$ac_abs_builddir&;t t
13756 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13757 $ac_datarootdir_hack
13759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13760 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13763 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13765 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13767 which seems to be undefined. Please make sure it is defined" >&5
13768 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13769 which seems to be undefined. Please make sure it is defined" >&2;}
13771 rm -f "$ac_tmp/stdin"
13772 case $ac_file in
13773 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13774 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13775 esac \
13776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13780 # CONFIG_HEADER
13782 if test x"$ac_file" != x-; then
13784 $as_echo "/* $configure_input */" \
13785 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13786 } >"$ac_tmp/config.h" \
13787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13788 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13790 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13791 else
13792 rm -f "$ac_file"
13793 mv "$ac_tmp/config.h" "$ac_file" \
13794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13796 else
13797 $as_echo "/* $configure_input */" \
13798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13799 || as_fn_error $? "could not create -" "$LINENO" 5
13803 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13804 $as_echo "$as_me: executing $ac_file commands" >&6;}
13806 esac
13809 case $ac_file$ac_mode in
13810 "compiler_executable":C)
13811 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13812 mkdir -p $prefix
13813 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13814 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13816 echo ${prefix2}
13817 echo ${prefix3}
13818 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
13820 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13821 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13822 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13823 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13824 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13825 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13826 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13828 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13830 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13832 esac
13833 done # for ac_tag
13836 as_fn_exit 0
13837 _ACEOF
13838 ac_clean_files=$ac_clean_files_save
13840 test $ac_write_fail = 0 ||
13841 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13844 # configure is writing to config.log, and then calls config.status.
13845 # config.status does its own redirection, appending to config.log.
13846 # Unfortunately, on DOS this fails, as config.log is still kept open
13847 # by configure, so config.status won't be able to write to it; its
13848 # output is simply discarded. So we exec the FD to /dev/null,
13849 # effectively closing config.log, so it can be properly (re)opened and
13850 # appended to by config.status. When coming back to configure, we
13851 # need to make the FD available again.
13852 if test "$no_create" != yes; then
13853 ac_cs_success=:
13854 ac_config_status_args=
13855 test "$silent" = yes &&
13856 ac_config_status_args="$ac_config_status_args --quiet"
13857 exec 5>/dev/null
13858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13859 exec 5>>config.log
13860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13861 # would make configure fail if this is the last instruction.
13862 $ac_cs_success || as_fn_exit 1
13864 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13866 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13871 #XXX compatability...
13872 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13874 if test -n "$aros_shared_cflags" ; then
13875 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13876 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg