- Set a default PCM volume so that something can be heard when driver is
[AROS.git] / configure
blobeb68141bb5050e7e74f4491eae092f4aefc1d09f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_android_level
609 aros_ios_sdk
610 aros_ios_version
611 aros_ios_platform
612 aros_enable_mmu
613 aros_nesting_supervisor
614 aros_palm_debug_hack
615 aros_serial_debug
616 aros_host_sdl_libs
617 aros_host_sdl_cflags
618 aros_host_x11_libdirs
619 aros_host_x11_includes
620 DO_VIDMODE_SUPPORT
621 DO_XSHM_SUPPORT
622 aros_default_wbdepth
623 aros_default_wbheight
624 aros_default_wbwidth
625 oss_library_target
626 pci_hidd_target
627 sdl_hidd_target
628 x11_hidd_target
629 crosstools_target
630 aros_target_strip_flags
631 aros_target_genmap
632 aros_paranoia_cflags
633 aros_debug_ldflags
634 aros_debug_aflags
635 aros_debug_cflags
636 aros_target_cflags
637 aros_kernel_ldflags
638 aros_kernel_objcflags
639 aros_kernel_includes
640 aros_kernel_cflags
641 aros_shared_ldflags
642 aros_shared_aflags
643 aros_shared_cflags
644 aros_config_ldflags
645 aros_config_aflags
646 aros_config_cflags
647 aros_arch_libs
648 aros_compiler_libs
649 aros_object_format
650 aros_shared_ld
651 aros_shared_default
652 aros_target_nm
653 aros_target_strip
654 aros_target_objcopy
655 aros_target_objdump
656 aros_target_cc_path
657 aros_target_cc_includes
658 orig_target_ld
659 aros_target_as
660 aros_kernel_cc
661 orig_target_cc
662 aros_kernel_ar
663 aros_kernel_nm
664 aros_target_ranlib
665 aros_target_ar
666 aros_target_incl
667 aros_target_suffix
668 aros_target_variant
669 aros_target_cpu
670 aros_target_family
671 aros_target_arch
672 aros_target_bootloader
673 aros_target_iconset
674 aros_target_guitheme
675 aros_tools_dir
676 aros_host_lib_suffix
677 aros_host_exe_suffix
678 aros_host_mkargs
679 aros_host_mkdep
680 aros_host_debug
681 aros_host_ldflags
682 gnu89_inline
683 aros_host_cflags
684 aros_host_make
685 aros_host_cc
686 aros_host_cpu
687 aros_host_arch
688 aros_cc_pre
689 AROS_PORTSSRCDIR
690 SRCDIR
691 AROS_BUILDDIR_UNIX
692 AROS_BUILDDIR
693 aros_flavour_uc
694 aros_flavour
695 aros_cpu
696 aros_arch
697 SDL_LIBS
698 SDL_CFLAGS
699 SDL_CONFIG
700 XMKMF
701 aros_cflags_iquote_end
702 aros_cflags_iquote
703 kernel_cflags_iquote_end
704 kernel_cflags_iquote
705 host_cflags_iquote_end
706 host_cflags_iquote
707 aros_target_nostdlib_ldflags
708 aros_target_detach_ldflags
709 aros_target_nix_ldflags
710 aros_target_nostartup_ldflags
711 aros_target_nostdinc_cflags
712 aros_target_ld
713 aros_target_cc
714 aros_target_cxx
715 aros_target_strip_ln
716 aros_target_ranlib_ln
717 aros_target_objdump_ln
718 aros_target_objcopy_ln
719 aros_target_nm_ln
720 aros_target_ar_ln
721 aros_target_as_ln
722 aros_kernel_ld
723 aros_kernel_rescomp
724 android_tool
725 CCACHE
726 DISTCC
727 LIBOBJS
728 EGREP
729 GREP
731 TEST
734 pkgpyexecdir
735 pyexecdir
736 pkgpythondir
737 pythondir
738 PYTHON_PLATFORM
739 PYTHON_EXEC_PREFIX
740 PYTHON_PREFIX
741 PYTHON_VERSION
742 PYTHON
743 PATCH
744 CHMOD
746 PPMTOILBM
747 PNGTOPNM
748 FLEX
749 BISON
752 UNIQ
753 SORT
754 TOUCH
755 MKDIR
756 ECHO
760 aros_host_strip
761 aros_host_ranlib
762 aros_host_ar
763 aros_host_automake
764 aros_host_autoheader
765 aros_host_autoconf
766 aros_host_aclocal
767 aros_host_ld
768 MMAKE
771 OBJEXT
772 EXEEXT
773 ac_ct_CC
774 CPPFLAGS
775 LDFLAGS
776 CFLAGS
778 host_os
779 host_vendor
780 host_cpu
781 host
782 build_os
783 build_vendor
784 build_cpu
785 build
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL'
824 ac_subst_files=''
825 ac_user_opts='
826 enable_option_checking
827 enable_build_type
828 enable_debug
829 enable_crosstools
830 enable_distcc
831 enable_ccache
832 with_gcc_version
833 with_optimization
834 with_paranoia
835 enable_target_variant
836 with_xcode
837 with_ios_version
838 with_ios_sdk
839 with_sdk
840 with_ndk
841 with_android_version
842 with_aros_gcc
843 with_portssources
844 with_bootloader
845 with_iconset
846 with_theme
847 enable_includes
848 with_resolution
849 with_serial_debug
850 enable_palm_debug_hack
851 enable_nesting_supervisor
852 enable_mmu
853 enable_x11_hidd
854 with_x
855 enable_x11_shm
856 enable_x11_vidmode
857 enable_sdl_hidd
858 with_sdl_prefix
859 with_sdl_exec_prefix
860 enable_sdltest
861 enable_dbus
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
872 XMKMF'
875 # Initialize some variables set by options.
876 ac_init_help=
877 ac_init_version=false
878 ac_unrecognized_opts=
879 ac_unrecognized_sep=
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
882 cache_file=/dev/null
883 exec_prefix=NONE
884 no_create=
885 no_recursion=
886 prefix=NONE
887 program_prefix=NONE
888 program_suffix=NONE
889 program_transform_name=s,x,x,
890 silent=
891 site=
892 srcdir=
893 verbose=
894 x_includes=NONE
895 x_libraries=NONE
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE}'
914 infodir='${datarootdir}/info'
915 htmldir='${docdir}'
916 dvidir='${docdir}'
917 pdfdir='${docdir}'
918 psdir='${docdir}'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
923 ac_prev=
924 ac_dashdash=
925 for ac_option
927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
929 eval $ac_prev=\$ac_option
930 ac_prev=
931 continue
934 case $ac_option in
935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 *=) ac_optarg= ;;
937 *) ac_optarg=yes ;;
938 esac
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
944 ac_dashdash=yes ;;
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 ac_prev=bindir ;;
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949 bindir=$ac_optarg ;;
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
963 --config-cache | -C)
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
967 ac_prev=datadir ;;
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
987 "enable_$ac_useropt"
988 "*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=no ;;
994 -docdir | --docdir | --docdi | --doc | --do)
995 ac_prev=docdir ;;
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 docdir=$ac_optarg ;;
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 ac_prev=dvidir ;;
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
1004 -enable-* | --enable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1014 "*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=\$ac_optarg ;;
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1031 with_gas=yes ;;
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 ac_prev=htmldir ;;
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 | --ht=*)
1049 htmldir=$ac_optarg ;;
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 ac_prev=infodir ;;
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1063 -libdir | --libdir | --libdi | --libd)
1064 ac_prev=libdir ;;
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 ac_prev=mandir ;;
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1094 with_fp=no ;;
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1098 no_create=yes ;;
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 no_recursion=yes ;;
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 ac_prev=prefix ;;
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 ac_prev=pdfdir ;;
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1154 -psdir | --psdir | --psdi | --psd | --ps)
1155 ac_prev=psdir ;;
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 psdir=$ac_optarg ;;
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 silent=yes ;;
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
1183 site=$ac_optarg ;;
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1208 -with-* | --with-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 esac
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1273 # FIXME: should be removed in autoconf 3.0.
1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 esac
1281 done
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
1310 case $ac_val in
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 esac
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1329 If a cross compiler is detected then cross compile mode will be used" >&2
1330 elif test "x$build_alias" != "x$host_alias"; then
1331 cross_compiling=yes
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338 test "$silent" = yes && exec 6>/dev/null
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error $? "pwd does not report name of working directory"
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1367 /^X\(\/\/\)$/{
1368 s//\1/
1371 /^X\(\/\).*/{
1372 s//\1/
1375 s/.*/./; q'`
1376 srcdir=$ac_confdir
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 srcdir=..
1380 else
1381 ac_srcdir_defaulted=no
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures this package to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking ...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1470 cat <<\_ACEOF
1472 X features:
1473 --x-includes=DIR X include files are in DIR
1474 --x-libraries=DIR X library files are in DIR
1476 System types:
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 _ACEOF
1482 if test -n "$ac_init_help"; then
1484 cat <<\_ACEOF
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-build-type=TYPE
1491 Select the build type. Available types are:
1492 personal, nightly, snapshot, milestone, release. Do
1493 NOT use this option unless you know what you are
1494 doing! (default=personal)
1495 --enable-debug=list Enable different types of debug. Commas or
1496 whitespaces can be used to separate the items in the
1497 list. Available types of debug are: all, none,
1498 messages, stack, mungwall, modules, symbols. If no
1499 list is provided then "all" is assumed.
1500 (default=none)
1501 --enable-crosstools Build cross-compiler toolchains if necessary
1502 (default=no).
1503 --enable-distcc Use distcc as a front end to the compiler
1504 (default=no).
1505 --enable-ccache Use ccache as a front end to the compiler
1506 (default=no).
1507 --enable-target-variant=NAME
1508 Enable a specific target variant(default=none)
1509 --enable-includes=dir Alternative system include directory
1510 --enable-palm-debug-hack
1511 Enable palm debug output hack in palm native
1512 (default=no)
1513 --enable-nesting-supervisor
1514 Enable nesting supervisor support in unix
1515 (default=no)
1516 --disable-mmu Disable MMU support (default=enabled)
1517 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1518 --enable-x11-shm use X11 shared memory (default=auto)
1519 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1520 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1521 --disable-sdltest Do not try to compile and run a test SDL program
1522 --enable-dbus Enable DBUS support via dbus.library (default=no)
1524 Optional Packages:
1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527 --with-gcc-version=VERSION
1528 Use host gcc-VERSION for building AROS
1529 --with-optimization=FLAGS
1530 Use optimization flags FLAGS (default=-O2).
1531 --with-paranoia=FLAGS CC flags to enable paranoia
1532 --with-xcode=PATH Specify XCode path for iOS targets
1533 (default=/Developer).
1534 --with-ios-version=VERSION
1535 Specify minimum supported iOS version (default=3.0).
1536 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1537 --with-sdk=PATH Specify Android SDK path
1538 (default=$default_android_sdk).
1539 --with-ndk=PATH Specify Android NDK path
1540 (default=$default_android_ndk).
1541 --with-android-version=VERSION
1542 Use Android platform VERSION (default=2.2).
1543 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1544 --with-portssources=DIR Where to download sourcecode for external ports
1545 --with-bootloader=NAME Use a specific bootloader
1546 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1547 --with-theme=NAME Use a specific GUI Theme
1548 --with-resolution=XRESxYRESxDEPTH
1549 Default resolution of the initial WorkbenchScreen
1550 --with-serial-debug Enable serial debug output in native (default=no)
1551 --with-x use the X Window System
1552 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1553 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1555 Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
1563 CPP C preprocessor
1564 XMKMF Path to xmkmf, Makefile generator for X Window System
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1569 Report bugs to the package provider.
1570 _ACEOF
1571 ac_status=$?
1574 if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579 continue
1580 ac_builddir=.
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1598 case $srcdir in
1599 .) # We are building in place.
1600 ac_srcdir=.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1622 else
1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1626 done
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631 cat <<\_ACEOF
1632 configure
1633 generated by GNU Autoconf 2.67
1635 Copyright (C) 2010 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639 exit
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1677 ac_retval=1
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680 as_fn_set_status $ac_retval
1682 } # ac_fn_c_try_compile
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } > conftest.i && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=1
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_c_try_cpp
1721 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1724 # the include files in INCLUDES and setting the cache variable VAR
1725 # accordingly.
1726 ac_fn_c_check_header_mongrel ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if eval "test \"\${$3+set}\"" = set; then :
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval "test \"\${$3+set}\"" = set; then :
1733 $as_echo_n "(cached) " >&6
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 else
1739 # Is the header compilable?
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1741 $as_echo_n "checking $2 usability... " >&6; }
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1745 #include <$2>
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 ac_header_compiler=yes
1749 else
1750 ac_header_compiler=no
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1754 $as_echo "$ac_header_compiler" >&6; }
1756 # Is the header present?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1758 $as_echo_n "checking $2 presence... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_cpp "$LINENO"; then :
1764 ac_header_preproc=yes
1765 else
1766 ac_header_preproc=no
1768 rm -f conftest.err conftest.i conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1770 $as_echo "$ac_header_preproc" >&6; }
1772 # So? What about this header?
1773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1774 yes:no: )
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1776 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1778 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 no:yes:* )
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1782 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1784 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1786 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1788 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 esac
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval "test \"\${$3+set}\"" = set; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 eval "$3=\$ac_header_compiler"
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 } # ac_fn_c_check_header_mongrel
1808 # ac_fn_c_try_run LINENO
1809 # ----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1811 # that executables *can* be run.
1812 ac_fn_c_try_run ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1826 { { case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_try") 2>&5
1833 ac_status=$?
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; }; }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: program exited with status $ac_status" >&5
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=$ac_status
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_c_try_run
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval "test \"\${$3+set}\"" = set; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_check_header_compile
1881 # ac_fn_c_try_link LINENO
1882 # -----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_c_try_link ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext conftest$ac_exeext
1888 if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_c_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 $as_test_x conftest$ac_exeext
1909 }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1915 ac_retval=1
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923 as_fn_set_status $ac_retval
1925 } # ac_fn_c_try_link
1927 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1928 # ----------------------------------------------------
1929 # Tries to find if the field MEMBER exists in type AGGR, after including
1930 # INCLUDES, setting cache variable VAR accordingly.
1931 ac_fn_c_check_member ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1935 $as_echo_n "checking for $2.$3... " >&6; }
1936 if eval "test \"\${$4+set}\"" = set; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1943 main ()
1945 static $2 ac_aggr;
1946 if (ac_aggr.$3)
1947 return 0;
1949 return 0;
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 eval "$4=yes"
1954 else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1959 main ()
1961 static $2 ac_aggr;
1962 if (sizeof ac_aggr.$3)
1963 return 0;
1965 return 0;
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 eval "$4=yes"
1970 else
1971 eval "$4=no"
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 eval ac_res=\$$4
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 } # ac_fn_c_check_member
1984 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1985 # ---------------------------------------------
1986 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1987 # accordingly.
1988 ac_fn_c_check_decl ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 as_decl_name=`echo $2|sed 's/ *(.*//'`
1992 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1994 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1995 if eval "test \"\${$3+set}\"" = set; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2002 main ()
2004 #ifndef $as_decl_name
2005 #ifdef __cplusplus
2006 (void) $as_decl_use;
2007 #else
2008 (void) $as_decl_name;
2009 #endif
2010 #endif
2013 return 0;
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 eval "$3=yes"
2018 else
2019 eval "$3=no"
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 } # ac_fn_c_check_decl
2030 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2031 # -------------------------------------------
2032 # Tests whether TYPE exists after having included INCLUDES, setting cache
2033 # variable VAR accordingly.
2034 ac_fn_c_check_type ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval "test \"\${$3+set}\"" = set; then :
2040 $as_echo_n "(cached) " >&6
2041 else
2042 eval "$3=no"
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 main ()
2049 if (sizeof ($2))
2050 return 0;
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2060 main ()
2062 if (sizeof (($2)))
2063 return 0;
2065 return 0;
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2070 else
2071 eval "$3=yes"
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 } # ac_fn_c_check_type
2084 # ac_fn_c_check_func LINENO FUNC VAR
2085 # ----------------------------------
2086 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2087 ac_fn_c_check_func ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval "test \"\${$3+set}\"" = set; then :
2093 $as_echo_n "(cached) " >&6
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2099 #define $2 innocuous_$2
2101 /* System header to define __stub macros and hopefully few prototypes,
2102 which can conflict with char $2 (); below.
2103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2104 <limits.h> exists even on freestanding compilers. */
2106 #ifdef __STDC__
2107 # include <limits.h>
2108 #else
2109 # include <assert.h>
2110 #endif
2112 #undef $2
2114 /* Override any GCC internal prototype to avoid an error.
2115 Use char because int might match the return type of a GCC
2116 builtin and then its argument prototype would still apply. */
2117 #ifdef __cplusplus
2118 extern "C"
2119 #endif
2120 char $2 ();
2121 /* The GNU C library defines this for functions which it implements
2122 to always fail with ENOSYS. Some functions are actually named
2123 something starting with __ and the normal name is an alias. */
2124 #if defined __stub_$2 || defined __stub___$2
2125 choke me
2126 #endif
2129 main ()
2131 return $2 ();
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_link "$LINENO"; then :
2137 eval "$3=yes"
2138 else
2139 eval "$3=no"
2141 rm -f core conftest.err conftest.$ac_objext \
2142 conftest$ac_exeext conftest.$ac_ext
2144 eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149 } # ac_fn_c_check_func
2150 cat >config.log <<_ACEOF
2151 This file contains any messages produced by compilers while
2152 running configure, to aid debugging if configure makes a mistake.
2154 It was created by $as_me, which was
2155 generated by GNU Autoconf 2.67. Invocation command line was
2157 $ $0 $@
2159 _ACEOF
2160 exec 5>>config.log
2162 cat <<_ASUNAME
2163 ## --------- ##
2164 ## Platform. ##
2165 ## --------- ##
2167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2174 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2176 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2177 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2179 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2180 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2181 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2182 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2184 _ASUNAME
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 $as_echo "PATH: $as_dir"
2192 done
2193 IFS=$as_save_IFS
2195 } >&5
2197 cat >&5 <<_ACEOF
2200 ## ----------- ##
2201 ## Core tests. ##
2202 ## ----------- ##
2204 _ACEOF
2207 # Keep a trace of the command line.
2208 # Strip out --no-create and --no-recursion so they do not pile up.
2209 # Strip out --silent because we don't want to record it for future runs.
2210 # Also quote any args containing shell meta-characters.
2211 # Make two passes to allow for proper duplicate-argument suppression.
2212 ac_configure_args=
2213 ac_configure_args0=
2214 ac_configure_args1=
2215 ac_must_keep_next=false
2216 for ac_pass in 1 2
2218 for ac_arg
2220 case $ac_arg in
2221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2223 | -silent | --silent | --silen | --sile | --sil)
2224 continue ;;
2225 *\'*)
2226 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 esac
2228 case $ac_pass in
2229 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2231 as_fn_append ac_configure_args1 " '$ac_arg'"
2232 if test $ac_must_keep_next = true; then
2233 ac_must_keep_next=false # Got value, back to normal.
2234 else
2235 case $ac_arg in
2236 *=* | --config-cache | -C | -disable-* | --disable-* \
2237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2239 | -with-* | --with-* | -without-* | --without-* | --x)
2240 case "$ac_configure_args0 " in
2241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2242 esac
2244 -* ) ac_must_keep_next=true ;;
2245 esac
2247 as_fn_append ac_configure_args " '$ac_arg'"
2249 esac
2250 done
2251 done
2252 { ac_configure_args0=; unset ac_configure_args0;}
2253 { ac_configure_args1=; unset ac_configure_args1;}
2255 # When interrupted or exit'd, cleanup temporary files, and complete
2256 # config.log. We remove comments because anyway the quotes in there
2257 # would cause problems or look ugly.
2258 # WARNING: Use '\'' to represent an apostrophe within the trap.
2259 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2260 trap 'exit_status=$?
2261 # Save into config.log some information that might help in debugging.
2263 echo
2265 $as_echo "## ---------------- ##
2266 ## Cache variables. ##
2267 ## ---------------- ##"
2268 echo
2269 # The following way of writing the cache mishandles newlines in values,
2271 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in #(
2274 *${as_nl}*)
2275 case $ac_var in #(
2276 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2277 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2278 esac
2279 case $ac_var in #(
2280 _ | IFS | as_nl) ;; #(
2281 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2282 *) { eval $ac_var=; unset $ac_var;} ;;
2283 esac ;;
2284 esac
2285 done
2286 (set) 2>&1 |
2287 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2288 *${as_nl}ac_space=\ *)
2289 sed -n \
2290 "s/'\''/'\''\\\\'\'''\''/g;
2291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2292 ;; #(
2294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2296 esac |
2297 sort
2299 echo
2301 $as_echo "## ----------------- ##
2302 ## Output variables. ##
2303 ## ----------------- ##"
2304 echo
2305 for ac_var in $ac_subst_vars
2307 eval ac_val=\$$ac_var
2308 case $ac_val in
2309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 esac
2311 $as_echo "$ac_var='\''$ac_val'\''"
2312 done | sort
2313 echo
2315 if test -n "$ac_subst_files"; then
2316 $as_echo "## ------------------- ##
2317 ## File substitutions. ##
2318 ## ------------------- ##"
2319 echo
2320 for ac_var in $ac_subst_files
2322 eval ac_val=\$$ac_var
2323 case $ac_val in
2324 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 esac
2326 $as_echo "$ac_var='\''$ac_val'\''"
2327 done | sort
2328 echo
2331 if test -s confdefs.h; then
2332 $as_echo "## ----------- ##
2333 ## confdefs.h. ##
2334 ## ----------- ##"
2335 echo
2336 cat confdefs.h
2337 echo
2339 test "$ac_signal" != 0 &&
2340 $as_echo "$as_me: caught signal $ac_signal"
2341 $as_echo "$as_me: exit $exit_status"
2342 } >&5
2343 rm -f core *.core core.conftest.* &&
2344 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2345 exit $exit_status
2347 for ac_signal in 1 2 13 15; do
2348 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2349 done
2350 ac_signal=0
2352 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2353 rm -f -r conftest* confdefs.h
2355 $as_echo "/* confdefs.h */" > confdefs.h
2357 # Predefined preprocessor variables.
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_NAME "$PACKAGE_NAME"
2361 _ACEOF
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2365 _ACEOF
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2369 _ACEOF
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_STRING "$PACKAGE_STRING"
2373 _ACEOF
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2377 _ACEOF
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_URL "$PACKAGE_URL"
2381 _ACEOF
2384 # Let the site file select an alternate cache file if it wants to.
2385 # Prefer an explicitly selected file to automatically selected ones.
2386 ac_site_file1=NONE
2387 ac_site_file2=NONE
2388 if test -n "$CONFIG_SITE"; then
2389 # We do not want a PATH search for config.site.
2390 case $CONFIG_SITE in #((
2391 -*) ac_site_file1=./$CONFIG_SITE;;
2392 */*) ac_site_file1=$CONFIG_SITE;;
2393 *) ac_site_file1=./$CONFIG_SITE;;
2394 esac
2395 elif test "x$prefix" != xNONE; then
2396 ac_site_file1=$prefix/share/config.site
2397 ac_site_file2=$prefix/etc/config.site
2398 else
2399 ac_site_file1=$ac_default_prefix/share/config.site
2400 ac_site_file2=$ac_default_prefix/etc/config.site
2402 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2404 test "x$ac_site_file" = xNONE && continue
2405 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2407 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2408 sed 's/^/| /' "$ac_site_file" >&5
2409 . "$ac_site_file" \
2410 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412 as_fn_error $? "failed to load site script $ac_site_file
2413 See \`config.log' for more details" "$LINENO" 5 ; }
2415 done
2417 if test -r "$cache_file"; then
2418 # Some versions of bash will fail to source /dev/null (special files
2419 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2420 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2422 $as_echo "$as_me: loading cache $cache_file" >&6;}
2423 case $cache_file in
2424 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2425 *) . "./$cache_file";;
2426 esac
2428 else
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2430 $as_echo "$as_me: creating cache $cache_file" >&6;}
2431 >$cache_file
2434 as_fn_append ac_header_list " stdlib.h"
2435 as_fn_append ac_header_list " unistd.h"
2436 as_fn_append ac_header_list " sys/param.h"
2437 # Check that the precious variables saved in the cache have kept the same
2438 # value.
2439 ac_cache_corrupted=false
2440 for ac_var in $ac_precious_vars; do
2441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2442 eval ac_new_set=\$ac_env_${ac_var}_set
2443 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2444 eval ac_new_val=\$ac_env_${ac_var}_value
2445 case $ac_old_set,$ac_new_set in
2446 set,)
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2448 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2449 ac_cache_corrupted=: ;;
2450 ,set)
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2453 ac_cache_corrupted=: ;;
2454 ,);;
2456 if test "x$ac_old_val" != "x$ac_new_val"; then
2457 # differences in whitespace do not lead to failure.
2458 ac_old_val_w=`echo x $ac_old_val`
2459 ac_new_val_w=`echo x $ac_new_val`
2460 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2462 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2463 ac_cache_corrupted=:
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2466 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2467 eval $ac_var=\$ac_old_val
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2470 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2472 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2473 fi;;
2474 esac
2475 # Pass precious variables to config.status.
2476 if test "$ac_new_set" = set; then
2477 case $ac_new_val in
2478 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2479 *) ac_arg=$ac_var=$ac_new_val ;;
2480 esac
2481 case " $ac_configure_args " in
2482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2483 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2484 esac
2486 done
2487 if $ac_cache_corrupted; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2491 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2492 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2494 ## -------------------- ##
2495 ## Main body of script. ##
2496 ## -------------------- ##
2498 ac_ext=c
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 ac_aux_dir=
2507 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2508 if test -f "$ac_dir/install-sh"; then
2509 ac_aux_dir=$ac_dir
2510 ac_install_sh="$ac_aux_dir/install-sh -c"
2511 break
2512 elif test -f "$ac_dir/install.sh"; then
2513 ac_aux_dir=$ac_dir
2514 ac_install_sh="$ac_aux_dir/install.sh -c"
2515 break
2516 elif test -f "$ac_dir/shtool"; then
2517 ac_aux_dir=$ac_dir
2518 ac_install_sh="$ac_aux_dir/shtool install -c"
2519 break
2521 done
2522 if test -z "$ac_aux_dir"; then
2523 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2526 # These three variables are undocumented and unsupported,
2527 # and are intended to be withdrawn in a future Autoconf release.
2528 # They can cause serious problems if a builder's source tree is in a directory
2529 # whose full name contains unusual characters.
2530 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2531 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2532 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2536 # Check what host we are running on.
2537 # If a target is not suggested, we use this one.
2538 # Note that what we call a target, Autoconf calls a host.
2539 # Make sure we can run config.sub.
2540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2541 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544 $as_echo_n "checking build system type... " >&6; }
2545 if test "${ac_cv_build+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 ac_build_alias=$build_alias
2549 test "x$ac_build_alias" = x &&
2550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2551 test "x$ac_build_alias" = x &&
2552 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558 $as_echo "$ac_cv_build" >&6; }
2559 case $ac_cv_build in
2560 *-*-*) ;;
2561 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2562 esac
2563 build=$ac_cv_build
2564 ac_save_IFS=$IFS; IFS='-'
2565 set x $ac_cv_build
2566 shift
2567 build_cpu=$1
2568 build_vendor=$2
2569 shift; shift
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2572 build_os=$*
2573 IFS=$ac_save_IFS
2574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578 $as_echo_n "checking host system type... " >&6; }
2579 if test "${ac_cv_host+set}" = set; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 if test "x$host_alias" = x; then
2583 ac_cv_host=$ac_cv_build
2584 else
2585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591 $as_echo "$ac_cv_host" >&6; }
2592 case $ac_cv_host in
2593 *-*-*) ;;
2594 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2595 esac
2596 host=$ac_cv_host
2597 ac_save_IFS=$IFS; IFS='-'
2598 set x $ac_cv_host
2599 shift
2600 host_cpu=$1
2601 host_vendor=$2
2602 shift; shift
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2605 host_os=$*
2606 IFS=$ac_save_IFS
2607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2611 # The AROS target is slightly different to the normal GNU style
2612 # format. We don't have the middle part, and we reverse the order
2613 # of the $(CPU) and $(OS) bits.
2615 # Don't strip the version of the target yet, it might be
2616 # useful on some systems.
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2619 $as_echo_n "checking for AROS style target... " >&6; }
2621 if test "$target" = "NONE" ; then
2622 target=$host_os-$host_cpu
2623 else
2624 if test "$target" = "" ; then
2625 target=$host_os-$host_cpu
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2629 $as_echo "$target" >&6; }
2631 if test "$host_os" = "mingw32" ; then
2632 PWDCMD="pwd -W"
2635 #don't know where else to put this...
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2637 $as_echo_n "checking Building AROS in .. ... " >&6; }
2638 AROS_BUILDDIR=`${PWDCMD-pwd}`
2639 AROS_BUILDDIR_UNIX=${PWD}
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2641 $as_echo "$AROS_BUILDDIR" >&6; }
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2644 $as_echo_n "checking AROS Source in .. ... " >&6; }
2645 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2646 SRCDIR=${srcpwd}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2648 $as_echo "$SRCDIR" >&6; }
2650 # Parse the target field into something useful.
2652 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2653 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2656 aros_default_wbwidth=800
2657 aros_default_wbheight=600
2658 aros_default_wbdepth=4
2661 # The first step is to find the host binaries.
2662 # Check for a compiler.
2663 ac_ext=c
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668 if test -n "$ac_tool_prefix"; then
2669 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if test "${ac_cv_prog_CC+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2690 done
2691 done
2692 IFS=$as_save_IFS
2696 CC=$ac_cv_prog_CC
2697 if test -n "$CC"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2699 $as_echo "$CC" >&6; }
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2707 if test -z "$ac_cv_prog_CC"; then
2708 ac_ct_CC=$CC
2709 # Extract the first word of "gcc", so it can be a program name with args.
2710 set dummy gcc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$ac_ct_CC"; then
2717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_ac_ct_CC="gcc"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2730 done
2731 done
2732 IFS=$as_save_IFS
2736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2737 if test -n "$ac_ct_CC"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2739 $as_echo "$ac_ct_CC" >&6; }
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2745 if test "x$ac_ct_CC" = x; then
2746 CC=""
2747 else
2748 case $cross_compiling:$ac_tool_warned in
2749 yes:)
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2752 ac_tool_warned=yes ;;
2753 esac
2754 CC=$ac_ct_CC
2756 else
2757 CC="$ac_cv_prog_CC"
2760 if test -z "$CC"; then
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}cc; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_CC="${ac_tool_prefix}cc"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2783 done
2784 done
2785 IFS=$as_save_IFS
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2801 if test -z "$CC"; then
2802 # Extract the first word of "cc", so it can be a program name with args.
2803 set dummy cc; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if test "${ac_cv_prog_CC+set}" = set; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 ac_prog_rejected=no
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2821 ac_prog_rejected=yes
2822 continue
2824 ac_cv_prog_CC="cc"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2830 IFS=$as_save_IFS
2832 if test $ac_prog_rejected = yes; then
2833 # We found a bogon in the path, so make sure we never use it.
2834 set dummy $ac_cv_prog_CC
2835 shift
2836 if test $# != 0; then
2837 # We chose a different compiler from the bogus one.
2838 # However, it has the same basename, so the bogon will be chosen
2839 # first if we set CC to just the basename; use the full file name.
2840 shift
2841 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2846 CC=$ac_cv_prog_CC
2847 if test -n "$CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849 $as_echo "$CC" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2857 if test -z "$CC"; then
2858 if test -n "$ac_tool_prefix"; then
2859 for ac_prog in cl.exe
2861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2882 done
2883 done
2884 IFS=$as_save_IFS
2888 CC=$ac_cv_prog_CC
2889 if test -n "$CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2898 test -n "$CC" && break
2899 done
2901 if test -z "$CC"; then
2902 ac_ct_CC=$CC
2903 for ac_prog in cl.exe
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 if test -n "$ac_ct_CC"; then
2913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_ac_ct_CC="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2926 done
2927 done
2928 IFS=$as_save_IFS
2932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2933 if test -n "$ac_ct_CC"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2935 $as_echo "$ac_ct_CC" >&6; }
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2942 test -n "$ac_ct_CC" && break
2943 done
2945 if test "x$ac_ct_CC" = x; then
2946 CC=""
2947 else
2948 case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2953 esac
2954 CC=$ac_ct_CC
2961 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 as_fn_error $? "no acceptable C compiler found in \$PATH
2964 See \`config.log' for more details" "$LINENO" 5 ; }
2966 # Provide some information about the compiler.
2967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2968 set X $ac_compile
2969 ac_compiler=$2
2970 for ac_option in --version -v -V -qversion; do
2971 { { ac_try="$ac_compiler $ac_option >&5"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2979 ac_status=$?
2980 if test -s conftest.err; then
2981 sed '10a\
2982 ... rest of stderr output deleted ...
2983 10q' conftest.err >conftest.er1
2984 cat conftest.er1 >&5
2986 rm -f conftest.er1 conftest.err
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }
2989 done
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
2995 main ()
2999 return 0;
3001 _ACEOF
3002 ac_clean_files_save=$ac_clean_files
3003 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3004 # Try to create an executable without -o first, disregard a.out.
3005 # It will help us diagnose broken compilers, and finding out an intuition
3006 # of exeext.
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3008 $as_echo_n "checking whether the C compiler works... " >&6; }
3009 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3011 # The possible output files:
3012 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3014 ac_rmfiles=
3015 for ac_file in $ac_files
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3020 esac
3021 done
3022 rm -f $ac_rmfiles
3024 if { { ac_try="$ac_link_default"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_link_default") 2>&5
3032 ac_status=$?
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }; then :
3035 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3036 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3037 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3038 # so that the user can short-circuit this test for compilers unknown to
3039 # Autoconf.
3040 for ac_file in $ac_files ''
3042 test -f "$ac_file" || continue
3043 case $ac_file in
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3046 [ab].out )
3047 # We found the default executable, but exeext='' is most
3048 # certainly right.
3049 break;;
3050 *.* )
3051 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3052 then :; else
3053 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055 # We set ac_cv_exeext here because the later test for it is not
3056 # safe: cross compilers may not add the suffix if given an `-o'
3057 # argument, so we may need to know it at that point already.
3058 # Even if this section looks crufty: it has the advantage of
3059 # actually working.
3060 break;;
3062 break;;
3063 esac
3064 done
3065 test "$ac_cv_exeext" = no && ac_cv_exeext=
3067 else
3068 ac_file=''
3070 if test -z "$ac_file"; then :
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 $as_echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error 77 "C compiler cannot create executables
3079 See \`config.log' for more details" "$LINENO" 5 ; }
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082 $as_echo "yes" >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3085 $as_echo_n "checking for C compiler default output file name... " >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3087 $as_echo "$ac_file" >&6; }
3088 ac_exeext=$ac_cv_exeext
3090 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3091 ac_clean_files=$ac_clean_files_save
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3093 $as_echo_n "checking for suffix of executables... " >&6; }
3094 if { { ac_try="$ac_link"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_link") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; then :
3105 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3106 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3107 # work properly (i.e., refer to `conftest.exe'), while it won't with
3108 # `rm'.
3109 for ac_file in conftest.exe conftest conftest.*; do
3110 test -f "$ac_file" || continue
3111 case $ac_file in
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114 break;;
3115 * ) break;;
3116 esac
3117 done
3118 else
3119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3122 See \`config.log' for more details" "$LINENO" 5 ; }
3124 rm -f conftest conftest$ac_cv_exeext
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3126 $as_echo "$ac_cv_exeext" >&6; }
3128 rm -f conftest.$ac_ext
3129 EXEEXT=$ac_cv_exeext
3130 ac_exeext=$EXEEXT
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3133 #include <stdio.h>
3135 main ()
3137 FILE *f = fopen ("conftest.out", "w");
3138 return ferror (f) || fclose (f) != 0;
3141 return 0;
3143 _ACEOF
3144 ac_clean_files="$ac_clean_files conftest.out"
3145 # Check that the compiler produces executables we can run. If not, either
3146 # the compiler is broken, or we cross compile.
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3148 $as_echo_n "checking whether we are cross compiling... " >&6; }
3149 if test "$cross_compiling" != yes; then
3150 { { ac_try="$ac_link"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_link") 2>&5
3158 ac_status=$?
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }
3161 if { ac_try='./conftest$ac_cv_exeext'
3162 { { case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_try") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; }; then
3172 cross_compiling=no
3173 else
3174 if test "$cross_compiling" = maybe; then
3175 cross_compiling=yes
3176 else
3177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "cannot run C compiled programs.
3180 If you meant to cross compile, use \`--host'.
3181 See \`config.log' for more details" "$LINENO" 5 ; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3186 $as_echo "$cross_compiling" >&6; }
3188 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3189 ac_clean_files=$ac_clean_files_save
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3191 $as_echo_n "checking for suffix of object files... " >&6; }
3192 if test "${ac_cv_objext+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3194 else
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3199 main ()
3203 return 0;
3205 _ACEOF
3206 rm -f conftest.o conftest.obj
3207 if { { ac_try="$ac_compile"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_compile") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
3218 for ac_file in conftest.o conftest.obj conftest.*; do
3219 test -f "$ac_file" || continue;
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3222 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3223 break;;
3224 esac
3225 done
3226 else
3227 $as_echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 as_fn_error $? "cannot compute suffix of object files: cannot compile
3233 See \`config.log' for more details" "$LINENO" 5 ; }
3235 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3238 $as_echo "$ac_cv_objext" >&6; }
3239 OBJEXT=$ac_cv_objext
3240 ac_objext=$OBJEXT
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3242 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3243 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3250 main ()
3252 #ifndef __GNUC__
3253 choke me
3254 #endif
3257 return 0;
3259 _ACEOF
3260 if ac_fn_c_try_compile "$LINENO"; then :
3261 ac_compiler_gnu=yes
3262 else
3263 ac_compiler_gnu=no
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3270 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3271 if test $ac_compiler_gnu = yes; then
3272 GCC=yes
3273 else
3274 GCC=
3276 ac_test_CFLAGS=${CFLAGS+set}
3277 ac_save_CFLAGS=$CFLAGS
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3279 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3280 if test "${ac_cv_prog_cc_g+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 ac_save_c_werror_flag=$ac_c_werror_flag
3284 ac_c_werror_flag=yes
3285 ac_cv_prog_cc_g=no
3286 CFLAGS="-g"
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3291 main ()
3295 return 0;
3297 _ACEOF
3298 if ac_fn_c_try_compile "$LINENO"; then :
3299 ac_cv_prog_cc_g=yes
3300 else
3301 CFLAGS=""
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3306 main ()
3310 return 0;
3312 _ACEOF
3313 if ac_fn_c_try_compile "$LINENO"; then :
3315 else
3316 ac_c_werror_flag=$ac_save_c_werror_flag
3317 CFLAGS="-g"
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3322 main ()
3326 return 0;
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_cv_prog_cc_g=yes
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3340 $as_echo "$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342 CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344 if test "$GCC" = yes; then
3345 CFLAGS="-g -O2"
3346 else
3347 CFLAGS="-g"
3349 else
3350 if test "$GCC" = yes; then
3351 CFLAGS="-O2"
3352 else
3353 CFLAGS=
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3357 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 ac_cv_prog_cc_c89=no
3362 ac_save_CC=$CC
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365 #include <stdarg.h>
3366 #include <stdio.h>
3367 #include <sys/types.h>
3368 #include <sys/stat.h>
3369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3370 struct buf { int x; };
3371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372 static char *e (p, i)
3373 char **p;
3374 int i;
3376 return p[i];
3378 static char *f (char * (*g) (char **, int), char **p, ...)
3380 char *s;
3381 va_list v;
3382 va_start (v,p);
3383 s = g (p, va_arg (v,int));
3384 va_end (v);
3385 return s;
3388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3389 function prototypes and stuff, but not '\xHH' hex character constants.
3390 These don't provoke an error unfortunately, instead are silently treated
3391 as 'x'. The following induces an error, until -std is added to get
3392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3393 array size at least. It's necessary to write '\x00'==0 to get something
3394 that's true only with -std. */
3395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398 inside strings and character constants. */
3399 #define FOO(x) 'x'
3400 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402 int test (int i, double x);
3403 struct s1 {int (*f) (int a);};
3404 struct s2 {int (*f) (double a);};
3405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406 int argc;
3407 char **argv;
3409 main ()
3411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3413 return 0;
3415 _ACEOF
3416 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC="$ac_save_CC $ac_arg"
3420 if ac_fn_c_try_compile "$LINENO"; then :
3421 ac_cv_prog_cc_c89=$ac_arg
3423 rm -f core conftest.err conftest.$ac_objext
3424 test "x$ac_cv_prog_cc_c89" != "xno" && break
3425 done
3426 rm -f conftest.$ac_ext
3427 CC=$ac_save_CC
3430 # AC_CACHE_VAL
3431 case "x$ac_cv_prog_cc_c89" in
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3434 $as_echo "none needed" >&6; } ;;
3435 xno)
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3437 $as_echo "unsupported" >&6; } ;;
3439 CC="$CC $ac_cv_prog_cc_c89"
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3441 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3442 esac
3443 if test "x$ac_cv_prog_cc_c89" != xno; then :
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 case $ac_cv_prog_cc_stdc in #(
3454 no) :
3455 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3456 *) :
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3458 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3459 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 ac_cv_prog_cc_c99=no
3463 ac_save_CC=$CC
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466 #include <stdarg.h>
3467 #include <stdbool.h>
3468 #include <stdlib.h>
3469 #include <wchar.h>
3470 #include <stdio.h>
3472 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3473 #define debug(...) fprintf (stderr, __VA_ARGS__)
3474 #define showlist(...) puts (#__VA_ARGS__)
3475 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3476 static void
3477 test_varargs_macros (void)
3479 int x = 1234;
3480 int y = 5678;
3481 debug ("Flag");
3482 debug ("X = %d\n", x);
3483 showlist (The first, second, and third items.);
3484 report (x>y, "x is %d but y is %d", x, y);
3487 // Check long long types.
3488 #define BIG64 18446744073709551615ull
3489 #define BIG32 4294967295ul
3490 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3491 #if !BIG_OK
3492 your preprocessor is broken;
3493 #endif
3494 #if BIG_OK
3495 #else
3496 your preprocessor is broken;
3497 #endif
3498 static long long int bignum = -9223372036854775807LL;
3499 static unsigned long long int ubignum = BIG64;
3501 struct incomplete_array
3503 int datasize;
3504 double data[];
3507 struct named_init {
3508 int number;
3509 const wchar_t *name;
3510 double average;
3513 typedef const char *ccp;
3515 static inline int
3516 test_restrict (ccp restrict text)
3518 // See if C++-style comments work.
3519 // Iterate through items via the restricted pointer.
3520 // Also check for declarations in for loops.
3521 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3522 continue;
3523 return 0;
3526 // Check varargs and va_copy.
3527 static void
3528 test_varargs (const char *format, ...)
3530 va_list args;
3531 va_start (args, format);
3532 va_list args_copy;
3533 va_copy (args_copy, args);
3535 const char *str;
3536 int number;
3537 float fnumber;
3539 while (*format)
3541 switch (*format++)
3543 case 's': // string
3544 str = va_arg (args_copy, const char *);
3545 break;
3546 case 'd': // int
3547 number = va_arg (args_copy, int);
3548 break;
3549 case 'f': // float
3550 fnumber = va_arg (args_copy, double);
3551 break;
3552 default:
3553 break;
3556 va_end (args_copy);
3557 va_end (args);
3561 main ()
3564 // Check bool.
3565 _Bool success = false;
3567 // Check restrict.
3568 if (test_restrict ("String literal") == 0)
3569 success = true;
3570 char *restrict newvar = "Another string";
3572 // Check varargs.
3573 test_varargs ("s, d' f .", "string", 65, 34.234);
3574 test_varargs_macros ();
3576 // Check flexible array members.
3577 struct incomplete_array *ia =
3578 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3579 ia->datasize = 10;
3580 for (int i = 0; i < ia->datasize; ++i)
3581 ia->data[i] = i * 1.234;
3583 // Check named initializers.
3584 struct named_init ni = {
3585 .number = 34,
3586 .name = L"Test wide string",
3587 .average = 543.34343,
3590 ni.number = 58;
3592 int dynamic_array[ni.number];
3593 dynamic_array[ni.number - 1] = 543;
3595 // work around unused variable warnings
3596 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3597 || dynamic_array[ni.number - 1] != 543);
3600 return 0;
3602 _ACEOF
3603 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3605 CC="$ac_save_CC $ac_arg"
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_cv_prog_cc_c99=$ac_arg
3609 rm -f core conftest.err conftest.$ac_objext
3610 test "x$ac_cv_prog_cc_c99" != "xno" && break
3611 done
3612 rm -f conftest.$ac_ext
3613 CC=$ac_save_CC
3616 # AC_CACHE_VAL
3617 case "x$ac_cv_prog_cc_c99" in
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3620 $as_echo "none needed" >&6; } ;;
3621 xno)
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3623 $as_echo "unsupported" >&6; } ;;
3625 CC="$CC $ac_cv_prog_cc_c99"
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3627 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3628 esac
3629 if test "x$ac_cv_prog_cc_c99" != xno; then :
3630 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3633 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3634 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 ac_cv_prog_cc_c89=no
3638 ac_save_CC=$CC
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <stdarg.h>
3642 #include <stdio.h>
3643 #include <sys/types.h>
3644 #include <sys/stat.h>
3645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3646 struct buf { int x; };
3647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3648 static char *e (p, i)
3649 char **p;
3650 int i;
3652 return p[i];
3654 static char *f (char * (*g) (char **, int), char **p, ...)
3656 char *s;
3657 va_list v;
3658 va_start (v,p);
3659 s = g (p, va_arg (v,int));
3660 va_end (v);
3661 return s;
3664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3665 function prototypes and stuff, but not '\xHH' hex character constants.
3666 These don't provoke an error unfortunately, instead are silently treated
3667 as 'x'. The following induces an error, until -std is added to get
3668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3669 array size at least. It's necessary to write '\x00'==0 to get something
3670 that's true only with -std. */
3671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3674 inside strings and character constants. */
3675 #define FOO(x) 'x'
3676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3678 int test (int i, double x);
3679 struct s1 {int (*f) (int a);};
3680 struct s2 {int (*f) (double a);};
3681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3682 int argc;
3683 char **argv;
3685 main ()
3687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3689 return 0;
3691 _ACEOF
3692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3695 CC="$ac_save_CC $ac_arg"
3696 if ac_fn_c_try_compile "$LINENO"; then :
3697 ac_cv_prog_cc_c89=$ac_arg
3699 rm -f core conftest.err conftest.$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3701 done
3702 rm -f conftest.$ac_ext
3703 CC=$ac_save_CC
3706 # AC_CACHE_VAL
3707 case "x$ac_cv_prog_cc_c89" in
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3710 $as_echo "none needed" >&6; } ;;
3711 xno)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3713 $as_echo "unsupported" >&6; } ;;
3715 CC="$CC $ac_cv_prog_cc_c89"
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3717 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3718 esac
3719 if test "x$ac_cv_prog_cc_c89" != xno; then :
3720 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3721 else
3722 ac_cv_prog_cc_stdc=no
3727 esac
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3729 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3730 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3734 case $ac_cv_prog_cc_stdc in #(
3735 no) :
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3737 $as_echo "unsupported" >&6; } ;; #(
3738 '') :
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3740 $as_echo "none needed" >&6; } ;; #(
3741 *) :
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3743 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3744 esac
3746 ac_ext=c
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3752 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3753 # On Suns, sometimes $CPP names a directory.
3754 if test -n "$CPP" && test -d "$CPP"; then
3755 CPP=
3757 if test -z "$CPP"; then
3758 if test "${ac_cv_prog_CPP+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3764 ac_preproc_ok=false
3765 for ac_c_preproc_warn_flag in '' yes
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
3769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
3771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error" is here to catch this case.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 #ifdef __STDC__
3776 # include <limits.h>
3777 #else
3778 # include <assert.h>
3779 #endif
3780 Syntax error
3781 _ACEOF
3782 if ac_fn_c_try_cpp "$LINENO"; then :
3784 else
3785 # Broken: fails on valid input.
3786 continue
3788 rm -f conftest.err conftest.i conftest.$ac_ext
3790 # OK, works on sane cases. Now check whether nonexistent headers
3791 # can be detected and how.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794 #include <ac_nonexistent.h>
3795 _ACEOF
3796 if ac_fn_c_try_cpp "$LINENO"; then :
3797 # Broken: success on invalid input.
3798 continue
3799 else
3800 # Passes both tests.
3801 ac_preproc_ok=:
3802 break
3804 rm -f conftest.err conftest.i conftest.$ac_ext
3806 done
3807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808 rm -f conftest.i conftest.err conftest.$ac_ext
3809 if $ac_preproc_ok; then :
3810 break
3813 done
3814 ac_cv_prog_CPP=$CPP
3817 CPP=$ac_cv_prog_CPP
3818 else
3819 ac_cv_prog_CPP=$CPP
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3822 $as_echo "$CPP" >&6; }
3823 ac_preproc_ok=false
3824 for ac_c_preproc_warn_flag in '' yes
3826 # Use a header file that comes with gcc, so configuring glibc
3827 # with a fresh cross-compiler works.
3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829 # <limits.h> exists even on freestanding compilers.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #ifdef __STDC__
3835 # include <limits.h>
3836 #else
3837 # include <assert.h>
3838 #endif
3839 Syntax error
3840 _ACEOF
3841 if ac_fn_c_try_cpp "$LINENO"; then :
3843 else
3844 # Broken: fails on valid input.
3845 continue
3847 rm -f conftest.err conftest.i conftest.$ac_ext
3849 # OK, works on sane cases. Now check whether nonexistent headers
3850 # can be detected and how.
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3854 _ACEOF
3855 if ac_fn_c_try_cpp "$LINENO"; then :
3856 # Broken: success on invalid input.
3857 continue
3858 else
3859 # Passes both tests.
3860 ac_preproc_ok=:
3861 break
3863 rm -f conftest.err conftest.i conftest.$ac_ext
3865 done
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.i conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then :
3870 else
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3874 See \`config.log' for more details" "$LINENO" 5 ; }
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 # Check for a compatible awk
3885 for ac_prog in gawk nawk
3887 # Extract the first word of "$ac_prog", so it can be a program name with args.
3888 set dummy $ac_prog; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_AWK+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$AWK"; then
3895 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_prog_AWK="$ac_prog"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3908 done
3909 done
3910 IFS=$as_save_IFS
3914 AWK=$ac_cv_prog_AWK
3915 if test -n "$AWK"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3917 $as_echo "$AWK" >&6; }
3918 else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 $as_echo "no" >&6; }
3924 test -n "$AWK" && break
3925 done
3927 if test "$AWK" = ""; then
3928 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3930 # Extract the first word of "mmake", so it can be a program name with args.
3931 set dummy mmake; ac_word=$2
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933 $as_echo_n "checking for $ac_word... " >&6; }
3934 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if test -n "$MMAKE"; then
3938 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947 ac_cv_prog_MMAKE="mmake "
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3951 done
3952 done
3953 IFS=$as_save_IFS
3957 MMAKE=$ac_cv_prog_MMAKE
3958 if test -n "$MMAKE"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3960 $as_echo "$MMAKE" >&6; }
3961 else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3968 # Perform some default variable assignments. Note all of these will be
3969 # Regenerated from the script, so there is no need to cache them.
3971 aros_host_cc="$CC"
3972 if test "$GCC" = "yes"; then
3973 aros_gcc_ld=`$CC -print-prog-name=ld`
3974 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3975 set dummy `basename $aros_gcc_ld`; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 case $aros_host_ld in
3982 [\\/]* | ?:[\\/]*)
3983 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in `dirname $aros_gcc_ld`
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
3999 IFS=$as_save_IFS
4002 esac
4004 aros_host_ld=$ac_cv_path_aros_host_ld
4005 if test -n "$aros_host_ld"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4007 $as_echo "$aros_host_ld" >&6; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4015 if test "$aros_host_ld" = ""; then
4016 # Extract the first word of "ld", so it can be a program name with args.
4017 set dummy ld; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 case $aros_host_ld in
4024 [\\/]* | ?:[\\/]*)
4025 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4039 done
4040 done
4041 IFS=$as_save_IFS
4044 esac
4046 aros_host_ld=$ac_cv_path_aros_host_ld
4047 if test -n "$aros_host_ld"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4049 $as_echo "$aros_host_ld" >&6; }
4050 else
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4057 if test "$aros_host_ld" = ""; then
4058 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4060 aros_host_make="make"
4061 aros_host_cflags=$CFLAGS
4062 aros_host_ldflags=$LDFLAGS
4063 aros_host_debug="-g -O0"
4064 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4065 aros_host_mkargs="--no-print-directory"
4066 aros_host_incl="/usr/include"
4067 aros_host_exe_suffix="$EXEEXT"
4068 aros_host_lib_suffix=""
4070 for ac_prog in aclocal aclocal19 aclocal-1.9
4072 # Extract the first word of "$ac_prog", so it can be a program name with args.
4073 set dummy $ac_prog; ac_word=$2
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075 $as_echo_n "checking for $ac_word... " >&6; }
4076 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 if test -n "$aros_host_aclocal"; then
4080 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 ac_cv_prog_aros_host_aclocal="$ac_prog"
4090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4093 done
4094 done
4095 IFS=$as_save_IFS
4099 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4100 if test -n "$aros_host_aclocal"; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4102 $as_echo "$aros_host_aclocal" >&6; }
4103 else
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105 $as_echo "no" >&6; }
4109 test -n "$aros_host_aclocal" && break
4110 done
4112 for ac_prog in autoconf autoconf259 autoconf253
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 test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test -n "$aros_host_autoconf"; then
4122 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # 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_autoconf="$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_autoconf=$ac_cv_prog_aros_host_autoconf
4142 if test -n "$aros_host_autoconf"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4144 $as_echo "$aros_host_autoconf" >&6; }
4145 else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4151 test -n "$aros_host_autoconf" && break
4152 done
4154 for ac_prog in autoheader autoheader259 autoheader253
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 test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$aros_host_autoheader"; then
4164 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # 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_autoheader="$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_autoheader=$ac_cv_prog_aros_host_autoheader
4184 if test -n "$aros_host_autoheader"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4186 $as_echo "$aros_host_autoheader" >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 test -n "$aros_host_autoheader" && break
4194 done
4196 for ac_prog in automake automake19 automake-1.9
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 test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 if test -n "$aros_host_automake"; then
4206 ac_cv_prog_aros_host_automake="$aros_host_automake" # 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_automake="$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_automake=$ac_cv_prog_aros_host_automake
4226 if test -n "$aros_host_automake"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4228 $as_echo "$aros_host_automake" >&6; }
4229 else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4235 test -n "$aros_host_automake" && break
4236 done
4239 if test "$aros_host_aclocal" = ""; then
4240 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4242 if test "$aros_host_automake" = ""; then
4243 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4246 case "$aros_host_cc" in
4247 *gcc*)
4248 aros_host_cc_pipe="-pipe"
4250 icc)
4251 aros_host_cc_pipe=""
4254 aros_host_cc_pipe=""
4256 esac
4258 aros_kernel_cc_includes=""
4259 aros_target_cc_includes=""
4261 # ----------------------------------------------------------------------------------------
4262 # Host-specific defaults
4264 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4265 # instead of a wrapper script.
4266 # Useful for non-ELF hosts (like Windows and Darwin).
4267 # Can also be overriden in target section below
4268 use_aros_gcc="no"
4270 # This is the main host configuration section. It is where the host
4271 # can change the values of any variables it needs to change. We do
4272 # not look at anything that compiles to the target yet, we'll get
4273 # to that later.
4275 case "$host_os" in
4276 aros*)
4277 aros_host_arch="aros"
4278 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4279 case "$host_cpu" in
4280 *i?86*)
4281 aros_host_cpu="i386"
4283 *x86_64*)
4284 aros_host_cpu="x86_64"
4286 *powerpc*)
4287 aros_host_cpu="ppc"
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4291 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4292 aros_host_cpu="$host_cpu"
4294 esac
4297 linux*)
4298 aros_host_arch="linux"
4299 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4300 case "$host_cpu" in
4301 *i?86*)
4302 aros_host_cpu="i386"
4304 *x86_64*)
4305 aros_host_cpu="x86_64"
4307 *m68k*)
4308 aros_host_cpu="m68k"
4310 *powerpc*)
4311 aros_host_cpu="ppc"
4313 *arm*)
4314 aros_host_cpu="arm"
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4318 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4319 aros_host_cpu="$host_cpu"
4321 esac
4324 freebsd*)
4325 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4326 aros_host_make="gmake"
4327 aros_host_arch="freebsd"
4328 aros_host_cpu="i386"
4330 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4332 case $host_os in
4333 freebsd[234]*)
4334 aros_object_format="elf_i386"
4338 aros_object_format="elf_i386_fbsd"
4340 esac
4344 darwin*)
4345 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4346 aros_host_arch="darwin"
4347 use_aros_gcc="yes"
4348 android_build_os="darwin-x86"
4349 android_tool="android"
4350 default_android_sdk="/android-sdk-mac_x86"
4351 default_android_ndk="/android-ndk-r5b"
4352 case "$host_cpu" in
4353 *i?86*)
4354 aros_host_cpu="i386"
4356 *x86_64*)
4357 aros_host_cpu="x86_64"
4359 *powerpc*)
4360 aros_host_cpu="ppc"
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4364 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4365 aros_host_cpu="$host_cpu"
4367 esac
4369 aros_host_ldflags="$aros_host_ldflags -liconv"
4373 dragonfly*)
4374 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4375 aros_host_make="gmake"
4376 aros_host_arch="dragonfly"
4377 case $host_cpu in
4378 *i?86*)
4379 aros_host_cpu="i386"
4381 *amd64*)
4382 aros_host_cpu="x86_64"
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4386 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4387 aros_host_cpu="$host_cpu"
4389 esac
4392 netbsd*)
4393 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4394 aros_host_make="gmake"
4395 aros_host_arch="netbsd"
4396 case "$host_cpu" in
4397 *i?86*)
4398 aros_host_cpu="i386"
4400 *m68k*)
4401 aros_host_cpu="m68k"
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4405 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4406 aros_host_cpu="$host_cpu"
4408 esac
4409 aros_host_lib_suffix=".0.0"
4412 openbsd*)
4413 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4414 aros_host_make="gmake"
4415 aros_host_arch="openbsd"
4416 case "$host_cpu" in
4417 *i?86*)
4418 aros_host_cpu="i386"
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4422 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4423 aros_host_cpu="$host_cpu"
4425 esac
4428 solaris*)
4429 aros_host_arch="solaris"
4430 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4431 case "$host_cpu" in
4432 *i?86*)
4433 aros_host_cpu="i386"
4435 *sparc*)
4436 aros_host_cpu="sparc"
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4440 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4441 aros_host_cpu="$host_cpu"
4443 esac
4446 morphos*)
4447 aros_host_arch="morphos"
4448 aros_host_cpu="ppc"
4451 amiga*)
4452 aros_host_arch="amiga"
4453 SORT="/gg/bin/sort"
4454 TEST="/gg/bin/test"
4455 UNIQ="/gg/bin/uniq"
4456 FOR="for"
4457 TOUCH="/gg/bin/touch"
4458 case "$host_cpu" in
4459 *m68k*)
4460 aros_host_cpu="m68k"
4462 *powerpc*)
4463 aros_host_cpu="ppc"
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4467 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4468 aros_host_cpu="$host_cpu"
4470 esac
4473 cygwin*)
4474 aros_host_arch="cygwin"
4475 use_aros_gcc="yes"
4476 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4477 android_build_os="windows"
4478 android_tool="android.bat"
4479 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4481 case "$host_cpu" in
4482 *i?86*)
4483 aros_host_cpu="i386"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4487 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4488 aros_host_cpu="$host_cpu"
4490 esac
4493 mingw32*)
4494 aros_host_arch="mingw32"
4495 use_aros_gcc="yes"
4496 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4497 android_build_os="windows"
4498 android_tool="android.bat"
4499 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4501 case "$host_cpu" in
4502 *i?86*)
4503 aros_host_cpu="i386"
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4507 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4508 aros_host_cpu="$host_cpu"
4510 esac
4513 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4515 esac
4517 # Extract the first word of "ar", so it can be a program name with args.
4518 set dummy ar; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$aros_host_ar"; then
4525 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_prog_aros_host_ar="ar cr"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4538 done
4539 done
4540 IFS=$as_save_IFS
4544 aros_host_ar=$ac_cv_prog_aros_host_ar
4545 if test -n "$aros_host_ar"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4547 $as_echo "$aros_host_ar" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4554 if test "$aros_host_ar" = ""; then
4555 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4557 # Extract the first word of "ranlib", so it can be a program name with args.
4558 set dummy ranlib; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 if test -n "$aros_host_ranlib"; then
4565 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_aros_host_ranlib="ranlib "
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4580 IFS=$as_save_IFS
4584 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4585 if test -n "$aros_host_ranlib"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4587 $as_echo "$aros_host_ranlib" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4594 if test "$aros_host_ranlib" = ""; then
4595 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4597 # Extract the first word of "strip", so it can be a program name with args.
4598 set dummy strip; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$aros_host_strip"; then
4605 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_aros_host_strip="strip "
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4624 aros_host_strip=$ac_cv_prog_aros_host_strip
4625 if test -n "$aros_host_strip"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4627 $as_echo "$aros_host_strip" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4634 if test "$aros_host_strip" = ""; then
4635 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4638 # Extract the first word of "rm", so it can be a program name with args.
4639 set dummy rm; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_prog_RM+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$RM"; then
4646 ac_cv_prog_RM="$RM" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655 ac_cv_prog_RM="rm -rf"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4661 IFS=$as_save_IFS
4665 RM=$ac_cv_prog_RM
4666 if test -n "$RM"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4668 $as_echo "$RM" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4675 if test "$RM" = ""; then
4676 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4678 # Extract the first word of "cp", so it can be a program name with args.
4679 set dummy cp; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if test "${ac_cv_prog_CP+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if test -n "$CP"; then
4686 ac_cv_prog_CP="$CP" # Let the user override the test.
4687 else
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_prog_CP="cp "
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4699 done
4700 done
4701 IFS=$as_save_IFS
4705 CP=$ac_cv_prog_CP
4706 if test -n "$CP"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4708 $as_echo "$CP" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4715 if test "$CP" = ""; then
4716 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4718 # Extract the first word of "mv", so it can be a program name with args.
4719 set dummy mv; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if test "${ac_cv_prog_MV+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$MV"; then
4726 ac_cv_prog_MV="$MV" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_MV="mv "
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4741 IFS=$as_save_IFS
4745 MV=$ac_cv_prog_MV
4746 if test -n "$MV"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4748 $as_echo "$MV" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4755 if test "$MV" = ""; then
4756 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4758 # Extract the first word of "echo", so it can be a program name with args.
4759 set dummy echo; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if test "${ac_cv_prog_ECHO+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -n "$ECHO"; then
4766 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_prog_ECHO="echo "
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4779 done
4780 done
4781 IFS=$as_save_IFS
4785 ECHO=$ac_cv_prog_ECHO
4786 if test -n "$ECHO"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4788 $as_echo "$ECHO" >&6; }
4789 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4795 if test "$ECHO" = ""; then
4796 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4798 # Extract the first word of "mkdir", so it can be a program name with args.
4799 set dummy mkdir; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test -n "$MKDIR"; then
4806 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815 ac_cv_prog_MKDIR="mkdir -p"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4821 IFS=$as_save_IFS
4825 MKDIR=$ac_cv_prog_MKDIR
4826 if test -n "$MKDIR"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4828 $as_echo "$MKDIR" >&6; }
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4835 if test "$MKDIR" = ""; then
4836 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4838 # Extract the first word of "touch", so it can be a program name with args.
4839 set dummy touch; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$TOUCH"; then
4846 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_TOUCH="touch "
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4859 done
4860 done
4861 IFS=$as_save_IFS
4865 TOUCH=$ac_cv_prog_TOUCH
4866 if test -n "$TOUCH"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4868 $as_echo "$TOUCH" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4875 if test "$TOUCH" = ""; then
4876 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4878 # Extract the first word of "sort", so it can be a program name with args.
4879 set dummy sort; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_prog_SORT+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$SORT"; then
4886 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_SORT="sort "
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4901 IFS=$as_save_IFS
4905 SORT=$ac_cv_prog_SORT
4906 if test -n "$SORT"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4908 $as_echo "$SORT" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4915 if test "$SORT" = ""; then
4916 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4918 # Extract the first word of "uniq", so it can be a program name with args.
4919 set dummy uniq; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$UNIQ"; then
4926 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_UNIQ="uniq "
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4939 done
4940 done
4941 IFS=$as_save_IFS
4945 UNIQ=$ac_cv_prog_UNIQ
4946 if test -n "$UNIQ"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4948 $as_echo "$UNIQ" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4955 if test "$UNIQ" = ""; then
4956 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4958 # Extract the first word of "true", so it can be a program name with args.
4959 set dummy true; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if test "${ac_cv_prog_NOP+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$NOP"; then
4966 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_NOP="true "
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4979 done
4980 done
4981 IFS=$as_save_IFS
4985 NOP=$ac_cv_prog_NOP
4986 if test -n "$NOP"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4988 $as_echo "$NOP" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4995 if test "$NOP" = ""; then
4996 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
4998 # Extract the first word of "cat", so it can be a program name with args.
4999 set dummy cat; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if test "${ac_cv_prog_CAT+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$CAT"; then
5006 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_CAT="cat "
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 CAT=$ac_cv_prog_CAT
5026 if test -n "$CAT"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5028 $as_echo "$CAT" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 if test "$CAT" = ""; then
5036 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5038 # Extract the first word of "bison", so it can be a program name with args.
5039 set dummy bison; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if test "${ac_cv_prog_BISON+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$BISON"; then
5046 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_BISON="bison "
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 BISON=$ac_cv_prog_BISON
5066 if test -n "$BISON"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5068 $as_echo "$BISON" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5075 if test "$BISON" = ""; then
5076 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5078 # Extract the first word of "flex", so it can be a program name with args.
5079 set dummy flex; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_prog_FLEX+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$FLEX"; then
5086 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_FLEX="flex "
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5101 IFS=$as_save_IFS
5105 FLEX=$ac_cv_prog_FLEX
5106 if test -n "$FLEX"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5108 $as_echo "$FLEX" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5115 if test "$FLEX" = ""; then
5116 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5118 # Extract the first word of "pngtopnm", so it can be a program name with args.
5119 set dummy pngtopnm; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$PNGTOPNM"; then
5126 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_PNGTOPNM="pngtopnm "
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5141 IFS=$as_save_IFS
5145 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5146 if test -n "$PNGTOPNM"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5148 $as_echo "$PNGTOPNM" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5155 if test "$PNGTOPNM" = ""; then
5156 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5158 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5159 set dummy ppmtoilbm; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$PPMTOILBM"; then
5166 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5181 IFS=$as_save_IFS
5185 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5186 if test -n "$PPMTOILBM"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5188 $as_echo "$PPMTOILBM" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5195 if test "$PPMTOILBM" = ""; then
5196 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5198 # Extract the first word of "sed", so it can be a program name with args.
5199 set dummy sed; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if test "${ac_cv_prog_SED+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$SED"; then
5206 ac_cv_prog_SED="$SED" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_SED="sed "
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5221 IFS=$as_save_IFS
5225 SED=$ac_cv_prog_SED
5226 if test -n "$SED"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5228 $as_echo "$SED" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5235 if test "$SED" = ""; then
5236 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5238 # Extract the first word of "chmod", so it can be a program name with args.
5239 set dummy chmod; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$CHMOD"; then
5246 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_CHMOD="chmod "
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5259 done
5260 done
5261 IFS=$as_save_IFS
5265 CHMOD=$ac_cv_prog_CHMOD
5266 if test -n "$CHMOD"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5268 $as_echo "$CHMOD" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 if test "$CHMOD" = ""; then
5276 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5278 # Extract the first word of "patch", so it can be a program name with args.
5279 set dummy patch; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_prog_PATCH+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$PATCH"; then
5286 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_prog_PATCH="patch "
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5301 IFS=$as_save_IFS
5305 PATCH=$ac_cv_prog_PATCH
5306 if test -n "$PATCH"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5308 $as_echo "$PATCH" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5315 if test "$PATCH" = ""; then
5316 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5323 if test -n "$PYTHON"; then
5324 # If the user set $PYTHON, use it and don't search something else.
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5326 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5327 prog="import sys, string
5328 # split strings by '.' and convert to numeric. Append some zeros
5329 # because we need at least 4 digits for the hex conversion.
5330 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5331 minverhex = 0
5332 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5333 sys.exit(sys.hexversion < minverhex)"
5334 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5335 ($PYTHON -c "$prog") >&5 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; then :
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5340 $as_echo "yes" >&6; }
5341 else
5342 as_fn_error $? "too old" "$LINENO" 5
5344 am_display_PYTHON=$PYTHON
5345 else
5346 # Otherwise, try each interpreter until we find one that satisfies
5347 # VERSION.
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5349 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5350 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5354 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
5355 test "$am_cv_pathless_PYTHON" = none && break
5356 prog="import sys, string
5357 # split strings by '.' and convert to numeric. Append some zeros
5358 # because we need at least 4 digits for the hex conversion.
5359 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5360 minverhex = 0
5361 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5362 sys.exit(sys.hexversion < minverhex)"
5363 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5364 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; then :
5368 break
5370 done
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5373 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5374 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5375 if test "$am_cv_pathless_PYTHON" = none; then
5376 PYTHON=:
5377 else
5378 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5379 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_path_PYTHON+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 case $PYTHON in
5386 [\\/]* | ?:[\\/]*)
5387 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5403 IFS=$as_save_IFS
5406 esac
5408 PYTHON=$ac_cv_path_PYTHON
5409 if test -n "$PYTHON"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5411 $as_echo "$PYTHON" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5419 am_display_PYTHON=$am_cv_pathless_PYTHON
5423 if test "$PYTHON" = :; then
5424 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5425 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5429 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5430 if test "${am_cv_python_version+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5436 $as_echo "$am_cv_python_version" >&6; }
5437 PYTHON_VERSION=$am_cv_python_version
5441 PYTHON_PREFIX='${prefix}'
5443 PYTHON_EXEC_PREFIX='${exec_prefix}'
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5448 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5449 if test "${am_cv_python_platform+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5455 $as_echo "$am_cv_python_platform" >&6; }
5456 PYTHON_PLATFORM=$am_cv_python_platform
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5462 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5463 if test "${am_cv_python_pythondir+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5467 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5470 $as_echo "$am_cv_python_pythondir" >&6; }
5471 pythondir=$am_cv_python_pythondir
5475 pkgpythondir=\${pythondir}/$PACKAGE
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5479 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5480 if test "${am_cv_python_pyexecdir+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5484 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5487 $as_echo "$am_cv_python_pyexecdir" >&6; }
5488 pyexecdir=$am_cv_python_pyexecdir
5492 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5500 FOR=for
5502 IF=if
5504 TEST=test
5506 CMP=cmp
5510 # Check for some includes for the X11 HIDD and the kernel
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5514 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5515 if test "${ac_cv_path_GREP+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test -z "$GREP"; then
5519 ac_path_GREP_found=false
5520 # Loop through the user's path and test for each of PROGNAME-LIST
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_prog in grep ggrep; do
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5529 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5530 # Check for GNU ac_path_GREP and select it if it is found.
5531 # Check for GNU $ac_path_GREP
5532 case `"$ac_path_GREP" --version 2>&1` in
5533 *GNU*)
5534 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5536 ac_count=0
5537 $as_echo_n 0123456789 >"conftest.in"
5538 while :
5540 cat "conftest.in" "conftest.in" >"conftest.tmp"
5541 mv "conftest.tmp" "conftest.in"
5542 cp "conftest.in" "conftest.nl"
5543 $as_echo 'GREP' >> "conftest.nl"
5544 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5546 as_fn_arith $ac_count + 1 && ac_count=$as_val
5547 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5548 # Best one so far, save it but keep looking for a better one
5549 ac_cv_path_GREP="$ac_path_GREP"
5550 ac_path_GREP_max=$ac_count
5552 # 10*(2^10) chars as input seems more than enough
5553 test $ac_count -gt 10 && break
5554 done
5555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5556 esac
5558 $ac_path_GREP_found && break 3
5559 done
5560 done
5561 done
5562 IFS=$as_save_IFS
5563 if test -z "$ac_cv_path_GREP"; then
5564 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5566 else
5567 ac_cv_path_GREP=$GREP
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5572 $as_echo "$ac_cv_path_GREP" >&6; }
5573 GREP="$ac_cv_path_GREP"
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5577 $as_echo_n "checking for egrep... " >&6; }
5578 if test "${ac_cv_path_EGREP+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5582 then ac_cv_path_EGREP="$GREP -E"
5583 else
5584 if test -z "$EGREP"; then
5585 ac_path_EGREP_found=false
5586 # Loop through the user's path and test for each of PROGNAME-LIST
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_prog in egrep; do
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5595 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5596 # Check for GNU ac_path_EGREP and select it if it is found.
5597 # Check for GNU $ac_path_EGREP
5598 case `"$ac_path_EGREP" --version 2>&1` in
5599 *GNU*)
5600 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5602 ac_count=0
5603 $as_echo_n 0123456789 >"conftest.in"
5604 while :
5606 cat "conftest.in" "conftest.in" >"conftest.tmp"
5607 mv "conftest.tmp" "conftest.in"
5608 cp "conftest.in" "conftest.nl"
5609 $as_echo 'EGREP' >> "conftest.nl"
5610 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5612 as_fn_arith $ac_count + 1 && ac_count=$as_val
5613 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5614 # Best one so far, save it but keep looking for a better one
5615 ac_cv_path_EGREP="$ac_path_EGREP"
5616 ac_path_EGREP_max=$ac_count
5618 # 10*(2^10) chars as input seems more than enough
5619 test $ac_count -gt 10 && break
5620 done
5621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5622 esac
5624 $ac_path_EGREP_found && break 3
5625 done
5626 done
5627 done
5628 IFS=$as_save_IFS
5629 if test -z "$ac_cv_path_EGREP"; then
5630 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5632 else
5633 ac_cv_path_EGREP=$EGREP
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5639 $as_echo "$ac_cv_path_EGREP" >&6; }
5640 EGREP="$ac_cv_path_EGREP"
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5644 $as_echo_n "checking for ANSI C header files... " >&6; }
5645 if test "${ac_cv_header_stdc+set}" = set; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 #include <stdlib.h>
5651 #include <stdarg.h>
5652 #include <string.h>
5653 #include <float.h>
5656 main ()
5660 return 0;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 ac_cv_header_stdc=yes
5665 else
5666 ac_cv_header_stdc=no
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 if test $ac_cv_header_stdc = yes; then
5671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <string.h>
5676 _ACEOF
5677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5678 $EGREP "memchr" >/dev/null 2>&1; then :
5680 else
5681 ac_cv_header_stdc=no
5683 rm -f conftest*
5687 if test $ac_cv_header_stdc = yes; then
5688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <stdlib.h>
5693 _ACEOF
5694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695 $EGREP "free" >/dev/null 2>&1; then :
5697 else
5698 ac_cv_header_stdc=no
5700 rm -f conftest*
5704 if test $ac_cv_header_stdc = yes; then
5705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5706 if test "$cross_compiling" = yes; then :
5708 else
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #include <ctype.h>
5712 #include <stdlib.h>
5713 #if ((' ' & 0x0FF) == 0x020)
5714 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5715 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5716 #else
5717 # define ISLOWER(c) \
5718 (('a' <= (c) && (c) <= 'i') \
5719 || ('j' <= (c) && (c) <= 'r') \
5720 || ('s' <= (c) && (c) <= 'z'))
5721 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5722 #endif
5724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5726 main ()
5728 int i;
5729 for (i = 0; i < 256; i++)
5730 if (XOR (islower (i), ISLOWER (i))
5731 || toupper (i) != TOUPPER (i))
5732 return 2;
5733 return 0;
5735 _ACEOF
5736 if ac_fn_c_try_run "$LINENO"; then :
5738 else
5739 ac_cv_header_stdc=no
5741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5742 conftest.$ac_objext conftest.beam conftest.$ac_ext
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5748 $as_echo "$ac_cv_header_stdc" >&6; }
5749 if test $ac_cv_header_stdc = yes; then
5751 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5755 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5756 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5757 inttypes.h stdint.h unistd.h
5758 do :
5759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5760 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5762 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5763 cat >>confdefs.h <<_ACEOF
5764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5765 _ACEOF
5769 done
5772 for ac_header in sys/ipc.h sys/shm.h \
5773 sys/mmap.h sys/mman.h sysexits.h \
5774 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5776 do :
5777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5778 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5779 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5780 cat >>confdefs.h <<_ACEOF
5781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5782 _ACEOF
5786 done
5789 for ac_header in sys/mount.h
5790 do :
5791 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5793 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5794 cat >>confdefs.h <<_ACEOF
5795 #define HAVE_SYS_MOUNT_H 1
5796 _ACEOF
5800 done
5803 ac_header_dirent=no
5804 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5805 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5807 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5808 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #include <sys/types.h>
5814 #include <$ac_hdr>
5817 main ()
5819 if ((DIR *) 0)
5820 return 0;
5822 return 0;
5824 _ACEOF
5825 if ac_fn_c_try_compile "$LINENO"; then :
5826 eval "$as_ac_Header=yes"
5827 else
5828 eval "$as_ac_Header=no"
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 eval ac_res=\$$as_ac_Header
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5834 $as_echo "$ac_res" >&6; }
5835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5836 cat >>confdefs.h <<_ACEOF
5837 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5838 _ACEOF
5840 ac_header_dirent=$ac_hdr; break
5843 done
5844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5845 if test $ac_header_dirent = dirent.h; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5847 $as_echo_n "checking for library containing opendir... " >&6; }
5848 if test "${ac_cv_search_opendir+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 ac_func_search_save_LIBS=$LIBS
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5855 /* Override any GCC internal prototype to avoid an error.
5856 Use char because int might match the return type of a GCC
5857 builtin and then its argument prototype would still apply. */
5858 #ifdef __cplusplus
5859 extern "C"
5860 #endif
5861 char opendir ();
5863 main ()
5865 return opendir ();
5867 return 0;
5869 _ACEOF
5870 for ac_lib in '' dir; do
5871 if test -z "$ac_lib"; then
5872 ac_res="none required"
5873 else
5874 ac_res=-l$ac_lib
5875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5877 if ac_fn_c_try_link "$LINENO"; then :
5878 ac_cv_search_opendir=$ac_res
5880 rm -f core conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext
5882 if test "${ac_cv_search_opendir+set}" = set; then :
5883 break
5885 done
5886 if test "${ac_cv_search_opendir+set}" = set; then :
5888 else
5889 ac_cv_search_opendir=no
5891 rm conftest.$ac_ext
5892 LIBS=$ac_func_search_save_LIBS
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5895 $as_echo "$ac_cv_search_opendir" >&6; }
5896 ac_res=$ac_cv_search_opendir
5897 if test "$ac_res" != no; then :
5898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5904 $as_echo_n "checking for library containing opendir... " >&6; }
5905 if test "${ac_cv_search_opendir+set}" = set; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 ac_func_search_save_LIBS=$LIBS
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5912 /* Override any GCC internal prototype to avoid an error.
5913 Use char because int might match the return type of a GCC
5914 builtin and then its argument prototype would still apply. */
5915 #ifdef __cplusplus
5916 extern "C"
5917 #endif
5918 char opendir ();
5920 main ()
5922 return opendir ();
5924 return 0;
5926 _ACEOF
5927 for ac_lib in '' x; do
5928 if test -z "$ac_lib"; then
5929 ac_res="none required"
5930 else
5931 ac_res=-l$ac_lib
5932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5934 if ac_fn_c_try_link "$LINENO"; then :
5935 ac_cv_search_opendir=$ac_res
5937 rm -f core conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext
5939 if test "${ac_cv_search_opendir+set}" = set; then :
5940 break
5942 done
5943 if test "${ac_cv_search_opendir+set}" = set; then :
5945 else
5946 ac_cv_search_opendir=no
5948 rm conftest.$ac_ext
5949 LIBS=$ac_func_search_save_LIBS
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5952 $as_echo "$ac_cv_search_opendir" >&6; }
5953 ac_res=$ac_cv_search_opendir
5954 if test "$ac_res" != no; then :
5955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5962 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5963 if test "${ac_cv_header_stat_broken+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 #include <sys/types.h>
5969 #include <sys/stat.h>
5971 #if defined S_ISBLK && defined S_IFDIR
5972 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5973 #endif
5975 #if defined S_ISBLK && defined S_IFCHR
5976 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5977 #endif
5979 #if defined S_ISLNK && defined S_IFREG
5980 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5981 #endif
5983 #if defined S_ISSOCK && defined S_IFREG
5984 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5985 #endif
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"; then :
5989 ac_cv_header_stat_broken=no
5990 else
5991 ac_cv_header_stat_broken=yes
5993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5996 $as_echo "$ac_cv_header_stat_broken" >&6; }
5997 if test $ac_cv_header_stat_broken = yes; then
5999 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6004 $as_echo_n "checking for ANSI C header files... " >&6; }
6005 if test "${ac_cv_header_stdc+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 #include <stdlib.h>
6011 #include <stdarg.h>
6012 #include <string.h>
6013 #include <float.h>
6016 main ()
6020 return 0;
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"; then :
6024 ac_cv_header_stdc=yes
6025 else
6026 ac_cv_header_stdc=no
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 if test $ac_cv_header_stdc = yes; then
6031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 #include <string.h>
6036 _ACEOF
6037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 $EGREP "memchr" >/dev/null 2>&1; then :
6040 else
6041 ac_cv_header_stdc=no
6043 rm -f conftest*
6047 if test $ac_cv_header_stdc = yes; then
6048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <stdlib.h>
6053 _ACEOF
6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 $EGREP "free" >/dev/null 2>&1; then :
6057 else
6058 ac_cv_header_stdc=no
6060 rm -f conftest*
6064 if test $ac_cv_header_stdc = yes; then
6065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6066 if test "$cross_compiling" = yes; then :
6068 else
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #include <ctype.h>
6072 #include <stdlib.h>
6073 #if ((' ' & 0x0FF) == 0x020)
6074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6076 #else
6077 # define ISLOWER(c) \
6078 (('a' <= (c) && (c) <= 'i') \
6079 || ('j' <= (c) && (c) <= 'r') \
6080 || ('s' <= (c) && (c) <= 'z'))
6081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6082 #endif
6084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6086 main ()
6088 int i;
6089 for (i = 0; i < 256; i++)
6090 if (XOR (islower (i), ISLOWER (i))
6091 || toupper (i) != TOUPPER (i))
6092 return 2;
6093 return 0;
6095 _ACEOF
6096 if ac_fn_c_try_run "$LINENO"; then :
6098 else
6099 ac_cv_header_stdc=no
6101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6102 conftest.$ac_objext conftest.beam conftest.$ac_ext
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6108 $as_echo "$ac_cv_header_stdc" >&6; }
6109 if test $ac_cv_header_stdc = yes; then
6111 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6116 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6117 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122 #include <sys/types.h>
6123 #include <sys/wait.h>
6124 #ifndef WEXITSTATUS
6125 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6126 #endif
6127 #ifndef WIFEXITED
6128 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6129 #endif
6132 main ()
6134 int s;
6135 wait (&s);
6136 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6138 return 0;
6140 _ACEOF
6141 if ac_fn_c_try_compile "$LINENO"; then :
6142 ac_cv_header_sys_wait_h=yes
6143 else
6144 ac_cv_header_sys_wait_h=no
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6149 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6150 if test $ac_cv_header_sys_wait_h = yes; then
6152 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6157 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6158 if test "${ac_cv_header_time+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 #include <sys/types.h>
6164 #include <sys/time.h>
6165 #include <time.h>
6168 main ()
6170 if ((struct tm *) 0)
6171 return 0;
6173 return 0;
6175 _ACEOF
6176 if ac_fn_c_try_compile "$LINENO"; then :
6177 ac_cv_header_time=yes
6178 else
6179 ac_cv_header_time=no
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6184 $as_echo "$ac_cv_header_time" >&6; }
6185 if test $ac_cv_header_time = yes; then
6187 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6191 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6192 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6194 cat >>confdefs.h <<_ACEOF
6195 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6196 _ACEOF
6199 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6204 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6205 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6207 cat >>confdefs.h <<_ACEOF
6208 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6209 _ACEOF
6212 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6214 else
6215 case " $LIBOBJS " in
6216 *" fileblocks.$ac_objext "* ) ;;
6217 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6219 esac
6224 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6225 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6227 cat >>confdefs.h <<_ACEOF
6228 #define HAVE_STRUCT_STAT_ST_RDEV 1
6229 _ACEOF
6232 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6238 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6239 if test "${ac_cv_struct_tm+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 #include <sys/types.h>
6245 #include <time.h>
6248 main ()
6250 struct tm tm;
6251 int *p = &tm.tm_sec;
6252 return !p;
6254 return 0;
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"; then :
6258 ac_cv_struct_tm=time.h
6259 else
6260 ac_cv_struct_tm=sys/time.h
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6265 $as_echo "$ac_cv_struct_tm" >&6; }
6266 if test $ac_cv_struct_tm = sys/time.h; then
6268 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6272 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6273 #include <$ac_cv_struct_tm>
6276 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6278 cat >>confdefs.h <<_ACEOF
6279 #define HAVE_STRUCT_TM_TM_ZONE 1
6280 _ACEOF
6285 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6287 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6289 else
6290 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6292 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6293 ac_have_decl=1
6294 else
6295 ac_have_decl=0
6298 cat >>confdefs.h <<_ACEOF
6299 #define HAVE_DECL_TZNAME $ac_have_decl
6300 _ACEOF
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6303 $as_echo_n "checking for tzname... " >&6; }
6304 if test "${ac_cv_var_tzname+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 #include <time.h>
6310 #if !HAVE_DECL_TZNAME
6311 extern char *tzname[];
6312 #endif
6315 main ()
6317 return tzname[0][0];
6319 return 0;
6321 _ACEOF
6322 if ac_fn_c_try_link "$LINENO"; then :
6323 ac_cv_var_tzname=yes
6324 else
6325 ac_cv_var_tzname=no
6327 rm -f core conftest.err conftest.$ac_objext \
6328 conftest$ac_exeext conftest.$ac_ext
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6331 $as_echo "$ac_cv_var_tzname" >&6; }
6332 if test $ac_cv_var_tzname = yes; then
6334 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6339 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6340 if test "x$ac_cv_type_off_t" = x""yes; then :
6342 else
6344 cat >>confdefs.h <<_ACEOF
6345 #define off_t long int
6346 _ACEOF
6350 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6351 if test "x$ac_cv_type_pid_t" = x""yes; then :
6353 else
6355 cat >>confdefs.h <<_ACEOF
6356 #define pid_t int
6357 _ACEOF
6361 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6362 if test "x$ac_cv_type_size_t" = x""yes; then :
6364 else
6366 cat >>confdefs.h <<_ACEOF
6367 #define size_t unsigned int
6368 _ACEOF
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6373 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6374 if test "${ac_cv_type_uid_t+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 #include <sys/types.h>
6381 _ACEOF
6382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6383 $EGREP "uid_t" >/dev/null 2>&1; then :
6384 ac_cv_type_uid_t=yes
6385 else
6386 ac_cv_type_uid_t=no
6388 rm -f conftest*
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6392 $as_echo "$ac_cv_type_uid_t" >&6; }
6393 if test $ac_cv_type_uid_t = no; then
6395 $as_echo "#define uid_t int" >>confdefs.h
6398 $as_echo "#define gid_t int" >>confdefs.h
6403 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6404 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6406 cat >>confdefs.h <<_ACEOF
6407 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6408 _ACEOF
6414 # Look for some functions
6415 for ac_func in getpagesize kqueue statfs statvfs \
6416 clone kse_create rfork_thread thr_create sa_register \
6417 getcontext makecontext setcontext sigaltstack swapcontext
6418 do :
6419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6421 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6422 cat >>confdefs.h <<_ACEOF
6423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6424 _ACEOF
6427 done
6433 for ac_header in $ac_header_list
6434 do :
6435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6436 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6439 cat >>confdefs.h <<_ACEOF
6440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6441 _ACEOF
6445 done
6454 for ac_func in getpagesize
6455 do :
6456 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6457 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6458 cat >>confdefs.h <<_ACEOF
6459 #define HAVE_GETPAGESIZE 1
6460 _ACEOF
6463 done
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6466 $as_echo_n "checking for working mmap... " >&6; }
6467 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if test "$cross_compiling" = yes; then :
6471 ac_cv_func_mmap_fixed_mapped=no
6472 else
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475 $ac_includes_default
6476 /* malloc might have been renamed as rpl_malloc. */
6477 #undef malloc
6479 /* Thanks to Mike Haertel and Jim Avera for this test.
6480 Here is a matrix of mmap possibilities:
6481 mmap private not fixed
6482 mmap private fixed at somewhere currently unmapped
6483 mmap private fixed at somewhere already mapped
6484 mmap shared not fixed
6485 mmap shared fixed at somewhere currently unmapped
6486 mmap shared fixed at somewhere already mapped
6487 For private mappings, we should verify that changes cannot be read()
6488 back from the file, nor mmap's back from the file at a different
6489 address. (There have been systems where private was not correctly
6490 implemented like the infamous i386 svr4.0, and systems where the
6491 VM page cache was not coherent with the file system buffer cache
6492 like early versions of FreeBSD and possibly contemporary NetBSD.)
6493 For shared mappings, we should conversely verify that changes get
6494 propagated back to all the places they're supposed to be.
6496 Grep wants private fixed already mapped.
6497 The main things grep needs to know about mmap are:
6498 * does it exist and is it safe to write into the mmap'd area
6499 * how to use it (BSD variants) */
6501 #include <fcntl.h>
6502 #include <sys/mman.h>
6504 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6505 char *malloc ();
6506 #endif
6508 /* This mess was copied from the GNU getpagesize.h. */
6509 #ifndef HAVE_GETPAGESIZE
6510 # ifdef _SC_PAGESIZE
6511 # define getpagesize() sysconf(_SC_PAGESIZE)
6512 # else /* no _SC_PAGESIZE */
6513 # ifdef HAVE_SYS_PARAM_H
6514 # include <sys/param.h>
6515 # ifdef EXEC_PAGESIZE
6516 # define getpagesize() EXEC_PAGESIZE
6517 # else /* no EXEC_PAGESIZE */
6518 # ifdef NBPG
6519 # define getpagesize() NBPG * CLSIZE
6520 # ifndef CLSIZE
6521 # define CLSIZE 1
6522 # endif /* no CLSIZE */
6523 # else /* no NBPG */
6524 # ifdef NBPC
6525 # define getpagesize() NBPC
6526 # else /* no NBPC */
6527 # ifdef PAGESIZE
6528 # define getpagesize() PAGESIZE
6529 # endif /* PAGESIZE */
6530 # endif /* no NBPC */
6531 # endif /* no NBPG */
6532 # endif /* no EXEC_PAGESIZE */
6533 # else /* no HAVE_SYS_PARAM_H */
6534 # define getpagesize() 8192 /* punt totally */
6535 # endif /* no HAVE_SYS_PARAM_H */
6536 # endif /* no _SC_PAGESIZE */
6538 #endif /* no HAVE_GETPAGESIZE */
6541 main ()
6543 char *data, *data2, *data3;
6544 const char *cdata2;
6545 int i, pagesize;
6546 int fd, fd2;
6548 pagesize = getpagesize ();
6550 /* First, make a file with some known garbage in it. */
6551 data = (char *) malloc (pagesize);
6552 if (!data)
6553 return 1;
6554 for (i = 0; i < pagesize; ++i)
6555 *(data + i) = rand ();
6556 umask (0);
6557 fd = creat ("conftest.mmap", 0600);
6558 if (fd < 0)
6559 return 2;
6560 if (write (fd, data, pagesize) != pagesize)
6561 return 3;
6562 close (fd);
6564 /* Next, check that the tail of a page is zero-filled. File must have
6565 non-zero length, otherwise we risk SIGBUS for entire page. */
6566 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6567 if (fd2 < 0)
6568 return 4;
6569 cdata2 = "";
6570 if (write (fd2, cdata2, 1) != 1)
6571 return 5;
6572 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6573 if (data2 == MAP_FAILED)
6574 return 6;
6575 for (i = 0; i < pagesize; ++i)
6576 if (*(data2 + i))
6577 return 7;
6578 close (fd2);
6579 if (munmap (data2, pagesize))
6580 return 8;
6582 /* Next, try to mmap the file at a fixed address which already has
6583 something else allocated at it. If we can, also make sure that
6584 we see the same garbage. */
6585 fd = open ("conftest.mmap", O_RDWR);
6586 if (fd < 0)
6587 return 9;
6588 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6589 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6590 return 10;
6591 for (i = 0; i < pagesize; ++i)
6592 if (*(data + i) != *(data2 + i))
6593 return 11;
6595 /* Finally, make sure that changes to the mapped area do not
6596 percolate back to the file as seen by read(). (This is a bug on
6597 some variants of i386 svr4.0.) */
6598 for (i = 0; i < pagesize; ++i)
6599 *(data2 + i) = *(data2 + i) + 1;
6600 data3 = (char *) malloc (pagesize);
6601 if (!data3)
6602 return 12;
6603 if (read (fd, data3, pagesize) != pagesize)
6604 return 13;
6605 for (i = 0; i < pagesize; ++i)
6606 if (*(data + i) != *(data3 + i))
6607 return 14;
6608 close (fd);
6609 return 0;
6611 _ACEOF
6612 if ac_fn_c_try_run "$LINENO"; then :
6613 ac_cv_func_mmap_fixed_mapped=yes
6614 else
6615 ac_cv_func_mmap_fixed_mapped=no
6617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6618 conftest.$ac_objext conftest.beam conftest.$ac_ext
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6623 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6624 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6626 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6629 rm -f conftest.mmap conftest.txt
6634 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6635 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6636 aros_config_ldflags=""
6638 aros_shared_default=yes
6640 aros_shared_cflags="-fPIC"
6641 aros_shared_aflags=""
6642 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6643 aros_kernel_ldflags="-Wl,-rpath,./lib"
6645 aros_target_ar_flags="cr"
6646 aros_target_nm_flags="-C -ul"
6647 aros_target_strip_flags="--strip-unneeded -R.comment"
6649 aros_compiler_libs=
6650 aros_arch_libs=
6652 aros_target_genmap="-Wl,-Map -Xlinker"
6654 # Native flavour stuff
6655 aros_serial_debug="0"
6657 # Palm native flavour stuff
6658 aros_palm_debug_hack="0"
6660 # Unix flavour stuff
6661 aros_nesting_supervisor="0"
6663 # Collect-aros stuff: "-ius" to ignore undefined symbols
6664 ignore_undefined_symbols=""
6666 # Check for X11 by default
6667 need_x11="auto"
6669 #-----------------------------------------------------------------------------
6672 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6673 # it switched on by default, and we use the host compiler, so it compiles AROS
6674 # code with this enabled resulting in link failures as we don't have support
6675 # for it.
6677 # We use two methods to disable it. For the host compiler (used to compile
6678 # some hosted modules), we test to see if the compiler supports stack
6679 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6680 # work on all platforms.
6682 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6683 # (this is done unconditionally, as it should have no effect on compilers
6684 # without the stack protection feature). This may be specific to the way that
6685 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6686 # strong enough to disable it in a generic way though, so we'll live with it
6687 # until another vendor ships GCC with it enabled in a different way, and deal
6688 # with it then.
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6692 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6693 save_cflags="$CFLAGS"
6694 CFLAGS="$CFLAGS -fno-stack-protector"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6699 main ()
6703 return 0;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 use_no_stack_protector="yes"
6708 else
6709 use_no_stack_protector="no"
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6713 $as_echo "$use_no_stack_protector" >&6; }
6714 if test "x-$use_no_stack_protector" = "x-yes" ; then
6715 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6717 CFLAGS="$save_cflags"
6719 #-----------------------------------------------------------------------------
6721 # Disable pointer-signedness warnings if the compiler recognises the option
6722 # (this only works for the host compiler at the moment)
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6725 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6726 save_cflags="$CFLAGS"
6727 CFLAGS="$CFLAGS -Wno-pointer-sign"
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6732 main ()
6736 return 0;
6738 _ACEOF
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740 use_no_sign_warning="yes"
6741 else
6742 use_no_sign_warning="no"
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6746 $as_echo "$use_no_sign_warning" >&6; }
6747 if test "x-$use_no_sign_warning" = "x-yes" ; then
6748 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6750 CFLAGS="$save_cflags"
6752 #-----------------------------------------------------------------------------
6754 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6757 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6758 save_cflags="$CFLAGS"
6759 CFLAGS="$CFLAGS -fgnu89-inline"
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6764 main ()
6768 return 0;
6770 _ACEOF
6771 if ac_fn_c_try_compile "$LINENO"; then :
6772 use_gnu89_inline="yes"
6773 else
6774 use_gnu89_inline="no"
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6778 $as_echo "$use_gnu89_inline" >&6; }
6779 if test "x-$use_gnu89_inline" = "x-yes" ; then
6780 gnu89_inline="-fgnu89-inline"
6782 CFLAGS="$save_cflags"
6784 #-----------------------------------------------------------------------------
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6787 $as_echo_n "checking for type of build... " >&6; }
6788 # Check whether --enable-build_type was given.
6789 if test "${enable_build_type+set}" = set; then :
6790 enableval=$enable_build_type; build_type=$enableval
6791 else
6792 build_type="personal"
6796 if test "$build_type" = "nightly"; then
6797 build_type_string="NIGHTLY"
6798 elif test "$build_type" = "snapshot"; then
6799 build_type_string="SNAPSHOT"
6800 elif test "$build_type" = "milestone"; then
6801 build_type_string="MILESTONE"
6802 elif test "$build_type" = "release"; then
6803 build_type_string="RELEASE"
6804 else
6805 build_type_string="PERSONAL"
6806 build_type="personal"
6809 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6812 $as_echo "$build_type" >&6; }
6814 #-----------------------------------------------------------------------------
6815 all_debug_types="messages stack modules mungwall symbols"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6818 $as_echo_n "checking which debug types to enable... " >&6; }
6819 # Check whether --enable-debug was given.
6820 if test "${enable_debug+set}" = set; then :
6821 enableval=$enable_debug; debug="$enableval"
6822 else
6823 debug=""
6827 if test "$debug" = "" -o "$debug" = "no"; then
6828 debug="none"
6829 elif test "$debug" = "yes"; then
6830 debug="all"
6833 if test "$debug" = "all" ; then
6834 debug="messages stack modules symbols"
6835 for d in $all_debug_types; do
6836 export aros_${d}_debug="1"
6837 done
6838 else
6839 for d in $all_debug_types; do
6840 export aros_${d}_debug="0"
6841 done
6844 if test "$debug" != "none"; then
6845 debug=`echo $debug | sed s/,/\ /g`
6846 for d in $debug; do
6847 found="0"
6848 for d2 in $all_debug_types; do
6849 if test "$d2" = "$d"; then
6850 found="1"
6851 break
6853 done
6854 if test "$found" = "0"; then
6855 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6857 export aros_${d}_debug="1"
6858 done
6859 aros_debug="yes"
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6862 $as_echo "$debug" >&6; }
6864 if test "$aros_messages_debug" = "1"; then
6865 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6866 else
6867 aros_messages_debug=""
6869 if test "$aros_symbols_debug" = "1"; then
6870 aros_symbols_debug="-g"
6871 else
6872 aros_symbols_debug=""
6875 # These are the flags to pass when compiling debugged programs
6876 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6877 aros_debug_aflags=""
6878 aros_debug_ldflags="$aros_symbols_debug"
6880 aros_crosstools="no"
6882 #-----------------------------------------------------------------------------
6883 # Checking if we should build crosstools..
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6885 $as_echo_n "checking whether to build crosstools... " >&6; }
6886 # Check whether --enable-crosstools was given.
6887 if test "${enable_crosstools+set}" = set; then :
6888 enableval=$enable_crosstools; crosstools="$enableval"
6889 else
6890 crosstools="no"
6893 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6895 $as_echo "yes" >&6; }
6896 aros_crosstools="yes"
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6902 #-----------------------------------------------------------------------------
6903 # Checking for distcc and ccache.
6905 # Always apply the transforms in this particular order. Basically you should
6906 # always run 'ccache distcc compiler' in that order for the best performance.
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6909 $as_echo_n "checking whether to enable distcc... " >&6; }
6910 # Check whether --enable-distcc was given.
6911 if test "${enable_distcc+set}" = set; then :
6912 enableval=$enable_distcc; distcc="$enableval"
6913 else
6914 distcc="no"
6917 if test "$distcc" != "" -a "$distcc" != "no"; then
6918 # AC_CHECK_PROG will print out the result in this case
6919 # Extract the first word of "distcc", so it can be a program name with args.
6920 set dummy distcc; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_path_DISTCC+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 case $DISTCC in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6942 done
6943 done
6944 IFS=$as_save_IFS
6946 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6948 esac
6950 DISTCC=$ac_cv_path_DISTCC
6951 if test -n "$DISTCC"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6953 $as_echo "$DISTCC" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6966 $as_echo_n "checking whether to enable ccache... " >&6; }
6967 # Check whether --enable-ccache was given.
6968 if test "${enable_ccache+set}" = set; then :
6969 enableval=$enable_ccache; ccache="$enableval"
6970 else
6971 ccache="no"
6974 if test "$ccache" != "" -a "$ccache" != "no"; then
6975 # AC_CHECK_PROG will print out the result in this case
6976 # Extract the first word of "ccache", so it can be a program name with args.
6977 set dummy ccache; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$CCACHE"; then
6984 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6985 else
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_prog_CCACHE="ccache"
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
7003 CCACHE=$ac_cv_prog_CCACHE
7004 if test -n "$CCACHE"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7006 $as_echo "$CCACHE" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7018 #-----------------------------------------------------------------------------
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7020 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7022 # Check whether --with-gcc-version was given.
7023 if test "${with_gcc_version+set}" = set; then :
7024 withval=$with_gcc_version; target_tool_version="$withval"
7025 else
7026 target_tool_version="default"
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7030 $as_echo "$target_tool_version" >&6; }
7032 #-----------------------------------------------------------------------------
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7034 $as_echo_n "checking what optimization flags to use... " >&6; }
7036 # Check whether --with-optimization was given.
7037 if test "${with_optimization+set}" = set; then :
7038 withval=$with_optimization; optimization="$withval"
7039 else
7040 optimization="unknown"
7043 if test "$optimization" = "unknown"; then
7044 if test "$debug" != "none"; then
7045 optimization="-O0"
7046 else
7047 optimization="-O2"
7050 aros_config_cflags="$aros_config_cflags $optimization"
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7052 $as_echo "$optimization" >&6; }
7054 #-----------------------------------------------------------------------------
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7056 $as_echo_n "checking what paranoia flags to use... " >&6; }
7058 # Check whether --with-paranoia was given.
7059 if test "${with_paranoia+set}" = set; then :
7060 withval=$with_paranoia; paranoia_flags="$withval"
7061 else
7062 paranoia_flags="default"
7065 if test "$paranoia_flags" = "default"; then
7066 paranoia_flags=""
7067 else if test "$paranoia_flags" = "yes"; then
7068 paranoia_flags="-Wall -Werror"
7069 fi fi
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7071 $as_echo "$paranoia_flags" >&6; }
7072 aros_paranoia_cflags="$paranoia_flags"
7074 #-----------------------------------------------------------------------------
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7076 $as_echo_n "checking what target variant to enable... " >&6; }
7077 # Check whether --enable-target_variant was given.
7078 if test "${enable_target_variant+set}" = set; then :
7079 enableval=$enable_target_variant; target_variant=$enableval
7080 else
7081 target_variant=""
7084 if test "$target_variant" = ""; then
7085 aros_target_variant=""
7086 aros_target_suffix=""
7087 enableval="none"
7088 else
7089 aros_target_variant="$target_variant"
7090 aros_target_suffix="-$target_variant"
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7093 $as_echo "$enableval" >&6; }
7095 #-----------------------------------------------------------------------------
7096 # Target-specific defaults. You can override then on a per-target basis.
7098 # Bootloader name. Currently used by PC target.
7099 target_bootloader="none"
7101 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7102 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7103 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7104 target_tool_prefix=${target_cpu}-elf-
7106 #-----------------------------------------------------------------------------
7107 # Additional options for some specific targets
7109 case "$aros_target_variant" in
7110 ios)
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7112 $as_echo_n "checking XCode path... " >&6; }
7114 # Check whether --with-xcode was given.
7115 if test "${with_xcode+set}" = set; then :
7116 withval=$with_xcode; aros_xcode_path="$withval"
7117 else
7118 aros_xcode_path="/Developer"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7122 $as_echo "$aros_xcode_path" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7125 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7127 # Check whether --with-ios-version was given.
7128 if test "${with_ios_version+set}" = set; then :
7129 withval=$with_ios_version; aros_ios_version="$withval"
7130 else
7131 aros_ios_version="3.0"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7135 $as_echo "$aros_ios_version" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7138 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7140 # Check whether --with-ios-sdk was given.
7141 if test "${with_ios_sdk+set}" = set; then :
7142 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7143 else
7144 aros_ios_sdk="4.1"
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7148 $as_echo "$aros_ios_sdk" >&6; }
7152 "android")
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7154 $as_echo_n "checking Android SDK path... " >&6; }
7156 # Check whether --with-sdk was given.
7157 if test "${with_sdk+set}" = set; then :
7158 withval=$with_sdk; aros_android_sdk="$withval"
7159 else
7160 aros_android_sdk=$default_android_sdk
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7164 $as_echo "$aros_android_sdk" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7167 $as_echo_n "checking Android NDK path... " >&6; }
7169 # Check whether --with-ndk was given.
7170 if test "${with_ndk+set}" = set; then :
7171 withval=$with_ndk; aros_android_ndk="$withval"
7172 else
7173 aros_android_ndk="$default_android_ndk"
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7177 $as_echo "$aros_android_ndk" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7180 $as_echo_n "checking what Android version to use... " >&6; }
7182 # Check whether --with-android-version was given.
7183 if test "${with_android_version+set}" = set; then :
7184 withval=$with_android_version; aros_android_version="$withval"
7185 else
7186 aros_android_version="2.2"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7190 $as_echo "$aros_android_version" >&6; }
7192 export PATH="$aros_android_sdk/tools:$PATH"
7193 # Extract the first word of "$android_tool", so it can be a program name with args.
7194 set dummy $android_tool; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if test "${ac_cv_path_android_tool+set}" = set; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 case $android_tool in
7201 [\\/]* | ?:[\\/]*)
7202 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7216 done
7217 done
7218 IFS=$as_save_IFS
7221 esac
7223 android_tool=$ac_cv_path_android_tool
7224 if test -n "$android_tool"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7226 $as_echo "$android_tool" >&6; }
7227 else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7233 if test "$android_tool" = ""; then
7234 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7237 if test $host_os = "mingw32"; then
7238 android_tool="cmd //c $android_tool"
7242 esac
7244 #-----------------------------------------------------------------------------
7245 # This is the target configuration switch.
7246 case "$target_os" in
7247 linux*)
7248 aros_target_arch="linux"
7249 aros_target_family="unix"
7250 case "$target_cpu" in
7251 *m68k*)
7252 aros_target_cpu="m68k"
7253 aros_object_format="m68kelf"
7254 aros_flavour="emulcompat"
7255 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7256 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7257 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7258 gcc_target_cpu="mc68000"
7260 *i?86*)
7261 aros_target_cpu="i386"
7262 aros_object_format="elf_i386"
7263 aros_flavour="emulation"
7264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7265 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7266 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7267 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7268 aros_config_ldflags="-m32 -march=i486"
7269 aros_kernel_ldflags="-melf_i386"
7270 aros_default_wbdepth=8
7271 gcc_target_cpu="i386"
7272 pci_hidd_target="hidd-pci-linux"
7274 *x86_64*)
7275 aros_target_cpu="x86_64"
7276 aros_object_format="elf_x86_64"
7277 aros_flavour="emulation"
7278 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7279 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7280 aros_default_wbdepth=8
7281 pci_hidd_target="hidd-pci-linux"
7283 *powerpc*)
7284 aros_target_cpu="ppc"
7285 aros_object_format="elf32ppc"
7286 aros_flavour="emulation"
7287 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7288 aros_default_wbdepth=8
7289 gcc_target_cpu="ppc"
7291 # TODO
7292 # Same as powerpc, but I need this for the nightly build to work again.
7293 # Actually, the nightly should be made working with powerpc target.
7294 # That just was too much work for the moment, another week or two.
7295 *ppc*)
7296 aros_target_cpu="ppc"
7297 aros_object_format="elf32ppc"
7298 aros_flavour="emulation"
7299 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7300 aros_default_wbdepth=8
7301 gcc_target_cpu="ppc"
7303 *arm*)
7304 aros_target_cpu="arm"
7305 aros_object_format="armelf_linux_eabi"
7306 aros_flavour="emulation"
7307 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7308 gcc_target_cpu="arm"
7309 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7310 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7311 aros_arch_libs="-laeabi"
7314 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7316 esac
7317 case "$aros_target_variant" in
7318 android)
7319 case "$aros_android_version" in
7320 2.2)
7321 aros_android_level=android-8
7324 aros_android_level=android-9
7326 esac
7327 aros_default_wbwidth=320
7328 aros_default_wbheight=480
7329 use_aros_gcc="yes"
7330 if test "$aros_android_ndk" = ""; then
7331 aros_kernel_cflags="-mandroid"
7332 aros_kernel_ldflags="-mandroid"
7333 CFLAGS="-mandroid"
7334 else
7335 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7336 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7337 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7338 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7339 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7340 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7342 need_x11=no
7343 target_tool_prefix="arm-linux-androideabi-"
7345 esac
7349 aros_target_arch="pc"
7350 aros_shared_default="no"
7351 target_bootloader="grub2"
7352 case "$target_cpu" in
7353 *i?86*)
7354 aros_target_cpu="i386"
7357 if test "$aros_object_format" = "" ; then
7358 aros_object_format="elf_i386"
7360 aros_flavour="standalone"
7361 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7362 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7363 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7364 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7365 aros_config_ldflags="-m32 -march=i486"
7366 aros_kernel_ldflags="-melf_i386"
7367 aros_default_wbwidth=640
7368 aros_default_wbheight=480
7369 gcc_target_cpu="i386"
7371 *x86_64*)
7372 aros_target_cpu="x86_64"
7373 aros_serial_debug=1
7374 if test "$aros_object_format" = "" ; then
7375 aros_object_format="elf_x86_64"
7377 aros_flavour="standalone"
7378 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7379 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7380 aros_kernel_ldflags=""
7381 aros_default_wbwidth=640
7382 aros_default_wbheight=480
7385 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7387 esac
7390 prep)
7391 aros_target_arch="prep"
7392 aros_shared_default="no"
7393 aros_target_cpu="ppc"
7394 aros_object_format="elf32ppc"
7395 aros_flavour="ppcnative"
7396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7397 aros_kernel_ldflags=""
7398 aros_default_wbwidth=640
7399 aros_default_wbheight=480
7400 gcc_target_cpu="ppc"
7403 freebsd*)
7404 aros_target_arch="freebsd"
7405 aros_target_family="unix"
7406 aros_target_cpu="i386"
7407 aros_flavour="emulation"
7408 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7409 gcc_target_cpu="i386"
7411 aros_target_strip_flags="-x"
7414 darwin*)
7415 aros_target_arch="darwin"
7416 aros_target_family="unix"
7417 aros_flavour="emulation"
7418 case "$target_cpu" in
7419 *i?86*)
7420 aros_ios_platform="iPhoneSimulator"
7421 aros_target_cpu="i386"
7422 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7423 aros_kernel_ldflags=""
7424 aros_macosx_version="10.4"
7425 aros_default_wbdepth=8
7426 gcc_target_cpu="i386"
7427 aros_object_format="elf_i386"
7428 aros_target_strip_flags="-x"
7429 target_tool_prefix="i686-apple-darwin10-"
7430 target_tool_flags="-m32"
7432 *x86_64*)
7433 aros_target_cpu="x86_64"
7434 aros_object_format="elf_x86_64"
7435 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7436 aros_macosx_version="10.6"
7437 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7438 aros_kernel_cflags="-m64"
7439 aros_kernel_ldflags="-m64"
7440 aros_target_cflags="-mcmodel=large"
7441 aros_default_wbdepth=8
7442 aros_kernel_ld="ld"
7443 target_tool_prefix="i686-apple-darwin10-"
7445 *ppc*)
7446 aros_target_cpu="ppc"
7447 aros_object_format="elf32ppc"
7448 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7449 aros_kernel_ldflags=""
7450 aros_macosx_version="10.0"
7451 aros_default_wbdepth=8
7452 gcc_target_cpu="ppc"
7453 aros_kernel_ld="ld -arch ppc"
7454 target_tool_prefix="powerpc-apple-darwin10-"
7456 *arm*)
7457 aros_ios_platform="iPhoneOS"
7458 aros_target_cpu="arm"
7459 aros_object_format="armelf_linux_eabi"
7460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7461 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7462 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7463 aros_arch_libs="-laeabi"
7464 aros_default_wbdepth=8
7465 gcc_target_cpu="arm"
7466 target_tool_prefix="arm-apple-darwin10-"
7467 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7470 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7472 esac
7473 case "$aros_target_variant" in
7474 ios)
7475 aros_default_wbwidth=320
7476 aros_default_wbheight=480
7477 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7478 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
7479 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7480 need_x11=no
7481 # This is here because it may depend on iOS or SDK version
7482 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7483 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7484 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7487 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7488 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7490 esac
7493 dragonfly*)
7494 aros_target_arch="dragonfly"
7495 aros_target_family="unix"
7496 aros_flavour="emulation"
7497 case "$target_cpu" in
7498 *i?86*)
7499 aros_target_cpu="i386"
7500 aros_object_format="elf_i386"
7501 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7503 *x86_64*)
7504 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7505 aros_target_cpu="x86_64"
7506 aros_object_format="elf_x86_64"
7507 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7510 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7512 esac
7515 netbsd*)
7516 aros_target_arch="netbsd"
7517 aros_target_family="unix"
7518 case "$target_cpu" in
7519 *m68k*)
7520 aros_target_cpu="m68k"
7521 aros_object_format="m68kelf"
7522 aros_flavour="emulcompat"
7523 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7524 gcc_target_cpu="mc68000"
7526 *i?86*)
7527 aros_target_cpu="i386"
7528 aros_object_format="elf_i386"
7529 aros_flavour="emulation"
7530 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7531 aros_default_wbdepth=8
7532 gcc_target_cpu="i386"
7535 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7537 esac
7538 aros_target_genmap="-Wl,-M -Xlinker >"
7539 aros_flavour="emulation"
7540 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7543 openbsd*)
7544 aros_target_arch="openbsd"
7545 aros_target_family="unix"
7546 case "$target_cpu" in
7547 *i?86*)
7548 aros_target_cpu="i386"
7549 aros_object_format="elf_i386"
7550 aros_flavour="emulation"
7551 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7552 gcc_target_cpu="i386"
7555 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7557 esac
7558 aros_target_genmap="-Wl,-M -Xlinker >"
7559 aros_target_nm_flags="-u"
7560 aros_flavour="emulation"
7563 solaris*)
7564 aros_target_arch="solaris"
7565 aros_target_family="unix"
7566 case "$target_cpu" in
7567 *i?86*)
7568 aros_target_cpu="i386"
7569 aros_object_format="elf_i386"
7570 aros_flavour="emulation"
7571 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7572 aros_default_wbdepth=8
7573 gcc_target_cpu="i386"
7575 *sparc*)
7576 aros_target_cpu="sparc"
7577 aros_object_format="elf_sparc"
7578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7579 gcc_target_cpu="sparc"
7582 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7584 esac
7585 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7586 aros_flavour="emulation"
7589 morphos*)
7590 aros_target_arch="morphos"
7591 aros_shared_default="no"
7592 aros_target_cpu="ppc"
7593 aros_object_format="elf_ppc"
7594 aros_flavour="nativecompat"
7595 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7596 gcc_target_cpu="ppc"
7599 sam440)
7600 aros_target_arch="sam440"
7601 aros_shared_default="no"
7602 aros_target_cpu="ppc"
7603 aros_object_format="elf32ppc"
7604 aros_flavour="ppcnative"
7605 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7606 aros_kernel_ldflags=""
7607 aros_default_wbwidth=1024
7608 aros_default_wbheight=768
7609 aros_default_wbdepth=24
7610 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7611 gcc_target_cpu="powerpc"
7614 efika)
7615 aros_target_arch="efika"
7616 aros_shared_default="no"
7617 aros_target_cpu="arm"
7618 aros_object_format="armelf_linux_eabi"
7619 aros_flavour="standalone"
7620 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7621 aros_kernel_ldflags=""
7622 aros_default_wbwidth=1024
7623 aros_default_wbheight=600
7624 aros_arch_libs="-laeabi"
7625 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7626 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7629 chrp)
7630 aros_target_arch="chrp"
7631 aros_shared_default="no"
7632 aros_target_cpu="ppc"
7633 aros_object_format="elf32ppc"
7634 aros_flavour="ppcnative"
7635 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7636 aros_kernel_ldflags=""
7637 aros_default_wbwidth=640
7638 aros_default_wbheight=480
7639 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7640 gcc_target_cpu="powerpc"
7641 case "$aros_target_variant" in
7642 efika)
7643 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7645 esac
7648 amiga*)
7649 aros_target_arch="amiga"
7650 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7651 aros_shared_default="no"
7653 case "$target_cpu" in
7654 *m68k*)
7655 aros_enable_mmu=no
7656 aros_target_cpu="m68k"
7657 aros_object_format="m68kelf"
7658 aros_flavour="standcompat"
7659 gcc_target_cpu="m68000"
7660 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS"
7661 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7662 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
7663 aros_debug_cflags="$aros_debug_cflags -Wall -Wno-volatile-register-var"
7664 target_tool_prefix="m68k-elf-"
7665 # Needed to get the correct multilib
7666 aros_config_ldflags="-${gcc_target_cpu}"
7667 aros_shared_ldflags="-${gcc_target_cpu}"
7668 aros_kernel_ldflags="-${gcc_target_cpu}"
7669 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7670 aros_target_strip_flags="-R.comment --strip-debug"
7671 aros_default_wbwidth=640
7672 aros_default_wbheight=256
7673 aros_default_wbdepth=2
7675 *ppc*)
7676 aros_cpu="ppc"
7677 aros_flavour="native"
7678 gcc_target_cpu="ppc"
7681 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7683 esac
7686 mingw*)
7687 aros_target_arch="mingw32"
7688 aros_shared_default="no"
7689 aros_flavour="emulation"
7690 aros_shared_cflags=""
7691 need_dlopen="no"
7692 rescomp="windres"
7693 case "$target_cpu" in
7694 *i?86*)
7695 aros_target_cpu="i386"
7696 aros_object_format="elf_i386"
7697 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7698 aros_default_wbdepth=8
7699 gcc_target_cpu="i386"
7701 aros_target_as="i386-aros-as"
7702 aros_target_ar="i386-aros-ar"
7703 aros_target_ranlib="i386-aros-ranlib"
7704 aros_target_nm="i386-aros-nm"
7705 aros_target_strip="i386-aros-strip"
7706 aros_target_objcopy="i386-aros-objcopy"
7707 aros_target_objdump="i386-aros-objdump"
7709 target_tool_prefix="i386-mingw32-"
7711 *x86_64*)
7712 aros_target_cpu="x86_64"
7713 aros_object_format="elf_x86_64"
7714 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7715 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7716 aros_default_wbdepth=8
7717 target_tool_prefix="x86_64-w64-mingw32-"
7719 *arm*)
7720 aros_target_cpu="arm"
7721 aros_object_format="armelf_linux_eabi"
7722 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7723 aros_arch_libs="-laeabi"
7724 aros_default_wbdepth=8
7725 gcc_target_cpu="arm"
7726 target_tool_prefix="arm-mingw32ce-"
7727 aros_default_wbwidth=160
7728 aros_default_wbheight=160
7731 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7733 esac
7734 if test $host_os = "cygwin"; then
7735 aros_kernel_cflags="-mno-cygwin"
7738 pp*)
7739 aros_target_arch="pp"
7740 aros_shared_default="no"
7741 case "$target_cpu" in
7742 *m68k*)
7743 aros_target_cpu="m68k"
7744 aros_object_format="m68kelf"
7745 aros_flavour="palmnative"
7746 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7747 aros_default_wbwidth=160
7748 aros_default_wbheight=160
7749 aros_default_wbdepth=1
7750 aros_target_ar_flags="cru"
7751 aros_compiler_libs="-lgcc1"
7752 aros_shared_default=no
7753 aros_shared_cflags="-fpic"
7754 aros_shared_aflags=""
7755 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7756 aros_kernel_ldflags="-Wl,-rpath,./lib"
7757 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7758 aros_debug_aflags=""
7759 aros_debug_ldflags="$aros_symbols_debug"
7760 aros_mungwall_debug="0"
7761 aros_modules_debug="0"
7762 gcc_target_cpu="mc68000"
7763 ignore_undefined_symbols="-ius"
7766 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7768 esac
7771 mac*)
7772 aros_target_arch="mac"
7773 aros_shared_default="no"
7774 case "$target_cpu" in
7775 *m68k*)
7776 aros_target_cpu="m68k"
7777 aros_object_format="m68kelf"
7778 aros_flavour="mac68knative"
7779 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7780 aros_default_wbwidth=512
7781 aros_default_wbheight=384
7782 aros_default_wbdepth=8
7783 aros_target_ar_flags="cru"
7784 aros_compiler_libs="-lgcc1"
7785 aros_shared_default=no
7786 aros_shared_cflags="-fpic"
7787 aros_shared_aflags=""
7788 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7789 aros_kernel_ldflags="-Wl,-rpath,./lib"
7790 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7791 aros_debug_aflags=""
7792 aros_debug_ldflags="$aros_symbols_debug"
7793 aros_mungwall_debug="0"
7794 aros_modules_debug="0"
7795 gcc_target_cpu="mc68000"
7796 ignore_undefined_symbols="-ius"
7799 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7801 esac
7805 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7807 esac
7809 #-----------------------------------------------------------------------------
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7811 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7813 # Check whether --with-aros-gcc was given.
7814 if test "${with_aros_gcc+set}" = set; then :
7815 withval=$with_aros_gcc; aros_gcc_version="$withval"
7816 else
7817 aros_gcc_version="$use_aros_gcc"
7820 case "$aros_gcc_version" in
7821 yes)
7822 aros_gcc_version="default"
7825 aros_gcc_version="none"
7827 esac
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7829 $as_echo "$aros_gcc_version" >&6; }
7831 if test "$aros_gcc_version" != "none"; then
7832 if test "$aros_gcc_version" != "default"; then
7833 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7834 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7835 else
7836 aros_target_cc="$aros_target_cpu-aros-gcc"
7837 aros_target_cxx="$aros_target_cpu-aros-g++"
7840 aros_target_ld="$aros_target_cpu-aros-ld"
7841 aros_target_as="$aros_target_cpu-aros-as"
7842 aros_target_ar="$aros_target_cpu-aros-ar"
7843 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7844 aros_target_nm="$aros_target_cpu-aros-nm"
7845 aros_target_strip="$aros_target_cpu-aros-strip"
7846 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7847 aros_target_objdump="$aros_target_cpu-aros-objdump"
7850 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7851 # Since we override specs, we may need to put these defines there
7852 if test "$gcc_target_cpu" != ""; then
7853 gcc_target_cpu="-D__${gcc_target_cpu}__"
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7857 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7859 # Check whether --with-portssources was given.
7860 if test "${with_portssources+set}" = set; then :
7861 withval=$with_portssources; with_portssrcdir=$withval
7862 else
7863 with_portssrcdir="default"
7866 if test "$with_portssrcdir" = "default"; then
7867 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7868 else
7869 AROS_PORTSSRCDIR="$with_portssrcdir"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7872 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7875 $as_echo_n "checking which bootloader to use... " >&6; }
7877 # Check whether --with-bootloader was given.
7878 if test "${with_bootloader+set}" = set; then :
7879 withval=$with_bootloader; target_bootloader=$withval
7880 else
7881 target_bootloader=$target_bootloader
7884 if test "$target_bootloader" = "none"; then
7885 aros_target_bootloader=""
7886 else
7887 aros_target_bootloader="$target_bootloader"
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7890 $as_echo "$target_bootloader" >&6; }
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7893 $as_echo_n "checking which icon-set to use... " >&6; }
7895 # Check whether --with-iconset was given.
7896 if test "${with_iconset+set}" = set; then :
7897 withval=$with_iconset; target_iconset=$withval
7898 else
7899 target_iconset="default"
7902 if test "$target_iconset" = "default"; then
7903 aros_target_iconset="Gorilla"
7904 target_iconset="default (Gorilla)"
7905 else
7906 aros_target_iconset="$target_iconset"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7909 $as_echo "$target_iconset" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7912 $as_echo_n "checking which GUI Theme to use... " >&6; }
7914 # Check whether --with-theme was given.
7915 if test "${with_theme+set}" = set; then :
7916 withval=$with_theme; target_guitheme=$withval
7917 else
7918 target_guitheme="default"
7921 if test "$target_guitheme" = "default"; then
7922 aros_target_guitheme="Ice"
7923 else
7924 aros_target_guitheme="$target_guitheme"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7927 $as_echo "$aros_target_guitheme" >&6; }
7929 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7930 # for target code)
7931 cross_compiling=no
7932 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7933 cross_compiling=yes
7936 if test "$aros_host_cpu" == "x86_64" ; then
7937 if test "$aros_target_cpu" == "i386" ; then
7938 if test "$aros_target_arch" != "mingw32"; then
7939 cross_compiling=no
7944 if test "$aros_host_arch" == "darwin" ; then
7945 if test "$aros_target_arch" != "darwin" ; then
7946 cross_compiling=yes
7950 # Set prefix for target compiler etc. if we're cross-compiling
7951 # (should possibly be earlier but needs to be after AC_PROG_CC)
7952 if test "$cross_compiling" = "yes" ; then
7953 CC=${target_tool_prefix}gcc
7954 CPP=${target_tool_prefix}cpp
7955 if test "$target_tool_version" != "default"; then
7956 CC="$CC-$target_tool_version"
7957 CPP="$CC-$target_tool_version"
7959 # Extract the first word of "$CC", so it can be a program name with args.
7960 set dummy $CC; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_path_CC+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 case $CC in
7967 [\\/]* | ?:[\\/]*)
7968 ac_cv_path_CC="$CC" # Let the user override the test with a path.
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7987 esac
7989 CC=$ac_cv_path_CC
7990 if test -n "$CC"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7992 $as_echo "$CC" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7999 if test "$CC" = ""; then
8000 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8003 CC="$CC $target_tool_flags"
8005 #-----------------------------------------------------------------------------
8007 # Disable pointer-signedness warnings if the compiler recognises the option
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8010 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8011 save_cflags="$CFLAGS"
8012 CFLAGS="$CFLAGS -Wno-pointer-sign"
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8017 main ()
8021 return 0;
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 use_no_sign_warning="yes"
8026 else
8027 use_no_sign_warning="no"
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8031 $as_echo "$use_no_sign_warning" >&6; }
8032 if test "x-$use_no_sign_warning" = "x-yes" ; then
8033 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8035 CFLAGS="$save_cflags"
8037 #-----------------------------------------------------------------------------
8039 # Find all the tools we need to compile. This could be cross-compiling
8040 # though! If that is the case we use the GNU form of the target and
8041 # simply add this to the front of the binary name. This is rather simple,
8042 # but it should work under most circumstances.
8044 # The default tools are to use the same as the host, but only if the
8045 # host and target CPU are the same. With GCC this is normally enough.
8048 aros_cc_pre=""
8049 aros_shared_ld="$aros_host_ld"
8051 aros_target_mkdep="$aros_host_mkdep"
8052 aros_target_incl_def="$aros_host_incl"
8054 aros_kernel_cc="$CC"
8056 # The default tools executables to be linked to.
8057 if test "$rescomp" != ""; then
8058 if test "$cross_compiling" = "yes" ; then
8059 rescomp=${target_tool_prefix}${rescomp}
8061 # Extract the first word of "$rescomp", so it can be a program name with args.
8062 set dummy $rescomp; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 case $aros_kernel_rescomp in
8069 [\\/]* | ?:[\\/]*)
8070 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8084 done
8085 done
8086 IFS=$as_save_IFS
8089 esac
8091 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8092 if test -n "$aros_kernel_rescomp"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8094 $as_echo "$aros_kernel_rescomp" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8101 if test "$aros_kernel_rescomp" = ""; then
8102 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8106 if test "$crosstools" != "yes"; then
8108 if test "$aros_kernel_ld" = ""; then
8109 if test "$cross_compiling" = "yes" ; then
8110 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8111 set dummy ${target_tool_prefix}ld; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 case $aros_kernel_ld in
8118 [\\/]* | ?:[\\/]*)
8119 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8133 done
8134 done
8135 IFS=$as_save_IFS
8138 esac
8140 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8141 if test -n "$aros_kernel_ld"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8143 $as_echo "$aros_kernel_ld" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8150 else
8151 if test "$GCC" = "yes"; then
8152 aros_gcc_ld=`$CC -print-prog-name=ld`
8153 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8154 set dummy `basename $aros_gcc_ld`; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 case $aros_kernel_ld in
8161 [\\/]* | ?:[\\/]*)
8162 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in `dirname $aros_gcc_ld`
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8176 done
8177 done
8178 IFS=$as_save_IFS
8181 esac
8183 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8184 if test -n "$aros_kernel_ld"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8186 $as_echo "$aros_kernel_ld" >&6; }
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8194 if test "$aros_kernel_ld" = ""; then
8195 # Extract the first word of "ld", so it can be a program name with args.
8196 set dummy ld; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 case $aros_kernel_ld in
8203 [\\/]* | ?:[\\/]*)
8204 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8218 done
8219 done
8220 IFS=$as_save_IFS
8223 esac
8225 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8226 if test -n "$aros_kernel_ld"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8228 $as_echo "$aros_kernel_ld" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8237 else
8238 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8239 set dummy $aros_kernel_ld; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 case $aros_kernel_ld in
8246 [\\/]* | ?:[\\/]*)
8247 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 break 2
8261 done
8262 done
8263 IFS=$as_save_IFS
8266 esac
8268 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8269 if test -n "$aros_kernel_ld"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8271 $as_echo "$aros_kernel_ld" >&6; }
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8280 if test "$aros_kernel_ld" = ""; then
8281 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8284 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8285 target_tool_prefix=${target_cpu}-elf-
8286 if test "$aros_target_cc" == ""; then
8287 aros_target_cc="${target_tool_prefix}gcc"
8289 if test "$aros_target_ld" == ""; then
8290 aros_target_ld="${target_tool_prefix}ld"
8294 if test "$aros_target_as" = ""; then
8295 if test "$cross_compiling" = "yes" ; then
8296 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8297 set dummy ${target_tool_prefix}as; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 case $aros_target_as_ln in
8304 [\\/]* | ?:[\\/]*)
8305 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8319 done
8320 done
8321 IFS=$as_save_IFS
8324 esac
8326 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8327 if test -n "$aros_target_as_ln"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8329 $as_echo "$aros_target_as_ln" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8336 else
8337 if test "$GCC" = "yes"; then
8338 aros_gcc_as=`$CC -print-prog-name=as`
8339 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8340 set dummy `basename $aros_gcc_as`; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 case $aros_target_as_ln in
8347 [\\/]* | ?:[\\/]*)
8348 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in `dirname $aros_gcc_as`
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8362 done
8363 done
8364 IFS=$as_save_IFS
8367 esac
8369 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8370 if test -n "$aros_target_as_ln"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8372 $as_echo "$aros_target_as_ln" >&6; }
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8380 if test "$aros_target_as_ln" = ""; then
8381 # Extract the first word of "as", so it can be a program name with args.
8382 set dummy as; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 case $aros_target_as_ln in
8389 [\\/]* | ?:[\\/]*)
8390 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8404 done
8405 done
8406 IFS=$as_save_IFS
8409 esac
8411 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8412 if test -n "$aros_target_as_ln"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8414 $as_echo "$aros_target_as_ln" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8423 else
8424 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8425 set dummy $aros_target_as; ac_word=$2
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 $as_echo_n "checking for $ac_word... " >&6; }
8428 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 case $aros_target_as_ln in
8432 [\\/]* | ?:[\\/]*)
8433 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8452 esac
8454 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8455 if test -n "$aros_target_as_ln"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8457 $as_echo "$aros_target_as_ln" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8466 if test "$aros_target_as_ln" = ""; then
8467 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8470 if test "$aros_target_ar" = ""; then
8471 if test "$cross_compiling" = "yes" ; then
8472 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8473 set dummy ${target_tool_prefix}ar; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 case $aros_target_ar_ln in
8480 [\\/]* | ?:[\\/]*)
8481 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8495 done
8496 done
8497 IFS=$as_save_IFS
8500 esac
8502 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8503 if test -n "$aros_target_ar_ln"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8505 $as_echo "$aros_target_ar_ln" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8512 else
8513 if test "$GCC" = "yes"; then
8514 aros_gcc_ar=`$CC -print-prog-name=ar`
8515 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8516 set dummy `basename $aros_gcc_ar`; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 case $aros_target_ar_ln in
8523 [\\/]* | ?:[\\/]*)
8524 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in `dirname $aros_gcc_ar`
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8538 done
8539 done
8540 IFS=$as_save_IFS
8543 esac
8545 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8546 if test -n "$aros_target_ar_ln"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8548 $as_echo "$aros_target_ar_ln" >&6; }
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8556 if test "$aros_target_ar_ln" = ""; then
8557 # Extract the first word of "ar", so it can be a program name with args.
8558 set dummy ar; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 case $aros_target_ar_ln in
8565 [\\/]* | ?:[\\/]*)
8566 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 for as_dir in $PATH
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 break 2
8580 done
8581 done
8582 IFS=$as_save_IFS
8585 esac
8587 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8588 if test -n "$aros_target_ar_ln"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8590 $as_echo "$aros_target_ar_ln" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8599 else
8600 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8601 set dummy $aros_target_ar; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 case $aros_target_ar_ln in
8608 [\\/]* | ?:[\\/]*)
8609 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8623 done
8624 done
8625 IFS=$as_save_IFS
8628 esac
8630 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8631 if test -n "$aros_target_ar_ln"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8633 $as_echo "$aros_target_ar_ln" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8642 if test "$aros_target_ar_ln" = ""; then
8643 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8646 if test "$aros_target_nm" = ""; then
8647 if test "$cross_compiling" = "yes" ; then
8648 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8649 set dummy ${target_tool_prefix}nm; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 case $aros_target_nm_ln in
8656 [\\/]* | ?:[\\/]*)
8657 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8671 done
8672 done
8673 IFS=$as_save_IFS
8676 esac
8678 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8679 if test -n "$aros_target_nm_ln"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8681 $as_echo "$aros_target_nm_ln" >&6; }
8682 else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8688 else
8689 if test "$GCC" = "yes"; then
8690 aros_gcc_nm=`$CC -print-prog-name=nm`
8691 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8692 set dummy `basename $aros_gcc_nm`; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 case $aros_target_nm_ln in
8699 [\\/]* | ?:[\\/]*)
8700 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in `dirname $aros_gcc_nm`
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 break 2
8714 done
8715 done
8716 IFS=$as_save_IFS
8719 esac
8721 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8722 if test -n "$aros_target_nm_ln"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8724 $as_echo "$aros_target_nm_ln" >&6; }
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8732 if test "$aros_target_nm_ln" = ""; then
8733 # Extract the first word of "nm", so it can be a program name with args.
8734 set dummy nm; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 case $aros_target_nm_ln in
8741 [\\/]* | ?:[\\/]*)
8742 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8756 done
8757 done
8758 IFS=$as_save_IFS
8761 esac
8763 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8764 if test -n "$aros_target_nm_ln"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8766 $as_echo "$aros_target_nm_ln" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8775 else
8776 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8777 set dummy $aros_target_nm; ac_word=$2
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779 $as_echo_n "checking for $ac_word... " >&6; }
8780 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 case $aros_target_nm_ln in
8784 [\\/]* | ?:[\\/]*)
8785 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8795 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8799 done
8800 done
8801 IFS=$as_save_IFS
8804 esac
8806 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8807 if test -n "$aros_target_nm_ln"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8809 $as_echo "$aros_target_nm_ln" >&6; }
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8818 if test "$aros_target_nm_ln" = ""; then
8819 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8822 if test "$aros_target_objcopy" = ""; then
8823 if test "$cross_compiling" = "yes" ; then
8824 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8825 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 case $aros_target_objcopy_ln in
8832 [\\/]* | ?:[\\/]*)
8833 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8847 done
8848 done
8849 IFS=$as_save_IFS
8852 esac
8854 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8855 if test -n "$aros_target_objcopy_ln"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8857 $as_echo "$aros_target_objcopy_ln" >&6; }
8858 else
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8864 else
8865 if test "$GCC" = "yes"; then
8866 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8867 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8868 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870 $as_echo_n "checking for $ac_word... " >&6; }
8871 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 case $aros_target_objcopy_ln in
8875 [\\/]* | ?:[\\/]*)
8876 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 for as_dir in `dirname $aros_gcc_objcopy`
8882 IFS=$as_save_IFS
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8886 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 break 2
8890 done
8891 done
8892 IFS=$as_save_IFS
8895 esac
8897 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8898 if test -n "$aros_target_objcopy_ln"; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8900 $as_echo "$aros_target_objcopy_ln" >&6; }
8901 else
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8908 if test "$aros_target_objcopy_ln" = ""; then
8909 # Extract the first word of "objcopy", so it can be a program name with args.
8910 set dummy objcopy; ac_word=$2
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912 $as_echo_n "checking for $ac_word... " >&6; }
8913 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 case $aros_target_objcopy_ln in
8917 [\\/]* | ?:[\\/]*)
8918 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 for as_dir in $PATH
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 break 2
8932 done
8933 done
8934 IFS=$as_save_IFS
8937 esac
8939 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8940 if test -n "$aros_target_objcopy_ln"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8942 $as_echo "$aros_target_objcopy_ln" >&6; }
8943 else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8951 else
8952 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8953 set dummy $aros_target_objcopy; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 case $aros_target_objcopy_ln in
8960 [\\/]* | ?:[\\/]*)
8961 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8971 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8975 done
8976 done
8977 IFS=$as_save_IFS
8980 esac
8982 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8983 if test -n "$aros_target_objcopy_ln"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8985 $as_echo "$aros_target_objcopy_ln" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8994 if test "$aros_target_objcopy_ln" = ""; then
8995 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
8998 if test "$aros_target_objdump" = ""; then
8999 if test "$cross_compiling" = "yes" ; then
9000 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9001 set dummy ${target_tool_prefix}objdump; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 case $aros_target_objdump_ln in
9008 [\\/]* | ?:[\\/]*)
9009 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 for as_dir in $PATH
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9019 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 break 2
9023 done
9024 done
9025 IFS=$as_save_IFS
9028 esac
9030 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9031 if test -n "$aros_target_objdump_ln"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9033 $as_echo "$aros_target_objdump_ln" >&6; }
9034 else
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9040 else
9041 if test "$GCC" = "yes"; then
9042 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9043 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9044 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 case $aros_target_objdump_ln in
9051 [\\/]* | ?:[\\/]*)
9052 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in `dirname $aros_gcc_objdump`
9058 IFS=$as_save_IFS
9059 test -z "$as_dir" && as_dir=.
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9062 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9064 break 2
9066 done
9067 done
9068 IFS=$as_save_IFS
9071 esac
9073 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9074 if test -n "$aros_target_objdump_ln"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9076 $as_echo "$aros_target_objdump_ln" >&6; }
9077 else
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9084 if test "$aros_target_objdump_ln" = ""; then
9085 # Extract the first word of "objdump", so it can be a program name with args.
9086 set dummy objdump; ac_word=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; }
9089 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 case $aros_target_objdump_ln in
9093 [\\/]* | ?:[\\/]*)
9094 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 for as_dir in $PATH
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9104 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 break 2
9108 done
9109 done
9110 IFS=$as_save_IFS
9113 esac
9115 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9116 if test -n "$aros_target_objdump_ln"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9118 $as_echo "$aros_target_objdump_ln" >&6; }
9119 else
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 $as_echo "no" >&6; }
9127 else
9128 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9129 set dummy $aros_target_objdump; ac_word=$2
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 $as_echo_n "checking for $ac_word... " >&6; }
9132 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 case $aros_target_objdump_ln in
9136 [\\/]* | ?:[\\/]*)
9137 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 for as_dir in $PATH
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 break 2
9151 done
9152 done
9153 IFS=$as_save_IFS
9156 esac
9158 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9159 if test -n "$aros_target_objdump_ln"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9161 $as_echo "$aros_target_objdump_ln" >&6; }
9162 else
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9170 if test "$aros_target_objdump_ln" = ""; then
9171 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9174 if test "$aros_target_ranlib" = ""; then
9175 if test "$cross_compiling" = "yes" ; then
9176 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9177 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 case $aros_target_ranlib_ln in
9184 [\\/]* | ?:[\\/]*)
9185 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9195 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197 break 2
9199 done
9200 done
9201 IFS=$as_save_IFS
9204 esac
9206 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9207 if test -n "$aros_target_ranlib_ln"; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9209 $as_echo "$aros_target_ranlib_ln" >&6; }
9210 else
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9216 else
9217 if test "$GCC" = "yes"; then
9218 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9219 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9220 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9222 $as_echo_n "checking for $ac_word... " >&6; }
9223 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 case $aros_target_ranlib_ln in
9227 [\\/]* | ?:[\\/]*)
9228 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 for as_dir in `dirname $aros_gcc_ranlib`
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9238 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 break 2
9242 done
9243 done
9244 IFS=$as_save_IFS
9247 esac
9249 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9250 if test -n "$aros_target_ranlib_ln"; then
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9252 $as_echo "$aros_target_ranlib_ln" >&6; }
9253 else
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255 $as_echo "no" >&6; }
9260 if test "$aros_target_ranlib_ln" = ""; then
9261 # Extract the first word of "ranlib", so it can be a program name with args.
9262 set dummy ranlib; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 case $aros_target_ranlib_ln in
9269 [\\/]* | ?:[\\/]*)
9270 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9284 done
9285 done
9286 IFS=$as_save_IFS
9289 esac
9291 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9292 if test -n "$aros_target_ranlib_ln"; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9294 $as_echo "$aros_target_ranlib_ln" >&6; }
9295 else
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9303 else
9304 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9305 set dummy $aros_target_ranlib; ac_word=$2
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9307 $as_echo_n "checking for $ac_word... " >&6; }
9308 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 case $aros_target_ranlib_ln in
9312 [\\/]* | ?:[\\/]*)
9313 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH
9319 IFS=$as_save_IFS
9320 test -z "$as_dir" && as_dir=.
9321 for ac_exec_ext in '' $ac_executable_extensions; do
9322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9323 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325 break 2
9327 done
9328 done
9329 IFS=$as_save_IFS
9332 esac
9334 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9335 if test -n "$aros_target_ranlib_ln"; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9337 $as_echo "$aros_target_ranlib_ln" >&6; }
9338 else
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340 $as_echo "no" >&6; }
9346 if test "$aros_target_ranlib_ln" = ""; then
9347 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9350 if test "$aros_target_strip" = ""; then
9351 if test "$cross_compiling" = "yes" ; then
9352 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9353 set dummy ${target_tool_prefix}strip; ac_word=$2
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355 $as_echo_n "checking for $ac_word... " >&6; }
9356 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 case $aros_target_strip_ln in
9360 [\\/]* | ?:[\\/]*)
9361 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9367 IFS=$as_save_IFS
9368 test -z "$as_dir" && as_dir=.
9369 for ac_exec_ext in '' $ac_executable_extensions; do
9370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9371 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373 break 2
9375 done
9376 done
9377 IFS=$as_save_IFS
9380 esac
9382 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9383 if test -n "$aros_target_strip_ln"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9385 $as_echo "$aros_target_strip_ln" >&6; }
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9392 else
9393 if test "$GCC" = "yes"; then
9394 aros_gcc_strip=`$CC -print-prog-name=strip`
9395 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9396 set dummy `basename $aros_gcc_strip`; ac_word=$2
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9398 $as_echo_n "checking for $ac_word... " >&6; }
9399 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 case $aros_target_strip_ln in
9403 [\\/]* | ?:[\\/]*)
9404 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408 for as_dir in `dirname $aros_gcc_strip`
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9414 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 break 2
9418 done
9419 done
9420 IFS=$as_save_IFS
9423 esac
9425 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9426 if test -n "$aros_target_strip_ln"; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9428 $as_echo "$aros_target_strip_ln" >&6; }
9429 else
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9436 if test "$aros_target_strip_ln" = ""; then
9437 # Extract the first word of "strip", so it can be a program name with args.
9438 set dummy strip; ac_word=$2
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 $as_echo_n "checking for $ac_word... " >&6; }
9441 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 case $aros_target_strip_ln in
9445 [\\/]* | ?:[\\/]*)
9446 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9456 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 break 2
9460 done
9461 done
9462 IFS=$as_save_IFS
9465 esac
9467 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9468 if test -n "$aros_target_strip_ln"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9470 $as_echo "$aros_target_strip_ln" >&6; }
9471 else
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473 $as_echo "no" >&6; }
9479 else
9480 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9481 set dummy $aros_target_strip; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 case $aros_target_strip_ln in
9488 [\\/]* | ?:[\\/]*)
9489 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 for as_dir in $PATH
9495 IFS=$as_save_IFS
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9499 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 break 2
9503 done
9504 done
9505 IFS=$as_save_IFS
9508 esac
9510 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9511 if test -n "$aros_target_strip_ln"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9513 $as_echo "$aros_target_strip_ln" >&6; }
9514 else
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9522 if test "$aros_target_strip_ln" = ""; then
9523 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9525 if test "$aros_target_cxx" != ""; then
9526 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9527 set dummy $aros_target_cxx; ac_word=$2
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529 $as_echo_n "checking for $ac_word... " >&6; }
9530 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 case $aros_target_cxx in
9534 [\\/]* | ?:[\\/]*)
9535 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9545 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9549 done
9550 done
9551 IFS=$as_save_IFS
9554 esac
9556 aros_target_cxx=$ac_cv_path_aros_target_cxx
9557 if test -n "$aros_target_cxx"; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9559 $as_echo "$aros_target_cxx" >&6; }
9560 else
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9566 if test "$aros_target_cxx" = ""; then
9567 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9570 else
9571 aros_target_cxx=""
9574 orig_target_cc=$aros_kernel_cc
9575 orig_target_ld=$aros_kernel_ld
9577 if test "$aros_target_cc" != ""; then
9578 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9579 set dummy $aros_target_cc; ac_word=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 case $aros_target_cc in
9586 [\\/]* | ?:[\\/]*)
9587 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 for as_dir in $PATH
9593 IFS=$as_save_IFS
9594 test -z "$as_dir" && as_dir=.
9595 for ac_exec_ext in '' $ac_executable_extensions; do
9596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9597 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 break 2
9601 done
9602 done
9603 IFS=$as_save_IFS
9606 esac
9608 aros_target_cc=$ac_cv_path_aros_target_cc
9609 if test -n "$aros_target_cc"; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
9611 $as_echo "$aros_target_cc" >&6; }
9612 else
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 $as_echo "no" >&6; }
9618 if test "$aros_target_cc" = ""; then
9619 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
9621 orig_target_cc=$aros_target_cc
9623 if test "$aros_target_ld" != ""; then
9624 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9625 set dummy $aros_target_ld; ac_word=$2
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627 $as_echo_n "checking for $ac_word... " >&6; }
9628 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 case $aros_target_ld in
9632 [\\/]* | ?:[\\/]*)
9633 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9647 done
9648 done
9649 IFS=$as_save_IFS
9652 esac
9654 aros_target_ld=$ac_cv_path_aros_target_ld
9655 if test -n "$aros_target_ld"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
9657 $as_echo "$aros_target_ld" >&6; }
9658 else
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9664 if test "$aros_target_ld" = ""; then
9665 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9667 orig_target_ld=$aros_target_ld
9670 # Build crosstools if we have no C++ - temporary thing
9671 if test "$aros_target_cxx" = ""; then
9672 crosstools_target=tools-crosstools
9675 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9676 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9677 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9678 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9679 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9680 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9681 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9683 # aros_cc_pre is a variable that is added to the front of the compiler name
9684 # in the generated aros-gcc shell script. We need this to enable the cache
9685 # to work across cleaned builds. Also, support DISTCC using the correct
9686 # environment variable.
9689 if test "x${DISTCC}" != "x" ; then
9690 if test "x${CCACHE}" != "x" ; then
9691 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9692 else
9693 aros_cc_pre="${DISTCC} "
9695 else
9696 if test "x${CCACHE}" != "x" ; then
9697 aros_cc_pre="${CCACHE} "
9701 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9703 aros_target_nostdinc_cflags=-nostdinc
9705 aros_target_nostartup_ldflags=-nostartfiles
9707 aros_target_nix_ldflags=-nix
9709 aros_target_detach_ldflags=-detach
9711 aros_target_nostdlib_ldflags=-nostdlib
9714 # Target tools
9715 if test "$GCC" = "yes"; then
9716 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9718 aros_target_cc="${prefix}-gcc"
9719 aros_target_as="${prefix}-as"
9720 aros_target_ld="${prefix}-ld"
9721 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9722 aros_target_objcopy=${prefix}-objcopy
9723 aros_target_objdump=${prefix}-objdump
9724 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9725 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9726 aros_kernel_nm="${prefix}-nm"
9727 aros_target_strip=${prefix}-strip
9728 aros_kernel_ar="${prefix}-ar"
9730 # Find the system include path. We can suggest that an alternative is
9731 # used if we don't get it correct. The default is to use /usr/include.
9732 # Which is set in the aros_target_incl_def variable.
9734 # Check whether --enable-includes was given.
9735 if test "${enable_includes+set}" = set; then :
9736 enableval=$enable_includes; aros_target_incl=$enable_includes
9737 else
9738 aros_target_incl=$aros_target_incl_def
9742 if test "$aros_kernel_includes" = ""; then
9743 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9744 # FIXME: for cross-compiling this should point to another location
9745 aros_kernel_includes="-isystem $aros_target_incl"
9749 if test "$aros_kernel_includes" != "" ; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9751 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9752 if test "$aros_kernel_cc_includes" = "" ; then
9753 # Try to guess where the directory is.
9754 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9755 if test -d $aros_kernel_cc_includes; then
9756 # Check if there is also an include-fixed directory and add it
9757 # to kernel compiler's include path as it may contain some of
9758 # the headers we need.
9759 if test -d "$aros_kernel_cc_includes"-fixed; then
9760 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9762 else
9763 # The directory doesn't exist, we need to do some more work.
9764 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9766 # These are the headers we're looking for.
9767 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9768 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9769 zutil.h"
9771 dirs=
9772 for h in $headers; do
9773 # Which other headers are needed by each of the above?
9774 deps=$(echo "#include <$h>" | \
9775 $aros_kernel_cc -E -M - 2>/dev/null | \
9776 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9778 # Copy all the needed headers to a directory beneath gendir.
9779 for d in $deps; do
9780 h=$(basename $d)
9781 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9782 sed -n "s,^.*/include\(/.*\),\1,p")
9783 ! test -d $dir && mkdir -p $dir
9784 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9785 done
9786 done
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9790 $as_echo "$aros_kernel_cc_includes" >&6; }
9791 # Adding -nostdinc to kernel includes as they are always used together.
9792 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9796 $as_echo_n "checking for the target compiler's include path... " >&6; }
9797 if test "$aros_target_cc_includes" = "" ; then
9798 #try to guess where the directory is
9799 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9800 if ! test -d $aros_target_cc_includes; then
9801 #the directory doesn't exist, we need to do some more work
9802 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9804 #these are the headers we're looling for
9805 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9806 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9807 zutil.h"
9809 dirs=
9810 for h in $headers; do
9811 #which other headers each of the above headers needs?
9812 deps=$(echo "#include <$h>" | \
9813 $orig_target_cc -E -M - 2>/dev/null | \
9814 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9816 #copy all the needed headers to a directory beneath gendir
9817 for d in $deps; do
9818 h=$(basename $d)
9819 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9820 sed -n "s,^.*/include\(/.*\),\1,p")
9821 ! test -d $dir && mkdir -p $dir
9822 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9823 done
9824 done
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9828 $as_echo "$aros_target_cc_includes" >&6; }
9831 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9832 # On GCC >= 4.0 -iquote should be used
9835 save_cc="$CC"
9836 save_cflags="$CFLAGS"
9837 CFLAGS="-iquote."
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9839 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9844 main ()
9848 return 0;
9850 _ACEOF
9851 if ac_fn_c_try_compile "$LINENO"; then :
9852 has_iquote="yes"
9853 else
9854 has_iquote="no"
9856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9858 $as_echo "$has_iquote" >&6; }
9859 if test "x-$has_iquote" = "x-yes" ; then
9860 host_cflags_iquote=-iquote
9861 host_cflags_iquote_end=
9862 else
9863 host_cflags_iquote=-I
9864 host_cflags_iquote_end=-I-
9866 kernel_cflags_iquote=$host_cflags_iquote
9867 kernel_cflags_iquote_end=$host_cflags_iquote_end
9868 if test "x-$cross_compiling" = "x-yes"; then
9869 CC="$aros_kernel_cc"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9871 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9876 main ()
9880 return 0;
9882 _ACEOF
9883 if ac_fn_c_try_compile "$LINENO"; then :
9884 use_no_stack_protector="yes"
9885 else
9886 use_no_stack_protector="no"
9888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9890 $as_echo "$use_no_stack_protector" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9892 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9897 main ()
9901 return 0;
9903 _ACEOF
9904 if ac_fn_c_try_compile "$LINENO"; then :
9905 has_iquote="yes"
9906 else
9907 has_iquote="no"
9909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9911 $as_echo "$has_iquote" >&6; }
9912 if test "x-$has_iquote" = "x-yes" ; then
9913 kernel_cflags_iquote=-iquote
9914 kernel_cflags_iquote_end=
9915 else
9916 kernel_cflags_iquote=-I
9917 kernel_cflags_iquote_end=-I-
9920 aros_cflags_iquote=$kernel_cflags_iquote
9921 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9922 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9923 CC="$orig_target_cc"
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9925 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9930 main ()
9934 return 0;
9936 _ACEOF
9937 if ac_fn_c_try_compile "$LINENO"; then :
9938 has_iquote="yes"
9939 else
9940 has_iquote="no"
9942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9944 $as_echo "$has_iquote" >&6; }
9945 if test "x-$has_iquote" = "x-yes" ; then
9946 aros_cflags_iquote=-iquote
9947 aros_cflags_iquote_end=
9948 else
9949 aros_cflags_iquote=-I
9950 aros_cflags_iquote_end=-I-
9953 if test "x-$use_no_stack_protector" = "x-yes" ; then
9954 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9957 #-----------------------------------------------------------------------------
9959 # Check if we can explicitly choose older version of symbol hashing
9961 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9962 CC="$aros_kernel_cc"
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9964 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9969 main ()
9973 return 0;
9975 _ACEOF
9976 if ac_fn_c_try_link "$LINENO"; then :
9977 use_hash_style="yes"
9978 else
9979 use_hash_style="no"
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9984 $as_echo "$use_hash_style" >&6; }
9985 if test "x-$use_hash_style" = "x-yes" ; then
9986 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9988 CC="$save_cc"
9989 CFLAGS="$save_cflags"
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10000 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10002 # Check whether --with-resolution was given.
10003 if test "${with_resolution+set}" = set; then :
10004 withval=$with_resolution; resolution=$withval
10005 else
10006 resolution=none
10009 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10010 if test "$resolution" = "yes" ; then
10011 resolution="none"
10013 if test "$resolution" = "no" ; then
10014 resolution="none"
10016 if test "$resolution" != "none" ; then
10017 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10018 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10019 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10022 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10023 aros_cv_default_wbwidth=$aros_default_wbwidth
10024 aros_cv_default_wbheight=$aros_default_wbheight
10025 aros_cv_default_wbdepth=$aros_default_wbdepth
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10028 $as_echo_n "checking if serial debug is enabled... " >&6; }
10030 # Check whether --with-serial-debug was given.
10031 if test "${with_serial_debug+set}" = set; then :
10032 withval=$with_serial_debug; serial_debug=$withval
10033 else
10034 serial_debug=none
10037 if test "$aros_serial_debug" = 0 ; then
10038 serial_debug_forced=""
10039 if test "$serial_debug" = "yes" ; then
10040 serial_debug="2"
10042 if test "$serial_debug" = "no" ; then
10043 serial_debug="none"
10045 else
10046 serial_debug_forced="(forced)"
10047 serial_debug=$aros_serial_debug
10049 if test "$serial_debug" != "none" ; then
10050 aros_serial_debug=$serial_debug
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10052 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10053 else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10059 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10060 # Check whether --enable-palm_debug_hack was given.
10061 if test "${enable_palm_debug_hack+set}" = set; then :
10062 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10063 else
10064 palm_debug_hack="no"
10067 if test "$palm_debug_hack" = "yes" ; then
10068 aros_palm_debug_hack="1"
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10071 $as_echo "$palm_debug_hack" >&6; }
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10075 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10076 # Check whether --enable-nesting_supervisor was given.
10077 if test "${enable_nesting_supervisor+set}" = set; then :
10078 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10079 else
10080 nesting_supervisor="no"
10083 if test "$nesting_supervisor" = "yes" ; then
10084 aros_nesting_supervisor="1"
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10087 $as_echo "$nesting_supervisor" >&6; }
10089 if test "$aros_enable_mmu" = "" ; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10091 $as_echo_n "checking if MMU support is enabled... " >&6; }
10092 # Check whether --enable-mmu was given.
10093 if test "${enable_mmu+set}" = set; then :
10094 enableval=$enable_mmu; aros_enable_mmu=$enableval
10095 else
10096 aros_enable_mmu="yes"
10099 if test "$aros_enable_mmu" = "" ; then
10100 aros_enable_mmu="yes"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10103 $as_echo "$aros_enable_mmu" >&6; }
10105 if test "$aros_enable_mmu" = "no" ; then
10106 aros_enable_mmu="0"
10107 else
10108 aros_enable_mmu="1"
10112 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10114 if test "x-$need_dlopen" != "x-no" ; then
10115 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10116 if test "x$ac_cv_func_dlopen" = x""yes; then :
10117 have_dl="yes"
10118 else
10119 have_dl="no"
10122 if test "x-$have_dl" = "x-no" ; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10124 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10125 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 ac_check_lib_save_LIBS=$LIBS
10129 LIBS="-ldl $LIBS"
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10133 /* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 char dlopen ();
10141 main ()
10143 return dlopen ();
10145 return 0;
10147 _ACEOF
10148 if ac_fn_c_try_link "$LINENO"; then :
10149 ac_cv_lib_dl_dlopen=yes
10150 else
10151 ac_cv_lib_dl_dlopen=no
10153 rm -f core conftest.err conftest.$ac_objext \
10154 conftest$ac_exeext conftest.$ac_ext
10155 LIBS=$ac_check_lib_save_LIBS
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10158 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10159 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10160 have_dl="yes"
10161 aros_host_ldflags="$aros_host_ldflags -ldl"
10162 else
10163 have_dl="no"
10167 if test "x-$have_dl" = "x-no" ; then
10168 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
10173 # Check whether --enable-x11_hidd was given.
10174 if test "${enable_x11_hidd+set}" = set; then :
10175 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10176 else
10177 x11_hidd="$need_x11"
10180 case "x-$x11_hidd" in
10181 x-yes|x-no|x-auto) ;;
10182 *) x11_hidd="$need_x11" ;;
10183 esac
10185 ENABLE_X11=0
10187 if test "x-$x11_hidd" != "x-no" ; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10190 $as_echo_n "checking for X... " >&6; }
10193 # Check whether --with-x was given.
10194 if test "${with_x+set}" = set; then :
10195 withval=$with_x;
10198 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10199 if test "x$with_x" = xno; then
10200 # The user explicitly disabled X.
10201 have_x=disabled
10202 else
10203 case $x_includes,$x_libraries in #(
10204 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
10205 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 # One or both of the vars are not set, and there is no cached value.
10209 ac_x_includes=no ac_x_libraries=no
10210 rm -f -r conftest.dir
10211 if mkdir conftest.dir; then
10212 cd conftest.dir
10213 cat >Imakefile <<'_ACEOF'
10214 incroot:
10215 @echo incroot='${INCROOT}'
10216 usrlibdir:
10217 @echo usrlibdir='${USRLIBDIR}'
10218 libdir:
10219 @echo libdir='${LIBDIR}'
10220 _ACEOF
10221 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10222 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10223 for ac_var in incroot usrlibdir libdir; do
10224 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10225 done
10226 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10227 for ac_extension in a so sl dylib la dll; do
10228 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10229 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10230 ac_im_usrlibdir=$ac_im_libdir; break
10232 done
10233 # Screen out bogus values from the imake configuration. They are
10234 # bogus both because they are the default anyway, and because
10235 # using them would break gcc on systems where it needs fixed includes.
10236 case $ac_im_incroot in
10237 /usr/include) ac_x_includes= ;;
10238 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10239 esac
10240 case $ac_im_usrlibdir in
10241 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10242 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10243 esac
10245 cd ..
10246 rm -f -r conftest.dir
10249 # Standard set of common directories for X headers.
10250 # Check X11 before X11Rn because it is often a symlink to the current release.
10251 ac_x_header_dirs='
10252 /usr/X11/include
10253 /usr/X11R7/include
10254 /usr/X11R6/include
10255 /usr/X11R5/include
10256 /usr/X11R4/include
10258 /usr/include/X11
10259 /usr/include/X11R7
10260 /usr/include/X11R6
10261 /usr/include/X11R5
10262 /usr/include/X11R4
10264 /usr/local/X11/include
10265 /usr/local/X11R7/include
10266 /usr/local/X11R6/include
10267 /usr/local/X11R5/include
10268 /usr/local/X11R4/include
10270 /usr/local/include/X11
10271 /usr/local/include/X11R7
10272 /usr/local/include/X11R6
10273 /usr/local/include/X11R5
10274 /usr/local/include/X11R4
10276 /usr/X386/include
10277 /usr/x386/include
10278 /usr/XFree86/include/X11
10280 /usr/include
10281 /usr/local/include
10282 /usr/unsupported/include
10283 /usr/athena/include
10284 /usr/local/x11r5/include
10285 /usr/lpp/Xamples/include
10287 /usr/openwin/include
10288 /usr/openwin/share/include'
10290 if test "$ac_x_includes" = no; then
10291 # Guess where to find include files, by looking for Xlib.h.
10292 # First, try using that file with no special directory specified.
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10295 #include <X11/Xlib.h>
10296 _ACEOF
10297 if ac_fn_c_try_cpp "$LINENO"; then :
10298 # We can compile using X headers with no special include directory.
10299 ac_x_includes=
10300 else
10301 for ac_dir in $ac_x_header_dirs; do
10302 if test -r "$ac_dir/X11/Xlib.h"; then
10303 ac_x_includes=$ac_dir
10304 break
10306 done
10308 rm -f conftest.err conftest.i conftest.$ac_ext
10309 fi # $ac_x_includes = no
10311 if test "$ac_x_libraries" = no; then
10312 # Check for the libraries.
10313 # See if we find them without any special options.
10314 # Don't add to $LIBS permanently.
10315 ac_save_LIBS=$LIBS
10316 LIBS="-lX11 $LIBS"
10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h. */
10319 #include <X11/Xlib.h>
10321 main ()
10323 XrmInitialize ()
10325 return 0;
10327 _ACEOF
10328 if ac_fn_c_try_link "$LINENO"; then :
10329 LIBS=$ac_save_LIBS
10330 # We can link X programs with no special library path.
10331 ac_x_libraries=
10332 else
10333 LIBS=$ac_save_LIBS
10334 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10336 # Don't even attempt the hair of trying to link an X program!
10337 for ac_extension in a so sl dylib la dll; do
10338 if test -r "$ac_dir/libX11.$ac_extension"; then
10339 ac_x_libraries=$ac_dir
10340 break 2
10342 done
10343 done
10345 rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347 fi # $ac_x_libraries = no
10349 case $ac_x_includes,$ac_x_libraries in #(
10350 no,* | *,no | *\'*)
10351 # Didn't find X, or a directory has "'" in its name.
10352 ac_cv_have_x="have_x=no";; #(
10354 # Record where we found X for the cache.
10355 ac_cv_have_x="have_x=yes\
10356 ac_x_includes='$ac_x_includes'\
10357 ac_x_libraries='$ac_x_libraries'"
10358 esac
10360 ;; #(
10361 *) have_x=yes;;
10362 esac
10363 eval "$ac_cv_have_x"
10364 fi # $with_x != no
10366 if test "$have_x" != yes; then
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10368 $as_echo "$have_x" >&6; }
10369 no_x=yes
10370 else
10371 # If each of the values was on the command line, it overrides each guess.
10372 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10373 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10374 # Update the cache value to reflect the command line values.
10375 ac_cv_have_x="have_x=yes\
10376 ac_x_includes='$x_includes'\
10377 ac_x_libraries='$x_libraries'"
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10379 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10383 x_cflags=
10384 for path in $x_libraries
10386 x_cflags="$x_cflags -L$path"
10387 done
10389 for path in $x_includes
10391 x_cflags="$x_cflags -I$path"
10392 done
10394 if test "x-$no_x" = "x-yes" ; then
10396 if test "x-$x11_hidd" != "x-auto" ; then
10397 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10400 else
10401 x11_hidd_target=kernel-x11gfx-kobj
10402 ENABLE_X11=1
10404 # Check whether --enable-x11_shm was given.
10405 if test "${enable_x11_shm+set}" = set; then :
10406 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10407 else
10408 x11_hidd_shm="auto"
10411 case "x-$x11_hidd_shm" in
10412 x-yes|x-no|x-auto) ;;
10413 *) x11_hidd_shm="auto" ;;
10414 esac
10416 have_xshm=no
10418 if test "x-$x11_hidd_shm" != "x-no" ; then
10420 for ac_header in sys/ipc.h
10421 do :
10422 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10423 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10424 cat >>confdefs.h <<_ACEOF
10425 #define HAVE_SYS_IPC_H 1
10426 _ACEOF
10430 done
10432 for ac_header in sys/shm.h
10433 do :
10434 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10435 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10436 cat >>confdefs.h <<_ACEOF
10437 #define HAVE_SYS_SHM_H 1
10438 _ACEOF
10442 done
10445 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10447 save_cflags="$CFLAGS"
10448 CFLAGS="$CFLAGS $x_cflags"
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10450 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10451 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lXext $LIBS"
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 char XShmQueryExtension ();
10467 main ()
10469 return XShmQueryExtension ();
10471 return 0;
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475 ac_cv_lib_Xext_XShmQueryExtension=yes
10476 else
10477 ac_cv_lib_Xext_XShmQueryExtension=no
10479 rm -f core conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10484 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10485 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10486 have_xshm=yes
10489 CFLAGS="$save_cflags"
10493 if test "x-$have_xshm" = "x-yes" ; then
10494 DO_XSHM_SUPPORT="1"
10495 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10496 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10497 else
10498 DO_XSHM_SUPPORT="0"
10502 # Check whether --enable-x11_vidmode was given.
10503 if test "${enable_x11_vidmode+set}" = set; then :
10504 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10505 else
10506 x11_hidd_vidmode="auto"
10509 case "x-$x11_hidd_vidmode" in
10510 x-yes|x-no|x-auto) ;;
10511 *) x11_hidd_vidmode="auto" ;;
10512 esac
10514 have_vidmode=no
10516 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10518 save_cflags="$CFLAGS"
10519 CFLAGS="$CFLAGS $x_cflags"
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10521 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10522 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 ac_check_lib_save_LIBS=$LIBS
10526 LIBS="-lXxf86vm $LIBS"
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char XF86VidModeQueryExtension ();
10538 main ()
10540 return XF86VidModeQueryExtension ();
10542 return 0;
10544 _ACEOF
10545 if ac_fn_c_try_link "$LINENO"; then :
10546 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10547 else
10548 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10550 rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10555 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10556 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10557 have_vidmode=yes
10560 CFLAGS="$save_cflags"
10563 if test "x-$have_vidmode" = "x-yes" ; then
10564 DO_VIDMODE_SUPPORT="1"
10565 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10566 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10567 else
10568 DO_VIDMODE_SUPPORT="0"
10572 aros_host_x11_includes=$x_includes
10573 aros_host_x11_libdirs=$x_libraries
10577 # Check whether --enable-sdl_hidd was given.
10578 if test "${enable_sdl_hidd+set}" = set; then :
10579 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10580 else
10581 sdl_hidd="auto"
10584 case "x-$sdl_hidd" in
10585 x-yes|x-no|x-auto) ;;
10586 *) sdl_hidd="auto" ;;
10587 esac
10589 if test "x-$sdl_hidd" != "x-no" ; then
10592 # Check whether --with-sdl-prefix was given.
10593 if test "${with_sdl_prefix+set}" = set; then :
10594 withval=$with_sdl_prefix; sdl_prefix="$withval"
10595 else
10596 sdl_prefix=""
10600 # Check whether --with-sdl-exec-prefix was given.
10601 if test "${with_sdl_exec_prefix+set}" = set; then :
10602 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10603 else
10604 sdl_exec_prefix=""
10607 # Check whether --enable-sdltest was given.
10608 if test "${enable_sdltest+set}" = set; then :
10609 enableval=$enable_sdltest;
10610 else
10611 enable_sdltest=yes
10615 if test x$sdl_exec_prefix != x ; then
10616 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10617 if test x${SDL_CONFIG+set} != xset ; then
10618 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10621 if test x$sdl_prefix != x ; then
10622 sdl_args="$sdl_args --prefix=$sdl_prefix"
10623 if test x${SDL_CONFIG+set} != xset ; then
10624 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10628 if test "x$prefix" != xNONE; then
10629 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10631 # Extract the first word of "sdl-config", so it can be a program name with args.
10632 set dummy sdl-config; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 case $SDL_CONFIG in
10639 [\\/]* | ?:[\\/]*)
10640 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10650 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10654 done
10655 done
10656 IFS=$as_save_IFS
10658 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10660 esac
10662 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10663 if test -n "$SDL_CONFIG"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10665 $as_echo "$SDL_CONFIG" >&6; }
10666 else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10672 min_sdl_version=1.2.10
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10674 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10675 no_sdl=""
10676 if test "$SDL_CONFIG" = "no" ; then
10677 no_sdl=yes
10678 else
10679 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10680 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10682 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10683 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10684 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10685 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10686 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10687 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10688 if test "x$enable_sdltest" = "xyes" ; then
10689 ac_save_CFLAGS="$CFLAGS"
10690 ac_save_CXXFLAGS="$CXXFLAGS"
10691 ac_save_LIBS="$LIBS"
10692 CFLAGS="$CFLAGS $SDL_CFLAGS"
10693 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10694 LIBS="$LIBS $SDL_LIBS"
10695 rm -f conf.sdltest
10696 if test "$cross_compiling" = yes; then :
10697 echo $ac_n "cross compiling; assumed OK... $ac_c"
10698 else
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10702 #include <stdio.h>
10703 #include <stdlib.h>
10704 #include <string.h>
10705 #include "SDL.h"
10707 char*
10708 my_strdup (char *str)
10710 char *new_str;
10712 if (str)
10714 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10715 strcpy (new_str, str);
10717 else
10718 new_str = NULL;
10720 return new_str;
10723 int main (int argc, char *argv[])
10725 int major, minor, micro;
10726 char *tmp_version;
10728 /* This hangs on some systems (?)
10729 system ("touch conf.sdltest");
10731 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10733 /* HP/UX 9 (%@#!) writes to sscanf strings */
10734 tmp_version = my_strdup("$min_sdl_version");
10735 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10736 printf("%s, bad version string\n", "$min_sdl_version");
10737 exit(1);
10740 if (($sdl_major_version > major) ||
10741 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10742 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10744 return 0;
10746 else
10748 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10749 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10750 printf("*** best to upgrade to the required version.\n");
10751 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10752 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10753 printf("*** config.cache before re-running configure\n");
10754 return 1;
10759 _ACEOF
10760 if ac_fn_c_try_run "$LINENO"; then :
10762 else
10763 no_sdl=yes
10765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10766 conftest.$ac_objext conftest.beam conftest.$ac_ext
10769 CFLAGS="$ac_save_CFLAGS"
10770 CXXFLAGS="$ac_save_CXXFLAGS"
10771 LIBS="$ac_save_LIBS"
10774 if test "x$no_sdl" = x ; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10776 $as_echo "yes" >&6; }
10777 have_sdl="yes"
10778 else
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780 $as_echo "no" >&6; }
10781 if test "$SDL_CONFIG" = "no" ; then
10782 echo "*** The sdl-config script installed by SDL could not be found"
10783 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10784 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10785 echo "*** full path to sdl-config."
10786 else
10787 if test -f conf.sdltest ; then
10789 else
10790 echo "*** Could not run SDL test program, checking why..."
10791 CFLAGS="$CFLAGS $SDL_CFLAGS"
10792 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10793 LIBS="$LIBS $SDL_LIBS"
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 #include <stdio.h>
10798 #include "SDL.h"
10800 int main(int argc, char *argv[])
10801 { return 0; }
10802 #undef main
10803 #define main K_and_R_C_main
10806 main ()
10808 return 0;
10810 return 0;
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 echo "*** The test program compiled, but did not run. This usually means"
10815 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10816 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10817 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10818 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10819 echo "*** is required on your system"
10820 echo "***"
10821 echo "*** If you have an old version installed, it is best to remove it, although"
10822 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10823 else
10824 echo "*** The test program failed to compile or link. See the file config.log for the"
10825 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10826 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10827 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 CFLAGS="$ac_save_CFLAGS"
10832 CXXFLAGS="$ac_save_CXXFLAGS"
10833 LIBS="$ac_save_LIBS"
10836 SDL_CFLAGS=""
10837 SDL_LIBS=""
10838 have_sdl="no"
10842 rm -f conf.sdltest
10845 if test "x-$have_sdl" != "x-yes" ; then
10847 if test "x-$sdl_hidd" != "x-auto" ; then
10848 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10851 else
10852 sdl_hidd_target=kernel-hidd-sdl
10853 aros_host_sdl_cflags=SDL_CFLAGS
10854 aros_host_sdl_libs=SDL_LIBS
10858 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10859 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10864 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10865 oss_library_target=workbench-libs-oss-unix
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10871 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10872 # Check whether --enable-dbus was given.
10873 if test "${enable_dbus+set}" = set; then :
10874 enableval=$enable_dbus; dbus="yes"
10875 else
10876 dbus="no"
10879 if test "$dbus" = "yes" ; then
10880 ENABLE_DBUS=1
10881 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10882 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10883 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10884 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10885 else
10886 ENABLE_DBUS=0
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10889 $as_echo "$dbus" >&6; }
10893 # Generic
10903 # Host related
10927 # Target Related
10983 # Graphics Related
11000 # Native version related
11003 # Palm native version related
11006 # Unix/Hosted version related
11009 # MMU related
11012 # Apple iOS related
11017 # Android related
11021 # DBUS related
11028 #X11 related
11031 # Debug related
11037 # Collect-aros stuff: "-ius" to ignore undefined symbols
11040 # C compiler related
11043 case "$aros_flavour" in
11044 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11045 aros_flavour="emulation" ;;
11046 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11047 aros_flavour="emulation" ;;
11048 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11049 aros_flavour="standalone";;
11050 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11051 aros_flavour="standalone";;
11052 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11053 aros_flavour="native" ;;
11054 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11055 aros_flavour="native" ;;
11056 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11057 aros_flavour="linklib" ;;
11058 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11059 aros_flavour="palmnative" ;;
11060 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11061 aros_flavour="mac68knative" ;;
11062 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11063 aros_flavour="ppcnative" ;;
11064 esac
11066 if test ! -d ${aros_inc_dir} ; then
11067 ${MKDIR} ${aros_inc_dir}
11069 if test ! -d ${aros_geninc_dir} ; then
11070 ${MKDIR} ${aros_geninc_dir}
11072 if test ! -d ${aros_hostcfg_dir} ; then
11073 ${MKDIR} ${aros_hostcfg_dir}
11075 if test ! -d ${aros_targetcfg_dir} ; then
11076 ${MKDIR} ${aros_targetcfg_dir}
11078 if test ! -d ${aros_tools_dir} ; then
11079 ${MKDIR} ${aros_tools_dir}
11081 if test ! -d ${aros_scripts_dir} ; then
11082 ${MKDIR} ${aros_scripts_dir}
11085 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11088 ac_config_commands="$ac_config_commands compiler_executable"
11090 ac_config_commands="$ac_config_commands genmf_executable"
11093 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
11096 cat >confcache <<\_ACEOF
11097 # This file is a shell script that caches the results of configure
11098 # tests run on this system so they can be shared between configure
11099 # scripts and configure runs, see configure's option --config-cache.
11100 # It is not useful on other systems. If it contains results you don't
11101 # want to keep, you may remove or edit it.
11103 # config.status only pays attention to the cache file if you give it
11104 # the --recheck option to rerun configure.
11106 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11107 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11108 # following values.
11110 _ACEOF
11112 # The following way of writing the cache mishandles newlines in values,
11113 # but we know of no workaround that is simple, portable, and efficient.
11114 # So, we kill variables containing newlines.
11115 # Ultrix sh set writes to stderr and can't be redirected directly,
11116 # and sets the high bit in the cache file unless we assign to the vars.
11118 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11119 eval ac_val=\$$ac_var
11120 case $ac_val in #(
11121 *${as_nl}*)
11122 case $ac_var in #(
11123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11125 esac
11126 case $ac_var in #(
11127 _ | IFS | as_nl) ;; #(
11128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11129 *) { eval $ac_var=; unset $ac_var;} ;;
11130 esac ;;
11131 esac
11132 done
11134 (set) 2>&1 |
11135 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11136 *${as_nl}ac_space=\ *)
11137 # `set' does not quote correctly, so add quotes: double-quote
11138 # substitution turns \\\\ into \\, and sed turns \\ into \.
11139 sed -n \
11140 "s/'/'\\\\''/g;
11141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11142 ;; #(
11144 # `set' quotes correctly as required by POSIX, so do not add quotes.
11145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11147 esac |
11148 sort
11150 sed '
11151 /^ac_cv_env_/b end
11152 t clear
11153 :clear
11154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11155 t end
11156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11157 :end' >>confcache
11158 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11159 if test -w "$cache_file"; then
11160 test "x$cache_file" != "x/dev/null" &&
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11162 $as_echo "$as_me: updating cache $cache_file" >&6;}
11163 cat confcache >$cache_file
11164 else
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11166 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11169 rm -f confcache
11171 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11172 # Let make expand exec_prefix.
11173 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11175 DEFS=-DHAVE_CONFIG_H
11177 ac_libobjs=
11178 ac_ltlibobjs=
11180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11181 # 1. Remove the extension, and $U if already installed.
11182 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11183 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11184 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11185 # will be set to the directory where LIBOBJS objects are built.
11186 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11187 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11188 done
11189 LIBOBJS=$ac_libobjs
11191 LTLIBOBJS=$ac_ltlibobjs
11195 : ${CONFIG_STATUS=./config.status}
11196 ac_write_fail=0
11197 ac_clean_files_save=$ac_clean_files
11198 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11200 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11201 as_write_fail=0
11202 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11203 #! $SHELL
11204 # Generated by $as_me.
11205 # Run this file to recreate the current configuration.
11206 # Compiler output produced by configure, useful for debugging
11207 # configure, is in config.log if it exists.
11209 debug=false
11210 ac_cs_recheck=false
11211 ac_cs_silent=false
11213 SHELL=\${CONFIG_SHELL-$SHELL}
11214 export SHELL
11215 _ASEOF
11216 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11217 ## -------------------- ##
11218 ## M4sh Initialization. ##
11219 ## -------------------- ##
11221 # Be more Bourne compatible
11222 DUALCASE=1; export DUALCASE # for MKS sh
11223 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11224 emulate sh
11225 NULLCMD=:
11226 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11227 # is contrary to our usage. Disable this feature.
11228 alias -g '${1+"$@"}'='"$@"'
11229 setopt NO_GLOB_SUBST
11230 else
11231 case `(set -o) 2>/dev/null` in #(
11232 *posix*) :
11233 set -o posix ;; #(
11234 *) :
11236 esac
11240 as_nl='
11242 export as_nl
11243 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11244 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11247 # Prefer a ksh shell builtin over an external printf program on Solaris,
11248 # but without wasting forks for bash or zsh.
11249 if test -z "$BASH_VERSION$ZSH_VERSION" \
11250 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11251 as_echo='print -r --'
11252 as_echo_n='print -rn --'
11253 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11254 as_echo='printf %s\n'
11255 as_echo_n='printf %s'
11256 else
11257 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11258 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11259 as_echo_n='/usr/ucb/echo -n'
11260 else
11261 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11262 as_echo_n_body='eval
11263 arg=$1;
11264 case $arg in #(
11265 *"$as_nl"*)
11266 expr "X$arg" : "X\\(.*\\)$as_nl";
11267 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11268 esac;
11269 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11271 export as_echo_n_body
11272 as_echo_n='sh -c $as_echo_n_body as_echo'
11274 export as_echo_body
11275 as_echo='sh -c $as_echo_body as_echo'
11278 # The user is always right.
11279 if test "${PATH_SEPARATOR+set}" != set; then
11280 PATH_SEPARATOR=:
11281 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11282 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11283 PATH_SEPARATOR=';'
11288 # IFS
11289 # We need space, tab and new line, in precisely that order. Quoting is
11290 # there to prevent editors from complaining about space-tab.
11291 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11292 # splitting by setting IFS to empty value.)
11293 IFS=" "" $as_nl"
11295 # Find who we are. Look in the path if we contain no directory separator.
11296 case $0 in #((
11297 *[\\/]* ) as_myself=$0 ;;
11298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
11303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11304 done
11305 IFS=$as_save_IFS
11308 esac
11309 # We did not find ourselves, most probably we were run as `sh COMMAND'
11310 # in which case we are not to be found in the path.
11311 if test "x$as_myself" = x; then
11312 as_myself=$0
11314 if test ! -f "$as_myself"; then
11315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11316 exit 1
11319 # Unset variables that we do not need and which cause bugs (e.g. in
11320 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11321 # suppresses any "Segmentation fault" message there. '((' could
11322 # trigger a bug in pdksh 5.2.14.
11323 for as_var in BASH_ENV ENV MAIL MAILPATH
11324 do eval test x\${$as_var+set} = xset \
11325 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11326 done
11327 PS1='$ '
11328 PS2='> '
11329 PS4='+ '
11331 # NLS nuisances.
11332 LC_ALL=C
11333 export LC_ALL
11334 LANGUAGE=C
11335 export LANGUAGE
11337 # CDPATH.
11338 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11341 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11342 # ----------------------------------------
11343 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11344 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11345 # script with STATUS, using 1 if that was 0.
11346 as_fn_error ()
11348 as_status=$1; test $as_status -eq 0 && as_status=1
11349 if test "$4"; then
11350 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11351 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11353 $as_echo "$as_me: error: $2" >&2
11354 as_fn_exit $as_status
11355 } # as_fn_error
11358 # as_fn_set_status STATUS
11359 # -----------------------
11360 # Set $? to STATUS, without forking.
11361 as_fn_set_status ()
11363 return $1
11364 } # as_fn_set_status
11366 # as_fn_exit STATUS
11367 # -----------------
11368 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11369 as_fn_exit ()
11371 set +e
11372 as_fn_set_status $1
11373 exit $1
11374 } # as_fn_exit
11376 # as_fn_unset VAR
11377 # ---------------
11378 # Portably unset VAR.
11379 as_fn_unset ()
11381 { eval $1=; unset $1;}
11383 as_unset=as_fn_unset
11384 # as_fn_append VAR VALUE
11385 # ----------------------
11386 # Append the text in VALUE to the end of the definition contained in VAR. Take
11387 # advantage of any shell optimizations that allow amortized linear growth over
11388 # repeated appends, instead of the typical quadratic growth present in naive
11389 # implementations.
11390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11391 eval 'as_fn_append ()
11393 eval $1+=\$2
11395 else
11396 as_fn_append ()
11398 eval $1=\$$1\$2
11400 fi # as_fn_append
11402 # as_fn_arith ARG...
11403 # ------------------
11404 # Perform arithmetic evaluation on the ARGs, and store the result in the
11405 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11406 # must be portable across $(()) and expr.
11407 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11408 eval 'as_fn_arith ()
11410 as_val=$(( $* ))
11412 else
11413 as_fn_arith ()
11415 as_val=`expr "$@" || test $? -eq 1`
11417 fi # as_fn_arith
11420 if expr a : '\(a\)' >/dev/null 2>&1 &&
11421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11422 as_expr=expr
11423 else
11424 as_expr=false
11427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11428 as_basename=basename
11429 else
11430 as_basename=false
11433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11434 as_dirname=dirname
11435 else
11436 as_dirname=false
11439 as_me=`$as_basename -- "$0" ||
11440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11441 X"$0" : 'X\(//\)$' \| \
11442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11443 $as_echo X/"$0" |
11444 sed '/^.*\/\([^/][^/]*\)\/*$/{
11445 s//\1/
11448 /^X\/\(\/\/\)$/{
11449 s//\1/
11452 /^X\/\(\/\).*/{
11453 s//\1/
11456 s/.*/./; q'`
11458 # Avoid depending upon Character Ranges.
11459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11462 as_cr_digits='0123456789'
11463 as_cr_alnum=$as_cr_Letters$as_cr_digits
11465 ECHO_C= ECHO_N= ECHO_T=
11466 case `echo -n x` in #(((((
11467 -n*)
11468 case `echo 'xy\c'` in
11469 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11470 xy) ECHO_C='\c';;
11471 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11472 ECHO_T=' ';;
11473 esac;;
11475 ECHO_N='-n';;
11476 esac
11478 rm -f conf$$ conf$$.exe conf$$.file
11479 if test -d conf$$.dir; then
11480 rm -f conf$$.dir/conf$$.file
11481 else
11482 rm -f conf$$.dir
11483 mkdir conf$$.dir 2>/dev/null
11485 if (echo >conf$$.file) 2>/dev/null; then
11486 if ln -s conf$$.file conf$$ 2>/dev/null; then
11487 as_ln_s='ln -s'
11488 # ... but there are two gotchas:
11489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11491 # In both cases, we have to default to `cp -p'.
11492 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11493 as_ln_s='cp -p'
11494 elif ln conf$$.file conf$$ 2>/dev/null; then
11495 as_ln_s=ln
11496 else
11497 as_ln_s='cp -p'
11499 else
11500 as_ln_s='cp -p'
11502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11503 rmdir conf$$.dir 2>/dev/null
11506 # as_fn_mkdir_p
11507 # -------------
11508 # Create "$as_dir" as a directory, including parents if necessary.
11509 as_fn_mkdir_p ()
11512 case $as_dir in #(
11513 -*) as_dir=./$as_dir;;
11514 esac
11515 test -d "$as_dir" || eval $as_mkdir_p || {
11516 as_dirs=
11517 while :; do
11518 case $as_dir in #(
11519 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11520 *) as_qdir=$as_dir;;
11521 esac
11522 as_dirs="'$as_qdir' $as_dirs"
11523 as_dir=`$as_dirname -- "$as_dir" ||
11524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11525 X"$as_dir" : 'X\(//\)[^/]' \| \
11526 X"$as_dir" : 'X\(//\)$' \| \
11527 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11528 $as_echo X"$as_dir" |
11529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11530 s//\1/
11533 /^X\(\/\/\)[^/].*/{
11534 s//\1/
11537 /^X\(\/\/\)$/{
11538 s//\1/
11541 /^X\(\/\).*/{
11542 s//\1/
11545 s/.*/./; q'`
11546 test -d "$as_dir" && break
11547 done
11548 test -z "$as_dirs" || eval "mkdir $as_dirs"
11549 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11552 } # as_fn_mkdir_p
11553 if mkdir -p . 2>/dev/null; then
11554 as_mkdir_p='mkdir -p "$as_dir"'
11555 else
11556 test -d ./-p && rmdir ./-p
11557 as_mkdir_p=false
11560 if test -x / >/dev/null 2>&1; then
11561 as_test_x='test -x'
11562 else
11563 if ls -dL / >/dev/null 2>&1; then
11564 as_ls_L_option=L
11565 else
11566 as_ls_L_option=
11568 as_test_x='
11569 eval sh -c '\''
11570 if test -d "$1"; then
11571 test -d "$1/.";
11572 else
11573 case $1 in #(
11574 -*)set "./$1";;
11575 esac;
11576 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11577 ???[sx]*):;;*)false;;esac;fi
11578 '\'' sh
11581 as_executable_p=$as_test_x
11583 # Sed expression to map a string onto a valid CPP name.
11584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11586 # Sed expression to map a string onto a valid variable name.
11587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11590 exec 6>&1
11591 ## ----------------------------------- ##
11592 ## Main body of $CONFIG_STATUS script. ##
11593 ## ----------------------------------- ##
11594 _ASEOF
11595 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11598 # Save the log message, to keep $0 and so on meaningful, and to
11599 # report actual input values of CONFIG_FILES etc. instead of their
11600 # values after options handling.
11601 ac_log="
11602 This file was extended by $as_me, which was
11603 generated by GNU Autoconf 2.67. Invocation command line was
11605 CONFIG_FILES = $CONFIG_FILES
11606 CONFIG_HEADERS = $CONFIG_HEADERS
11607 CONFIG_LINKS = $CONFIG_LINKS
11608 CONFIG_COMMANDS = $CONFIG_COMMANDS
11609 $ $0 $@
11611 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11614 _ACEOF
11616 case $ac_config_files in *"
11617 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11618 esac
11620 case $ac_config_headers in *"
11621 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11622 esac
11625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11626 # Files that config.status was made for.
11627 config_files="$ac_config_files"
11628 config_headers="$ac_config_headers"
11629 config_commands="$ac_config_commands"
11631 _ACEOF
11633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11634 ac_cs_usage="\
11635 \`$as_me' instantiates files and other configuration actions
11636 from templates according to the current configuration. Unless the files
11637 and actions are specified as TAGs, all are instantiated by default.
11639 Usage: $0 [OPTION]... [TAG]...
11641 -h, --help print this help, then exit
11642 -V, --version print version number and configuration settings, then exit
11643 --config print configuration, then exit
11644 -q, --quiet, --silent
11645 do not print progress messages
11646 -d, --debug don't remove temporary files
11647 --recheck update $as_me by reconfiguring in the same conditions
11648 --file=FILE[:TEMPLATE]
11649 instantiate the configuration file FILE
11650 --header=FILE[:TEMPLATE]
11651 instantiate the configuration header FILE
11653 Configuration files:
11654 $config_files
11656 Configuration headers:
11657 $config_headers
11659 Configuration commands:
11660 $config_commands
11662 Report bugs to the package provider."
11664 _ACEOF
11665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11666 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11667 ac_cs_version="\\
11668 config.status
11669 configured by $0, generated by GNU Autoconf 2.67,
11670 with options \\"\$ac_cs_config\\"
11672 Copyright (C) 2010 Free Software Foundation, Inc.
11673 This config.status script is free software; the Free Software Foundation
11674 gives unlimited permission to copy, distribute and modify it."
11676 ac_pwd='$ac_pwd'
11677 srcdir='$srcdir'
11678 test -n "\$AWK" || AWK=awk
11679 _ACEOF
11681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11682 # The default lists apply if the user does not specify any file.
11683 ac_need_defaults=:
11684 while test $# != 0
11686 case $1 in
11687 --*=?*)
11688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11690 ac_shift=:
11692 --*=)
11693 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11694 ac_optarg=
11695 ac_shift=:
11698 ac_option=$1
11699 ac_optarg=$2
11700 ac_shift=shift
11702 esac
11704 case $ac_option in
11705 # Handling of the options.
11706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11707 ac_cs_recheck=: ;;
11708 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11709 $as_echo "$ac_cs_version"; exit ;;
11710 --config | --confi | --conf | --con | --co | --c )
11711 $as_echo "$ac_cs_config"; exit ;;
11712 --debug | --debu | --deb | --de | --d | -d )
11713 debug=: ;;
11714 --file | --fil | --fi | --f )
11715 $ac_shift
11716 case $ac_optarg in
11717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11718 '') as_fn_error $? "missing file argument" ;;
11719 esac
11720 as_fn_append CONFIG_FILES " '$ac_optarg'"
11721 ac_need_defaults=false;;
11722 --header | --heade | --head | --hea )
11723 $ac_shift
11724 case $ac_optarg in
11725 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11726 esac
11727 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11728 ac_need_defaults=false;;
11729 --he | --h)
11730 # Conflict between --help and --header
11731 as_fn_error $? "ambiguous option: \`$1'
11732 Try \`$0 --help' for more information.";;
11733 --help | --hel | -h )
11734 $as_echo "$ac_cs_usage"; exit ;;
11735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11737 ac_cs_silent=: ;;
11739 # This is an error.
11740 -*) as_fn_error $? "unrecognized option: \`$1'
11741 Try \`$0 --help' for more information." ;;
11743 *) as_fn_append ac_config_targets " $1"
11744 ac_need_defaults=false ;;
11746 esac
11747 shift
11748 done
11750 ac_configure_extra_args=
11752 if $ac_cs_silent; then
11753 exec 6>/dev/null
11754 ac_configure_extra_args="$ac_configure_extra_args --silent"
11757 _ACEOF
11758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11759 if \$ac_cs_recheck; then
11760 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11761 shift
11762 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11763 CONFIG_SHELL='$SHELL'
11764 export CONFIG_SHELL
11765 exec "\$@"
11768 _ACEOF
11769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11770 exec 5>>config.log
11772 echo
11773 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11774 ## Running $as_me. ##
11775 _ASBOX
11776 $as_echo "$ac_log"
11777 } >&5
11779 _ACEOF
11780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11782 # INIT-COMMANDS
11785 aros_host_exe_suffix=${aros_host_exe_suffix}
11786 aros_tools_dir=${aros_tools_dir}
11787 aros_target_cpu=${aros_target_cpu}
11788 aros_target_arch=${aros_target_arch}
11789 aros_target_suffix=${aros_target_suffix}
11790 aros_target_nm_ln=${aros_target_nm_ln}
11791 aros_target_as_ln=${aros_target_as_ln}
11792 aros_target_ar_ln=${aros_target_ar_ln}
11793 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11794 aros_target_objdump_ln=${aros_target_objdump_ln}
11795 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11796 aros_target_strip_ln=${aros_target_strip_ln}
11799 aros_tools_dir=${aros_tools_dir}
11802 _ACEOF
11804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11806 # Handling of arguments.
11807 for ac_config_target in $ac_config_targets
11809 case $ac_config_target in
11810 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11811 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11812 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11813 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11814 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11815 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11816 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11817 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11818 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11819 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11820 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11821 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11822 "${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" ;;
11823 "${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" ;;
11824 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11825 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11826 "${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" ;;
11828 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11829 esac
11830 done
11833 # If the user did not use the arguments to specify the items to instantiate,
11834 # then the envvar interface is used. Set only those that are not.
11835 # We use the long form for the default assignment because of an extremely
11836 # bizarre bug on SunOS 4.1.3.
11837 if $ac_need_defaults; then
11838 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11839 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11840 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11843 # Have a temporary directory for convenience. Make it in the build tree
11844 # simply because there is no reason against having it here, and in addition,
11845 # creating and moving files from /tmp can sometimes cause problems.
11846 # Hook for its removal unless debugging.
11847 # Note that there is a small window in which the directory will not be cleaned:
11848 # after its creation but before its name has been assigned to `$tmp'.
11849 $debug ||
11851 tmp=
11852 trap 'exit_status=$?
11853 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11855 trap 'as_fn_exit 1' 1 2 13 15
11857 # Create a (secure) tmp directory for tmp files.
11860 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11861 test -n "$tmp" && test -d "$tmp"
11862 } ||
11864 tmp=./conf$$-$RANDOM
11865 (umask 077 && mkdir "$tmp")
11866 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11868 # Set up the scripts for CONFIG_FILES section.
11869 # No need to generate them if there are no CONFIG_FILES.
11870 # This happens for instance with `./config.status config.h'.
11871 if test -n "$CONFIG_FILES"; then
11874 ac_cr=`echo X | tr X '\015'`
11875 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11876 # But we know of no other shell where ac_cr would be empty at this
11877 # point, so we can use a bashism as a fallback.
11878 if test "x$ac_cr" = x; then
11879 eval ac_cr=\$\'\\r\'
11881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11883 ac_cs_awk_cr='\\r'
11884 else
11885 ac_cs_awk_cr=$ac_cr
11888 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11889 _ACEOF
11893 echo "cat >conf$$subs.awk <<_ACEOF" &&
11894 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11895 echo "_ACEOF"
11896 } >conf$$subs.sh ||
11897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11899 ac_delim='%!_!# '
11900 for ac_last_try in false false false false false :; do
11901 . ./conf$$subs.sh ||
11902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11904 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11905 if test $ac_delim_n = $ac_delim_num; then
11906 break
11907 elif $ac_last_try; then
11908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11909 else
11910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11912 done
11913 rm -f conf$$subs.sh
11915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11916 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11917 _ACEOF
11918 sed -n '
11920 s/^/S["/; s/!.*/"]=/
11923 s/^[^!]*!//
11924 :repl
11925 t repl
11926 s/'"$ac_delim"'$//
11927 t delim
11930 s/\(.\{148\}\)..*/\1/
11931 t more1
11932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11935 b repl
11936 :more1
11937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11940 s/.\{148\}//
11941 t nl
11942 :delim
11944 s/\(.\{148\}\)..*/\1/
11945 t more2
11946 s/["\\]/\\&/g; s/^/"/; s/$/"/
11949 :more2
11950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11953 s/.\{148\}//
11954 t delim
11955 ' <conf$$subs.awk | sed '
11956 /^[^""]/{
11958 s/\n//
11960 ' >>$CONFIG_STATUS || ac_write_fail=1
11961 rm -f conf$$subs.awk
11962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11963 _ACAWK
11964 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11965 for (key in S) S_is_set[key] = 1
11966 FS = "\a"
11970 line = $ 0
11971 nfields = split(line, field, "@")
11972 substed = 0
11973 len = length(field[1])
11974 for (i = 2; i < nfields; i++) {
11975 key = field[i]
11976 keylen = length(key)
11977 if (S_is_set[key]) {
11978 value = S[key]
11979 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11980 len += length(value) + length(field[++i])
11981 substed = 1
11982 } else
11983 len += 1 + keylen
11986 print line
11989 _ACAWK
11990 _ACEOF
11991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11993 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11994 else
11996 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11997 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11998 _ACEOF
12000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12002 # trailing colons and then remove the whole line if VPATH becomes empty
12003 # (actually we leave an empty line to preserve line numbers).
12004 if test "x$srcdir" = x.; then
12005 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12007 s///
12008 s/^/:/
12009 s/[ ]*$/:/
12010 s/:\$(srcdir):/:/g
12011 s/:\${srcdir}:/:/g
12012 s/:@srcdir@:/:/g
12013 s/^:*//
12014 s/:*$//
12016 s/\(=[ ]*\).*/\1/
12018 s/\n//
12019 s/^[^=]*=[ ]*$//
12023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12024 fi # test -n "$CONFIG_FILES"
12026 # Set up the scripts for CONFIG_HEADERS section.
12027 # No need to generate them if there are no CONFIG_HEADERS.
12028 # This happens for instance with `./config.status Makefile'.
12029 if test -n "$CONFIG_HEADERS"; then
12030 cat >"$tmp/defines.awk" <<\_ACAWK ||
12031 BEGIN {
12032 _ACEOF
12034 # Transform confdefs.h into an awk script `defines.awk', embedded as
12035 # here-document in config.status, that substitutes the proper values into
12036 # config.h.in to produce config.h.
12038 # Create a delimiter string that does not exist in confdefs.h, to ease
12039 # handling of long lines.
12040 ac_delim='%!_!# '
12041 for ac_last_try in false false :; do
12042 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12043 if test -z "$ac_t"; then
12044 break
12045 elif $ac_last_try; then
12046 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12047 else
12048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12050 done
12052 # For the awk script, D is an array of macro values keyed by name,
12053 # likewise P contains macro parameters if any. Preserve backslash
12054 # newline sequences.
12056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12057 sed -n '
12058 s/.\{148\}/&'"$ac_delim"'/g
12059 t rset
12060 :rset
12061 s/^[ ]*#[ ]*define[ ][ ]*/ /
12062 t def
12064 :def
12065 s/\\$//
12066 t bsnl
12067 s/["\\]/\\&/g
12068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12069 D["\1"]=" \3"/p
12070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12072 :bsnl
12073 s/["\\]/\\&/g
12074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12075 D["\1"]=" \3\\\\\\n"\\/p
12076 t cont
12077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12078 t cont
12080 :cont
12082 s/.\{148\}/&'"$ac_delim"'/g
12083 t clear
12084 :clear
12085 s/\\$//
12086 t bsnlc
12087 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12089 :bsnlc
12090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12091 b cont
12092 ' <confdefs.h | sed '
12093 s/'"$ac_delim"'/"\\\
12094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12097 for (key in D) D_is_set[key] = 1
12098 FS = "\a"
12100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12101 line = \$ 0
12102 split(line, arg, " ")
12103 if (arg[1] == "#") {
12104 defundef = arg[2]
12105 mac1 = arg[3]
12106 } else {
12107 defundef = substr(arg[1], 2)
12108 mac1 = arg[2]
12110 split(mac1, mac2, "(") #)
12111 macro = mac2[1]
12112 prefix = substr(line, 1, index(line, defundef) - 1)
12113 if (D_is_set[macro]) {
12114 # Preserve the white space surrounding the "#".
12115 print prefix "define", macro P[macro] D[macro]
12116 next
12117 } else {
12118 # Replace #undef with comments. This is necessary, for example,
12119 # in the case of _POSIX_SOURCE, which is predefined and required
12120 # on some systems where configure will not decide to define it.
12121 if (defundef == "undef") {
12122 print "/*", prefix defundef, macro, "*/"
12123 next
12127 { print }
12128 _ACAWK
12129 _ACEOF
12130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12131 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12132 fi # test -n "$CONFIG_HEADERS"
12135 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12136 shift
12137 for ac_tag
12139 case $ac_tag in
12140 :[FHLC]) ac_mode=$ac_tag; continue;;
12141 esac
12142 case $ac_mode$ac_tag in
12143 :[FHL]*:*);;
12144 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12145 :[FH]-) ac_tag=-:-;;
12146 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12147 esac
12148 ac_save_IFS=$IFS
12149 IFS=:
12150 set x $ac_tag
12151 IFS=$ac_save_IFS
12152 shift
12153 ac_file=$1
12154 shift
12156 case $ac_mode in
12157 :L) ac_source=$1;;
12158 :[FH])
12159 ac_file_inputs=
12160 for ac_f
12162 case $ac_f in
12163 -) ac_f="$tmp/stdin";;
12164 *) # Look for the file first in the build tree, then in the source tree
12165 # (if the path is not absolute). The absolute path cannot be DOS-style,
12166 # because $ac_f cannot contain `:'.
12167 test -f "$ac_f" ||
12168 case $ac_f in
12169 [\\/$]*) false;;
12170 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12171 esac ||
12172 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12173 esac
12174 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12175 as_fn_append ac_file_inputs " '$ac_f'"
12176 done
12178 # Let's still pretend it is `configure' which instantiates (i.e., don't
12179 # use $as_me), people would be surprised to read:
12180 # /* config.h. Generated by config.status. */
12181 configure_input='Generated from '`
12182 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12183 `' by configure.'
12184 if test x"$ac_file" != x-; then
12185 configure_input="$ac_file. $configure_input"
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12187 $as_echo "$as_me: creating $ac_file" >&6;}
12189 # Neutralize special characters interpreted by sed in replacement strings.
12190 case $configure_input in #(
12191 *\&* | *\|* | *\\* )
12192 ac_sed_conf_input=`$as_echo "$configure_input" |
12193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12194 *) ac_sed_conf_input=$configure_input;;
12195 esac
12197 case $ac_tag in
12198 *:-:* | *:-) cat >"$tmp/stdin" \
12199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12200 esac
12202 esac
12204 ac_dir=`$as_dirname -- "$ac_file" ||
12205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12206 X"$ac_file" : 'X\(//\)[^/]' \| \
12207 X"$ac_file" : 'X\(//\)$' \| \
12208 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12209 $as_echo X"$ac_file" |
12210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12211 s//\1/
12214 /^X\(\/\/\)[^/].*/{
12215 s//\1/
12218 /^X\(\/\/\)$/{
12219 s//\1/
12222 /^X\(\/\).*/{
12223 s//\1/
12226 s/.*/./; q'`
12227 as_dir="$ac_dir"; as_fn_mkdir_p
12228 ac_builddir=.
12230 case "$ac_dir" in
12231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12233 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12234 # A ".." for each directory in $ac_dir_suffix.
12235 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12236 case $ac_top_builddir_sub in
12237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12239 esac ;;
12240 esac
12241 ac_abs_top_builddir=$ac_pwd
12242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12243 # for backward compatibility:
12244 ac_top_builddir=$ac_top_build_prefix
12246 case $srcdir in
12247 .) # We are building in place.
12248 ac_srcdir=.
12249 ac_top_srcdir=$ac_top_builddir_sub
12250 ac_abs_top_srcdir=$ac_pwd ;;
12251 [\\/]* | ?:[\\/]* ) # Absolute name.
12252 ac_srcdir=$srcdir$ac_dir_suffix;
12253 ac_top_srcdir=$srcdir
12254 ac_abs_top_srcdir=$srcdir ;;
12255 *) # Relative name.
12256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12257 ac_top_srcdir=$ac_top_build_prefix$srcdir
12258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12259 esac
12260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12263 case $ac_mode in
12266 # CONFIG_FILE
12269 _ACEOF
12271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12272 # If the template does not know about datarootdir, expand it.
12273 # FIXME: This hack should be removed a few years after 2.60.
12274 ac_datarootdir_hack=; ac_datarootdir_seen=
12275 ac_sed_dataroot='
12276 /datarootdir/ {
12280 /@datadir@/p
12281 /@docdir@/p
12282 /@infodir@/p
12283 /@localedir@/p
12284 /@mandir@/p'
12285 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12286 *datarootdir*) ac_datarootdir_seen=yes;;
12287 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12289 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12290 _ACEOF
12291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12292 ac_datarootdir_hack='
12293 s&@datadir@&$datadir&g
12294 s&@docdir@&$docdir&g
12295 s&@infodir@&$infodir&g
12296 s&@localedir@&$localedir&g
12297 s&@mandir@&$mandir&g
12298 s&\\\${datarootdir}&$datarootdir&g' ;;
12299 esac
12300 _ACEOF
12302 # Neutralize VPATH when `$srcdir' = `.'.
12303 # Shell code in configure.ac might set extrasub.
12304 # FIXME: do we really want to maintain this feature?
12305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12306 ac_sed_extra="$ac_vpsub
12307 $extrasub
12308 _ACEOF
12309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12312 s|@configure_input@|$ac_sed_conf_input|;t t
12313 s&@top_builddir@&$ac_top_builddir_sub&;t t
12314 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12315 s&@srcdir@&$ac_srcdir&;t t
12316 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12317 s&@top_srcdir@&$ac_top_srcdir&;t t
12318 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12319 s&@builddir@&$ac_builddir&;t t
12320 s&@abs_builddir@&$ac_abs_builddir&;t t
12321 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12322 $ac_datarootdir_hack
12324 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12325 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12327 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12328 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12329 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12331 which seems to be undefined. Please make sure it is defined" >&5
12332 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12333 which seems to be undefined. Please make sure it is defined" >&2;}
12335 rm -f "$tmp/stdin"
12336 case $ac_file in
12337 -) cat "$tmp/out" && rm -f "$tmp/out";;
12338 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12339 esac \
12340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12344 # CONFIG_HEADER
12346 if test x"$ac_file" != x-; then
12348 $as_echo "/* $configure_input */" \
12349 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12350 } >"$tmp/config.h" \
12351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12352 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12354 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12355 else
12356 rm -f "$ac_file"
12357 mv "$tmp/config.h" "$ac_file" \
12358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12360 else
12361 $as_echo "/* $configure_input */" \
12362 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12363 || as_fn_error $? "could not create -" "$LINENO" 5
12367 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12368 $as_echo "$as_me: executing $ac_file commands" >&6;}
12370 esac
12373 case $ac_file$ac_mode in
12374 "compiler_executable":C)
12375 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12376 mkdir -p $prefix
12377 prefix="${prefix}/${aros_target_cpu}-aros"
12378 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12380 echo ${prefix}
12381 echo ${prefix2}
12382 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12384 ln -sf ${prefix2}-gcc ${prefix}-gcc
12385 ln -sf ${prefix2}-ld ${prefix}-ld
12387 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12388 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12389 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12390 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12391 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12392 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12393 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12395 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12396 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12397 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12398 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12399 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12400 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12401 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12403 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12405 esac
12406 done # for ac_tag
12409 as_fn_exit 0
12410 _ACEOF
12411 ac_clean_files=$ac_clean_files_save
12413 test $ac_write_fail = 0 ||
12414 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12417 # configure is writing to config.log, and then calls config.status.
12418 # config.status does its own redirection, appending to config.log.
12419 # Unfortunately, on DOS this fails, as config.log is still kept open
12420 # by configure, so config.status won't be able to write to it; its
12421 # output is simply discarded. So we exec the FD to /dev/null,
12422 # effectively closing config.log, so it can be properly (re)opened and
12423 # appended to by config.status. When coming back to configure, we
12424 # need to make the FD available again.
12425 if test "$no_create" != yes; then
12426 ac_cs_success=:
12427 ac_config_status_args=
12428 test "$silent" = yes &&
12429 ac_config_status_args="$ac_config_status_args --quiet"
12430 exec 5>/dev/null
12431 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12432 exec 5>>config.log
12433 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12434 # would make configure fail if this is the last instruction.
12435 $ac_cs_success || as_fn_exit 1
12437 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12439 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12444 #XXX compatability...
12445 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12447 if test -n "$aros_shared_cflags" ; then
12448 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12449 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg