rom/exec: Use flavour 'BINCOMPAT' instead of 'NATIVE' for Amigaisms
[AROS.git] / configure
blobd5401c639273b54716f39710a1c991d70be64a05
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 aros_target_cc
714 aros_target_ld
715 aros_target_as_ln
716 aros_kernel_ld
717 aros_target_ar_ln
718 aros_target_nm_ln
719 aros_target_objcopy_ln
720 aros_target_objdump_ln
721 aros_target_ranlib_ln
722 aros_target_strip_ln
723 aros_target_cxx
724 aros_kernel_rescomp
725 aros_target_nostdinc_cflags
726 aros_target_nostartup_ldflags
727 aros_target_nix_ldflags
728 aros_target_detach_ldflags
729 aros_target_nostdlib_ldflags
730 host_cflags_iquote
731 host_cflags_iquote_end
732 kernel_cflags_iquote
733 kernel_cflags_iquote_end
734 aros_cflags_iquote
735 aros_cflags_iquote_end
736 XMKMF
737 SDL_CONFIG
738 SDL_CFLAGS
739 SDL_LIBS
740 aros_arch
741 aros_cpu
742 aros_flavour
743 aros_flavour_uc
744 AROS_BUILDDIR
745 AROS_BUILDDIR_UNIX
746 SRCDIR
747 AROS_PORTSSRCDIR
748 aros_cc_pre
749 aros_host_arch
750 aros_host_cpu
751 aros_host_cc
752 aros_host_make
753 aros_host_cflags
754 aros_host_ldflags
755 aros_host_debug
756 aros_host_mkdep
757 aros_host_mkargs
758 aros_host_exe_suffix
759 aros_host_lib_suffix
760 aros_tools_dir
761 aros_target_guitheme
762 aros_target_iconset
763 aros_target_bootloader
764 aros_target_arch
765 aros_target_family
766 aros_target_cpu
767 aros_target_variant
768 aros_target_suffix
769 aros_target_incl
770 aros_target_ar
771 aros_target_ranlib
772 aros_kernel_nm
773 orig_target_cc
774 aros_kernel_cc
775 aros_target_as
776 orig_target_ld
777 aros_target_cc_includes
778 aros_target_cc_path
779 aros_target_objdump
780 aros_target_objcopy
781 aros_target_strip
782 aros_target_nm
783 aros_shared_default
784 aros_shared_ld
785 aros_object_format
786 aros_compiler_libs
787 aros_arch_libs
788 aros_config_cflags
789 aros_config_aflags
790 aros_config_ldflags
791 aros_shared_cflags
792 aros_shared_aflags
793 aros_shared_ldflags
794 aros_kernel_cflags
795 aros_kernel_includes
796 aros_kernel_objcflags
797 aros_kernel_ldflags
798 aros_debug_cflags
799 aros_debug_aflags
800 aros_debug_ldflags
801 aros_paranoia_cflags
802 aros_target_genmap
803 aros_target_strip_flags
804 crosstools_target
805 x11_hidd_target
806 sdl_hidd_target
807 oss_library_target
808 aros_default_wbwidth
809 aros_default_wbheight
810 aros_default_wbdepth
811 DO_XSHM_SUPPORT
812 DO_VIDMODE_SUPPORT
813 aros_host_x11_includes
814 aros_host_x11_libdirs
815 aros_host_sdl_cflags
816 aros_host_sdl_libs
817 aros_serial_debug
818 aros_palm_debug_hack
819 aros_nesting_supervisor
820 aros_ios_platform
821 aros_ios_version
822 aros_ios_sdk
823 ENABLE_DBUS
824 DBUS_CFLAGS
825 DBUS_LIBFLAGS
826 KERNEL_DBUS_KOBJ
827 KERNEL_DBUS_INCLUDES
828 ENABLE_X11
829 aros_debug
830 aros_mungwall_debug
831 aros_stack_debug
832 aros_modules_debug
833 ignore_undefined_symbols
834 gcc_target_cpu
835 LTLIBOBJS'
836 ac_subst_files=''
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
846 XMKMF'
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
953 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954 { (exit 1); exit 1; }; }
955 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
956 eval enable_$ac_feature=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
968 -enable-* | --enable-*)
969 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
972 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
973 { (exit 1); exit 1; }; }
974 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
975 eval enable_$ac_feature=\$ac_optarg ;;
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1165 -with-* | --with-*)
1166 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 { echo "$as_me: error: invalid package name: $ac_package" >&2
1170 { (exit 1); exit 1; }; }
1171 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1172 eval with_$ac_package=\$ac_optarg ;;
1174 -without-* | --without-*)
1175 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid package name: $ac_package" >&2
1179 { (exit 1); exit 1; }; }
1180 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1181 eval with_$ac_package=no ;;
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1201 -*) { echo "$as_me: error: unrecognized option: $ac_option
1202 Try \`$0 --help' for more information." >&2
1203 { (exit 1); exit 1; }; }
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1210 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1211 { (exit 1); exit 1; }; }
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1216 # FIXME: should be removed in autoconf 3.0.
1217 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1223 esac
1224 done
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 { echo "$as_me: error: missing argument to $ac_option" >&2
1229 { (exit 1); exit 1; }; }
1232 # Be sure to have absolute directory names.
1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1238 eval ac_val=\$$ac_var
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
1243 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1244 { (exit 1); exit 1; }; }
1245 done
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1259 If a cross compiler is detected then cross compile mode will be used." >&2
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268 test "$silent" = yes && exec 6>/dev/null
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 { echo "$as_me: error: Working directory cannot be determined" >&2
1275 { (exit 1); exit 1; }; }
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 { echo "$as_me: error: pwd does not report name of working directory" >&2
1278 { (exit 1); exit 1; }; }
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$0" ||
1286 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$0" : 'X\(//\)[^/]' \| \
1288 X"$0" : 'X\(//\)$' \| \
1289 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1290 echo X"$0" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1299 /^X\(\/\/\)$/{
1300 s//\1/
1303 /^X\(\/\).*/{
1304 s//\1/
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1312 else
1313 ac_srcdir_defaulted=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1318 { (exit 1); exit 1; }; }
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1323 { (exit 1); exit 1; }; }
1324 pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1343 # Report the --help message.
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349 \`configure' configures this package to adapt to many kinds of systems.
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1356 Defaults for the options are specified in brackets.
1358 Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1380 For better control, use the options below.
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1404 cat <<\_ACEOF
1406 X features:
1407 --x-includes=DIR X include files are in DIR
1408 --x-libraries=DIR X library files are in DIR
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1416 if test -n "$ac_init_help"; then
1418 cat <<\_ACEOF
1420 Optional Features:
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-build-type=TYPE
1424 Select the build type. Available types are:
1425 personal, nightly, snapshot, milestone, release. Do
1426 NOT use this option unless you know what you are
1427 doing! (default=personal)
1428 --enable-debug=list Enable different types of debug. Commas or
1429 whitespaces can be used to separate the items in the
1430 list. Available types of debug are: all, none,
1431 messages, stack, mungwall, modules, symbols. If no
1432 list is provided then "all" is assumed.
1433 (default=none)
1434 --enable-crosstools Build cross-compiler toolchains if necessary
1435 (default=no).
1436 --enable-distcc Use distcc as a front end to the compiler
1437 (default=no).
1438 --enable-ccache Use ccache as a front end to the compiler
1439 (default=no).
1440 --enable-target-variant=NAME
1441 Enable a specific target variant(default=none)
1442 --enable-includes=dir Alternative system include directory
1443 --enable-palm-debug-hack
1444 Enable palm debug output hack in palm native
1445 (default=no)
1446 --enable-nesting-supervisor
1447 Enable nesting supervisor support in unix
1448 (default=no)
1449 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1450 --enable-x11-shm use X11 shared memory (default=auto)
1451 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1452 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1453 --disable-sdltest Do not try to compile and run a test SDL program
1454 --enable-dbus Enable DBUS support via dbus.library (default=no)
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-gcc-version=VERSION
1460 Use gcc-VERSION for building AROS
1461 --with-optimization=FLAGS
1462 Use optimization flags FLAGS (default=-O2).
1463 --with-paranoia=FLAGS CC flags to enable paranoia
1464 --with-xcode=PATH Specify XCode path for iOS targets
1465 (default=/Developer).
1466 --with-ios-version=VERSION
1467 Specify minimum supported iOS version (default=2.0).
1468 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1469 --with-portssources=DIR Where to download sourcecode for external ports
1470 --with-bootloader=NAME Use a specific bootloader
1471 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1472 --with-theme=NAME Use a specific GUI Theme
1473 --with-resolution=XRESxYRESxDEPTH
1474 Default resolution of the initial WorkbenchScreen
1475 --with-serial-debug Enable serial debug output in native (default=no)
1476 --with-x use the X Window System
1477 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1478 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489 XMKMF Path to xmkmf, Makefile generator for X Window System
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1494 _ACEOF
1495 ac_status=$?
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" || continue
1502 ac_builddir=.
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553 cat <<\_ACEOF
1554 configure
1555 generated by GNU Autoconf 2.61
1557 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1558 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1564 cat >config.log <<_ACEOF
1565 This file contains any messages produced by compilers while
1566 running configure, to aid debugging if configure makes a mistake.
1568 It was created by $as_me, which was
1569 generated by GNU Autoconf 2.61. Invocation command line was
1571 $ $0 $@
1573 _ACEOF
1574 exec 5>>config.log
1576 cat <<_ASUNAME
1577 ## --------- ##
1578 ## Platform. ##
1579 ## --------- ##
1581 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1582 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1583 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1584 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1585 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1588 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1591 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1592 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1593 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1594 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1595 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1596 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598 _ASUNAME
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1603 IFS=$as_save_IFS
1604 test -z "$as_dir" && as_dir=.
1605 echo "PATH: $as_dir"
1606 done
1607 IFS=$as_save_IFS
1609 } >&5
1611 cat >&5 <<_ACEOF
1614 ## ----------- ##
1615 ## Core tests. ##
1616 ## ----------- ##
1618 _ACEOF
1621 # Keep a trace of the command line.
1622 # Strip out --no-create and --no-recursion so they do not pile up.
1623 # Strip out --silent because we don't want to record it for future runs.
1624 # Also quote any args containing shell meta-characters.
1625 # Make two passes to allow for proper duplicate-argument suppression.
1626 ac_configure_args=
1627 ac_configure_args0=
1628 ac_configure_args1=
1629 ac_must_keep_next=false
1630 for ac_pass in 1 2
1632 for ac_arg
1634 case $ac_arg in
1635 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637 | -silent | --silent | --silen | --sile | --sil)
1638 continue ;;
1639 *\'*)
1640 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1641 esac
1642 case $ac_pass in
1643 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1646 if test $ac_must_keep_next = true; then
1647 ac_must_keep_next=false # Got value, back to normal.
1648 else
1649 case $ac_arg in
1650 *=* | --config-cache | -C | -disable-* | --disable-* \
1651 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1652 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1653 | -with-* | --with-* | -without-* | --without-* | --x)
1654 case "$ac_configure_args0 " in
1655 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1656 esac
1658 -* ) ac_must_keep_next=true ;;
1659 esac
1661 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 esac
1664 done
1665 done
1666 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1667 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669 # When interrupted or exit'd, cleanup temporary files, and complete
1670 # config.log. We remove comments because anyway the quotes in there
1671 # would cause problems or look ugly.
1672 # WARNING: Use '\'' to represent an apostrophe within the trap.
1673 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1674 trap 'exit_status=$?
1675 # Save into config.log some information that might help in debugging.
1677 echo
1679 cat <<\_ASBOX
1680 ## ---------------- ##
1681 ## Cache variables. ##
1682 ## ---------------- ##
1683 _ASBOX
1684 echo
1685 # The following way of writing the cache mishandles newlines in values,
1687 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1688 eval ac_val=\$$ac_var
1689 case $ac_val in #(
1690 *${as_nl}*)
1691 case $ac_var in #(
1692 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1693 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1694 esac
1695 case $ac_var in #(
1696 _ | IFS | as_nl) ;; #(
1697 *) $as_unset $ac_var ;;
1698 esac ;;
1699 esac
1700 done
1701 (set) 2>&1 |
1702 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1703 *${as_nl}ac_space=\ *)
1704 sed -n \
1705 "s/'\''/'\''\\\\'\'''\''/g;
1706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1707 ;; #(
1709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 esac |
1712 sort
1714 echo
1716 cat <<\_ASBOX
1717 ## ----------------- ##
1718 ## Output variables. ##
1719 ## ----------------- ##
1720 _ASBOX
1721 echo
1722 for ac_var in $ac_subst_vars
1724 eval ac_val=\$$ac_var
1725 case $ac_val in
1726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 esac
1728 echo "$ac_var='\''$ac_val'\''"
1729 done | sort
1730 echo
1732 if test -n "$ac_subst_files"; then
1733 cat <<\_ASBOX
1734 ## ------------------- ##
1735 ## File substitutions. ##
1736 ## ------------------- ##
1737 _ASBOX
1738 echo
1739 for ac_var in $ac_subst_files
1741 eval ac_val=\$$ac_var
1742 case $ac_val in
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 esac
1745 echo "$ac_var='\''$ac_val'\''"
1746 done | sort
1747 echo
1750 if test -s confdefs.h; then
1751 cat <<\_ASBOX
1752 ## ----------- ##
1753 ## confdefs.h. ##
1754 ## ----------- ##
1755 _ASBOX
1756 echo
1757 cat confdefs.h
1758 echo
1760 test "$ac_signal" != 0 &&
1761 echo "$as_me: caught signal $ac_signal"
1762 echo "$as_me: exit $exit_status"
1763 } >&5
1764 rm -f core *.core core.conftest.* &&
1765 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1766 exit $exit_status
1768 for ac_signal in 1 2 13 15; do
1769 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1770 done
1771 ac_signal=0
1773 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1774 rm -f -r conftest* confdefs.h
1776 # Predefined preprocessor variables.
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_NAME "$PACKAGE_NAME"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1785 _ACEOF
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1790 _ACEOF
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_STRING "$PACKAGE_STRING"
1795 _ACEOF
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1800 _ACEOF
1803 # Let the site file select an alternate cache file if it wants to.
1804 # Prefer explicitly selected file to automatically selected ones.
1805 if test -n "$CONFIG_SITE"; then
1806 set x "$CONFIG_SITE"
1807 elif test "x$prefix" != xNONE; then
1808 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1809 else
1810 set x "$ac_default_prefix/share/config.site" \
1811 "$ac_default_prefix/etc/config.site"
1813 shift
1814 for ac_site_file
1816 if test -r "$ac_site_file"; then
1817 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1818 echo "$as_me: loading site script $ac_site_file" >&6;}
1819 sed 's/^/| /' "$ac_site_file" >&5
1820 . "$ac_site_file"
1822 done
1824 if test -r "$cache_file"; then
1825 # Some versions of bash will fail to source /dev/null (special
1826 # files actually), so we avoid doing that.
1827 if test -f "$cache_file"; then
1828 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1829 echo "$as_me: loading cache $cache_file" >&6;}
1830 case $cache_file in
1831 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1832 *) . "./$cache_file";;
1833 esac
1835 else
1836 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1837 echo "$as_me: creating cache $cache_file" >&6;}
1838 >$cache_file
1841 # Check that the precious variables saved in the cache have kept the same
1842 # value.
1843 ac_cache_corrupted=false
1844 for ac_var in $ac_precious_vars; do
1845 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1846 eval ac_new_set=\$ac_env_${ac_var}_set
1847 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1848 eval ac_new_val=\$ac_env_${ac_var}_value
1849 case $ac_old_set,$ac_new_set in
1850 set,)
1851 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1852 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1854 ,set)
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1858 ,);;
1860 if test "x$ac_old_val" != "x$ac_new_val"; then
1861 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1862 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1863 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1864 echo "$as_me: former value: $ac_old_val" >&2;}
1865 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1866 echo "$as_me: current value: $ac_new_val" >&2;}
1867 ac_cache_corrupted=:
1868 fi;;
1869 esac
1870 # Pass precious variables to config.status.
1871 if test "$ac_new_set" = set; then
1872 case $ac_new_val in
1873 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1874 *) ac_arg=$ac_var=$ac_new_val ;;
1875 esac
1876 case " $ac_configure_args " in
1877 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1878 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1879 esac
1881 done
1882 if $ac_cache_corrupted; then
1883 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1884 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1885 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1886 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1887 { (exit 1); exit 1; }; }
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 ac_aux_dir=
1915 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1929 done
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 # Check what host we are running on.
1947 # If a target is not suggested, we use this one.
1948 # Note that what we call a target, Autoconf calls a host.
1949 # Make sure we can run config.sub.
1950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1951 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1952 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1953 { (exit 1); exit 1; }; }
1955 { echo "$as_me:$LINENO: checking build system type" >&5
1956 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1957 if test "${ac_cv_build+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 ac_build_alias=$build_alias
1961 test "x$ac_build_alias" = x &&
1962 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1963 test "x$ac_build_alias" = x &&
1964 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1965 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1966 { (exit 1); exit 1; }; }
1967 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1968 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1969 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1970 { (exit 1); exit 1; }; }
1973 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1974 echo "${ECHO_T}$ac_cv_build" >&6; }
1975 case $ac_cv_build in
1976 *-*-*) ;;
1977 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1978 echo "$as_me: error: invalid value of canonical build" >&2;}
1979 { (exit 1); exit 1; }; };;
1980 esac
1981 build=$ac_cv_build
1982 ac_save_IFS=$IFS; IFS='-'
1983 set x $ac_cv_build
1984 shift
1985 build_cpu=$1
1986 build_vendor=$2
1987 shift; shift
1988 # Remember, the first character of IFS is used to create $*,
1989 # except with old shells:
1990 build_os=$*
1991 IFS=$ac_save_IFS
1992 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1995 { echo "$as_me:$LINENO: checking host system type" >&5
1996 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1997 if test "${ac_cv_host+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000 if test "x$host_alias" = x; then
2001 ac_cv_host=$ac_cv_build
2002 else
2003 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2004 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2005 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2006 { (exit 1); exit 1; }; }
2010 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2011 echo "${ECHO_T}$ac_cv_host" >&6; }
2012 case $ac_cv_host in
2013 *-*-*) ;;
2014 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2015 echo "$as_me: error: invalid value of canonical host" >&2;}
2016 { (exit 1); exit 1; }; };;
2017 esac
2018 host=$ac_cv_host
2019 ac_save_IFS=$IFS; IFS='-'
2020 set x $ac_cv_host
2021 shift
2022 host_cpu=$1
2023 host_vendor=$2
2024 shift; shift
2025 # Remember, the first character of IFS is used to create $*,
2026 # except with old shells:
2027 host_os=$*
2028 IFS=$ac_save_IFS
2029 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2033 # The AROS target is slightly different to the normal GNU style
2034 # format. We don't have the middle part, and we reverse the order
2035 # of the $(CPU) and $(OS) bits.
2037 # Don't strip the version of the target yet, it might be
2038 # useful on some systems.
2040 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2041 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2043 if test "$target" = "NONE" ; then
2044 target=$host_os-$host_cpu
2045 cross_compile=no
2046 else
2047 if test "$target" = "" ; then
2048 target=$host_os-$host_cpu
2049 cross_compile=no
2050 else
2051 cross_compile=yes
2054 { echo "$as_me:$LINENO: result: $target" >&5
2055 echo "${ECHO_T}$target" >&6; }
2057 if test "$host_os" = "mingw32" ; then
2058 PWDCMD="pwd -W"
2061 #don't know where else to put this...
2062 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2063 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2064 AROS_BUILDDIR=`${PWDCMD-pwd}`
2065 AROS_BUILDDIR_UNIX=${PWD}
2066 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2067 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2069 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2070 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2071 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2072 SRCDIR=${srcpwd}
2073 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2074 echo "${ECHO_T}$SRCDIR" >&6; }
2076 # Parse the target field into something useful.
2078 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2079 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2082 aros_default_wbwidth=800
2083 aros_default_wbheight=600
2084 aros_default_wbdepth=4
2087 # The first step is to find the host binaries.
2088 # Check for a compiler.
2089 ac_ext=c
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 break 2
2116 done
2117 done
2118 IFS=$as_save_IFS
2122 CC=$ac_cv_prog_CC
2123 if test -n "$CC"; then
2124 { echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6; }
2126 else
2127 { echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6; }
2133 if test -z "$ac_cv_prog_CC"; then
2134 ac_ct_CC=$CC
2135 # Extract the first word of "gcc", so it can be a program name with args.
2136 set dummy gcc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142 if test -n "$ac_ct_CC"; then
2143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152 ac_cv_prog_ac_ct_CC="gcc"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 break 2
2156 done
2157 done
2158 IFS=$as_save_IFS
2162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163 if test -n "$ac_ct_CC"; then
2164 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165 echo "${ECHO_T}$ac_ct_CC" >&6; }
2166 else
2167 { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2171 if test "x$ac_ct_CC" = x; then
2172 CC=""
2173 else
2174 case $cross_compiling:$ac_tool_warned in
2175 yes:)
2176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2177 whose name does not start with the host triplet. If you think this
2178 configuration is useful to you, please write to autoconf@gnu.org." >&5
2179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2180 whose name does not start with the host triplet. If you think this
2181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2182 ac_tool_warned=yes ;;
2183 esac
2184 CC=$ac_ct_CC
2186 else
2187 CC="$ac_cv_prog_CC"
2190 if test -z "$CC"; then
2191 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}cc; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_CC="${ac_tool_prefix}cc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2213 done
2214 done
2215 IFS=$as_save_IFS
2219 CC=$ac_cv_prog_CC
2220 if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2223 else
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2231 if test -z "$CC"; then
2232 # Extract the first word of "cc", so it can be a program name with args.
2233 set dummy cc; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2241 else
2242 ac_prog_rejected=no
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2251 ac_prog_rejected=yes
2252 continue
2254 ac_cv_prog_CC="cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2258 done
2259 done
2260 IFS=$as_save_IFS
2262 if test $ac_prog_rejected = yes; then
2263 # We found a bogon in the path, so make sure we never use it.
2264 set dummy $ac_cv_prog_CC
2265 shift
2266 if test $# != 0; then
2267 # We chose a different compiler from the bogus one.
2268 # However, it has the same basename, so the bogon will be chosen
2269 # first if we set CC to just the basename; use the full file name.
2270 shift
2271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2276 CC=$ac_cv_prog_CC
2277 if test -n "$CC"; then
2278 { echo "$as_me:$LINENO: result: $CC" >&5
2279 echo "${ECHO_T}$CC" >&6; }
2280 else
2281 { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2287 if test -z "$CC"; then
2288 if test -n "$ac_tool_prefix"; then
2289 for ac_prog in cl.exe
2291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 break 2
2312 done
2313 done
2314 IFS=$as_save_IFS
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320 { echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6; }
2322 else
2323 { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2328 test -n "$CC" && break
2329 done
2331 if test -z "$CC"; then
2332 ac_ct_CC=$CC
2333 for ac_prog in cl.exe
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$ac_ct_CC"; then
2343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_ac_ct_CC="$ac_prog"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2356 done
2357 done
2358 IFS=$as_save_IFS
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6; }
2366 else
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2372 test -n "$ac_ct_CC" && break
2373 done
2375 if test "x$ac_ct_CC" = x; then
2376 CC=""
2377 else
2378 case $cross_compiling:$ac_tool_warned in
2379 yes:)
2380 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet. If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&5
2383 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2384 whose name does not start with the host triplet. If you think this
2385 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2386 ac_tool_warned=yes ;;
2387 esac
2388 CC=$ac_ct_CC
2395 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&2;}
2399 { (exit 1); exit 1; }; }
2401 # Provide some information about the compiler.
2402 echo "$as_me:$LINENO: checking for C compiler version" >&5
2403 ac_compiler=`set X $ac_compile; echo $2`
2404 { (ac_try="$ac_compiler --version >&5"
2405 case "(($ac_try" in
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2408 esac
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_compiler --version >&5") 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }
2414 { (ac_try="$ac_compiler -v >&5"
2415 case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418 esac
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_compiler -v >&5") 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }
2424 { (ac_try="$ac_compiler -V >&5"
2425 case "(($ac_try" in
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2428 esac
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_compiler -V >&5") 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }
2435 cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h. */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2443 main ()
2447 return 0;
2449 _ACEOF
2450 ac_clean_files_save=$ac_clean_files
2451 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2452 # Try to create an executable without -o first, disregard a.out.
2453 # It will help us diagnose broken compilers, and finding out an intuition
2454 # of exeext.
2455 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2456 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2457 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2459 # List of possible output files, starting from the most likely.
2460 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2461 # only as a last resort. b.out is created by i960 compilers.
2462 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2464 # The IRIX 6 linker writes into existing files which may not be
2465 # executable, retaining their permissions. Remove them first so a
2466 # subsequent execution test works.
2467 ac_rmfiles=
2468 for ac_file in $ac_files
2470 case $ac_file in
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2472 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2473 esac
2474 done
2475 rm -f $ac_rmfiles
2477 if { (ac_try="$ac_link_default"
2478 case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_link_default") 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; then
2487 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2488 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2489 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2490 # so that the user can short-circuit this test for compilers unknown to
2491 # Autoconf.
2492 for ac_file in $ac_files ''
2494 test -f "$ac_file" || continue
2495 case $ac_file in
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2498 [ab].out )
2499 # We found the default executable, but exeext='' is most
2500 # certainly right.
2501 break;;
2502 *.* )
2503 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2504 then :; else
2505 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2507 # We set ac_cv_exeext here because the later test for it is not
2508 # safe: cross compilers may not add the suffix if given an `-o'
2509 # argument, so we may need to know it at that point already.
2510 # Even if this section looks crufty: it has the advantage of
2511 # actually working.
2512 break;;
2514 break;;
2515 esac
2516 done
2517 test "$ac_cv_exeext" = no && ac_cv_exeext=
2519 else
2520 ac_file=''
2523 { echo "$as_me:$LINENO: result: $ac_file" >&5
2524 echo "${ECHO_T}$ac_file" >&6; }
2525 if test -z "$ac_file"; then
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2530 See \`config.log' for more details." >&5
2531 echo "$as_me: error: C compiler cannot create executables
2532 See \`config.log' for more details." >&2;}
2533 { (exit 77); exit 77; }; }
2536 ac_exeext=$ac_cv_exeext
2538 # Check that the compiler produces executables we can run. If not, either
2539 # the compiler is broken, or we cross compile.
2540 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2541 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2542 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2543 # If not cross compiling, check that we can run a simple program.
2544 if test "$cross_compiling" != yes; then
2545 if { ac_try='./$ac_file'
2546 { (case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_try") 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 cross_compiling=no
2556 else
2557 if test "$cross_compiling" = maybe; then
2558 cross_compiling=yes
2559 else
2560 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2561 If you meant to cross compile, use \`--host'.
2562 See \`config.log' for more details." >&5
2563 echo "$as_me: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details." >&2;}
2566 { (exit 1); exit 1; }; }
2570 { echo "$as_me:$LINENO: result: yes" >&5
2571 echo "${ECHO_T}yes" >&6; }
2573 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2574 ac_clean_files=$ac_clean_files_save
2575 # Check that the compiler produces executables we can run. If not, either
2576 # the compiler is broken, or we cross compile.
2577 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2578 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2579 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2580 echo "${ECHO_T}$cross_compiling" >&6; }
2582 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2583 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2584 if { (ac_try="$ac_link"
2585 case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_link") 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2596 # work properly (i.e., refer to `conftest.exe'), while it won't with
2597 # `rm'.
2598 for ac_file in conftest.exe conftest conftest.*; do
2599 test -f "$ac_file" || continue
2600 case $ac_file in
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2603 break;;
2604 * ) break;;
2605 esac
2606 done
2607 else
2608 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2611 See \`config.log' for more details." >&2;}
2612 { (exit 1); exit 1; }; }
2615 rm -f conftest$ac_cv_exeext
2616 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2617 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2619 rm -f conftest.$ac_ext
2620 EXEEXT=$ac_cv_exeext
2621 ac_exeext=$EXEEXT
2622 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2623 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2624 if test "${ac_cv_objext+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 main ()
2639 return 0;
2641 _ACEOF
2642 rm -f conftest.o conftest.obj
2643 if { (ac_try="$ac_compile"
2644 case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; then
2653 for ac_file in conftest.o conftest.obj conftest.*; do
2654 test -f "$ac_file" || continue;
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2657 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2658 break;;
2659 esac
2660 done
2661 else
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2665 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2666 See \`config.log' for more details." >&5
2667 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&2;}
2669 { (exit 1); exit 1; }; }
2672 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2674 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2675 echo "${ECHO_T}$ac_cv_objext" >&6; }
2676 OBJEXT=$ac_cv_objext
2677 ac_objext=$OBJEXT
2678 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2679 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2680 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2691 main ()
2693 #ifndef __GNUC__
2694 choke me
2695 #endif
2698 return 0;
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (ac_try="$ac_compile"
2703 case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compile") 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest.$ac_objext; then
2718 ac_compiler_gnu=yes
2719 else
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2723 ac_compiler_gnu=no
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2730 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2731 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2732 GCC=`test $ac_compiler_gnu = yes && echo yes`
2733 ac_test_CFLAGS=${CFLAGS+set}
2734 ac_save_CFLAGS=$CFLAGS
2735 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2736 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2737 if test "${ac_cv_prog_cc_g+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 ac_save_c_werror_flag=$ac_c_werror_flag
2741 ac_c_werror_flag=yes
2742 ac_cv_prog_cc_g=no
2743 CFLAGS="-g"
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h. */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2752 main ()
2756 return 0;
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (ac_try="$ac_compile"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compile") 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } && {
2773 test -z "$ac_c_werror_flag" ||
2774 test ! -s conftest.err
2775 } && test -s conftest.$ac_objext; then
2776 ac_cv_prog_cc_g=yes
2777 else
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2781 CFLAGS=""
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h. */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2790 main ()
2794 return 0;
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } && {
2811 test -z "$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 } && test -s conftest.$ac_objext; then
2815 else
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 ac_c_werror_flag=$ac_save_c_werror_flag
2820 CFLAGS="-g"
2821 cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h. */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2829 main ()
2833 return 0;
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (ac_try="$ac_compile"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compile") 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } && {
2850 test -z "$ac_c_werror_flag" ||
2851 test ! -s conftest.err
2852 } && test -s conftest.$ac_objext; then
2853 ac_cv_prog_cc_g=yes
2854 else
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_c_werror_flag=$ac_save_c_werror_flag
2870 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2872 if test "$ac_test_CFLAGS" = set; then
2873 CFLAGS=$ac_save_CFLAGS
2874 elif test $ac_cv_prog_cc_g = yes; then
2875 if test "$GCC" = yes; then
2876 CFLAGS="-g -O2"
2877 else
2878 CFLAGS="-g"
2880 else
2881 if test "$GCC" = yes; then
2882 CFLAGS="-O2"
2883 else
2884 CFLAGS=
2887 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2888 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2889 if test "${ac_cv_prog_cc_c89+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 ac_cv_prog_cc_c89=no
2893 ac_save_CC=$CC
2894 cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h. */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2900 #include <stdarg.h>
2901 #include <stdio.h>
2902 #include <sys/types.h>
2903 #include <sys/stat.h>
2904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2905 struct buf { int x; };
2906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2907 static char *e (p, i)
2908 char **p;
2909 int i;
2911 return p[i];
2913 static char *f (char * (*g) (char **, int), char **p, ...)
2915 char *s;
2916 va_list v;
2917 va_start (v,p);
2918 s = g (p, va_arg (v,int));
2919 va_end (v);
2920 return s;
2923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2924 function prototypes and stuff, but not '\xHH' hex character constants.
2925 These don't provoke an error unfortunately, instead are silently treated
2926 as 'x'. The following induces an error, until -std is added to get
2927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2928 array size at least. It's necessary to write '\x00'==0 to get something
2929 that's true only with -std. */
2930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2933 inside strings and character constants. */
2934 #define FOO(x) 'x'
2935 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2937 int test (int i, double x);
2938 struct s1 {int (*f) (int a);};
2939 struct s2 {int (*f) (double a);};
2940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2941 int argc;
2942 char **argv;
2944 main ()
2946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2948 return 0;
2950 _ACEOF
2951 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2952 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2954 CC="$ac_save_CC $ac_arg"
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2957 case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && {
2969 test -z "$ac_c_werror_flag" ||
2970 test ! -s conftest.err
2971 } && test -s conftest.$ac_objext; then
2972 ac_cv_prog_cc_c89=$ac_arg
2973 else
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2980 rm -f core conftest.err conftest.$ac_objext
2981 test "x$ac_cv_prog_cc_c89" != "xno" && break
2982 done
2983 rm -f conftest.$ac_ext
2984 CC=$ac_save_CC
2987 # AC_CACHE_VAL
2988 case "x$ac_cv_prog_cc_c89" in
2990 { echo "$as_me:$LINENO: result: none needed" >&5
2991 echo "${ECHO_T}none needed" >&6; } ;;
2992 xno)
2993 { echo "$as_me:$LINENO: result: unsupported" >&5
2994 echo "${ECHO_T}unsupported" >&6; } ;;
2996 CC="$CC $ac_cv_prog_cc_c89"
2997 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2998 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2999 esac
3002 ac_ext=c
3003 ac_cpp='$CPP $CPPFLAGS'
3004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 case $ac_cv_prog_cc_stdc in
3009 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3010 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3011 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cc_c99+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 ac_cv_prog_cc_c99=no
3016 ac_save_CC=$CC
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #include <stdarg.h>
3024 #include <stdbool.h>
3025 #include <stdlib.h>
3026 #include <wchar.h>
3027 #include <stdio.h>
3029 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3030 #define debug(...) fprintf (stderr, __VA_ARGS__)
3031 #define showlist(...) puts (#__VA_ARGS__)
3032 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3033 static void
3034 test_varargs_macros (void)
3036 int x = 1234;
3037 int y = 5678;
3038 debug ("Flag");
3039 debug ("X = %d\n", x);
3040 showlist (The first, second, and third items.);
3041 report (x>y, "x is %d but y is %d", x, y);
3044 // Check long long types.
3045 #define BIG64 18446744073709551615ull
3046 #define BIG32 4294967295ul
3047 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3048 #if !BIG_OK
3049 your preprocessor is broken;
3050 #endif
3051 #if BIG_OK
3052 #else
3053 your preprocessor is broken;
3054 #endif
3055 static long long int bignum = -9223372036854775807LL;
3056 static unsigned long long int ubignum = BIG64;
3058 struct incomplete_array
3060 int datasize;
3061 double data[];
3064 struct named_init {
3065 int number;
3066 const wchar_t *name;
3067 double average;
3070 typedef const char *ccp;
3072 static inline int
3073 test_restrict (ccp restrict text)
3075 // See if C++-style comments work.
3076 // Iterate through items via the restricted pointer.
3077 // Also check for declarations in for loops.
3078 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3079 continue;
3080 return 0;
3083 // Check varargs and va_copy.
3084 static void
3085 test_varargs (const char *format, ...)
3087 va_list args;
3088 va_start (args, format);
3089 va_list args_copy;
3090 va_copy (args_copy, args);
3092 const char *str;
3093 int number;
3094 float fnumber;
3096 while (*format)
3098 switch (*format++)
3100 case 's': // string
3101 str = va_arg (args_copy, const char *);
3102 break;
3103 case 'd': // int
3104 number = va_arg (args_copy, int);
3105 break;
3106 case 'f': // float
3107 fnumber = va_arg (args_copy, double);
3108 break;
3109 default:
3110 break;
3113 va_end (args_copy);
3114 va_end (args);
3118 main ()
3121 // Check bool.
3122 _Bool success = false;
3124 // Check restrict.
3125 if (test_restrict ("String literal") == 0)
3126 success = true;
3127 char *restrict newvar = "Another string";
3129 // Check varargs.
3130 test_varargs ("s, d' f .", "string", 65, 34.234);
3131 test_varargs_macros ();
3133 // Check flexible array members.
3134 struct incomplete_array *ia =
3135 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3136 ia->datasize = 10;
3137 for (int i = 0; i < ia->datasize; ++i)
3138 ia->data[i] = i * 1.234;
3140 // Check named initializers.
3141 struct named_init ni = {
3142 .number = 34,
3143 .name = L"Test wide string",
3144 .average = 543.34343,
3147 ni.number = 58;
3149 int dynamic_array[ni.number];
3150 dynamic_array[ni.number - 1] = 543;
3152 // work around unused variable warnings
3153 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3154 || dynamic_array[ni.number - 1] != 543);
3157 return 0;
3159 _ACEOF
3160 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3162 CC="$ac_save_CC $ac_arg"
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3180 ac_cv_prog_cc_c99=$ac_arg
3181 else
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3188 rm -f core conftest.err conftest.$ac_objext
3189 test "x$ac_cv_prog_cc_c99" != "xno" && break
3190 done
3191 rm -f conftest.$ac_ext
3192 CC=$ac_save_CC
3195 # AC_CACHE_VAL
3196 case "x$ac_cv_prog_cc_c99" in
3198 { echo "$as_me:$LINENO: result: none needed" >&5
3199 echo "${ECHO_T}none needed" >&6; } ;;
3200 xno)
3201 { echo "$as_me:$LINENO: result: unsupported" >&5
3202 echo "${ECHO_T}unsupported" >&6; } ;;
3204 CC="$CC $ac_cv_prog_cc_c99"
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3207 esac
3208 if test "x$ac_cv_prog_cc_c99" != xno; then
3209 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3210 else
3211 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3212 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3213 if test "${ac_cv_prog_cc_c89+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 ac_cv_prog_cc_c89=no
3217 ac_save_CC=$CC
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224 #include <stdarg.h>
3225 #include <stdio.h>
3226 #include <sys/types.h>
3227 #include <sys/stat.h>
3228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3229 struct buf { int x; };
3230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3231 static char *e (p, i)
3232 char **p;
3233 int i;
3235 return p[i];
3237 static char *f (char * (*g) (char **, int), char **p, ...)
3239 char *s;
3240 va_list v;
3241 va_start (v,p);
3242 s = g (p, va_arg (v,int));
3243 va_end (v);
3244 return s;
3247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3248 function prototypes and stuff, but not '\xHH' hex character constants.
3249 These don't provoke an error unfortunately, instead are silently treated
3250 as 'x'. The following induces an error, until -std is added to get
3251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3252 array size at least. It's necessary to write '\x00'==0 to get something
3253 that's true only with -std. */
3254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3257 inside strings and character constants. */
3258 #define FOO(x) 'x'
3259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3261 int test (int i, double x);
3262 struct s1 {int (*f) (int a);};
3263 struct s2 {int (*f) (double a);};
3264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265 int argc;
3266 char **argv;
3268 main ()
3270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3272 return 0;
3274 _ACEOF
3275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3278 CC="$ac_save_CC $ac_arg"
3279 rm -f conftest.$ac_objext
3280 if { (ac_try="$ac_compile"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_compile") 2>conftest.er1
3287 ac_status=$?
3288 grep -v '^ *+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } && {
3293 test -z "$ac_c_werror_flag" ||
3294 test ! -s conftest.err
3295 } && test -s conftest.$ac_objext; then
3296 ac_cv_prog_cc_c89=$ac_arg
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3304 rm -f core conftest.err conftest.$ac_objext
3305 test "x$ac_cv_prog_cc_c89" != "xno" && break
3306 done
3307 rm -f conftest.$ac_ext
3308 CC=$ac_save_CC
3311 # AC_CACHE_VAL
3312 case "x$ac_cv_prog_cc_c89" in
3314 { echo "$as_me:$LINENO: result: none needed" >&5
3315 echo "${ECHO_T}none needed" >&6; } ;;
3316 xno)
3317 { echo "$as_me:$LINENO: result: unsupported" >&5
3318 echo "${ECHO_T}unsupported" >&6; } ;;
3320 CC="$CC $ac_cv_prog_cc_c89"
3321 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3322 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3323 esac
3324 if test "x$ac_cv_prog_cc_c89" != xno; then
3325 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3326 else
3327 ac_cv_prog_cc_stdc=no
3334 esac
3335 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3336 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3337 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 case $ac_cv_prog_cc_stdc in
3342 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3343 echo "${ECHO_T}unsupported" >&6; } ;;
3344 '') { echo "$as_me:$LINENO: result: none needed" >&5
3345 echo "${ECHO_T}none needed" >&6; } ;;
3346 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3348 esac
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3358 # On Suns, sometimes $CPP names a directory.
3359 if test -n "$CPP" && test -d "$CPP"; then
3360 CPP=
3362 if test -z "$CPP"; then
3363 if test "${ac_cv_prog_CPP+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 # Double quotes because CPP needs to be expanded
3367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3369 ac_preproc_ok=false
3370 for ac_c_preproc_warn_flag in '' yes
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
3374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
3376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error" is here to catch this case.
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #ifdef __STDC__
3385 # include <limits.h>
3386 #else
3387 # include <assert.h>
3388 #endif
3389 Syntax error
3390 _ACEOF
3391 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null && {
3404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3405 test ! -s conftest.err
3406 }; then
3408 else
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3412 # Broken: fails on valid input.
3413 continue
3416 rm -f conftest.err conftest.$ac_ext
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <ac_nonexistent.h>
3427 _ACEOF
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null && {
3441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3442 test ! -s conftest.err
3443 }; then
3444 # Broken: success on invalid input.
3445 continue
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 # Passes both tests.
3451 ac_preproc_ok=:
3452 break
3455 rm -f conftest.err conftest.$ac_ext
3457 done
3458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3459 rm -f conftest.err conftest.$ac_ext
3460 if $ac_preproc_ok; then
3461 break
3464 done
3465 ac_cv_prog_CPP=$CPP
3468 CPP=$ac_cv_prog_CPP
3469 else
3470 ac_cv_prog_CPP=$CPP
3472 { echo "$as_me:$LINENO: result: $CPP" >&5
3473 echo "${ECHO_T}$CPP" >&6; }
3474 ac_preproc_ok=false
3475 for ac_c_preproc_warn_flag in '' yes
3477 # Use a header file that comes with gcc, so configuring glibc
3478 # with a fresh cross-compiler works.
3479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3480 # <limits.h> exists even on freestanding compilers.
3481 # On the NeXT, cc -E runs the code through the compiler's parser,
3482 # not just through cpp. "Syntax error" is here to catch this case.
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 #ifdef __STDC__
3490 # include <limits.h>
3491 #else
3492 # include <assert.h>
3493 #endif
3494 Syntax error
3495 _ACEOF
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null && {
3509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 }; then
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 # Broken: fails on valid input.
3518 continue
3521 rm -f conftest.err conftest.$ac_ext
3523 # OK, works on sane cases. Now check whether nonexistent headers
3524 # can be detected and how.
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <ac_nonexistent.h>
3532 _ACEOF
3533 if { (ac_try="$ac_cpp conftest.$ac_ext"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev/null && {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 }; then
3549 # Broken: success on invalid input.
3550 continue
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 # Passes both tests.
3556 ac_preproc_ok=:
3557 break
3560 rm -f conftest.err conftest.$ac_ext
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then
3567 else
3568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details." >&5
3570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3575 ac_ext=c
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 # Check for a compatible awk
3583 for ac_prog in gawk nawk
3585 # Extract the first word of "$ac_prog", so it can be a program name with args.
3586 set dummy $ac_prog; ac_word=$2
3587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_AWK+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 if test -n "$AWK"; then
3593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602 ac_cv_prog_AWK="$ac_prog"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3606 done
3607 done
3608 IFS=$as_save_IFS
3612 AWK=$ac_cv_prog_AWK
3613 if test -n "$AWK"; then
3614 { echo "$as_me:$LINENO: result: $AWK" >&5
3615 echo "${ECHO_T}$AWK" >&6; }
3616 else
3617 { echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6; }
3622 test -n "$AWK" && break
3623 done
3625 if test "$AWK" = ""; then
3626 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3627 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3628 { (exit 1); exit 1; }; }
3630 # Extract the first word of "mmake", so it can be a program name with args.
3631 set dummy mmake; ac_word=$2
3632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3634 if test "${ac_cv_prog_MMAKE+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 if test -n "$MMAKE"; then
3638 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3639 else
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 ac_cv_prog_MMAKE="mmake "
3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3651 done
3652 done
3653 IFS=$as_save_IFS
3657 MMAKE=$ac_cv_prog_MMAKE
3658 if test -n "$MMAKE"; then
3659 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3660 echo "${ECHO_T}$MMAKE" >&6; }
3661 else
3662 { echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6; }
3668 # Perform some default variable assignments. Note all of these will be
3669 # Regenerated from the script, so there is no need to cache them.
3671 aros_host_cc="$CC"
3672 if test "$GCC" = "yes"; then
3673 aros_gcc_ld=`$CC -print-prog-name=ld`
3674 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3675 set dummy `basename $aros_gcc_ld`; ac_word=$2
3676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3678 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 case $aros_host_ld in
3682 [\\/]* | ?:[\\/]*)
3683 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in `dirname $aros_gcc_ld`
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3697 done
3698 done
3699 IFS=$as_save_IFS
3702 esac
3704 aros_host_ld=$ac_cv_path_aros_host_ld
3705 if test -n "$aros_host_ld"; then
3706 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3707 echo "${ECHO_T}$aros_host_ld" >&6; }
3708 else
3709 { echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6; }
3715 if test "$aros_host_ld" = ""; then
3716 # Extract the first word of "ld", so it can be a program name with args.
3717 set dummy ld; ac_word=$2
3718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3720 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 case $aros_host_ld in
3724 [\\/]* | ?:[\\/]*)
3725 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
3739 done
3740 done
3741 IFS=$as_save_IFS
3744 esac
3746 aros_host_ld=$ac_cv_path_aros_host_ld
3747 if test -n "$aros_host_ld"; then
3748 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3749 echo "${ECHO_T}$aros_host_ld" >&6; }
3750 else
3751 { echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6; }
3757 if test "$aros_host_ld" = ""; then
3758 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3759 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3760 { (exit 1); exit 1; }; }
3762 aros_host_make="make"
3763 aros_host_cflags=$CFLAGS
3764 aros_host_ldflags=$LDFLAGS
3765 aros_host_debug="-g -O0"
3766 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3767 aros_host_mkargs="--no-print-directory"
3768 aros_host_incl="/usr/include"
3769 aros_host_exe_suffix="$EXEEXT"
3770 aros_host_lib_suffix=""
3772 for ac_prog in aclocal aclocal19 aclocal-1.9
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3778 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781 if test -n "$aros_host_aclocal"; then
3782 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_aros_host_aclocal="$ac_prog"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3795 done
3796 done
3797 IFS=$as_save_IFS
3801 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3802 if test -n "$aros_host_aclocal"; then
3803 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3804 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3805 else
3806 { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3811 test -n "$aros_host_aclocal" && break
3812 done
3814 for ac_prog in autoconf autoconf259 autoconf253
3816 # Extract the first word of "$ac_prog", so it can be a program name with args.
3817 set dummy $ac_prog; ac_word=$2
3818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3820 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823 if test -n "$aros_host_autoconf"; then
3824 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3833 ac_cv_prog_aros_host_autoconf="$ac_prog"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
3837 done
3838 done
3839 IFS=$as_save_IFS
3843 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3844 if test -n "$aros_host_autoconf"; then
3845 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3846 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3847 else
3848 { echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6; }
3853 test -n "$aros_host_autoconf" && break
3854 done
3856 for ac_prog in autoheader autoheader259 autoheader253
3858 # Extract the first word of "$ac_prog", so it can be a program name with args.
3859 set dummy $ac_prog; ac_word=$2
3860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3862 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 if test -n "$aros_host_autoheader"; then
3866 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3875 ac_cv_prog_aros_host_autoheader="$ac_prog"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3879 done
3880 done
3881 IFS=$as_save_IFS
3885 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3886 if test -n "$aros_host_autoheader"; then
3887 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3888 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3889 else
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3895 test -n "$aros_host_autoheader" && break
3896 done
3898 for ac_prog in automake automake19 automake-1.9
3900 # Extract the first word of "$ac_prog", so it can be a program name with args.
3901 set dummy $ac_prog; ac_word=$2
3902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3904 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 if test -n "$aros_host_automake"; then
3908 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_aros_host_automake="$ac_prog"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3921 done
3922 done
3923 IFS=$as_save_IFS
3927 aros_host_automake=$ac_cv_prog_aros_host_automake
3928 if test -n "$aros_host_automake"; then
3929 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3930 echo "${ECHO_T}$aros_host_automake" >&6; }
3931 else
3932 { echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6; }
3937 test -n "$aros_host_automake" && break
3938 done
3941 if test "$aros_host_aclocal" = ""; then
3942 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3943 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3944 { (exit 1); exit 1; }; }
3946 if test "$aros_host_automake" = ""; then
3947 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3948 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3949 { (exit 1); exit 1; }; }
3952 case "$aros_host_cc" in
3953 *gcc*)
3954 aros_host_cc_pipe="-pipe"
3956 icc)
3957 aros_host_cc_pipe=""
3960 aros_host_cc_pipe=""
3962 esac
3964 aros_kernel_cc_includes=""
3965 aros_target_cc_includes=""
3967 # This is the main host configuration section. It is where the host
3968 # can change the values of any variables it needs to change. We do
3969 # not look at anything that compiles to the target yet, we'll get
3970 # to that later.
3972 case "$host_os" in
3973 aros*)
3974 aros_host_arch="aros"
3975 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3976 case "$host_cpu" in
3977 *i?86*)
3978 aros_host_cpu="i386"
3980 *x86_64*)
3981 aros_host_cpu="x86_64"
3983 *powerpc*)
3984 aros_host_cpu="ppc"
3987 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3988 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3989 aros_host_cpu="$host_cpu"
3991 esac
3994 linux*)
3995 aros_host_arch="linux"
3996 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3997 case "$host_cpu" in
3998 *i?86*)
3999 aros_host_cpu="i386"
4001 *x86_64*)
4002 aros_host_cpu="x86_64"
4004 *m68k*)
4005 aros_host_cpu="m68k"
4007 *powerpc*)
4008 aros_host_cpu="ppc"
4010 *arm*)
4011 aros_host_cpu="arm"
4014 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4015 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4016 aros_host_cpu="$host_cpu"
4018 esac
4021 freebsd*)
4022 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4023 aros_host_make="gmake"
4024 aros_host_arch="freebsd"
4025 aros_host_cpu="i386"
4027 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4029 case $host_os in
4030 freebsd[234]*)
4031 aros_object_format="elf_i386"
4035 aros_object_format="elf_i386_fbsd"
4037 esac
4041 darwin*)
4042 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4043 aros_host_arch="darwin"
4044 case "$host_cpu" in
4045 *i?86*)
4046 aros_host_cpu="i386"
4048 *x86_64*)
4049 aros_host_cpu="x86_64"
4051 *powerpc*)
4052 aros_host_cpu="ppc"
4055 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4056 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4057 aros_host_cpu="$host_cpu"
4059 esac
4061 aros_host_ldflags="$aros_host_ldflags -liconv"
4065 dragonfly*)
4066 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4067 aros_host_make="gmake"
4068 aros_host_arch="dragonfly"
4069 case $host_cpu in
4070 *i?86*)
4071 aros_host_cpu="i386"
4073 *amd64*)
4074 aros_host_cpu="x86_64"
4077 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4078 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4079 aros_host_cpu="$host_cpu"
4081 esac
4084 netbsd*)
4085 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4086 aros_host_make="gmake"
4087 aros_host_arch="netbsd"
4088 case "$host_cpu" in
4089 *i?86*)
4090 aros_host_cpu="i386"
4092 *m68k*)
4093 aros_host_cpu="m68k"
4096 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4097 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4098 aros_host_cpu="$host_cpu"
4100 esac
4101 aros_host_lib_suffix=".0.0"
4104 openbsd*)
4105 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4106 aros_host_make="gmake"
4107 aros_host_arch="openbsd"
4108 case "$host_cpu" in
4109 *i?86*)
4110 aros_host_cpu="i386"
4113 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4114 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4115 aros_host_cpu="$host_cpu"
4117 esac
4120 solaris*)
4121 aros_host_arch="solaris"
4122 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4123 case "$host_cpu" in
4124 *i?86*)
4125 aros_host_cpu="i386"
4127 *sparc*)
4128 aros_host_cpu="sparc"
4131 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4132 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4133 aros_host_cpu="$host_cpu"
4135 esac
4138 morphos*)
4139 aros_host_arch="morphos"
4140 aros_host_cpu="ppc"
4143 amiga*)
4144 aros_host_arch="amiga"
4145 SORT="/gg/bin/sort"
4146 TEST="/gg/bin/test"
4147 UNIQ="/gg/bin/uniq"
4148 FOR="for"
4149 TOUCH="/gg/bin/touch"
4150 case "$host_cpu" in
4151 *m68k*)
4152 aros_host_cpu="m68k"
4154 *powerpc*)
4155 aros_host_cpu="ppc"
4158 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4159 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4160 aros_host_cpu="$host_cpu"
4162 esac
4165 cygwin*)
4166 aros_host_arch="cygwin"
4167 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4168 case "$host_cpu" in
4169 *i?86*)
4170 aros_host_cpu="i386"
4173 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4174 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4175 aros_host_cpu="$host_cpu"
4177 esac
4180 mingw32*)
4181 aros_host_arch="mingw32"
4182 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4183 case "$host_cpu" in
4184 *i?86*)
4185 aros_host_cpu="i386"
4188 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4189 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4190 aros_host_cpu="$host_cpu"
4192 esac
4195 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4196 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4197 { (exit 1); exit 1; }; }
4199 esac
4201 # Extract the first word of "ar", so it can be a program name with args.
4202 set dummy ar; ac_word=$2
4203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4205 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 if test -n "$aros_host_ar"; then
4209 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_aros_host_ar="ar cr"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4222 done
4223 done
4224 IFS=$as_save_IFS
4228 aros_host_ar=$ac_cv_prog_aros_host_ar
4229 if test -n "$aros_host_ar"; then
4230 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4231 echo "${ECHO_T}$aros_host_ar" >&6; }
4232 else
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4238 if test "$aros_host_ar" = ""; then
4239 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4240 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4241 { (exit 1); exit 1; }; }
4243 # Extract the first word of "ranlib", so it can be a program name with args.
4244 set dummy ranlib; ac_word=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 if test -n "$aros_host_ranlib"; then
4251 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_aros_host_ranlib="ranlib "
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4266 IFS=$as_save_IFS
4270 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4271 if test -n "$aros_host_ranlib"; then
4272 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4273 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4274 else
4275 { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4280 if test "$aros_host_ranlib" = ""; then
4281 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4282 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4283 { (exit 1); exit 1; }; }
4285 # Extract the first word of "strip", so it can be a program name with args.
4286 set dummy strip; ac_word=$2
4287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4289 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292 if test -n "$aros_host_strip"; then
4293 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_aros_host_strip="strip "
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4308 IFS=$as_save_IFS
4312 aros_host_strip=$ac_cv_prog_aros_host_strip
4313 if test -n "$aros_host_strip"; then
4314 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4315 echo "${ECHO_T}$aros_host_strip" >&6; }
4316 else
4317 { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4322 if test "$aros_host_strip" = ""; then
4323 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4324 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4325 { (exit 1); exit 1; }; }
4328 # Extract the first word of "rm", so it can be a program name with args.
4329 set dummy rm; ac_word=$2
4330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4332 if test "${ac_cv_prog_RM+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335 if test -n "$RM"; then
4336 ac_cv_prog_RM="$RM" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345 ac_cv_prog_RM="rm -rf"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 break 2
4349 done
4350 done
4351 IFS=$as_save_IFS
4355 RM=$ac_cv_prog_RM
4356 if test -n "$RM"; then
4357 { echo "$as_me:$LINENO: result: $RM" >&5
4358 echo "${ECHO_T}$RM" >&6; }
4359 else
4360 { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4365 if test "$RM" = ""; then
4366 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4367 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4368 { (exit 1); exit 1; }; }
4370 # Extract the first word of "cp", so it can be a program name with args.
4371 set dummy cp; ac_word=$2
4372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374 if test "${ac_cv_prog_CP+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377 if test -n "$CP"; then
4378 ac_cv_prog_CP="$CP" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_prog_CP="cp "
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4391 done
4392 done
4393 IFS=$as_save_IFS
4397 CP=$ac_cv_prog_CP
4398 if test -n "$CP"; then
4399 { echo "$as_me:$LINENO: result: $CP" >&5
4400 echo "${ECHO_T}$CP" >&6; }
4401 else
4402 { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4407 if test "$CP" = ""; then
4408 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4409 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4410 { (exit 1); exit 1; }; }
4412 # Extract the first word of "mv", so it can be a program name with args.
4413 set dummy mv; ac_word=$2
4414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4416 if test "${ac_cv_prog_MV+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 if test -n "$MV"; then
4420 ac_cv_prog_MV="$MV" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_MV="mv "
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4433 done
4434 done
4435 IFS=$as_save_IFS
4439 MV=$ac_cv_prog_MV
4440 if test -n "$MV"; then
4441 { echo "$as_me:$LINENO: result: $MV" >&5
4442 echo "${ECHO_T}$MV" >&6; }
4443 else
4444 { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4449 if test "$MV" = ""; then
4450 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4451 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4452 { (exit 1); exit 1; }; }
4454 # Extract the first word of "echo", so it can be a program name with args.
4455 set dummy echo; ac_word=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_prog_ECHO+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 if test -n "$ECHO"; then
4462 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ECHO="echo "
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 ECHO=$ac_cv_prog_ECHO
4482 if test -n "$ECHO"; then
4483 { echo "$as_me:$LINENO: result: $ECHO" >&5
4484 echo "${ECHO_T}$ECHO" >&6; }
4485 else
4486 { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4491 if test "$ECHO" = ""; then
4492 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4493 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4494 { (exit 1); exit 1; }; }
4496 # Extract the first word of "mkdir", so it can be a program name with args.
4497 set dummy mkdir; ac_word=$2
4498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_MKDIR+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 if test -n "$MKDIR"; then
4504 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_MKDIR="mkdir -p"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4517 done
4518 done
4519 IFS=$as_save_IFS
4523 MKDIR=$ac_cv_prog_MKDIR
4524 if test -n "$MKDIR"; then
4525 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4526 echo "${ECHO_T}$MKDIR" >&6; }
4527 else
4528 { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4533 if test "$MKDIR" = ""; then
4534 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4535 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4536 { (exit 1); exit 1; }; }
4538 # Extract the first word of "touch", so it can be a program name with args.
4539 set dummy touch; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_prog_TOUCH+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 if test -n "$TOUCH"; then
4546 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_TOUCH="touch "
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 TOUCH=$ac_cv_prog_TOUCH
4566 if test -n "$TOUCH"; then
4567 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4568 echo "${ECHO_T}$TOUCH" >&6; }
4569 else
4570 { echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6; }
4575 if test "$TOUCH" = ""; then
4576 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4577 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4578 { (exit 1); exit 1; }; }
4580 # Extract the first word of "sort", so it can be a program name with args.
4581 set dummy sort; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_prog_SORT+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 if test -n "$SORT"; then
4588 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_SORT="sort "
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 SORT=$ac_cv_prog_SORT
4608 if test -n "$SORT"; then
4609 { echo "$as_me:$LINENO: result: $SORT" >&5
4610 echo "${ECHO_T}$SORT" >&6; }
4611 else
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4617 if test "$SORT" = ""; then
4618 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4619 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4620 { (exit 1); exit 1; }; }
4622 # Extract the first word of "uniq", so it can be a program name with args.
4623 set dummy uniq; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_UNIQ+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 if test -n "$UNIQ"; then
4630 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_UNIQ="uniq "
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4643 done
4644 done
4645 IFS=$as_save_IFS
4649 UNIQ=$ac_cv_prog_UNIQ
4650 if test -n "$UNIQ"; then
4651 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4652 echo "${ECHO_T}$UNIQ" >&6; }
4653 else
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4659 if test "$UNIQ" = ""; then
4660 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4661 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4662 { (exit 1); exit 1; }; }
4664 # Extract the first word of "true", so it can be a program name with args.
4665 set dummy true; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_NOP+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671 if test -n "$NOP"; then
4672 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_NOP="true "
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4685 done
4686 done
4687 IFS=$as_save_IFS
4691 NOP=$ac_cv_prog_NOP
4692 if test -n "$NOP"; then
4693 { echo "$as_me:$LINENO: result: $NOP" >&5
4694 echo "${ECHO_T}$NOP" >&6; }
4695 else
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4701 if test "$NOP" = ""; then
4702 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4703 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4704 { (exit 1); exit 1; }; }
4706 # Extract the first word of "cat", so it can be a program name with args.
4707 set dummy cat; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_prog_CAT+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713 if test -n "$CAT"; then
4714 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_CAT="cat "
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4727 done
4728 done
4729 IFS=$as_save_IFS
4733 CAT=$ac_cv_prog_CAT
4734 if test -n "$CAT"; then
4735 { echo "$as_me:$LINENO: result: $CAT" >&5
4736 echo "${ECHO_T}$CAT" >&6; }
4737 else
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4743 if test "$CAT" = ""; then
4744 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4745 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4746 { (exit 1); exit 1; }; }
4748 # Extract the first word of "bison", so it can be a program name with args.
4749 set dummy bison; ac_word=$2
4750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4752 if test "${ac_cv_prog_BISON+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755 if test -n "$BISON"; then
4756 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_BISON="bison "
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4769 done
4770 done
4771 IFS=$as_save_IFS
4775 BISON=$ac_cv_prog_BISON
4776 if test -n "$BISON"; then
4777 { echo "$as_me:$LINENO: result: $BISON" >&5
4778 echo "${ECHO_T}$BISON" >&6; }
4779 else
4780 { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4785 if test "$BISON" = ""; then
4786 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4787 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4788 { (exit 1); exit 1; }; }
4790 # Extract the first word of "flex", so it can be a program name with args.
4791 set dummy flex; ac_word=$2
4792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4794 if test "${ac_cv_prog_FLEX+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 if test -n "$FLEX"; then
4798 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_FLEX="flex "
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4811 done
4812 done
4813 IFS=$as_save_IFS
4817 FLEX=$ac_cv_prog_FLEX
4818 if test -n "$FLEX"; then
4819 { echo "$as_me:$LINENO: result: $FLEX" >&5
4820 echo "${ECHO_T}$FLEX" >&6; }
4821 else
4822 { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4827 if test "$FLEX" = ""; then
4828 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4829 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4830 { (exit 1); exit 1; }; }
4832 # Extract the first word of "pngtopnm", so it can be a program name with args.
4833 set dummy pngtopnm; ac_word=$2
4834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 if test -n "$PNGTOPNM"; then
4840 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_PNGTOPNM="pngtopnm "
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4853 done
4854 done
4855 IFS=$as_save_IFS
4859 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4860 if test -n "$PNGTOPNM"; then
4861 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4862 echo "${ECHO_T}$PNGTOPNM" >&6; }
4863 else
4864 { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4869 if test "$PNGTOPNM" = ""; then
4870 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4871 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4872 { (exit 1); exit 1; }; }
4874 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4875 set dummy ppmtoilbm; ac_word=$2
4876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4878 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 if test -n "$PPMTOILBM"; then
4882 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4897 IFS=$as_save_IFS
4901 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4902 if test -n "$PPMTOILBM"; then
4903 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4904 echo "${ECHO_T}$PPMTOILBM" >&6; }
4905 else
4906 { echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6; }
4911 if test "$PPMTOILBM" = ""; then
4912 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4913 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4914 { (exit 1); exit 1; }; }
4916 # Extract the first word of "sed", so it can be a program name with args.
4917 set dummy sed; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_prog_SED+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 if test -n "$SED"; then
4924 ac_cv_prog_SED="$SED" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_prog_SED="sed "
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4939 IFS=$as_save_IFS
4943 SED=$ac_cv_prog_SED
4944 if test -n "$SED"; then
4945 { echo "$as_me:$LINENO: result: $SED" >&5
4946 echo "${ECHO_T}$SED" >&6; }
4947 else
4948 { echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6; }
4953 if test "$SED" = ""; then
4954 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4955 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4956 { (exit 1); exit 1; }; }
4958 # Extract the first word of "chmod", so it can be a program name with args.
4959 set dummy chmod; ac_word=$2
4960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4962 if test "${ac_cv_prog_CHMOD+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 if test -n "$CHMOD"; then
4966 ac_cv_prog_CHMOD="$CHMOD" # 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_CHMOD="chmod "
4976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4979 done
4980 done
4981 IFS=$as_save_IFS
4985 CHMOD=$ac_cv_prog_CHMOD
4986 if test -n "$CHMOD"; then
4987 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4988 echo "${ECHO_T}$CHMOD" >&6; }
4989 else
4990 { echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6; }
4995 if test "$CHMOD" = ""; then
4996 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4997 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4998 { (exit 1); exit 1; }; }
5005 if test -n "$PYTHON"; then
5006 # If the user set $PYTHON, use it and don't search something else.
5007 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5008 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5009 prog="import sys, string
5010 # split strings by '.' and convert to numeric. Append some zeros
5011 # because we need at least 4 digits for the hex conversion.
5012 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5013 minverhex = 0
5014 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5015 sys.exit(sys.hexversion < minverhex)"
5016 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5017 ($PYTHON -c "$prog") >&5 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; then
5021 { echo "$as_me:$LINENO: result: yes" >&5
5022 echo "${ECHO_T}yes" >&6; }
5023 else
5024 { { echo "$as_me:$LINENO: error: too old" >&5
5025 echo "$as_me: error: too old" >&2;}
5026 { (exit 1); exit 1; }; }
5029 am_display_PYTHON=$PYTHON
5030 else
5031 # Otherwise, try each interpreter until we find one that satisfies
5032 # VERSION.
5033 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5034 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5035 if test "${am_cv_pathless_PYTHON+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5039 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
5040 test "$am_cv_pathless_PYTHON" = none && break
5041 prog="import sys, string
5042 # split strings by '.' and convert to numeric. Append some zeros
5043 # because we need at least 4 digits for the hex conversion.
5044 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5045 minverhex = 0
5046 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5047 sys.exit(sys.hexversion < minverhex)"
5048 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5049 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; then
5053 break
5056 done
5058 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5059 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5060 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5061 if test "$am_cv_pathless_PYTHON" = none; then
5062 PYTHON=:
5063 else
5064 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5065 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_path_PYTHON+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 case $PYTHON in
5072 [\\/]* | ?:[\\/]*)
5073 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5087 done
5088 done
5089 IFS=$as_save_IFS
5092 esac
5094 PYTHON=$ac_cv_path_PYTHON
5095 if test -n "$PYTHON"; then
5096 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5097 echo "${ECHO_T}$PYTHON" >&6; }
5098 else
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5105 am_display_PYTHON=$am_cv_pathless_PYTHON
5109 if test "$PYTHON" = :; then
5110 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5111 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5112 { (exit 1); exit 1; }; }
5113 else
5116 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5117 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5118 if test "${am_cv_python_version+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5123 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5124 echo "${ECHO_T}$am_cv_python_version" >&6; }
5125 PYTHON_VERSION=$am_cv_python_version
5129 PYTHON_PREFIX='${prefix}'
5131 PYTHON_EXEC_PREFIX='${exec_prefix}'
5135 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5136 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5137 if test "${am_cv_python_platform+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5142 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5143 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5144 PYTHON_PLATFORM=$am_cv_python_platform
5149 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5150 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5151 if test "${am_cv_python_pythondir+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5155 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5157 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5158 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5159 pythondir=$am_cv_python_pythondir
5163 pkgpythondir=\${pythondir}/$PACKAGE
5166 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5167 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5168 if test "${am_cv_python_pyexecdir+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5172 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5174 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5175 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5176 pyexecdir=$am_cv_python_pyexecdir
5180 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5188 FOR=for
5190 IF=if
5192 TEST=test
5194 CMP=cmp
5198 # Check for some includes for the X11 HIDD and the kernel
5201 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5202 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5203 if test "${ac_cv_path_GREP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 # Extract the first word of "grep ggrep" to use in msg output
5207 if test -z "$GREP"; then
5208 set dummy grep ggrep; ac_prog_name=$2
5209 if test "${ac_cv_path_GREP+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 ac_path_GREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_prog in grep ggrep; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5222 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5223 # Check for GNU ac_path_GREP and select it if it is found.
5224 # Check for GNU $ac_path_GREP
5225 case `"$ac_path_GREP" --version 2>&1` in
5226 *GNU*)
5227 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5229 ac_count=0
5230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5231 while :
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 echo 'GREP' >> "conftest.nl"
5237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 ac_count=`expr $ac_count + 1`
5240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_GREP="$ac_path_GREP"
5243 ac_path_GREP_max=$ac_count
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249 esac
5252 $ac_path_GREP_found && break 3
5253 done
5254 done
5256 done
5257 IFS=$as_save_IFS
5262 GREP="$ac_cv_path_GREP"
5263 if test -z "$GREP"; then
5264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5265 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5266 { (exit 1); exit 1; }; }
5269 else
5270 ac_cv_path_GREP=$GREP
5275 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5276 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5277 GREP="$ac_cv_path_GREP"
5280 { echo "$as_me:$LINENO: checking for egrep" >&5
5281 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5282 if test "${ac_cv_path_EGREP+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5286 then ac_cv_path_EGREP="$GREP -E"
5287 else
5288 # Extract the first word of "egrep" to use in msg output
5289 if test -z "$EGREP"; then
5290 set dummy egrep; ac_prog_name=$2
5291 if test "${ac_cv_path_EGREP+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294 ac_path_EGREP_found=false
5295 # Loop through the user's path and test for each of PROGNAME-LIST
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_prog in egrep; do
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5304 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5305 # Check for GNU ac_path_EGREP and select it if it is found.
5306 # Check for GNU $ac_path_EGREP
5307 case `"$ac_path_EGREP" --version 2>&1` in
5308 *GNU*)
5309 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5311 ac_count=0
5312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5313 while :
5315 cat "conftest.in" "conftest.in" >"conftest.tmp"
5316 mv "conftest.tmp" "conftest.in"
5317 cp "conftest.in" "conftest.nl"
5318 echo 'EGREP' >> "conftest.nl"
5319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5321 ac_count=`expr $ac_count + 1`
5322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5323 # Best one so far, save it but keep looking for a better one
5324 ac_cv_path_EGREP="$ac_path_EGREP"
5325 ac_path_EGREP_max=$ac_count
5327 # 10*(2^10) chars as input seems more than enough
5328 test $ac_count -gt 10 && break
5329 done
5330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5331 esac
5334 $ac_path_EGREP_found && break 3
5335 done
5336 done
5338 done
5339 IFS=$as_save_IFS
5344 EGREP="$ac_cv_path_EGREP"
5345 if test -z "$EGREP"; then
5346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5348 { (exit 1); exit 1; }; }
5351 else
5352 ac_cv_path_EGREP=$EGREP
5358 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5359 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5360 EGREP="$ac_cv_path_EGREP"
5363 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5364 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5365 if test "${ac_cv_header_stdc+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #include <stdlib.h>
5375 #include <stdarg.h>
5376 #include <string.h>
5377 #include <float.h>
5380 main ()
5384 return 0;
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (ac_try="$ac_compile"
5389 case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392 esac
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_compile") 2>conftest.er1
5395 ac_status=$?
5396 grep -v '^ *+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && {
5401 test -z "$ac_c_werror_flag" ||
5402 test ! -s conftest.err
5403 } && test -s conftest.$ac_objext; then
5404 ac_cv_header_stdc=yes
5405 else
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 ac_cv_header_stdc=no
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 if test $ac_cv_header_stdc = yes; then
5415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <string.h>
5424 _ACEOF
5425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5426 $EGREP "memchr" >/dev/null 2>&1; then
5428 else
5429 ac_cv_header_stdc=no
5431 rm -f -r conftest*
5435 if test $ac_cv_header_stdc = yes; then
5436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <stdlib.h>
5445 _ACEOF
5446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447 $EGREP "free" >/dev/null 2>&1; then
5449 else
5450 ac_cv_header_stdc=no
5452 rm -f -r conftest*
5456 if test $ac_cv_header_stdc = yes; then
5457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5458 if test "$cross_compiling" = yes; then
5460 else
5461 cat >conftest.$ac_ext <<_ACEOF
5462 /* confdefs.h. */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5467 #include <ctype.h>
5468 #include <stdlib.h>
5469 #if ((' ' & 0x0FF) == 0x020)
5470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5472 #else
5473 # define ISLOWER(c) \
5474 (('a' <= (c) && (c) <= 'i') \
5475 || ('j' <= (c) && (c) <= 'r') \
5476 || ('s' <= (c) && (c) <= 'z'))
5477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5478 #endif
5480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5482 main ()
5484 int i;
5485 for (i = 0; i < 256; i++)
5486 if (XOR (islower (i), ISLOWER (i))
5487 || toupper (i) != TOUPPER (i))
5488 return 2;
5489 return 0;
5491 _ACEOF
5492 rm -f conftest$ac_exeext
5493 if { (ac_try="$ac_link"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_link") 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5503 { (case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_try") 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5513 else
5514 echo "$as_me: program exited with status $ac_status" >&5
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ( exit $ac_status )
5519 ac_cv_header_stdc=no
5521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5527 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5528 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5529 if test $ac_cv_header_stdc = yes; then
5531 cat >>confdefs.h <<\_ACEOF
5532 #define STDC_HEADERS 1
5533 _ACEOF
5537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5548 inttypes.h stdint.h unistd.h
5550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 $ac_includes_default
5564 #include <$ac_header>
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 eval "$as_ac_Header=yes"
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 eval "$as_ac_Header=no"
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_res=`eval echo '${'$as_ac_Header'}'`
5594 { echo "$as_me:$LINENO: result: $ac_res" >&5
5595 echo "${ECHO_T}$ac_res" >&6; }
5596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5597 cat >>confdefs.h <<_ACEOF
5598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5599 _ACEOF
5603 done
5615 for ac_header in sys/ipc.h sys/shm.h \
5616 sys/mmap.h sys/mman.h sysexits.h \
5617 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 ac_res=`eval echo '${'$as_ac_Header'}'`
5628 { echo "$as_me:$LINENO: result: $ac_res" >&5
5629 echo "${ECHO_T}$ac_res" >&6; }
5630 else
5631 # Is the header compilable?
5632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5641 #include <$ac_header>
5642 _ACEOF
5643 rm -f conftest.$ac_objext
5644 if { (ac_try="$ac_compile"
5645 case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
5660 ac_header_compiler=yes
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 ac_header_compiler=no
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5670 echo "${ECHO_T}$ac_header_compiler" >&6; }
5672 # Is the header present?
5673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 #include <$ac_header>
5682 _ACEOF
5683 if { (ac_try="$ac_cpp conftest.$ac_ext"
5684 case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } >/dev/null && {
5696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 }; then
5699 ac_header_preproc=yes
5700 else
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5704 ac_header_preproc=no
5707 rm -f conftest.err conftest.$ac_ext
5708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5709 echo "${ECHO_T}$ac_header_preproc" >&6; }
5711 # So? What about this header?
5712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5713 yes:no: )
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5718 ac_header_preproc=yes
5720 no:yes:* )
5721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5735 esac
5736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741 eval "$as_ac_Header=\$ac_header_preproc"
5743 ac_res=`eval echo '${'$as_ac_Header'}'`
5744 { echo "$as_me:$LINENO: result: $ac_res" >&5
5745 echo "${ECHO_T}$ac_res" >&6; }
5748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5749 cat >>confdefs.h <<_ACEOF
5750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5751 _ACEOF
5755 done
5759 for ac_header in sys/mount.h
5761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h. */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 #include <sys/param.h>
5775 #include <$ac_header>
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (ac_try="$ac_compile"
5779 case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.$ac_objext; then
5794 eval "$as_ac_Header=yes"
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 eval "$as_ac_Header=no"
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 ac_res=`eval echo '${'$as_ac_Header'}'`
5805 { echo "$as_me:$LINENO: result: $ac_res" >&5
5806 echo "${ECHO_T}$ac_res" >&6; }
5807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5808 cat >>confdefs.h <<_ACEOF
5809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5810 _ACEOF
5814 done
5822 ac_header_dirent=no
5823 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5824 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5825 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5826 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 #include <sys/types.h>
5837 #include <$ac_hdr>
5840 main ()
5842 if ((DIR *) 0)
5843 return 0;
5845 return 0;
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.$ac_objext; then
5865 eval "$as_ac_Header=yes"
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 eval "$as_ac_Header=no"
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_res=`eval echo '${'$as_ac_Header'}'`
5876 { echo "$as_me:$LINENO: result: $ac_res" >&5
5877 echo "${ECHO_T}$ac_res" >&6; }
5878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5879 cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5881 _ACEOF
5883 ac_header_dirent=$ac_hdr; break
5886 done
5887 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5888 if test $ac_header_dirent = dirent.h; then
5889 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5890 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5891 if test "${ac_cv_search_opendir+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 ac_func_search_save_LIBS=$LIBS
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5902 /* Override any GCC internal prototype to avoid an error.
5903 Use char because int might match the return type of a GCC
5904 builtin and then its argument prototype would still apply. */
5905 #ifdef __cplusplus
5906 extern "C"
5907 #endif
5908 char opendir ();
5910 main ()
5912 return opendir ();
5914 return 0;
5916 _ACEOF
5917 for ac_lib in '' dir; do
5918 if test -z "$ac_lib"; then
5919 ac_res="none required"
5920 else
5921 ac_res=-l$ac_lib
5922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5924 rm -f conftest.$ac_objext conftest$ac_exeext
5925 if { (ac_try="$ac_link"
5926 case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_link") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && {
5938 test -z "$ac_c_werror_flag" ||
5939 test ! -s conftest.err
5940 } && test -s conftest$ac_exeext &&
5941 $as_test_x conftest$ac_exeext; then
5942 ac_cv_search_opendir=$ac_res
5943 else
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5951 conftest$ac_exeext
5952 if test "${ac_cv_search_opendir+set}" = set; then
5953 break
5955 done
5956 if test "${ac_cv_search_opendir+set}" = set; then
5958 else
5959 ac_cv_search_opendir=no
5961 rm conftest.$ac_ext
5962 LIBS=$ac_func_search_save_LIBS
5964 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5965 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5966 ac_res=$ac_cv_search_opendir
5967 if test "$ac_res" != no; then
5968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5972 else
5973 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5975 if test "${ac_cv_search_opendir+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 ac_func_search_save_LIBS=$LIBS
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5986 /* Override any GCC internal prototype to avoid an error.
5987 Use char because int might match the return type of a GCC
5988 builtin and then its argument prototype would still apply. */
5989 #ifdef __cplusplus
5990 extern "C"
5991 #endif
5992 char opendir ();
5994 main ()
5996 return opendir ();
5998 return 0;
6000 _ACEOF
6001 for ac_lib in '' x; do
6002 if test -z "$ac_lib"; then
6003 ac_res="none required"
6004 else
6005 ac_res=-l$ac_lib
6006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6008 rm -f conftest.$ac_objext conftest$ac_exeext
6009 if { (ac_try="$ac_link"
6010 case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_link") 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest$ac_exeext &&
6025 $as_test_x conftest$ac_exeext; then
6026 ac_cv_search_opendir=$ac_res
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6035 conftest$ac_exeext
6036 if test "${ac_cv_search_opendir+set}" = set; then
6037 break
6039 done
6040 if test "${ac_cv_search_opendir+set}" = set; then
6042 else
6043 ac_cv_search_opendir=no
6045 rm conftest.$ac_ext
6046 LIBS=$ac_func_search_save_LIBS
6048 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6049 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6050 ac_res=$ac_cv_search_opendir
6051 if test "$ac_res" != no; then
6052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6058 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6059 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6060 if test "${ac_cv_header_stat_broken+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <sys/types.h>
6070 #include <sys/stat.h>
6072 #if defined S_ISBLK && defined S_IFDIR
6073 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6074 #endif
6076 #if defined S_ISBLK && defined S_IFCHR
6077 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6078 #endif
6080 #if defined S_ISLNK && defined S_IFREG
6081 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6082 #endif
6084 #if defined S_ISSOCK && defined S_IFREG
6085 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6086 #endif
6088 _ACEOF
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6091 case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094 esac
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_c_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest.$ac_objext; then
6106 ac_cv_header_stat_broken=no
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_header_stat_broken=yes
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6117 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6118 if test $ac_cv_header_stat_broken = yes; then
6120 cat >>confdefs.h <<\_ACEOF
6121 #define STAT_MACROS_BROKEN 1
6122 _ACEOF
6126 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6127 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6128 if test "${ac_cv_header_stdc+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 #include <stdlib.h>
6138 #include <stdarg.h>
6139 #include <string.h>
6140 #include <float.h>
6143 main ()
6147 return 0;
6149 _ACEOF
6150 rm -f conftest.$ac_objext
6151 if { (ac_try="$ac_compile"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_compile") 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && {
6164 test -z "$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 } && test -s conftest.$ac_objext; then
6167 ac_cv_header_stdc=yes
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_cv_header_stdc=no
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 if test $ac_cv_header_stdc = yes; then
6178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6179 cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h. */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6185 #include <string.h>
6187 _ACEOF
6188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6189 $EGREP "memchr" >/dev/null 2>&1; then
6191 else
6192 ac_cv_header_stdc=no
6194 rm -f -r conftest*
6198 if test $ac_cv_header_stdc = yes; then
6199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 #include <stdlib.h>
6208 _ACEOF
6209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6210 $EGREP "free" >/dev/null 2>&1; then
6212 else
6213 ac_cv_header_stdc=no
6215 rm -f -r conftest*
6219 if test $ac_cv_header_stdc = yes; then
6220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6221 if test "$cross_compiling" = yes; then
6223 else
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <ctype.h>
6231 #include <stdlib.h>
6232 #if ((' ' & 0x0FF) == 0x020)
6233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6235 #else
6236 # define ISLOWER(c) \
6237 (('a' <= (c) && (c) <= 'i') \
6238 || ('j' <= (c) && (c) <= 'r') \
6239 || ('s' <= (c) && (c) <= 'z'))
6240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6241 #endif
6243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6245 main ()
6247 int i;
6248 for (i = 0; i < 256; i++)
6249 if (XOR (islower (i), ISLOWER (i))
6250 || toupper (i) != TOUPPER (i))
6251 return 2;
6252 return 0;
6254 _ACEOF
6255 rm -f conftest$ac_exeext
6256 if { (ac_try="$ac_link"
6257 case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_link") 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6266 { (case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_try") 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6276 else
6277 echo "$as_me: program exited with status $ac_status" >&5
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 ( exit $ac_status )
6282 ac_cv_header_stdc=no
6284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6290 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6291 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6292 if test $ac_cv_header_stdc = yes; then
6294 cat >>confdefs.h <<\_ACEOF
6295 #define STDC_HEADERS 1
6296 _ACEOF
6300 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6301 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6302 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 #include <sys/types.h>
6312 #include <sys/wait.h>
6313 #ifndef WEXITSTATUS
6314 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6315 #endif
6316 #ifndef WIFEXITED
6317 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6318 #endif
6321 main ()
6323 int s;
6324 wait (&s);
6325 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6327 return 0;
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (ac_try="$ac_compile"
6332 case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest.$ac_objext; then
6347 ac_cv_header_sys_wait_h=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_cv_header_sys_wait_h=no
6355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6358 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6359 if test $ac_cv_header_sys_wait_h = yes; then
6361 cat >>confdefs.h <<\_ACEOF
6362 #define HAVE_SYS_WAIT_H 1
6363 _ACEOF
6367 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6368 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6369 if test "${ac_cv_header_time+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h. */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <sys/types.h>
6379 #include <sys/time.h>
6380 #include <time.h>
6383 main ()
6385 if ((struct tm *) 0)
6386 return 0;
6388 return 0;
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6393 case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_compile") 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest.$ac_objext; then
6408 ac_cv_header_time=yes
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6413 ac_cv_header_time=no
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6419 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6420 if test $ac_cv_header_time = yes; then
6422 cat >>confdefs.h <<\_ACEOF
6423 #define TIME_WITH_SYS_TIME 1
6424 _ACEOF
6428 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6429 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6430 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433 cat >conftest.$ac_ext <<_ACEOF
6434 /* confdefs.h. */
6435 _ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6439 $ac_includes_default
6441 main ()
6443 static struct stat ac_aggr;
6444 if (ac_aggr.st_blksize)
6445 return 0;
6447 return 0;
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (ac_try="$ac_compile"
6452 case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455 esac
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_compile") 2>conftest.er1
6458 ac_status=$?
6459 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } && {
6464 test -z "$ac_c_werror_flag" ||
6465 test ! -s conftest.err
6466 } && test -s conftest.$ac_objext; then
6467 ac_cv_member_struct_stat_st_blksize=yes
6468 else
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h. */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6478 $ac_includes_default
6480 main ()
6482 static struct stat ac_aggr;
6483 if (sizeof ac_aggr.st_blksize)
6484 return 0;
6486 return 0;
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (ac_try="$ac_compile"
6491 case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6494 esac
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_compile") 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 } && test -s conftest.$ac_objext; then
6506 ac_cv_member_struct_stat_st_blksize=yes
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6511 ac_cv_member_struct_stat_st_blksize=no
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6520 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6521 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6525 _ACEOF
6528 cat >>confdefs.h <<\_ACEOF
6529 #define HAVE_ST_BLKSIZE 1
6530 _ACEOF
6535 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6536 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6537 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6548 main ()
6550 static struct stat ac_aggr;
6551 if (ac_aggr.st_blocks)
6552 return 0;
6554 return 0;
6556 _ACEOF
6557 rm -f conftest.$ac_objext
6558 if { (ac_try="$ac_compile"
6559 case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest.$ac_objext; then
6574 ac_cv_member_struct_stat_st_blocks=yes
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h. */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 $ac_includes_default
6587 main ()
6589 static struct stat ac_aggr;
6590 if (sizeof ac_aggr.st_blocks)
6591 return 0;
6593 return 0;
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (ac_try="$ac_compile"
6598 case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
6613 ac_cv_member_struct_stat_st_blocks=yes
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 ac_cv_member_struct_stat_st_blocks=no
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6627 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6628 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6632 _ACEOF
6635 cat >>confdefs.h <<\_ACEOF
6636 #define HAVE_ST_BLOCKS 1
6637 _ACEOF
6639 else
6640 case " $LIBOBJS " in
6641 *" fileblocks.$ac_objext "* ) ;;
6642 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6644 esac
6649 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6650 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6651 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 $ac_includes_default
6662 main ()
6664 static struct stat ac_aggr;
6665 if (ac_aggr.st_rdev)
6666 return 0;
6668 return 0;
6670 _ACEOF
6671 rm -f conftest.$ac_objext
6672 if { (ac_try="$ac_compile"
6673 case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676 esac
6677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678 (eval "$ac_compile") 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && {
6685 test -z "$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6687 } && test -s conftest.$ac_objext; then
6688 ac_cv_member_struct_stat_st_rdev=yes
6689 else
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h. */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 $ac_includes_default
6701 main ()
6703 static struct stat ac_aggr;
6704 if (sizeof ac_aggr.st_rdev)
6705 return 0;
6707 return 0;
6709 _ACEOF
6710 rm -f conftest.$ac_objext
6711 if { (ac_try="$ac_compile"
6712 case "(($ac_try" in
6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6715 esac
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717 (eval "$ac_compile") 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest.$ac_objext; then
6727 ac_cv_member_struct_stat_st_rdev=yes
6728 else
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6732 ac_cv_member_struct_stat_st_rdev=no
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6741 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6742 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6744 cat >>confdefs.h <<_ACEOF
6745 #define HAVE_STRUCT_STAT_ST_RDEV 1
6746 _ACEOF
6749 cat >>confdefs.h <<\_ACEOF
6750 #define HAVE_ST_RDEV 1
6751 _ACEOF
6756 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6757 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6758 if test "${ac_cv_struct_tm+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h. */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 #include <sys/types.h>
6768 #include <time.h>
6771 main ()
6773 struct tm tm;
6774 int *p = &tm.tm_sec;
6775 return !p;
6777 return 0;
6779 _ACEOF
6780 rm -f conftest.$ac_objext
6781 if { (ac_try="$ac_compile"
6782 case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785 esac
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 ac_cv_struct_tm=time.h
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 ac_cv_struct_tm=sys/time.h
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6808 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6809 if test $ac_cv_struct_tm = sys/time.h; then
6811 cat >>confdefs.h <<\_ACEOF
6812 #define TM_IN_SYS_TIME 1
6813 _ACEOF
6817 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6818 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6819 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 cat >conftest.$ac_ext <<_ACEOF
6823 /* confdefs.h. */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 #include <sys/types.h>
6829 #include <$ac_cv_struct_tm>
6833 main ()
6835 static struct tm ac_aggr;
6836 if (ac_aggr.tm_zone)
6837 return 0;
6839 return 0;
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (ac_try="$ac_compile"
6844 case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847 esac
6848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6849 (eval "$ac_compile") 2>conftest.er1
6850 ac_status=$?
6851 grep -v '^ *+' conftest.er1 >conftest.err
6852 rm -f conftest.er1
6853 cat conftest.err >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } && {
6856 test -z "$ac_c_werror_flag" ||
6857 test ! -s conftest.err
6858 } && test -s conftest.$ac_objext; then
6859 ac_cv_member_struct_tm_tm_zone=yes
6860 else
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 #include <sys/types.h>
6871 #include <$ac_cv_struct_tm>
6875 main ()
6877 static struct tm ac_aggr;
6878 if (sizeof ac_aggr.tm_zone)
6879 return 0;
6881 return 0;
6883 _ACEOF
6884 rm -f conftest.$ac_objext
6885 if { (ac_try="$ac_compile"
6886 case "(($ac_try" in
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6889 esac
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.$ac_objext; then
6901 ac_cv_member_struct_tm_tm_zone=yes
6902 else
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_cv_member_struct_tm_tm_zone=no
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6915 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6916 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_STRUCT_TM_TM_ZONE 1
6920 _ACEOF
6925 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_TM_ZONE 1
6929 _ACEOF
6931 else
6932 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6933 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6934 if test "${ac_cv_have_decl_tzname+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937 cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h. */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6943 #include <time.h>
6946 main ()
6948 #ifndef tzname
6949 (void) tzname;
6950 #endif
6953 return 0;
6955 _ACEOF
6956 rm -f conftest.$ac_objext
6957 if { (ac_try="$ac_compile"
6958 case "(($ac_try" in
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6961 esac
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_compile") 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest.$ac_objext; then
6973 ac_cv_have_decl_tzname=yes
6974 else
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6978 ac_cv_have_decl_tzname=no
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6984 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6985 if test $ac_cv_have_decl_tzname = yes; then
6987 cat >>confdefs.h <<_ACEOF
6988 #define HAVE_DECL_TZNAME 1
6989 _ACEOF
6992 else
6993 cat >>confdefs.h <<_ACEOF
6994 #define HAVE_DECL_TZNAME 0
6995 _ACEOF
7001 { echo "$as_me:$LINENO: checking for tzname" >&5
7002 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7003 if test "${ac_cv_var_tzname+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006 cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h. */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 #include <time.h>
7013 #if !HAVE_DECL_TZNAME
7014 extern char *tzname[];
7015 #endif
7018 main ()
7020 return tzname[0][0];
7022 return 0;
7024 _ACEOF
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (ac_try="$ac_link"
7027 case "(($ac_try" in
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7030 esac
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_link") 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest$ac_exeext &&
7042 $as_test_x conftest$ac_exeext; then
7043 ac_cv_var_tzname=yes
7044 else
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_cv_var_tzname=no
7051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7052 conftest$ac_exeext conftest.$ac_ext
7054 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7055 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7056 if test $ac_cv_var_tzname = yes; then
7058 cat >>confdefs.h <<\_ACEOF
7059 #define HAVE_TZNAME 1
7060 _ACEOF
7065 { echo "$as_me:$LINENO: checking for off_t" >&5
7066 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7067 if test "${ac_cv_type_off_t+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 $ac_includes_default
7077 typedef off_t ac__type_new_;
7079 main ()
7081 if ((ac__type_new_ *) 0)
7082 return 0;
7083 if (sizeof (ac__type_new_))
7084 return 0;
7086 return 0;
7088 _ACEOF
7089 rm -f conftest.$ac_objext
7090 if { (ac_try="$ac_compile"
7091 case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094 esac
7095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096 (eval "$ac_compile") 2>conftest.er1
7097 ac_status=$?
7098 grep -v '^ *+' conftest.er1 >conftest.err
7099 rm -f conftest.er1
7100 cat conftest.err >&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && {
7103 test -z "$ac_c_werror_flag" ||
7104 test ! -s conftest.err
7105 } && test -s conftest.$ac_objext; then
7106 ac_cv_type_off_t=yes
7107 else
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 ac_cv_type_off_t=no
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7117 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7118 if test $ac_cv_type_off_t = yes; then
7120 else
7122 cat >>confdefs.h <<_ACEOF
7123 #define off_t long int
7124 _ACEOF
7128 { echo "$as_me:$LINENO: checking for pid_t" >&5
7129 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7130 if test "${ac_cv_type_pid_t+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 $ac_includes_default
7140 typedef pid_t ac__type_new_;
7142 main ()
7144 if ((ac__type_new_ *) 0)
7145 return 0;
7146 if (sizeof (ac__type_new_))
7147 return 0;
7149 return 0;
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7154 case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest.$ac_objext; then
7169 ac_cv_type_pid_t=yes
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_cv_type_pid_t=no
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7180 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7181 if test $ac_cv_type_pid_t = yes; then
7183 else
7185 cat >>confdefs.h <<_ACEOF
7186 #define pid_t int
7187 _ACEOF
7191 { echo "$as_me:$LINENO: checking for size_t" >&5
7192 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7193 if test "${ac_cv_type_size_t+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h. */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 $ac_includes_default
7203 typedef size_t ac__type_new_;
7205 main ()
7207 if ((ac__type_new_ *) 0)
7208 return 0;
7209 if (sizeof (ac__type_new_))
7210 return 0;
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7217 case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 ac_cv_type_size_t=yes
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_cv_type_size_t=no
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7243 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7244 if test $ac_cv_type_size_t = yes; then
7246 else
7248 cat >>confdefs.h <<_ACEOF
7249 #define size_t unsigned int
7250 _ACEOF
7254 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7255 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7256 if test "${ac_cv_type_uid_t+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <sys/types.h>
7267 _ACEOF
7268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7269 $EGREP "uid_t" >/dev/null 2>&1; then
7270 ac_cv_type_uid_t=yes
7271 else
7272 ac_cv_type_uid_t=no
7274 rm -f -r conftest*
7277 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7278 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7279 if test $ac_cv_type_uid_t = no; then
7281 cat >>confdefs.h <<\_ACEOF
7282 #define uid_t int
7283 _ACEOF
7286 cat >>confdefs.h <<\_ACEOF
7287 #define gid_t int
7288 _ACEOF
7293 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7294 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7295 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7306 main ()
7308 static struct tm ac_aggr;
7309 if (ac_aggr.tm_gmtoff)
7310 return 0;
7312 return 0;
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (ac_try="$ac_compile"
7317 case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320 esac
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_compile") 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest.$ac_objext; then
7332 ac_cv_member_struct_tm_tm_gmtoff=yes
7333 else
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7345 main ()
7347 static struct tm ac_aggr;
7348 if (sizeof ac_aggr.tm_gmtoff)
7349 return 0;
7351 return 0;
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7356 case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359 esac
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7371 ac_cv_member_struct_tm_tm_gmtoff=yes
7372 else
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_member_struct_tm_tm_gmtoff=no
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7385 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7386 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7388 cat >>confdefs.h <<_ACEOF
7389 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7390 _ACEOF
7396 # Look for some functions
7411 for ac_func in getpagesize kqueue statfs statvfs \
7412 clone kse_create rfork_thread thr_create sa_register \
7413 getcontext makecontext setcontext sigaltstack swapcontext
7415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7429 #define $ac_func innocuous_$ac_func
7431 /* System header to define __stub macros and hopefully few prototypes,
7432 which can conflict with char $ac_func (); below.
7433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7434 <limits.h> exists even on freestanding compilers. */
7436 #ifdef __STDC__
7437 # include <limits.h>
7438 #else
7439 # include <assert.h>
7440 #endif
7442 #undef $ac_func
7444 /* Override any GCC internal prototype to avoid an error.
7445 Use char because int might match the return type of a GCC
7446 builtin and then its argument prototype would still apply. */
7447 #ifdef __cplusplus
7448 extern "C"
7449 #endif
7450 char $ac_func ();
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined __stub_$ac_func || defined __stub___$ac_func
7455 choke me
7456 #endif
7459 main ()
7461 return $ac_func ();
7463 return 0;
7465 _ACEOF
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (ac_try="$ac_link"
7468 case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7471 esac
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473 (eval "$ac_link") 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest$ac_exeext &&
7483 $as_test_x conftest$ac_exeext; then
7484 eval "$as_ac_var=yes"
7485 else
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 eval "$as_ac_var=no"
7492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7493 conftest$ac_exeext conftest.$ac_ext
7495 ac_res=`eval echo '${'$as_ac_var'}'`
7496 { echo "$as_me:$LINENO: result: $ac_res" >&5
7497 echo "${ECHO_T}$ac_res" >&6; }
7498 if test `eval echo '${'$as_ac_var'}'` = yes; then
7499 cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7501 _ACEOF
7504 done
7509 for ac_header in stdlib.h unistd.h
7511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 ac_res=`eval echo '${'$as_ac_Header'}'`
7519 { echo "$as_me:$LINENO: result: $ac_res" >&5
7520 echo "${ECHO_T}$ac_res" >&6; }
7521 else
7522 # Is the header compilable?
7523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h. */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 $ac_includes_default
7532 #include <$ac_header>
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7536 case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 ac_header_compiler=yes
7552 else
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7556 ac_header_compiler=no
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7561 echo "${ECHO_T}$ac_header_compiler" >&6; }
7563 # Is the header present?
7564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <$ac_header>
7573 _ACEOF
7574 if { (ac_try="$ac_cpp conftest.$ac_ext"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } >/dev/null && {
7587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 }; then
7590 ac_header_preproc=yes
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_header_preproc=no
7598 rm -f conftest.err conftest.$ac_ext
7599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7600 echo "${ECHO_T}$ac_header_preproc" >&6; }
7602 # So? What about this header?
7603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7604 yes:no: )
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7609 ac_header_preproc=yes
7611 no:yes:* )
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7626 esac
7627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632 eval "$as_ac_Header=\$ac_header_preproc"
7634 ac_res=`eval echo '${'$as_ac_Header'}'`
7635 { echo "$as_me:$LINENO: result: $ac_res" >&5
7636 echo "${ECHO_T}$ac_res" >&6; }
7639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7640 cat >>confdefs.h <<_ACEOF
7641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7642 _ACEOF
7646 done
7649 for ac_func in getpagesize
7651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7665 #define $ac_func innocuous_$ac_func
7667 /* System header to define __stub macros and hopefully few prototypes,
7668 which can conflict with char $ac_func (); below.
7669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7670 <limits.h> exists even on freestanding compilers. */
7672 #ifdef __STDC__
7673 # include <limits.h>
7674 #else
7675 # include <assert.h>
7676 #endif
7678 #undef $ac_func
7680 /* Override any GCC internal prototype to avoid an error.
7681 Use char because int might match the return type of a GCC
7682 builtin and then its argument prototype would still apply. */
7683 #ifdef __cplusplus
7684 extern "C"
7685 #endif
7686 char $ac_func ();
7687 /* The GNU C library defines this for functions which it implements
7688 to always fail with ENOSYS. Some functions are actually named
7689 something starting with __ and the normal name is an alias. */
7690 #if defined __stub_$ac_func || defined __stub___$ac_func
7691 choke me
7692 #endif
7695 main ()
7697 return $ac_func ();
7699 return 0;
7701 _ACEOF
7702 rm -f conftest.$ac_objext conftest$ac_exeext
7703 if { (ac_try="$ac_link"
7704 case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_link") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest$ac_exeext &&
7719 $as_test_x conftest$ac_exeext; then
7720 eval "$as_ac_var=yes"
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 eval "$as_ac_var=no"
7728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7729 conftest$ac_exeext conftest.$ac_ext
7731 ac_res=`eval echo '${'$as_ac_var'}'`
7732 { echo "$as_me:$LINENO: result: $ac_res" >&5
7733 echo "${ECHO_T}$ac_res" >&6; }
7734 if test `eval echo '${'$as_ac_var'}'` = yes; then
7735 cat >>confdefs.h <<_ACEOF
7736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7737 _ACEOF
7740 done
7742 { echo "$as_me:$LINENO: checking for working mmap" >&5
7743 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7744 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747 if test "$cross_compiling" = yes; then
7748 ac_cv_func_mmap_fixed_mapped=no
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7757 /* malloc might have been renamed as rpl_malloc. */
7758 #undef malloc
7760 /* Thanks to Mike Haertel and Jim Avera for this test.
7761 Here is a matrix of mmap possibilities:
7762 mmap private not fixed
7763 mmap private fixed at somewhere currently unmapped
7764 mmap private fixed at somewhere already mapped
7765 mmap shared not fixed
7766 mmap shared fixed at somewhere currently unmapped
7767 mmap shared fixed at somewhere already mapped
7768 For private mappings, we should verify that changes cannot be read()
7769 back from the file, nor mmap's back from the file at a different
7770 address. (There have been systems where private was not correctly
7771 implemented like the infamous i386 svr4.0, and systems where the
7772 VM page cache was not coherent with the file system buffer cache
7773 like early versions of FreeBSD and possibly contemporary NetBSD.)
7774 For shared mappings, we should conversely verify that changes get
7775 propagated back to all the places they're supposed to be.
7777 Grep wants private fixed already mapped.
7778 The main things grep needs to know about mmap are:
7779 * does it exist and is it safe to write into the mmap'd area
7780 * how to use it (BSD variants) */
7782 #include <fcntl.h>
7783 #include <sys/mman.h>
7785 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7786 char *malloc ();
7787 #endif
7789 /* This mess was copied from the GNU getpagesize.h. */
7790 #ifndef HAVE_GETPAGESIZE
7791 /* Assume that all systems that can run configure have sys/param.h. */
7792 # ifndef HAVE_SYS_PARAM_H
7793 # define HAVE_SYS_PARAM_H 1
7794 # endif
7796 # ifdef _SC_PAGESIZE
7797 # define getpagesize() sysconf(_SC_PAGESIZE)
7798 # else /* no _SC_PAGESIZE */
7799 # ifdef HAVE_SYS_PARAM_H
7800 # include <sys/param.h>
7801 # ifdef EXEC_PAGESIZE
7802 # define getpagesize() EXEC_PAGESIZE
7803 # else /* no EXEC_PAGESIZE */
7804 # ifdef NBPG
7805 # define getpagesize() NBPG * CLSIZE
7806 # ifndef CLSIZE
7807 # define CLSIZE 1
7808 # endif /* no CLSIZE */
7809 # else /* no NBPG */
7810 # ifdef NBPC
7811 # define getpagesize() NBPC
7812 # else /* no NBPC */
7813 # ifdef PAGESIZE
7814 # define getpagesize() PAGESIZE
7815 # endif /* PAGESIZE */
7816 # endif /* no NBPC */
7817 # endif /* no NBPG */
7818 # endif /* no EXEC_PAGESIZE */
7819 # else /* no HAVE_SYS_PARAM_H */
7820 # define getpagesize() 8192 /* punt totally */
7821 # endif /* no HAVE_SYS_PARAM_H */
7822 # endif /* no _SC_PAGESIZE */
7824 #endif /* no HAVE_GETPAGESIZE */
7827 main ()
7829 char *data, *data2, *data3;
7830 int i, pagesize;
7831 int fd;
7833 pagesize = getpagesize ();
7835 /* First, make a file with some known garbage in it. */
7836 data = (char *) malloc (pagesize);
7837 if (!data)
7838 return 1;
7839 for (i = 0; i < pagesize; ++i)
7840 *(data + i) = rand ();
7841 umask (0);
7842 fd = creat ("conftest.mmap", 0600);
7843 if (fd < 0)
7844 return 1;
7845 if (write (fd, data, pagesize) != pagesize)
7846 return 1;
7847 close (fd);
7849 /* Next, try to mmap the file at a fixed address which already has
7850 something else allocated at it. If we can, also make sure that
7851 we see the same garbage. */
7852 fd = open ("conftest.mmap", O_RDWR);
7853 if (fd < 0)
7854 return 1;
7855 data2 = (char *) malloc (2 * pagesize);
7856 if (!data2)
7857 return 1;
7858 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7859 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7860 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7861 return 1;
7862 for (i = 0; i < pagesize; ++i)
7863 if (*(data + i) != *(data2 + i))
7864 return 1;
7866 /* Finally, make sure that changes to the mapped area do not
7867 percolate back to the file as seen by read(). (This is a bug on
7868 some variants of i386 svr4.0.) */
7869 for (i = 0; i < pagesize; ++i)
7870 *(data2 + i) = *(data2 + i) + 1;
7871 data3 = (char *) malloc (pagesize);
7872 if (!data3)
7873 return 1;
7874 if (read (fd, data3, pagesize) != pagesize)
7875 return 1;
7876 for (i = 0; i < pagesize; ++i)
7877 if (*(data + i) != *(data3 + i))
7878 return 1;
7879 close (fd);
7880 return 0;
7882 _ACEOF
7883 rm -f conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7885 case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888 esac
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_link") 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7894 { (case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_try") 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_cv_func_mmap_fixed_mapped=yes
7904 else
7905 echo "$as_me: program exited with status $ac_status" >&5
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ( exit $ac_status )
7910 ac_cv_func_mmap_fixed_mapped=no
7912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7917 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7918 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7919 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7921 cat >>confdefs.h <<\_ACEOF
7922 #define HAVE_MMAP 1
7923 _ACEOF
7926 rm -f conftest.mmap
7931 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7932 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7933 aros_config_ldflags=""
7935 aros_shared_default=yes
7937 aros_shared_cflags="-fPIC"
7938 aros_shared_aflags=""
7939 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7940 aros_kernel_ldflags="-Wl,-rpath,./lib"
7942 aros_target_ar_flags="cr"
7943 aros_target_nm_flags="-C -ul"
7944 aros_target_strip_flags="--strip-unneeded -R.comment"
7946 aros_compiler_libs=
7947 aros_arch_libs=
7949 aros_target_genmap="-Wl,-Map -Xlinker"
7951 # Native flavour stuff
7952 aros_serial_debug="0"
7954 # Palm native flavour stuff
7955 aros_palm_debug_hack="0"
7957 # Unix flavour stuff
7958 aros_nesting_supervisor="0"
7960 # Collect-aros stuff: "-ius" to ignore undefined symbols
7961 ignore_undefined_symbols=""
7963 #-----------------------------------------------------------------------------
7966 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7967 # it switched on by default, and we use the host compiler, so it compiles AROS
7968 # code with this enabled resulting in link failures as we don't have support
7969 # for it.
7971 # We use two methods to disable it. For the host compiler (used to compile
7972 # some hosted modules), we test to see if the compiler supports stack
7973 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7974 # work on all platforms.
7976 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7977 # (this is done unconditionally, as it should have no effect on compilers
7978 # without the stack protection feature). This may be specific to the way that
7979 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7980 # strong enough to disable it in a generic way though, so we'll live with it
7981 # until another vendor ships GCC with it enabled in a different way, and deal
7982 # with it then.
7985 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7986 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7987 save_cflags="$CFLAGS"
7988 CFLAGS="$CFLAGS -fno-stack-protector"
7989 cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h. */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7997 main ()
8001 return 0;
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8006 case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 use_no_stack_protector="yes"
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 use_no_stack_protector="no"
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8031 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8032 if test "x-$use_no_stack_protector" = "x-yes" ; then
8033 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8035 CFLAGS="$save_cflags"
8037 #-----------------------------------------------------------------------------
8039 # Disable pointer-signedness warnings if the compiler recognises the option
8040 # (this only works for the host compiler at the moment)
8042 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8043 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8044 save_cflags="$CFLAGS"
8045 CFLAGS="$CFLAGS -Wno-pointer-sign"
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8054 main ()
8058 return 0;
8060 _ACEOF
8061 rm -f conftest.$ac_objext
8062 if { (ac_try="$ac_compile"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_compile") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.$ac_objext; then
8078 use_no_sign_warning="yes"
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 use_no_sign_warning="no"
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8088 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8089 if test "x-$use_no_sign_warning" = "x-yes" ; then
8090 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8092 CFLAGS="$save_cflags"
8094 #-----------------------------------------------------------------------------
8096 { echo "$as_me:$LINENO: checking for type of build" >&5
8097 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8098 # Check whether --enable-build_type was given.
8099 if test "${enable_build_type+set}" = set; then
8100 enableval=$enable_build_type; build_type=$enableval
8101 else
8102 build_type="personal"
8106 if test "$build_type" = "nightly"; then
8107 build_type_string="NIGHTLY"
8108 elif test "$build_type" = "snapshot"; then
8109 build_type_string="SNAPSHOT"
8110 elif test "$build_type" = "milestone"; then
8111 build_type_string="MILESTONE"
8112 elif test "$build_type" = "release"; then
8113 build_type_string="RELEASE"
8114 else
8115 build_type_string="PERSONAL"
8116 build_type="personal"
8119 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8121 { echo "$as_me:$LINENO: result: $build_type" >&5
8122 echo "${ECHO_T}$build_type" >&6; }
8124 #-----------------------------------------------------------------------------
8125 all_debug_types="messages stack modules mungwall symbols"
8127 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8128 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8129 # Check whether --enable-debug was given.
8130 if test "${enable_debug+set}" = set; then
8131 enableval=$enable_debug; debug="$enableval"
8132 else
8133 debug=""
8137 if test "$debug" = "" -o "$debug" = "no"; then
8138 debug="none"
8139 elif test "$debug" = "yes"; then
8140 debug="all"
8143 if test "$debug" = "all" ; then
8144 debug="messages stack modules symbols"
8145 for d in $all_debug_types; do
8146 export aros_${d}_debug="1"
8147 done
8148 else
8149 for d in $all_debug_types; do
8150 export aros_${d}_debug="0"
8151 done
8154 if test "$debug" != "none"; then
8155 debug=`echo $debug | sed s/,/\ /g`
8156 for d in $debug; do
8157 found="0"
8158 for d2 in $all_debug_types; do
8159 if test "$d2" = "$d"; then
8160 found="1"
8161 break
8163 done
8164 if test "$found" = "0"; then
8165 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8166 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8167 { (exit 1); exit 1; }; }
8169 export aros_${d}_debug="1"
8170 done
8171 aros_debug="yes"
8173 { echo "$as_me:$LINENO: result: $debug" >&5
8174 echo "${ECHO_T}$debug" >&6; }
8176 if test "$aros_messages_debug" = "1"; then
8177 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8178 else
8179 aros_messages_debug=""
8181 if test "$aros_symbols_debug" = "1"; then
8182 aros_symbols_debug="-g"
8183 else
8184 aros_symbols_debug=""
8187 # These are the flags to pass when compiling debugged programs
8188 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8189 aros_debug_aflags=""
8190 aros_debug_ldflags="$aros_symbols_debug"
8192 aros_crosstools="no"
8194 #-----------------------------------------------------------------------------
8195 # Checking if we should build crosstools..
8196 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8197 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8198 # Check whether --enable-crosstools was given.
8199 if test "${enable_crosstools+set}" = set; then
8200 enableval=$enable_crosstools; crosstools="$enableval"
8201 else
8202 crosstools="no"
8205 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8206 { echo "$as_me:$LINENO: result: yes" >&5
8207 echo "${ECHO_T}yes" >&6; }
8208 aros_crosstools="yes"
8209 else
8210 { echo "$as_me:$LINENO: result: no" >&5
8211 echo "${ECHO_T}no" >&6; }
8214 #-----------------------------------------------------------------------------
8215 # Checking for distcc and ccache.
8217 # Always apply the transforms in this particular order. Basically you should
8218 # always run 'ccache distcc compiler' in that order for the best performance.
8220 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8221 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8222 # Check whether --enable-distcc was given.
8223 if test "${enable_distcc+set}" = set; then
8224 enableval=$enable_distcc; distcc="$enableval"
8225 else
8226 distcc="no"
8229 if test "$distcc" != "" -a "$distcc" != "no"; then
8230 # AC_CHECK_PROG will print out the result in this case
8231 # Extract the first word of "distcc", so it can be a program name with args.
8232 set dummy distcc; ac_word=$2
8233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8235 if test "${ac_cv_path_DISTCC+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238 case $DISTCC in
8239 [\\/]* | ?:[\\/]*)
8240 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8254 done
8255 done
8256 IFS=$as_save_IFS
8258 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8260 esac
8262 DISTCC=$ac_cv_path_DISTCC
8263 if test -n "$DISTCC"; then
8264 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8265 echo "${ECHO_T}$DISTCC" >&6; }
8266 else
8267 { echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6; }
8272 else
8273 { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8277 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8278 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8279 # Check whether --enable-ccache was given.
8280 if test "${enable_ccache+set}" = set; then
8281 enableval=$enable_ccache; ccache="$enableval"
8282 else
8283 ccache="no"
8286 if test "$ccache" != "" -a "$ccache" != "no"; then
8287 # AC_CHECK_PROG will print out the result in this case
8288 # Extract the first word of "ccache", so it can be a program name with args.
8289 set dummy ccache; ac_word=$2
8290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292 if test "${ac_cv_prog_CCACHE+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 if test -n "$CCACHE"; then
8296 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8297 else
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8305 ac_cv_prog_CCACHE="ccache"
8306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 break 2
8309 done
8310 done
8311 IFS=$as_save_IFS
8315 CCACHE=$ac_cv_prog_CCACHE
8316 if test -n "$CCACHE"; then
8317 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8318 echo "${ECHO_T}$CCACHE" >&6; }
8319 else
8320 { echo "$as_me:$LINENO: result: no" >&5
8321 echo "${ECHO_T}no" >&6; }
8325 else
8326 { echo "$as_me:$LINENO: result: no" >&5
8327 echo "${ECHO_T}no" >&6; }
8330 #-----------------------------------------------------------------------------
8331 { echo "$as_me:$LINENO: checking what specific gcc version to use" >&5
8332 echo $ECHO_N "checking what specific gcc version to use... $ECHO_C" >&6; }
8334 # Check whether --with-gcc-version was given.
8335 if test "${with_gcc_version+set}" = set; then
8336 withval=$with_gcc_version; target_tool_version="$withval"
8337 else
8338 target_tool_version="default"
8341 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8342 echo "${ECHO_T}$target_tool_version" >&6; }
8344 #-----------------------------------------------------------------------------
8345 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8346 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8348 # Check whether --with-optimization was given.
8349 if test "${with_optimization+set}" = set; then
8350 withval=$with_optimization; optimization="$withval"
8351 else
8352 optimization="unknown"
8355 if test "$optimization" = "unknown"; then
8356 if test "$debug" != "none"; then
8357 optimization="-O0"
8358 else
8359 optimization="-O2"
8362 aros_config_cflags="$aros_config_cflags $optimization"
8363 { echo "$as_me:$LINENO: result: $optimization" >&5
8364 echo "${ECHO_T}$optimization" >&6; }
8366 #-----------------------------------------------------------------------------
8367 { echo "$as_me:$LINENO: checking what paranoia flags to use" >&5
8368 echo $ECHO_N "checking what paranoia flags to use... $ECHO_C" >&6; }
8370 # Check whether --with-paranoia was given.
8371 if test "${with_paranoia+set}" = set; then
8372 withval=$with_paranoia; paranoia_flags="$withval"
8373 else
8374 paranoia_flags="default"
8377 if test "$paranoia_flags" = "default"; then
8378 paranoia_flags=""
8379 else if test "$paranoia_flags" = "yes"; then
8380 paranoia_flags="-Wall -Werror"
8381 fi fi
8382 { echo "$as_me:$LINENO: result: $paranoia_flags" >&5
8383 echo "${ECHO_T}$paranoia_flags" >&6; }
8384 aros_paranoia_cflags="$paranoia_flags"
8386 #-----------------------------------------------------------------------------
8387 if test "$target_os" = "ios"; then
8389 { echo "$as_me:$LINENO: checking XCode path" >&5
8390 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8392 # Check whether --with-xcode-path was given.
8393 if test "${with_xcode_path+set}" = set; then
8394 withval=$with_xcode_path; aros_xcode_path="$withval"
8395 else
8396 aros_xcode_path="/Developer"
8399 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8400 echo "${ECHO_T}$aros_xcode_path" >&6; }
8402 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8403 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8405 # Check whether --with-ios-version was given.
8406 if test "${with_ios_version+set}" = set; then
8407 withval=$with_ios_version; aros_ios_version="$withval"
8408 else
8409 aros_ios_version="2.0"
8412 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8413 echo "${ECHO_T}$aros_ios_version" >&6; }
8415 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8416 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8418 # Check whether --with-ios-sdk was given.
8419 if test "${with_ios_sdk+set}" = set; then
8420 withval=$with_ios_sdk; aros_ios_sdk="$withval"
8421 else
8422 aros_ios_sdk="4.1"
8425 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8426 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8430 #-----------------------------------------------------------------------------
8431 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8432 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8433 # Check whether --enable-target_variant was given.
8434 if test "${enable_target_variant+set}" = set; then
8435 enableval=$enable_target_variant; target_variant=$enableval
8436 else
8437 target_variant=""
8440 if test "$target_variant" = ""; then
8441 aros_target_variant=""
8442 aros_target_suffix=""
8443 enableval="none"
8444 else
8445 aros_target_variant="$target_variant"
8446 aros_target_suffix="-$target_variant"
8448 { echo "$as_me:$LINENO: result: $enableval" >&5
8449 echo "${ECHO_T}$enableval" >&6; }
8451 target_bootloader="none"
8453 #-----------------------------------------------------------------------------
8454 # This is the target configuration switch.
8455 case "$target_os" in
8456 linux*)
8457 aros_target_arch="linux"
8458 aros_target_family="unix"
8459 case "$target_cpu" in
8460 *m68k*)
8461 aros_target_cpu="m68k"
8462 aros_object_format="m68kelf"
8463 aros_flavour="emulcompat"
8464 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8465 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8466 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8467 gcc_target_cpu="mc68000"
8469 *i?86*)
8470 aros_target_cpu="i386"
8471 aros_object_format="elf_i386"
8472 aros_flavour="emulation"
8473 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8474 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8475 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8476 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8477 aros_config_ldflags="-m32 -march=i486"
8478 aros_kernel_ldflags="-melf_i386"
8479 aros_default_wbdepth=8
8480 gcc_target_cpu="i386"
8482 *x86_64*)
8483 aros_target_cpu="x86_64"
8484 aros_object_format="elf_x86_64"
8485 aros_flavour="emulation"
8486 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8487 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8488 aros_default_wbdepth=8
8489 gcc_target_cpu="x86_64"
8491 *powerpc*)
8492 aros_target_cpu="ppc"
8493 aros_object_format="elf32ppc"
8494 aros_flavour="emulation"
8495 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8496 aros_default_wbdepth=8
8497 gcc_target_cpu="ppc"
8499 # TODO
8500 # Same as powerpc, but I need this for the nightly build to work again.
8501 # Actually, the nightly should be made working with powerpc target.
8502 # That just was too much work for the moment, another week or two.
8503 *ppc*)
8504 aros_target_cpu="ppc"
8505 aros_object_format="elf32ppc"
8506 aros_flavour="emulation"
8507 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8508 aros_default_wbdepth=8
8509 gcc_target_cpu="ppc"
8511 *arm*)
8512 aros_target_cpu="arm"
8513 aros_object_format="armelf_linux_eabi"
8514 aros_flavour="emulation"
8515 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8516 gcc_target_cpu="arm"
8517 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8518 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8521 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8522 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8523 { (exit 1); exit 1; }; }
8525 esac
8529 aros_target_arch="pc"
8530 aros_shared_default="no"
8531 target_bootloader="grub2"
8532 case "$target_cpu" in
8533 *i?86*)
8534 aros_target_cpu="i386"
8537 if test "$aros_object_format" = "" ; then
8538 aros_object_format="elf_i386"
8540 aros_flavour="standalone"
8541 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8542 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8543 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8544 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8545 aros_config_ldflags="-m32 -march=i486"
8546 aros_kernel_ldflags="-melf_i386"
8547 aros_default_wbwidth=640
8548 aros_default_wbheight=480
8549 gcc_target_cpu="i386"
8551 *x86_64*)
8552 aros_target_cpu="x86_64"
8553 aros_serial_debug=1
8554 if test "$aros_object_format" = "" ; then
8555 aros_object_format="elf_x86_64"
8557 aros_flavour="standalone"
8558 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8559 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8560 aros_kernel_ldflags=""
8561 aros_default_wbwidth=640
8562 aros_default_wbheight=480
8563 gcc_target_cpu="x86_64"
8566 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8567 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8568 { (exit 1); exit 1; }; }
8570 esac
8573 prep)
8574 aros_target_arch="prep"
8575 aros_shared_default="no"
8576 aros_target_cpu="ppc"
8577 aros_object_format="elf32ppc"
8578 aros_flavour="ppcnative"
8579 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8580 aros_kernel_ldflags=""
8581 aros_default_wbwidth=640
8582 aros_default_wbheight=480
8583 gcc_target_cpu="ppc"
8586 freebsd*)
8587 aros_target_arch="freebsd"
8588 aros_target_family="unix"
8589 aros_target_cpu="i386"
8590 aros_flavour="emulation"
8591 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8592 gcc_target_cpu="i386"
8594 aros_target_strip_flags="-x"
8597 darwin*)
8598 aros_target_arch="darwin"
8599 aros_target_family="unix"
8600 aros_flavour="emulation"
8601 case "$target_cpu" in
8602 *i?86*)
8603 aros_target_cpu="i386"
8604 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8605 aros_kernel_cflags="$aros_kernel_cflags -m32"
8606 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8607 aros_default_wbdepth=8
8608 gcc_target_cpu="i386"
8609 aros_object_format="elf_i386"
8610 aros_target_strip_flags="-x"
8611 aros_target_cc="i386-aros-gcc"
8612 aros_target_cxx="i386-aros-g++"
8613 aros_target_ld="i386-aros-ld"
8614 aros_target_as="i386-aros-as"
8615 aros_target_ar="i386-aros-ar"
8616 aros_target_ranlib="i386-aros-ranlib"
8617 aros_target_nm="i386-aros-nm"
8618 aros_target_strip="i386-aros-strip"
8619 aros_target_objcopy="i386-aros-objcopy"
8620 aros_target_objdump="i386-aros-objdump"
8621 target_tool_prefix="i686-apple-darwin10-"
8623 *x86_64*)
8624 aros_target_cpu="x86_64"
8625 aros_object_format="elf_x86_64"
8626 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8627 aros_kernel_cflags="$aros_kernel_cflags -m64"
8628 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
8629 aros_default_wbdepth=8
8630 gcc_target_cpu="x86_64"
8631 aros_target_cc="x86_64-aros-gcc"
8632 aros_target_cxx="x86_64-aros-g++"
8633 aros_target_ld="x86_64-aros-ld"
8634 aros_target_as="x86_64-aros-as"
8635 aros_target_ar="x86_64-aros-ar"
8636 aros_target_ranlib="x86_64-aros-ranlib"
8637 aros_target_nm="x86_64-aros-nm"
8638 aros_target_strip="x86_64-aros-strip"
8639 aros_target_objcopy="x86_64-aros-objcopy"
8640 aros_target_objdump="x86_64-aros-objdump"
8641 target_tool_prefix="i686-apple-darwin10-"
8643 *ppc*)
8644 aros_target_cpu="ppc"
8645 aros_object_format="elf32_ppc"
8646 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8647 aros_default_wbdepth=8
8648 gcc_target_cpu="ppc"
8649 aros_target_cc="ppc-aros-gcc"
8650 aros_target_cxx="ppc-aros-g++"
8651 aros_target_ld="ppc-aros-ld"
8652 aros_target_as="ppc-aros-as"
8653 aros_target_ar="ppc-aros-ar"
8654 aros_target_ranlib="ppc-aros-ranlib"
8655 aros_target_nm="ppc-aros-nm"
8656 aros_target_strip="ppc-aros-strip"
8657 aros_target_objcopy="ppc-aros-objcopy"
8658 aros_target_objdump="ppc-aros-objdump"
8659 target_tool_prefix="powerpc-apple-darwin10-"
8662 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8663 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8664 { (exit 1); exit 1; }; }
8666 esac
8669 ios*)
8670 aros_target_arch="ios"
8671 aros_target_family="unix"
8672 aros_flavour="emulation"
8673 # This is here because it may depend on iOS or SDK version
8674 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8675 case "$target_cpu" in
8676 *i?86*)
8677 aros_ios_platform="iPhoneSimulator"
8678 aros_target_cpu="i386"
8679 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8680 aros_default_wbdepth=8
8681 gcc_target_cpu="i386"
8682 aros_object_format="elf_i386"
8683 aros_target_strip_flags="-x"
8684 aros_target_cc="i386-aros-gcc"
8685 aros_target_cxx="i386-aros-g++"
8686 aros_target_ld="i386-aros-ld"
8687 aros_target_as="i386-aros-as"
8688 aros_target_ar="i386-aros-ar"
8689 aros_target_ranlib="i386-aros-ranlib"
8690 aros_target_nm="i386-aros-nm"
8691 aros_target_strip="i386-aros-strip"
8692 aros_target_objcopy="i386-aros-objcopy"
8693 aros_target_objdump="i386-aros-objdump"
8694 target_tool_prefix="i686-apple-darwin10-"
8695 target_tool_flags="-m32"
8697 *arm*)
8698 aros_ios_platform="iPhoneOS"
8699 aros_target_cpu="arm"
8700 aros_object_format="armelf_linux_eabi"
8701 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8702 aros_config_cflags="$aros_config_cflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8703 aros_config_aflags="$aros_config_aflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8704 aros_arch_libs="-laeabi"
8705 aros_default_wbdepth=8
8706 gcc_target_cpu="arm"
8707 aros_kernel_ld="ld -arch armv6"
8708 aros_target_cc="arm-aros-gcc"
8709 aros_target_cxx="arm-aros-g++"
8710 aros_target_ld="arm-aros-ld"
8711 aros_target_as="arm-aros-as"
8712 aros_target_ar="arm-aros-ar"
8713 aros_target_ranlib="arm-aros-ranlib"
8714 aros_target_nm="arm-aros-nm"
8715 aros_target_strip="arm-aros-strip"
8716 aros_target_objcopy="arm-aros-objcopy"
8717 aros_target_objdump="arm-aros-objdump"
8718 target_tool_prefix="arm-apple-darwin10-"
8719 aros_default_wbwidth=320
8720 aros_default_wbheight=480
8721 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8724 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&5
8725 echo "$as_me: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&2;}
8726 { (exit 1); exit 1; }; }
8728 esac
8729 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
8730 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
8733 dragonfly*)
8734 aros_target_arch="dragonfly"
8735 aros_target_family="unix"
8736 aros_flavour="emulation"
8737 case "$target_cpu" in
8738 *i?86*)
8739 aros_target_cpu="i386"
8740 aros_object_format="elf_i386"
8741 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8743 *x86_64*)
8744 aros_target_cpu="x86_64"
8745 aros_object_format="elf_x86_64"
8746 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8749 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8750 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8751 { (exit 1); exit 1; }; }
8753 esac
8756 netbsd*)
8757 aros_target_arch="netbsd"
8758 aros_target_family="unix"
8759 case "$target_cpu" in
8760 *m68k*)
8761 aros_target_cpu="m68k"
8762 aros_object_format="m68kelf"
8763 aros_flavour="emulcompat"
8764 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8765 gcc_target_cpu="mc68000"
8767 *i?86*)
8768 aros_target_cpu="i386"
8769 aros_object_format="elf_i386"
8770 aros_flavour="emulation"
8771 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8772 aros_default_wbdepth=8
8773 gcc_target_cpu="i386"
8776 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8777 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8778 { (exit 1); exit 1; }; }
8780 esac
8781 aros_target_genmap="-Wl,-M -Xlinker >"
8782 aros_flavour="emulation"
8783 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8786 openbsd*)
8787 aros_target_arch="openbsd"
8788 aros_target_family="unix"
8789 case "$target_cpu" in
8790 *i?86*)
8791 aros_target_cpu="i386"
8792 aros_object_format="elf_i386"
8793 aros_flavour="emulation"
8794 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8795 gcc_target_cpu="i386"
8798 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8799 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8800 { (exit 1); exit 1; }; }
8802 esac
8803 aros_target_genmap="-Wl,-M -Xlinker >"
8804 aros_target_nm_flags="-u"
8805 aros_flavour="emulation"
8808 solaris*)
8809 aros_target_arch="solaris"
8810 aros_target_family="unix"
8811 case "$target_cpu" in
8812 *i?86*)
8813 aros_target_cpu="i386"
8814 aros_object_format="elf_i386"
8815 aros_flavour="emulation"
8816 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8817 aros_default_wbdepth=8
8818 gcc_target_cpu="i386"
8820 *sparc*)
8821 aros_target_cpu="sparc"
8822 aros_object_format="elf_sparc"
8823 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8824 gcc_target_cpu="sparc"
8827 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8828 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8829 { (exit 1); exit 1; }; }
8831 esac
8832 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8833 aros_flavour="emulation"
8836 morphos*)
8837 aros_target_arch="morphos"
8838 aros_shared_default="no"
8839 aros_target_cpu="ppc"
8840 aros_object_format="elf_ppc"
8841 aros_flavour="nativecompat"
8842 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8843 gcc_target_cpu="ppc"
8846 sam440)
8847 aros_target_arch="sam440"
8848 aros_shared_default="no"
8849 aros_target_cpu="ppc"
8850 aros_object_format="elf32ppc"
8851 aros_flavour="ppcnative"
8852 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8853 aros_kernel_ldflags=""
8854 aros_default_wbwidth=1024
8855 aros_default_wbheight=768
8856 aros_default_wbdepth=24
8857 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8858 gcc_target_cpu="powerpc"
8861 efika)
8862 aros_target_arch="efika"
8863 aros_shared_default="no"
8864 aros_target_cpu="arm"
8865 aros_object_format="armelf_linux_eabi"
8866 aros_flavour="standalone"
8867 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8868 aros_kernel_ldflags=""
8869 aros_default_wbwidth=1024
8870 aros_default_wbheight=600
8871 aros_arch_libs="-laeabi"
8872 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8873 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8876 chrp)
8877 aros_target_arch="chrp"
8878 aros_shared_default="no"
8879 aros_target_cpu="ppc"
8880 aros_object_format="elf32ppc"
8881 aros_flavour="ppcnative"
8882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8883 aros_kernel_ldflags=""
8884 aros_default_wbwidth=640
8885 aros_default_wbheight=480
8886 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8887 gcc_target_cpu="powerpc"
8888 case "$aros_target_variant" in
8889 efika)
8890 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8892 esac
8895 amiga*)
8896 aros_target_arch="amiga"
8897 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8898 aros_shared_default="no"
8900 case "$target_cpu" in
8901 *m68k-eabi)
8902 aros_target_cpu="m68k"
8903 aros_object_format="m68kelf"
8904 aros_flavour="standalone"
8905 gcc_target_cpu="mc68000"
8906 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8907 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8908 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8909 target_tool_prefix="m68k-elf-"
8910 aros_target_nostdlib_ldflags="" # We always need -lgcc
8911 aros_target_strip_flags="-R.comment"
8913 *m68k*)
8914 aros_target_cpu="m68k"
8915 aros_object_format="m68kelf"
8916 aros_flavour="standcompat"
8917 gcc_target_cpu="mc68000"
8918 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8919 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8920 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
8921 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8922 target_tool_prefix="m68k-elf-"
8923 aros_target_nostdlib_ldflags="" # We always need -lgcc
8924 aros_target_strip_flags="-R.comment"
8926 *ppc*)
8927 aros_cpu="ppc"
8928 aros_flavour="native"
8929 gcc_target_cpu="ppc"
8932 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8933 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8934 { (exit 1); exit 1; }; }
8936 esac
8939 mingw*)
8940 aros_target_arch="mingw32"
8941 aros_shared_default="no"
8942 aros_flavour="emulation"
8943 aros_shared_cflags=""
8944 need_dlopen="no"
8945 rescomp="windres"
8946 case "$target_cpu" in
8947 *i?86*)
8948 aros_target_cpu="i386"
8949 aros_object_format="elf_i386"
8950 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8951 aros_default_wbdepth=8
8952 gcc_target_cpu="i386"
8953 aros_target_cc="i386-aros-gcc"
8954 aros_target_cxx="i386-aros-g++"
8955 aros_target_ld="i386-aros-ld"
8956 aros_target_as="i386-aros-as"
8957 aros_target_ar="i386-aros-ar"
8958 aros_target_ranlib="i386-aros-ranlib"
8959 aros_target_nm="i386-aros-nm"
8960 aros_target_strip="i386-aros-strip"
8961 aros_target_objcopy="i386-aros-objcopy"
8962 aros_target_objdump="i386-aros-objdump"
8963 target_tool_prefix="i386-mingw32-"
8965 *x86_64*)
8966 aros_target_cpu="x86_64"
8967 aros_object_format="elf_x86_64"
8968 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8969 aros_default_wbdepth=8
8970 gcc_target_cpu="x86_64"
8971 aros_target_cc="x86_64-aros-gcc"
8972 aros_target_cxx="x86_64-aros-g++"
8973 aros_target_ld="x86_64-aros-ld"
8974 aros_target_as="x86_64-aros-as"
8975 aros_target_ar="x86_64-aros-ar"
8976 aros_target_ranlib="x86_64-aros-ranlib"
8977 aros_target_nm="x86_64-aros-nm"
8978 aros_target_strip="x86_64-aros-strip"
8979 aros_target_objcopy="x86_64-aros-objcopy"
8980 aros_target_objdump="x86_64-aros-objdump"
8981 target_tool_prefix="x86_64-w64-mingw32-"
8983 *arm*)
8984 aros_target_cpu="arm"
8985 aros_object_format="armelf_linux_eabi"
8986 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8987 aros_arch_libs="-laeabi"
8988 aros_default_wbdepth=8
8989 gcc_target_cpu="arm"
8990 aros_target_cc="arm-aros-gcc"
8991 aros_target_cxx="arm-aros-g++"
8992 aros_target_ld="arm-aros-ld"
8993 aros_target_as="arm-aros-as"
8994 aros_target_ar="arm-aros-ar"
8995 aros_target_ranlib="arm-aros-ranlib"
8996 aros_target_nm="arm-aros-nm"
8997 aros_target_strip="arm-aros-strip"
8998 aros_target_objcopy="arm-aros-objcopy"
8999 aros_target_objdump="arm-aros-objdump"
9000 target_tool_prefix="arm-mingw32ce-"
9001 aros_default_wbwidth=160
9002 aros_default_wbheight=160
9005 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
9006 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
9007 { (exit 1); exit 1; }; }
9009 esac
9010 if test $host_os = "cygwin"; then
9011 aros_kernel_cflags="-mno-cygwin"
9014 pp*)
9015 aros_target_arch="pp"
9016 aros_shared_default="no"
9017 case "$target_cpu" in
9018 *m68k*)
9019 aros_target_cpu="m68k"
9020 aros_object_format="m68kelf"
9021 aros_flavour="palmnative"
9022 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9023 aros_default_wbwidth=160
9024 aros_default_wbheight=160
9025 aros_default_wbdepth=1
9026 aros_target_ar_flags="cru"
9027 aros_compiler_libs="-lgcc1"
9028 aros_shared_default=no
9029 aros_shared_cflags="-fpic"
9030 aros_shared_aflags=""
9031 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9032 aros_kernel_ldflags="-Wl,-rpath,./lib"
9033 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9034 aros_debug_aflags=""
9035 aros_debug_ldflags="$aros_symbols_debug"
9036 aros_mungwall_debug="0"
9037 aros_modules_debug="0"
9038 gcc_target_cpu="mc68000"
9039 ignore_undefined_symbols="-ius"
9042 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9043 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9044 { (exit 1); exit 1; }; }
9046 esac
9049 mac*)
9050 aros_target_arch="mac"
9051 aros_shared_default="no"
9052 case "$target_cpu" in
9053 *m68k*)
9054 aros_target_cpu="m68k"
9055 aros_object_format="m68kelf"
9056 aros_flavour="mac68knative"
9057 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9058 aros_default_wbwidth=512
9059 aros_default_wbheight=384
9060 aros_default_wbdepth=8
9061 aros_target_ar_flags="cru"
9062 aros_compiler_libs="-lgcc1"
9063 aros_shared_default=no
9064 aros_shared_cflags="-fpic"
9065 aros_shared_aflags=""
9066 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9067 aros_kernel_ldflags="-Wl,-rpath,./lib"
9068 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9069 aros_debug_aflags=""
9070 aros_debug_ldflags="$aros_symbols_debug"
9071 aros_mungwall_debug="0"
9072 aros_modules_debug="0"
9073 gcc_target_cpu="mc68000"
9074 ignore_undefined_symbols="-ius"
9077 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9078 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9079 { (exit 1); exit 1; }; }
9081 esac
9085 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9086 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9087 { (exit 1); exit 1; }; }
9089 esac
9091 # FIXME: for cross-compiling this should point to another location
9092 if test "$aros_flavour" = "emulation"; then
9093 aros_kernel_includes="-isystem /usr/include"
9095 if test "$aros_flavour" = "emulcompat"; then
9096 aros_kernel_includes="-isystem /usr/include"
9099 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9100 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
9102 # Check whether --with-portssources was given.
9103 if test "${with_portssources+set}" = set; then
9104 withval=$with_portssources; with_portssrcdir=$withval
9105 else
9106 with_portssrcdir="default"
9109 if test "$with_portssrcdir" = "default"; then
9110 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9111 else
9112 AROS_PORTSSRCDIR="$with_portssrcdir"
9114 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9115 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9117 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9118 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9120 # Check whether --with-bootloader was given.
9121 if test "${with_bootloader+set}" = set; then
9122 withval=$with_bootloader; target_bootloader=$withval
9123 else
9124 target_bootloader=$target_bootloader
9127 if test "$target_bootloader" = "none"; then
9128 aros_target_bootloader=""
9129 else
9130 aros_target_bootloader="$target_bootloader"
9132 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9133 echo "${ECHO_T}$target_bootloader" >&6; }
9135 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9136 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9138 # Check whether --with-iconset was given.
9139 if test "${with_iconset+set}" = set; then
9140 withval=$with_iconset; target_iconset=$withval
9141 else
9142 target_iconset="default"
9145 if test "$target_iconset" = "default"; then
9146 aros_target_iconset="Gorilla"
9147 target_iconset="default (Gorilla)"
9148 else
9149 aros_target_iconset="$target_iconset"
9151 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9152 echo "${ECHO_T}$target_iconset" >&6; }
9154 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9155 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9157 # Check whether --with-theme was given.
9158 if test "${with_theme+set}" = set; then
9159 withval=$with_theme; target_guitheme=$withval
9160 else
9161 target_guitheme="default"
9164 if test "$target_guitheme" = "default"; then
9165 aros_target_guitheme="Ice"
9166 else
9167 aros_target_guitheme="$target_guitheme"
9169 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9170 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9172 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9173 # for target code)
9174 cross_compiling=no
9175 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9176 cross_compiling=yes
9178 if test "$aros_host_cpu" == "x86_64" ; then
9179 if test "$aros_target_cpu" == "i386" ; then
9180 if test "$aros_target_arch" != "mingw32"; then
9181 cross_compiling=no
9186 # Set prefix for target compiler etc. if we're cross-compiling
9187 # (should possibly be earlier but needs to be after AC_PROG_CC)
9188 if test "$cross_compiling" = "yes" ; then
9189 if test "$target_tool_prefix" = ""; then
9190 target_tool_prefix=${target_cpu}-elf-
9192 CC=${target_tool_prefix}gcc
9193 if test "$target_tool_version" != "default"; then
9194 CC="$CC-$target_tool_version"
9196 # Extract the first word of "$CC", so it can be a program name with args.
9197 set dummy $CC; ac_word=$2
9198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9200 if test "${ac_cv_path_CC+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 case $CC in
9204 [\\/]* | ?:[\\/]*)
9205 ac_cv_path_CC="$CC" # Let the user override the test with a path.
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9215 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
9216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9219 done
9220 done
9221 IFS=$as_save_IFS
9224 esac
9226 CC=$ac_cv_path_CC
9227 if test -n "$CC"; then
9228 { echo "$as_me:$LINENO: result: $CC" >&5
9229 echo "${ECHO_T}$CC" >&6; }
9230 else
9231 { echo "$as_me:$LINENO: result: no" >&5
9232 echo "${ECHO_T}no" >&6; }
9236 if test "$CC" = ""; then
9237 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9238 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9239 { (exit 1); exit 1; }; }
9242 CC="$CC $target_tool_flags"
9244 #-----------------------------------------------------------------------------
9246 # Disable pointer-signedness warnings if the compiler recognises the option
9248 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9249 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9250 save_cflags="$CFLAGS"
9251 CFLAGS="$CFLAGS -Wno-pointer-sign"
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9260 main ()
9264 return 0;
9266 _ACEOF
9267 rm -f conftest.$ac_objext
9268 if { (ac_try="$ac_compile"
9269 case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_compile") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } && {
9281 test -z "$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 } && test -s conftest.$ac_objext; then
9284 use_no_sign_warning="yes"
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 use_no_sign_warning="no"
9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9294 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9295 if test "x-$use_no_sign_warning" = "x-yes" ; then
9296 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9298 CFLAGS="$save_cflags"
9300 #-----------------------------------------------------------------------------
9302 # Find all the tools we need to compile. This could be cross-compiling
9303 # though! If that is the case we use the GNU form of the target and
9304 # simply add this to the front of the binary name. This is rather simple,
9305 # but it should work under most circumstances.
9307 # The default tools are to use the same as the host, but only if the
9308 # host and target CPU are the same. With GCC this is normally enough.
9311 aros_cc_pre=""
9312 aros_shared_ld="$aros_host_ld"
9314 aros_target_mkdep="$aros_host_mkdep"
9315 aros_target_incl_def="$aros_host_incl"
9317 aros_kernel_cc="$CC"
9319 # The default tools executables to be linked to.
9320 if test "$aros_target_cc" != ""; then
9321 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9322 set dummy $aros_target_cc; ac_word=$2
9323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9325 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 case $aros_target_cc in
9329 [\\/]* | ?:[\\/]*)
9330 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 for as_dir in $PATH
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9340 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 break 2
9344 done
9345 done
9346 IFS=$as_save_IFS
9349 esac
9351 aros_target_cc=$ac_cv_path_aros_target_cc
9352 if test -n "$aros_target_cc"; then
9353 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9354 echo "${ECHO_T}$aros_target_cc" >&6; }
9355 else
9356 { echo "$as_me:$LINENO: result: no" >&5
9357 echo "${ECHO_T}no" >&6; }
9361 if test "$aros_target_cc" = ""; then
9362 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9363 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9364 { (exit 1); exit 1; }; }
9367 if test "$aros_target_ld" != ""; then
9368 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9369 set dummy $aros_target_ld; ac_word=$2
9370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9372 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375 case $aros_target_ld in
9376 [\\/]* | ?:[\\/]*)
9377 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9383 IFS=$as_save_IFS
9384 test -z "$as_dir" && as_dir=.
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9387 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9389 break 2
9391 done
9392 done
9393 IFS=$as_save_IFS
9396 esac
9398 aros_target_ld=$ac_cv_path_aros_target_ld
9399 if test -n "$aros_target_ld"; then
9400 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9401 echo "${ECHO_T}$aros_target_ld" >&6; }
9402 else
9403 { echo "$as_me:$LINENO: result: no" >&5
9404 echo "${ECHO_T}no" >&6; }
9408 if test "$aros_target_ld" = ""; then
9409 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9410 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9411 { (exit 1); exit 1; }; }
9415 if test "$crosstools" != "yes"; then
9417 if test "$aros_target_as" = ""; then
9418 if test "$cross_compiling" = "yes" ; then
9419 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9420 set dummy ${target_tool_prefix}as; ac_word=$2
9421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9423 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426 case $aros_target_as_ln in
9427 [\\/]* | ?:[\\/]*)
9428 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9438 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9442 done
9443 done
9444 IFS=$as_save_IFS
9447 esac
9449 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9450 if test -n "$aros_target_as_ln"; then
9451 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9452 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9453 else
9454 { echo "$as_me:$LINENO: result: no" >&5
9455 echo "${ECHO_T}no" >&6; }
9459 else
9460 if test "$GCC" = "yes"; then
9461 aros_gcc_as=`$CC -print-prog-name=as`
9462 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9463 set dummy `basename $aros_gcc_as`; ac_word=$2
9464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9466 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 case $aros_target_as_ln in
9470 [\\/]* | ?:[\\/]*)
9471 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 for as_dir in `dirname $aros_gcc_as`
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9485 done
9486 done
9487 IFS=$as_save_IFS
9490 esac
9492 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9493 if test -n "$aros_target_as_ln"; then
9494 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9495 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9496 else
9497 { echo "$as_me:$LINENO: result: no" >&5
9498 echo "${ECHO_T}no" >&6; }
9503 if test "$aros_target_as_ln" = ""; then
9504 # Extract the first word of "as", so it can be a program name with args.
9505 set dummy as; ac_word=$2
9506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9508 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 case $aros_target_as_ln in
9512 [\\/]* | ?:[\\/]*)
9513 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9519 IFS=$as_save_IFS
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9525 break 2
9527 done
9528 done
9529 IFS=$as_save_IFS
9532 esac
9534 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9535 if test -n "$aros_target_as_ln"; then
9536 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9537 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9538 else
9539 { echo "$as_me:$LINENO: result: no" >&5
9540 echo "${ECHO_T}no" >&6; }
9546 else
9547 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9548 set dummy $aros_target_as; ac_word=$2
9549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9551 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554 case $aros_target_as_ln in
9555 [\\/]* | ?:[\\/]*)
9556 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9568 break 2
9570 done
9571 done
9572 IFS=$as_save_IFS
9575 esac
9577 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9578 if test -n "$aros_target_as_ln"; then
9579 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9580 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9581 else
9582 { echo "$as_me:$LINENO: result: no" >&5
9583 echo "${ECHO_T}no" >&6; }
9589 if test "$aros_target_as_ln" = ""; then
9590 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9591 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9592 { (exit 1); exit 1; }; }
9595 if test "$aros_kernel_ld" = ""; then
9596 if test "$cross_compiling" = "yes" ; then
9597 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9598 set dummy ${target_tool_prefix}ld; ac_word=$2
9599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9601 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 case $aros_kernel_ld in
9605 [\\/]* | ?:[\\/]*)
9606 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9620 done
9621 done
9622 IFS=$as_save_IFS
9625 esac
9627 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9628 if test -n "$aros_kernel_ld"; then
9629 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9630 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9631 else
9632 { echo "$as_me:$LINENO: result: no" >&5
9633 echo "${ECHO_T}no" >&6; }
9637 else
9638 if test "$GCC" = "yes"; then
9639 aros_gcc_ld=`$CC -print-prog-name=ld`
9640 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9641 set dummy `basename $aros_gcc_ld`; ac_word=$2
9642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9644 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647 case $aros_kernel_ld in
9648 [\\/]* | ?:[\\/]*)
9649 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 for as_dir in `dirname $aros_gcc_ld`
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9659 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9663 done
9664 done
9665 IFS=$as_save_IFS
9668 esac
9670 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9671 if test -n "$aros_kernel_ld"; then
9672 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9673 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9674 else
9675 { echo "$as_me:$LINENO: result: no" >&5
9676 echo "${ECHO_T}no" >&6; }
9681 if test "$aros_kernel_ld" = ""; then
9682 # Extract the first word of "ld", so it can be a program name with args.
9683 set dummy ld; ac_word=$2
9684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9686 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 case $aros_kernel_ld in
9690 [\\/]* | ?:[\\/]*)
9691 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 for as_dir in $PATH
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9701 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9705 done
9706 done
9707 IFS=$as_save_IFS
9710 esac
9712 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9713 if test -n "$aros_kernel_ld"; then
9714 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9715 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9716 else
9717 { echo "$as_me:$LINENO: result: no" >&5
9718 echo "${ECHO_T}no" >&6; }
9724 else
9725 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9726 set dummy $aros_kernel_ld; ac_word=$2
9727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9729 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 case $aros_kernel_ld in
9733 [\\/]* | ?:[\\/]*)
9734 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9744 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9748 done
9749 done
9750 IFS=$as_save_IFS
9753 esac
9755 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9756 if test -n "$aros_kernel_ld"; then
9757 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9758 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9759 else
9760 { echo "$as_me:$LINENO: result: no" >&5
9761 echo "${ECHO_T}no" >&6; }
9767 if test "$aros_kernel_ld" = ""; then
9768 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9769 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9770 { (exit 1); exit 1; }; }
9773 if test "$aros_target_ar" = ""; then
9774 if test "$cross_compiling" = "yes" ; then
9775 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9776 set dummy ${target_tool_prefix}ar; ac_word=$2
9777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9779 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 case $aros_target_ar_ln in
9783 [\\/]* | ?:[\\/]*)
9784 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in $PATH
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9794 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9798 done
9799 done
9800 IFS=$as_save_IFS
9803 esac
9805 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9806 if test -n "$aros_target_ar_ln"; then
9807 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9808 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9809 else
9810 { echo "$as_me:$LINENO: result: no" >&5
9811 echo "${ECHO_T}no" >&6; }
9815 else
9816 if test "$GCC" = "yes"; then
9817 aros_gcc_ar=`$CC -print-prog-name=ar`
9818 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9819 set dummy `basename $aros_gcc_ar`; ac_word=$2
9820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9822 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 case $aros_target_ar_ln in
9826 [\\/]* | ?:[\\/]*)
9827 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in `dirname $aros_gcc_ar`
9833 IFS=$as_save_IFS
9834 test -z "$as_dir" && as_dir=.
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9837 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 break 2
9841 done
9842 done
9843 IFS=$as_save_IFS
9846 esac
9848 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9849 if test -n "$aros_target_ar_ln"; then
9850 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9851 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9852 else
9853 { echo "$as_me:$LINENO: result: no" >&5
9854 echo "${ECHO_T}no" >&6; }
9859 if test "$aros_target_ar_ln" = ""; then
9860 # Extract the first word of "ar", so it can be a program name with args.
9861 set dummy ar; ac_word=$2
9862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9864 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867 case $aros_target_ar_ln in
9868 [\\/]* | ?:[\\/]*)
9869 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9883 done
9884 done
9885 IFS=$as_save_IFS
9888 esac
9890 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9891 if test -n "$aros_target_ar_ln"; then
9892 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9893 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9894 else
9895 { echo "$as_me:$LINENO: result: no" >&5
9896 echo "${ECHO_T}no" >&6; }
9902 else
9903 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9904 set dummy $aros_target_ar; ac_word=$2
9905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9907 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910 case $aros_target_ar_ln in
9911 [\\/]* | ?:[\\/]*)
9912 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 for as_dir in $PATH
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9922 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9926 done
9927 done
9928 IFS=$as_save_IFS
9931 esac
9933 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9934 if test -n "$aros_target_ar_ln"; then
9935 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9936 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9937 else
9938 { echo "$as_me:$LINENO: result: no" >&5
9939 echo "${ECHO_T}no" >&6; }
9945 if test "$aros_target_ar_ln" = ""; then
9946 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9947 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9948 { (exit 1); exit 1; }; }
9951 if test "$aros_target_nm" = ""; then
9952 if test "$cross_compiling" = "yes" ; then
9953 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9954 set dummy ${target_tool_prefix}nm; ac_word=$2
9955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9957 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960 case $aros_target_nm_ln in
9961 [\\/]* | ?:[\\/]*)
9962 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9976 done
9977 done
9978 IFS=$as_save_IFS
9981 esac
9983 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9984 if test -n "$aros_target_nm_ln"; then
9985 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9986 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9987 else
9988 { echo "$as_me:$LINENO: result: no" >&5
9989 echo "${ECHO_T}no" >&6; }
9993 else
9994 if test "$GCC" = "yes"; then
9995 aros_gcc_nm=`$CC -print-prog-name=nm`
9996 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9997 set dummy `basename $aros_gcc_nm`; ac_word=$2
9998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10000 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 case $aros_target_nm_ln in
10004 [\\/]* | ?:[\\/]*)
10005 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in `dirname $aros_gcc_nm`
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
10014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10015 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10019 done
10020 done
10021 IFS=$as_save_IFS
10024 esac
10026 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10027 if test -n "$aros_target_nm_ln"; then
10028 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10029 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10030 else
10031 { echo "$as_me:$LINENO: result: no" >&5
10032 echo "${ECHO_T}no" >&6; }
10037 if test "$aros_target_nm_ln" = ""; then
10038 # Extract the first word of "nm", so it can be a program name with args.
10039 set dummy nm; ac_word=$2
10040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10042 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045 case $aros_target_nm_ln in
10046 [\\/]* | ?:[\\/]*)
10047 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10061 done
10062 done
10063 IFS=$as_save_IFS
10066 esac
10068 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10069 if test -n "$aros_target_nm_ln"; then
10070 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10071 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10072 else
10073 { echo "$as_me:$LINENO: result: no" >&5
10074 echo "${ECHO_T}no" >&6; }
10080 else
10081 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10082 set dummy $aros_target_nm; ac_word=$2
10083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10085 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088 case $aros_target_nm_ln in
10089 [\\/]* | ?:[\\/]*)
10090 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10100 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 break 2
10104 done
10105 done
10106 IFS=$as_save_IFS
10109 esac
10111 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10112 if test -n "$aros_target_nm_ln"; then
10113 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10114 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10115 else
10116 { echo "$as_me:$LINENO: result: no" >&5
10117 echo "${ECHO_T}no" >&6; }
10123 if test "$aros_target_nm_ln" = ""; then
10124 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10125 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10126 { (exit 1); exit 1; }; }
10129 if test "$aros_target_objcopy" = ""; then
10130 if test "$cross_compiling" = "yes" ; then
10131 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10132 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10135 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138 case $aros_target_objcopy_ln in
10139 [\\/]* | ?:[\\/]*)
10140 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144 for as_dir in $PATH
10146 IFS=$as_save_IFS
10147 test -z "$as_dir" && as_dir=.
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10150 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 break 2
10154 done
10155 done
10156 IFS=$as_save_IFS
10159 esac
10161 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10162 if test -n "$aros_target_objcopy_ln"; then
10163 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10164 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10165 else
10166 { echo "$as_me:$LINENO: result: no" >&5
10167 echo "${ECHO_T}no" >&6; }
10171 else
10172 if test "$GCC" = "yes"; then
10173 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10174 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10175 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10178 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181 case $aros_target_objcopy_ln in
10182 [\\/]* | ?:[\\/]*)
10183 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in `dirname $aros_gcc_objcopy`
10189 IFS=$as_save_IFS
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
10192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10193 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 break 2
10197 done
10198 done
10199 IFS=$as_save_IFS
10202 esac
10204 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10205 if test -n "$aros_target_objcopy_ln"; then
10206 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10207 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10208 else
10209 { echo "$as_me:$LINENO: result: no" >&5
10210 echo "${ECHO_T}no" >&6; }
10215 if test "$aros_target_objcopy_ln" = ""; then
10216 # Extract the first word of "objcopy", so it can be a program name with args.
10217 set dummy objcopy; ac_word=$2
10218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10220 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223 case $aros_target_objcopy_ln in
10224 [\\/]* | ?:[\\/]*)
10225 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229 for as_dir in $PATH
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
10233 for ac_exec_ext in '' $ac_executable_extensions; do
10234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10235 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 break 2
10239 done
10240 done
10241 IFS=$as_save_IFS
10244 esac
10246 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10247 if test -n "$aros_target_objcopy_ln"; then
10248 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10249 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10250 else
10251 { echo "$as_me:$LINENO: result: no" >&5
10252 echo "${ECHO_T}no" >&6; }
10258 else
10259 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10260 set dummy $aros_target_objcopy; ac_word=$2
10261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10263 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266 case $aros_target_objcopy_ln in
10267 [\\/]* | ?:[\\/]*)
10268 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272 for as_dir in $PATH
10274 IFS=$as_save_IFS
10275 test -z "$as_dir" && as_dir=.
10276 for ac_exec_ext in '' $ac_executable_extensions; do
10277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10278 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 break 2
10282 done
10283 done
10284 IFS=$as_save_IFS
10287 esac
10289 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10290 if test -n "$aros_target_objcopy_ln"; then
10291 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10292 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10293 else
10294 { echo "$as_me:$LINENO: result: no" >&5
10295 echo "${ECHO_T}no" >&6; }
10301 if test "$aros_target_objcopy_ln" = ""; then
10302 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10303 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10304 { (exit 1); exit 1; }; }
10307 if test "$aros_target_objdump" = ""; then
10308 if test "$cross_compiling" = "yes" ; then
10309 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10310 set dummy ${target_tool_prefix}objdump; ac_word=$2
10311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10313 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316 case $aros_target_objdump_ln in
10317 [\\/]* | ?:[\\/]*)
10318 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10328 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10332 done
10333 done
10334 IFS=$as_save_IFS
10337 esac
10339 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10340 if test -n "$aros_target_objdump_ln"; then
10341 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10342 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10343 else
10344 { echo "$as_me:$LINENO: result: no" >&5
10345 echo "${ECHO_T}no" >&6; }
10349 else
10350 if test "$GCC" = "yes"; then
10351 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10352 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10353 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10356 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 case $aros_target_objdump_ln in
10360 [\\/]* | ?:[\\/]*)
10361 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in `dirname $aros_gcc_objdump`
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10371 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 break 2
10375 done
10376 done
10377 IFS=$as_save_IFS
10380 esac
10382 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10383 if test -n "$aros_target_objdump_ln"; then
10384 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10385 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10386 else
10387 { echo "$as_me:$LINENO: result: no" >&5
10388 echo "${ECHO_T}no" >&6; }
10393 if test "$aros_target_objdump_ln" = ""; then
10394 # Extract the first word of "objdump", so it can be a program name with args.
10395 set dummy objdump; ac_word=$2
10396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10398 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401 case $aros_target_objdump_ln in
10402 [\\/]* | ?:[\\/]*)
10403 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10413 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10417 done
10418 done
10419 IFS=$as_save_IFS
10422 esac
10424 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10425 if test -n "$aros_target_objdump_ln"; then
10426 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10427 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10428 else
10429 { echo "$as_me:$LINENO: result: no" >&5
10430 echo "${ECHO_T}no" >&6; }
10436 else
10437 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10438 set dummy $aros_target_objdump; ac_word=$2
10439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10441 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444 case $aros_target_objdump_ln in
10445 [\\/]* | ?:[\\/]*)
10446 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10456 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10460 done
10461 done
10462 IFS=$as_save_IFS
10465 esac
10467 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10468 if test -n "$aros_target_objdump_ln"; then
10469 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10470 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10471 else
10472 { echo "$as_me:$LINENO: result: no" >&5
10473 echo "${ECHO_T}no" >&6; }
10479 if test "$aros_target_objdump_ln" = ""; then
10480 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10481 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10482 { (exit 1); exit 1; }; }
10485 if test "$aros_target_ranlib" = ""; then
10486 if test "$cross_compiling" = "yes" ; then
10487 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10488 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10491 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494 case $aros_target_ranlib_ln in
10495 [\\/]* | ?:[\\/]*)
10496 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10510 done
10511 done
10512 IFS=$as_save_IFS
10515 esac
10517 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10518 if test -n "$aros_target_ranlib_ln"; then
10519 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10520 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10521 else
10522 { echo "$as_me:$LINENO: result: no" >&5
10523 echo "${ECHO_T}no" >&6; }
10527 else
10528 if test "$GCC" = "yes"; then
10529 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10530 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10531 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10534 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537 case $aros_target_ranlib_ln in
10538 [\\/]* | ?:[\\/]*)
10539 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543 for as_dir in `dirname $aros_gcc_ranlib`
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10549 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10551 break 2
10553 done
10554 done
10555 IFS=$as_save_IFS
10558 esac
10560 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10561 if test -n "$aros_target_ranlib_ln"; then
10562 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10563 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10564 else
10565 { echo "$as_me:$LINENO: result: no" >&5
10566 echo "${ECHO_T}no" >&6; }
10571 if test "$aros_target_ranlib_ln" = ""; then
10572 # Extract the first word of "ranlib", so it can be a program name with args.
10573 set dummy ranlib; ac_word=$2
10574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10576 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 case $aros_target_ranlib_ln in
10580 [\\/]* | ?:[\\/]*)
10581 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10591 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10595 done
10596 done
10597 IFS=$as_save_IFS
10600 esac
10602 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10603 if test -n "$aros_target_ranlib_ln"; then
10604 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10605 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10606 else
10607 { echo "$as_me:$LINENO: result: no" >&5
10608 echo "${ECHO_T}no" >&6; }
10614 else
10615 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10616 set dummy $aros_target_ranlib; ac_word=$2
10617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10619 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622 case $aros_target_ranlib_ln in
10623 [\\/]* | ?:[\\/]*)
10624 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628 for as_dir in $PATH
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10634 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10638 done
10639 done
10640 IFS=$as_save_IFS
10643 esac
10645 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10646 if test -n "$aros_target_ranlib_ln"; then
10647 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10648 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10649 else
10650 { echo "$as_me:$LINENO: result: no" >&5
10651 echo "${ECHO_T}no" >&6; }
10657 if test "$aros_target_ranlib_ln" = ""; then
10658 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10659 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10660 { (exit 1); exit 1; }; }
10663 if test "$aros_target_strip" = ""; then
10664 if test "$cross_compiling" = "yes" ; then
10665 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10666 set dummy ${target_tool_prefix}strip; ac_word=$2
10667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10669 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672 case $aros_target_strip_ln in
10673 [\\/]* | ?:[\\/]*)
10674 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10684 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10688 done
10689 done
10690 IFS=$as_save_IFS
10693 esac
10695 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10696 if test -n "$aros_target_strip_ln"; then
10697 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10698 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10699 else
10700 { echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6; }
10705 else
10706 if test "$GCC" = "yes"; then
10707 aros_gcc_strip=`$CC -print-prog-name=strip`
10708 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10709 set dummy `basename $aros_gcc_strip`; ac_word=$2
10710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10712 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715 case $aros_target_strip_ln in
10716 [\\/]* | ?:[\\/]*)
10717 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in `dirname $aros_gcc_strip`
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10727 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10731 done
10732 done
10733 IFS=$as_save_IFS
10736 esac
10738 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10739 if test -n "$aros_target_strip_ln"; then
10740 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10741 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10742 else
10743 { echo "$as_me:$LINENO: result: no" >&5
10744 echo "${ECHO_T}no" >&6; }
10749 if test "$aros_target_strip_ln" = ""; then
10750 # Extract the first word of "strip", so it can be a program name with args.
10751 set dummy strip; ac_word=$2
10752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10754 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757 case $aros_target_strip_ln in
10758 [\\/]* | ?:[\\/]*)
10759 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10769 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 break 2
10773 done
10774 done
10775 IFS=$as_save_IFS
10778 esac
10780 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10781 if test -n "$aros_target_strip_ln"; then
10782 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10783 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10784 else
10785 { echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6; }
10792 else
10793 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10794 set dummy $aros_target_strip; ac_word=$2
10795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10797 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800 case $aros_target_strip_ln in
10801 [\\/]* | ?:[\\/]*)
10802 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10812 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10816 done
10817 done
10818 IFS=$as_save_IFS
10821 esac
10823 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10824 if test -n "$aros_target_strip_ln"; then
10825 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10826 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10827 else
10828 { echo "$as_me:$LINENO: result: no" >&5
10829 echo "${ECHO_T}no" >&6; }
10835 if test "$aros_target_strip_ln" = ""; then
10836 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10837 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10838 { (exit 1); exit 1; }; }
10840 if test "$aros_target_cxx" != ""; then
10841 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10842 set dummy $aros_target_cxx; ac_word=$2
10843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10845 if test "${ac_cv_path_aros_target_cxx+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 case $aros_target_cxx in
10849 [\\/]* | ?:[\\/]*)
10850 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in $PATH
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10860 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10864 done
10865 done
10866 IFS=$as_save_IFS
10869 esac
10871 aros_target_cxx=$ac_cv_path_aros_target_cxx
10872 if test -n "$aros_target_cxx"; then
10873 { echo "$as_me:$LINENO: result: $aros_target_cxx" >&5
10874 echo "${ECHO_T}$aros_target_cxx" >&6; }
10875 else
10876 { echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6; }
10881 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
10882 # AROS_REQUIRED(c++,$aros_target_cxx)
10884 else
10885 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10886 aros_target_cxx=""
10889 # Build crosstools if we have no C++ - temporary thing
10890 if test "$aros_target_cxx" = ""; then
10891 crosstools_target=tools-crosstools
10894 if test "$rescomp" != ""; then
10895 if test "$cross_compiling" = "yes" ; then
10896 rescomp=${target_tool_prefix}${rescomp}
10898 # Extract the first word of "$rescomp", so it can be a program name with args.
10899 set dummy $rescomp; ac_word=$2
10900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10902 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 case $aros_kernel_rescomp in
10906 [\\/]* | ?:[\\/]*)
10907 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10921 done
10922 done
10923 IFS=$as_save_IFS
10926 esac
10928 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10929 if test -n "$aros_kernel_rescomp"; then
10930 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10931 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10932 else
10933 { echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6; }
10938 if test "$aros_kernel_rescomp" = ""; then
10939 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10940 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10941 { (exit 1); exit 1; }; }
10945 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10946 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10947 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10948 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10949 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10950 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10951 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10953 # aros_cc_pre is a variable that is added to the front of the compiler name
10954 # in the generated aros-gcc shell script. We need this to enable the cache
10955 # to work across cleaned builds. Also, support DISTCC using the correct
10956 # environment variable.
10959 if test "x${DISTCC}" != "x" ; then
10960 if test "x${CCACHE}" != "x" ; then
10961 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10962 else
10963 aros_cc_pre="${DISTCC} "
10965 else
10966 if test "x${CCACHE}" != "x" ; then
10967 aros_cc_pre="${CCACHE} "
10971 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10973 aros_target_nostdinc_cflags=-nostdinc
10975 aros_target_nostartup_ldflags=-nostartfiles
10977 aros_target_nix_ldflags=-nix
10979 aros_target_detach_ldflags=-detach
10981 aros_target_nostdlib_ldflags=-nostdlib
10984 # Target tools
10985 if test "$aros_target_cc" = ""; then
10986 orig_target_cc=$aros_kernel_cc
10987 else
10988 orig_target_cc=$aros_target_cc
10990 if test "$aros_target_ld" = ""; then
10991 orig_target_ld=$aros_kernel_ld
10992 else
10993 orig_target_ld=$aros_target_ld
10995 if test "$GCC" = "yes"; then
10996 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10998 aros_target_cc="${prefix}-gcc"
10999 aros_target_as="${prefix}-as"
11000 aros_target_ld="${prefix}-ld"
11001 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
11002 aros_target_objcopy=${prefix}-objcopy
11003 aros_target_objdump=${prefix}-objdump
11004 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
11005 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
11006 aros_kernel_nm="${prefix}-nm"
11007 aros_target_strip=${prefix}-strip
11009 # Find the system include path. We can suggest that an alternative is
11010 # used if we don't get it correct. The default is to use /usr/include.
11011 # Which is set in the aros_target_incl_def variable.
11013 # Check whether --enable-includes was given.
11014 if test "${enable_includes+set}" = set; then
11015 enableval=$enable_includes; aros_target_incl=$enable_includes
11016 else
11017 aros_target_incl=$aros_target_incl_def
11021 if test "$aros_kernel_includes" != "" ; then
11022 { echo "$as_me:$LINENO: checking for the kernel compiler's include path" >&5
11023 echo $ECHO_N "checking for the kernel compiler's include path... $ECHO_C" >&6; }
11024 if test "$aros_kernel_cc_includes" = "" ; then
11025 #try to guess where the directory is
11026 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
11027 if ! test -d $aros_kernel_cc_includes; then
11028 #the directory doesn't exist, we need to do some more work
11029 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
11031 #these are the headers we're looling for
11032 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11033 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11034 zutil.h"
11036 dirs=
11037 for h in $headers; do
11038 #which other headers each of the above headers needs?
11039 deps=$(echo "#include <$h>" | \
11040 $aros_kernel_cc -E -M - 2>/dev/null | \
11041 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11043 #copy all the needed headers to a directory beneath gendir
11044 for d in $deps; do
11045 h=$(basename $d)
11046 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
11047 sed -n "s,^.*/include\(/.*\),\1,p")
11048 ! test -d $dir && mkdir -p $dir
11049 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11050 done
11051 done
11054 { echo "$as_me:$LINENO: result: $aros_kernel_cc_includes" >&5
11055 echo "${ECHO_T}$aros_kernel_cc_includes" >&6; }
11056 aros_kernel_includes="$aros_kernel_includes -isystem $aros_kernel_cc_includes"
11059 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
11060 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
11061 if test "$aros_target_cc_includes" = "" ; then
11062 #try to guess where the directory is
11063 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11064 if ! test -d $aros_target_cc_includes; then
11065 #the directory doesn't exist, we need to do some more work
11066 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11068 #these are the headers we're looling for
11069 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11070 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11071 zutil.h"
11073 dirs=
11074 for h in $headers; do
11075 #which other headers each of the above headers needs?
11076 deps=$(echo "#include <$h>" | \
11077 $orig_target_cc -E -M - 2>/dev/null | \
11078 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11080 #copy all the needed headers to a directory beneath gendir
11081 for d in $deps; do
11082 h=$(basename $d)
11083 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11084 sed -n "s,^.*/include\(/.*\),\1,p")
11085 ! test -d $dir && mkdir -p $dir
11086 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11087 done
11088 done
11091 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11092 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11095 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11096 # On GCC >= 4.0 -iquote should be used
11099 save_cc="$CC"
11100 save_cflags="$CFLAGS"
11101 CFLAGS="-iquote."
11102 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11103 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h. */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11112 main ()
11116 return 0;
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (ac_try="$ac_compile"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_compile") 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest.$ac_objext; then
11136 has_iquote="yes"
11137 else
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11141 has_iquote="no"
11144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11145 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11146 echo "${ECHO_T}$has_iquote" >&6; }
11147 if test "x-$has_iquote" = "x-yes" ; then
11148 host_cflags_iquote=-iquote
11149 host_cflags_iquote_end=
11150 else
11151 host_cflags_iquote=-I
11152 host_cflags_iquote_end=-I-
11154 kernel_cflags_iquote=$host_cflags_iquote
11155 kernel_cflags_iquote_end=$host_cflags_iquote_end
11156 if test "x-$cross_compiling" = "x-yes"; then
11157 CC="$aros_kernel_cc"
11158 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11159 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11168 main ()
11172 return 0;
11174 _ACEOF
11175 rm -f conftest.$ac_objext
11176 if { (ac_try="$ac_compile"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_compile") 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } && {
11189 test -z "$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 } && test -s conftest.$ac_objext; then
11192 use_no_stack_protector="yes"
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 use_no_stack_protector="no"
11200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11202 echo "${ECHO_T}$use_no_stack_protector" >&6; }
11203 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11204 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11213 main ()
11217 return 0;
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (ac_try="$ac_compile"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_compile") 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && {
11234 test -z "$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 } && test -s conftest.$ac_objext; then
11237 has_iquote="yes"
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 has_iquote="no"
11245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11247 echo "${ECHO_T}$has_iquote" >&6; }
11248 if test "x-$has_iquote" = "x-yes" ; then
11249 kernel_cflags_iquote=-iquote
11250 kernel_cflags_iquote_end=
11251 else
11252 kernel_cflags_iquote=-I
11253 kernel_cflags_iquote_end=-I-
11256 aros_cflags_iquote=$kernel_cflags_iquote
11257 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11258 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11259 CC="$orig_target_cc"
11260 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11261 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h. */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11270 main ()
11274 return 0;
11276 _ACEOF
11277 rm -f conftest.$ac_objext
11278 if { (ac_try="$ac_compile"
11279 case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11282 esac
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_compile") 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && {
11291 test -z "$ac_c_werror_flag" ||
11292 test ! -s conftest.err
11293 } && test -s conftest.$ac_objext; then
11294 has_iquote="yes"
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 has_iquote="no"
11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11304 echo "${ECHO_T}$has_iquote" >&6; }
11305 if test "x-$has_iquote" = "x-yes" ; then
11306 aros_cflags_iquote=-iquote
11307 aros_cflags_iquote_end=
11308 else
11309 aros_cflags_iquote=-I
11310 aros_cflags_iquote_end=-I-
11313 if test "x-$use_no_stack_protector" = "x-yes" ; then
11314 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11317 #-----------------------------------------------------------------------------
11319 # Check if we can explicitly choose older version of symbol hashing
11321 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11322 CC="$aros_kernel_cc"
11323 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11324 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h. */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11333 main ()
11337 return 0;
11339 _ACEOF
11340 rm -f conftest.$ac_objext conftest$ac_exeext
11341 if { (ac_try="$ac_link"
11342 case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_link") 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } && {
11354 test -z "$ac_c_werror_flag" ||
11355 test ! -s conftest.err
11356 } && test -s conftest$ac_exeext &&
11357 $as_test_x conftest$ac_exeext; then
11358 use_hash_style="yes"
11359 else
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 use_hash_style="no"
11366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11367 conftest$ac_exeext conftest.$ac_ext
11368 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11369 echo "${ECHO_T}$use_hash_style" >&6; }
11370 if test "x-$use_hash_style" = "x-yes" ; then
11371 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11373 CC="$save_cc"
11374 CFLAGS="$save_cflags"
11384 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11385 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11387 # Check whether --with-resolution was given.
11388 if test "${with_resolution+set}" = set; then
11389 withval=$with_resolution; resolution=$withval
11390 else
11391 resolution=none
11394 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11395 if test "$resolution" = "yes" ; then
11396 resolution="none"
11398 if test "$resolution" = "no" ; then
11399 resolution="none"
11401 if test "$resolution" != "none" ; then
11402 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11403 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11404 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11406 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11407 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11408 aros_cv_default_wbwidth=$aros_default_wbwidth
11409 aros_cv_default_wbheight=$aros_default_wbheight
11410 aros_cv_default_wbdepth=$aros_default_wbdepth
11412 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11413 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11415 # Check whether --with-serial-debug was given.
11416 if test "${with_serial_debug+set}" = set; then
11417 withval=$with_serial_debug; serial_debug=$withval
11418 else
11419 serial_debug=none
11422 if test "$aros_serial_debug" = 0 ; then
11423 serial_debug_forced=""
11424 if test "$serial_debug" = "yes" ; then
11425 serial_debug="2"
11427 if test "$serial_debug" = "no" ; then
11428 serial_debug="none"
11430 else
11431 serial_debug_forced="(forced)"
11432 serial_debug=$aros_serial_debug
11434 if test "$serial_debug" != "none" ; then
11435 aros_serial_debug=$serial_debug
11436 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11437 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11438 else
11439 { echo "$as_me:$LINENO: result: no" >&5
11440 echo "${ECHO_T}no" >&6; }
11443 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11444 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11445 # Check whether --enable-palm_debug_hack was given.
11446 if test "${enable_palm_debug_hack+set}" = set; then
11447 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11448 else
11449 palm_debug_hack="no"
11452 if test "$palm_debug_hack" = "yes" ; then
11453 aros_palm_debug_hack="1"
11455 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11456 echo "${ECHO_T}$palm_debug_hack" >&6; }
11459 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11460 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11461 # Check whether --enable-nesting_supervisor was given.
11462 if test "${enable_nesting_supervisor+set}" = set; then
11463 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11464 else
11465 nesting_supervisor="no"
11468 if test "$nesting_supervisor" = "yes" ; then
11469 aros_nesting_supervisor="1"
11471 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11472 echo "${ECHO_T}$nesting_supervisor" >&6; }
11475 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11477 if test "x-$need_dlopen" != "x-no" ; then
11478 { echo "$as_me:$LINENO: checking for dlopen" >&5
11479 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11480 if test "${ac_cv_func_dlopen+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11491 #define dlopen innocuous_dlopen
11493 /* System header to define __stub macros and hopefully few prototypes,
11494 which can conflict with char dlopen (); below.
11495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11496 <limits.h> exists even on freestanding compilers. */
11498 #ifdef __STDC__
11499 # include <limits.h>
11500 #else
11501 # include <assert.h>
11502 #endif
11504 #undef dlopen
11506 /* Override any GCC internal prototype to avoid an error.
11507 Use char because int might match the return type of a GCC
11508 builtin and then its argument prototype would still apply. */
11509 #ifdef __cplusplus
11510 extern "C"
11511 #endif
11512 char dlopen ();
11513 /* The GNU C library defines this for functions which it implements
11514 to always fail with ENOSYS. Some functions are actually named
11515 something starting with __ and the normal name is an alias. */
11516 #if defined __stub_dlopen || defined __stub___dlopen
11517 choke me
11518 #endif
11521 main ()
11523 return dlopen ();
11525 return 0;
11527 _ACEOF
11528 rm -f conftest.$ac_objext conftest$ac_exeext
11529 if { (ac_try="$ac_link"
11530 case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533 esac
11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_link") 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } && {
11542 test -z "$ac_c_werror_flag" ||
11543 test ! -s conftest.err
11544 } && test -s conftest$ac_exeext &&
11545 $as_test_x conftest$ac_exeext; then
11546 ac_cv_func_dlopen=yes
11547 else
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 ac_cv_func_dlopen=no
11554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11555 conftest$ac_exeext conftest.$ac_ext
11557 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11558 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11559 if test $ac_cv_func_dlopen = yes; then
11560 have_dl="yes"
11561 else
11562 have_dl="no"
11565 if test "x-$have_dl" = "x-no" ; then
11566 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571 ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-ldl $LIBS"
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11580 /* Override any GCC internal prototype to avoid an error.
11581 Use char because int might match the return type of a GCC
11582 builtin and then its argument prototype would still apply. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 char dlopen ();
11588 main ()
11590 return dlopen ();
11592 return 0;
11594 _ACEOF
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (ac_try="$ac_link"
11597 case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_link") 2>conftest.er1
11603 ac_status=$?
11604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } && {
11609 test -z "$ac_c_werror_flag" ||
11610 test ! -s conftest.err
11611 } && test -s conftest$ac_exeext &&
11612 $as_test_x conftest$ac_exeext; then
11613 ac_cv_lib_dl_dlopen=yes
11614 else
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 ac_cv_lib_dl_dlopen=no
11621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11622 conftest$ac_exeext conftest.$ac_ext
11623 LIBS=$ac_check_lib_save_LIBS
11625 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11627 if test $ac_cv_lib_dl_dlopen = yes; then
11628 have_dl="yes"
11629 aros_host_ldflags="$aros_host_ldflags -ldl"
11630 else
11631 have_dl="no"
11635 if test "x-$have_dl" = "x-no" ; then
11636 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11637 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11638 { (exit 1); exit 1; }; }
11643 # Check whether --enable-x11_hidd was given.
11644 if test "${enable_x11_hidd+set}" = set; then
11645 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11646 else
11647 x11_hidd="auto"
11650 case "x-$x11_hidd" in
11651 x-yes|x-no|x-auto) ;;
11652 *) x11_hidd="auto" ;;
11653 esac
11655 ENABLE_X11=0
11657 if test "x-$x11_hidd" != "x-no" ; then
11659 { echo "$as_me:$LINENO: checking for X" >&5
11660 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11663 # Check whether --with-x was given.
11664 if test "${with_x+set}" = set; then
11665 withval=$with_x;
11668 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11669 if test "x$with_x" = xno; then
11670 # The user explicitly disabled X.
11671 have_x=disabled
11672 else
11673 case $x_includes,$x_libraries in #(
11674 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11675 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11676 { (exit 1); exit 1; }; };; #(
11677 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680 # One or both of the vars are not set, and there is no cached value.
11681 ac_x_includes=no ac_x_libraries=no
11682 rm -f -r conftest.dir
11683 if mkdir conftest.dir; then
11684 cd conftest.dir
11685 cat >Imakefile <<'_ACEOF'
11686 incroot:
11687 @echo incroot='${INCROOT}'
11688 usrlibdir:
11689 @echo usrlibdir='${USRLIBDIR}'
11690 libdir:
11691 @echo libdir='${LIBDIR}'
11692 _ACEOF
11693 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11695 for ac_var in incroot usrlibdir libdir; do
11696 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11697 done
11698 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11699 for ac_extension in a so sl dylib la dll; do
11700 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11701 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11702 ac_im_usrlibdir=$ac_im_libdir; break
11704 done
11705 # Screen out bogus values from the imake configuration. They are
11706 # bogus both because they are the default anyway, and because
11707 # using them would break gcc on systems where it needs fixed includes.
11708 case $ac_im_incroot in
11709 /usr/include) ac_x_includes= ;;
11710 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11711 esac
11712 case $ac_im_usrlibdir in
11713 /usr/lib | /lib) ;;
11714 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11715 esac
11717 cd ..
11718 rm -f -r conftest.dir
11721 # Standard set of common directories for X headers.
11722 # Check X11 before X11Rn because it is often a symlink to the current release.
11723 ac_x_header_dirs='
11724 /usr/X11/include
11725 /usr/X11R6/include
11726 /usr/X11R5/include
11727 /usr/X11R4/include
11729 /usr/include/X11
11730 /usr/include/X11R6
11731 /usr/include/X11R5
11732 /usr/include/X11R4
11734 /usr/local/X11/include
11735 /usr/local/X11R6/include
11736 /usr/local/X11R5/include
11737 /usr/local/X11R4/include
11739 /usr/local/include/X11
11740 /usr/local/include/X11R6
11741 /usr/local/include/X11R5
11742 /usr/local/include/X11R4
11744 /usr/X386/include
11745 /usr/x386/include
11746 /usr/XFree86/include/X11
11748 /usr/include
11749 /usr/local/include
11750 /usr/unsupported/include
11751 /usr/athena/include
11752 /usr/local/x11r5/include
11753 /usr/lpp/Xamples/include
11755 /usr/openwin/include
11756 /usr/openwin/share/include'
11758 if test "$ac_x_includes" = no; then
11759 # Guess where to find include files, by looking for Xlib.h.
11760 # First, try using that file with no special directory specified.
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 #include <X11/Xlib.h>
11768 _ACEOF
11769 if { (ac_try="$ac_cpp conftest.$ac_ext"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } >/dev/null && {
11782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 }; then
11785 # We can compile using X headers with no special include directory.
11786 ac_x_includes=
11787 else
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 for ac_dir in $ac_x_header_dirs; do
11792 if test -r "$ac_dir/X11/Xlib.h"; then
11793 ac_x_includes=$ac_dir
11794 break
11796 done
11799 rm -f conftest.err conftest.$ac_ext
11800 fi # $ac_x_includes = no
11802 if test "$ac_x_libraries" = no; then
11803 # Check for the libraries.
11804 # See if we find them without any special options.
11805 # Don't add to $LIBS permanently.
11806 ac_save_LIBS=$LIBS
11807 LIBS="-lX11 $LIBS"
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <X11/Xlib.h>
11816 main ()
11818 XrmInitialize ()
11820 return 0;
11822 _ACEOF
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (ac_try="$ac_link"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_link") 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && {
11837 test -z "$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 } && test -s conftest$ac_exeext &&
11840 $as_test_x conftest$ac_exeext; then
11841 LIBS=$ac_save_LIBS
11842 # We can link X programs with no special library path.
11843 ac_x_libraries=
11844 else
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 LIBS=$ac_save_LIBS
11849 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11851 # Don't even attempt the hair of trying to link an X program!
11852 for ac_extension in a so sl dylib la dll; do
11853 if test -r "$ac_dir/libX11.$ac_extension"; then
11854 ac_x_libraries=$ac_dir
11855 break 2
11857 done
11858 done
11861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11862 conftest$ac_exeext conftest.$ac_ext
11863 fi # $ac_x_libraries = no
11865 case $ac_x_includes,$ac_x_libraries in #(
11866 no,* | *,no | *\'*)
11867 # Didn't find X, or a directory has "'" in its name.
11868 ac_cv_have_x="have_x=no";; #(
11870 # Record where we found X for the cache.
11871 ac_cv_have_x="have_x=yes\
11872 ac_x_includes='$ac_x_includes'\
11873 ac_x_libraries='$ac_x_libraries'"
11874 esac
11876 ;; #(
11877 *) have_x=yes;;
11878 esac
11879 eval "$ac_cv_have_x"
11880 fi # $with_x != no
11882 if test "$have_x" != yes; then
11883 { echo "$as_me:$LINENO: result: $have_x" >&5
11884 echo "${ECHO_T}$have_x" >&6; }
11885 no_x=yes
11886 else
11887 # If each of the values was on the command line, it overrides each guess.
11888 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11889 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11890 # Update the cache value to reflect the command line values.
11891 ac_cv_have_x="have_x=yes\
11892 ac_x_includes='$x_includes'\
11893 ac_x_libraries='$x_libraries'"
11894 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11895 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11899 x_cflags=
11900 for path in $x_libraries
11902 x_cflags="$x_cflags -L$path"
11903 done
11905 for path in $x_includes
11907 x_cflags="$x_cflags -I$path"
11908 done
11910 if test "x-$no_x" = "x-yes" ; then
11912 if test "x-$x11_hidd" != "x-auto" ; then
11913 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11914 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11915 { (exit 1); exit 1; }; }
11918 else
11919 x11_hidd_target=kernel-x11gfx-kobj
11920 ENABLE_X11=1
11922 # Check whether --enable-x11_shm was given.
11923 if test "${enable_x11_shm+set}" = set; then
11924 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11925 else
11926 x11_hidd_shm="auto"
11929 case "x-$x11_hidd_shm" in
11930 x-yes|x-no|x-auto) ;;
11931 *) x11_hidd_shm="auto" ;;
11932 esac
11934 have_xshm=no
11936 if test "x-$x11_hidd_shm" != "x-no" ; then
11939 for ac_header in sys/ipc.h
11941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 ac_res=`eval echo '${'$as_ac_Header'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11951 else
11952 # Is the header compilable?
11953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11962 #include <$ac_header>
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_compile") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest.$ac_objext; then
11981 ac_header_compiler=yes
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_header_compiler=no
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11991 echo "${ECHO_T}$ac_header_compiler" >&6; }
11993 # Is the header present?
11994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11996 cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h. */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12002 #include <$ac_header>
12003 _ACEOF
12004 if { (ac_try="$ac_cpp conftest.$ac_ext"
12005 case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev/null && {
12017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 }; then
12020 ac_header_preproc=yes
12021 else
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_header_preproc=no
12028 rm -f conftest.err conftest.$ac_ext
12029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12030 echo "${ECHO_T}$ac_header_preproc" >&6; }
12032 # So? What about this header?
12033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12034 yes:no: )
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12039 ac_header_preproc=yes
12041 no:yes:* )
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12056 esac
12057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062 eval "$as_ac_Header=\$ac_header_preproc"
12064 ac_res=`eval echo '${'$as_ac_Header'}'`
12065 { echo "$as_me:$LINENO: result: $ac_res" >&5
12066 echo "${ECHO_T}$ac_res" >&6; }
12069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12072 _ACEOF
12076 done
12079 for ac_header in sys/shm.h
12081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 ac_res=`eval echo '${'$as_ac_Header'}'`
12089 { echo "$as_me:$LINENO: result: $ac_res" >&5
12090 echo "${ECHO_T}$ac_res" >&6; }
12091 else
12092 # Is the header compilable?
12093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 $ac_includes_default
12102 #include <$ac_header>
12103 _ACEOF
12104 rm -f conftest.$ac_objext
12105 if { (ac_try="$ac_compile"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_compile") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest.$ac_objext; then
12121 ac_header_compiler=yes
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ac_header_compiler=no
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12131 echo "${ECHO_T}$ac_header_compiler" >&6; }
12133 # Is the header present?
12134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 #include <$ac_header>
12143 _ACEOF
12144 if { (ac_try="$ac_cpp conftest.$ac_ext"
12145 case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12148 esac
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12151 ac_status=$?
12152 grep -v '^ *+' conftest.er1 >conftest.err
12153 rm -f conftest.er1
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } >/dev/null && {
12157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12158 test ! -s conftest.err
12159 }; then
12160 ac_header_preproc=yes
12161 else
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_header_preproc=no
12168 rm -f conftest.err conftest.$ac_ext
12169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12170 echo "${ECHO_T}$ac_header_preproc" >&6; }
12172 # So? What about this header?
12173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12174 yes:no: )
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12179 ac_header_preproc=yes
12181 no:yes:* )
12182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12196 esac
12197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 eval "$as_ac_Header=\$ac_header_preproc"
12204 ac_res=`eval echo '${'$as_ac_Header'}'`
12205 { echo "$as_me:$LINENO: result: $ac_res" >&5
12206 echo "${ECHO_T}$ac_res" >&6; }
12209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12210 cat >>confdefs.h <<_ACEOF
12211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12212 _ACEOF
12216 done
12219 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12221 save_cflags="$CFLAGS"
12222 CFLAGS="$CFLAGS $x_cflags"
12223 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12224 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
12225 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228 ac_check_lib_save_LIBS=$LIBS
12229 LIBS="-lXext $LIBS"
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h. */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 char XShmQueryExtension ();
12245 main ()
12247 return XShmQueryExtension ();
12249 return 0;
12251 _ACEOF
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (ac_try="$ac_link"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_link") 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest$ac_exeext &&
12269 $as_test_x conftest$ac_exeext; then
12270 ac_cv_lib_Xext_XShmQueryExtension=yes
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_cv_lib_Xext_XShmQueryExtension=no
12278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12282 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12283 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12284 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12285 have_xshm=yes
12288 CFLAGS="$save_cflags"
12292 if test "x-$have_xshm" = "x-yes" ; then
12293 DO_XSHM_SUPPORT="1"
12294 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12295 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12296 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12297 { (exit 1); exit 1; }; }
12298 else
12299 DO_XSHM_SUPPORT="0"
12303 # Check whether --enable-x11_vidmode was given.
12304 if test "${enable_x11_vidmode+set}" = set; then
12305 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12306 else
12307 x11_hidd_vidmode="auto"
12310 case "x-$x11_hidd_vidmode" in
12311 x-yes|x-no|x-auto) ;;
12312 *) x11_hidd_vidmode="auto" ;;
12313 esac
12315 have_vidmode=no
12317 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12319 save_cflags="$CFLAGS"
12320 CFLAGS="$CFLAGS $x_cflags"
12321 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12322 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12323 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326 ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-lXxf86vm $LIBS"
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h. */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12335 /* Override any GCC internal prototype to avoid an error.
12336 Use char because int might match the return type of a GCC
12337 builtin and then its argument prototype would still apply. */
12338 #ifdef __cplusplus
12339 extern "C"
12340 #endif
12341 char XF86VidModeQueryExtension ();
12343 main ()
12345 return XF86VidModeQueryExtension ();
12347 return 0;
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (ac_try="$ac_link"
12352 case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12355 esac
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_link") 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest$ac_exeext &&
12367 $as_test_x conftest$ac_exeext; then
12368 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12369 else
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12377 conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12380 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12381 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12382 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12383 have_vidmode=yes
12386 CFLAGS="$save_cflags"
12389 if test "x-$have_vidmode" = "x-yes" ; then
12390 DO_VIDMODE_SUPPORT="1"
12391 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12392 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12393 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12394 { (exit 1); exit 1; }; }
12395 else
12396 DO_VIDMODE_SUPPORT="0"
12400 aros_host_x11_includes=$x_includes
12401 aros_host_x11_libdirs=$x_libraries
12405 # Check whether --enable-sdl_hidd was given.
12406 if test "${enable_sdl_hidd+set}" = set; then
12407 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12408 else
12409 sdl_hidd="auto"
12412 case "x-$sdl_hidd" in
12413 x-yes|x-no|x-auto) ;;
12414 *) sdl_hidd="auto" ;;
12415 esac
12417 if test "x-$sdl_hidd" != "x-no" ; then
12420 # Check whether --with-sdl-prefix was given.
12421 if test "${with_sdl_prefix+set}" = set; then
12422 withval=$with_sdl_prefix; sdl_prefix="$withval"
12423 else
12424 sdl_prefix=""
12428 # Check whether --with-sdl-exec-prefix was given.
12429 if test "${with_sdl_exec_prefix+set}" = set; then
12430 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12431 else
12432 sdl_exec_prefix=""
12435 # Check whether --enable-sdltest was given.
12436 if test "${enable_sdltest+set}" = set; then
12437 enableval=$enable_sdltest;
12438 else
12439 enable_sdltest=yes
12443 if test x$sdl_exec_prefix != x ; then
12444 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12445 if test x${SDL_CONFIG+set} != xset ; then
12446 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12449 if test x$sdl_prefix != x ; then
12450 sdl_args="$sdl_args --prefix=$sdl_prefix"
12451 if test x${SDL_CONFIG+set} != xset ; then
12452 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12456 if test "x$prefix" != xNONE; then
12457 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12459 # Extract the first word of "sdl-config", so it can be a program name with args.
12460 set dummy sdl-config; ac_word=$2
12461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12463 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466 case $SDL_CONFIG in
12467 [\\/]* | ?:[\\/]*)
12468 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
12477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12478 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12480 break 2
12482 done
12483 done
12484 IFS=$as_save_IFS
12486 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12488 esac
12490 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12491 if test -n "$SDL_CONFIG"; then
12492 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12493 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12494 else
12495 { echo "$as_me:$LINENO: result: no" >&5
12496 echo "${ECHO_T}no" >&6; }
12500 min_sdl_version=1.2.10
12501 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12502 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12503 no_sdl=""
12504 if test "$SDL_CONFIG" = "no" ; then
12505 no_sdl=yes
12506 else
12507 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12508 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12510 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12511 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12512 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12514 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12515 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12516 if test "x$enable_sdltest" = "xyes" ; then
12517 ac_save_CFLAGS="$CFLAGS"
12518 ac_save_CXXFLAGS="$CXXFLAGS"
12519 ac_save_LIBS="$LIBS"
12520 CFLAGS="$CFLAGS $SDL_CFLAGS"
12521 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12522 LIBS="$LIBS $SDL_LIBS"
12523 rm -f conf.sdltest
12524 if test "$cross_compiling" = yes; then
12525 echo $ac_n "cross compiling; assumed OK... $ac_c"
12526 else
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 #include <stdio.h>
12535 #include <stdlib.h>
12536 #include <string.h>
12537 #include "SDL.h"
12539 char*
12540 my_strdup (char *str)
12542 char *new_str;
12544 if (str)
12546 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12547 strcpy (new_str, str);
12549 else
12550 new_str = NULL;
12552 return new_str;
12555 int main (int argc, char *argv[])
12557 int major, minor, micro;
12558 char *tmp_version;
12560 /* This hangs on some systems (?)
12561 system ("touch conf.sdltest");
12563 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12565 /* HP/UX 9 (%@#!) writes to sscanf strings */
12566 tmp_version = my_strdup("$min_sdl_version");
12567 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12568 printf("%s, bad version string\n", "$min_sdl_version");
12569 exit(1);
12572 if (($sdl_major_version > major) ||
12573 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12574 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12576 return 0;
12578 else
12580 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12581 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12582 printf("*** best to upgrade to the required version.\n");
12583 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12584 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12585 printf("*** config.cache before re-running configure\n");
12586 return 1;
12591 _ACEOF
12592 rm -f conftest$ac_exeext
12593 if { (ac_try="$ac_link"
12594 case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_link") 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12603 { (case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_try") 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12613 else
12614 echo "$as_me: program exited with status $ac_status" >&5
12615 echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.$ac_ext >&5
12618 ( exit $ac_status )
12619 no_sdl=yes
12621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12625 CFLAGS="$ac_save_CFLAGS"
12626 CXXFLAGS="$ac_save_CXXFLAGS"
12627 LIBS="$ac_save_LIBS"
12630 if test "x$no_sdl" = x ; then
12631 { echo "$as_me:$LINENO: result: yes" >&5
12632 echo "${ECHO_T}yes" >&6; }
12633 have_sdl="yes"
12634 else
12635 { echo "$as_me:$LINENO: result: no" >&5
12636 echo "${ECHO_T}no" >&6; }
12637 if test "$SDL_CONFIG" = "no" ; then
12638 echo "*** The sdl-config script installed by SDL could not be found"
12639 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12640 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12641 echo "*** full path to sdl-config."
12642 else
12643 if test -f conf.sdltest ; then
12645 else
12646 echo "*** Could not run SDL test program, checking why..."
12647 CFLAGS="$CFLAGS $SDL_CFLAGS"
12648 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12649 LIBS="$LIBS $SDL_LIBS"
12650 cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h. */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12657 #include <stdio.h>
12658 #include "SDL.h"
12660 int main(int argc, char *argv[])
12661 { return 0; }
12662 #undef main
12663 #define main K_and_R_C_main
12666 main ()
12668 return 0;
12670 return 0;
12672 _ACEOF
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674 if { (ac_try="$ac_link"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_link") 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest$ac_exeext &&
12690 $as_test_x conftest$ac_exeext; then
12691 echo "*** The test program compiled, but did not run. This usually means"
12692 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12693 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12694 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12695 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12696 echo "*** is required on your system"
12697 echo "***"
12698 echo "*** If you have an old version installed, it is best to remove it, although"
12699 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12700 else
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 echo "*** The test program failed to compile or link. See the file config.log for the"
12705 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12706 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12707 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12711 conftest$ac_exeext conftest.$ac_ext
12712 CFLAGS="$ac_save_CFLAGS"
12713 CXXFLAGS="$ac_save_CXXFLAGS"
12714 LIBS="$ac_save_LIBS"
12717 SDL_CFLAGS=""
12718 SDL_LIBS=""
12719 have_sdl="no"
12723 rm -f conf.sdltest
12726 if test "x-$have_sdl" != "x-yes" ; then
12728 if test "x-$sdl_hidd" != "x-auto" ; then
12729 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12730 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12731 { (exit 1); exit 1; }; }
12734 else
12735 sdl_hidd_target=kernel-hidd-sdl
12736 aros_host_sdl_cflags=SDL_CFLAGS
12737 aros_host_sdl_libs=SDL_LIBS
12741 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12742 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
12743 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
12744 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
12748 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
12749 else
12750 # Is the header compilable?
12751 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
12752 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 $ac_includes_default
12760 #include <sys/soundcard.h>
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (ac_try="$ac_compile"
12764 case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_compile") 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.$ac_objext; then
12779 ac_header_compiler=yes
12780 else
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12784 ac_header_compiler=no
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12789 echo "${ECHO_T}$ac_header_compiler" >&6; }
12791 # Is the header present?
12792 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
12793 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 #include <sys/soundcard.h>
12801 _ACEOF
12802 if { (ac_try="$ac_cpp conftest.$ac_ext"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } >/dev/null && {
12815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 }; then
12818 ac_header_preproc=yes
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_header_preproc=no
12826 rm -f conftest.err conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828 echo "${ECHO_T}$ac_header_preproc" >&6; }
12830 # So? What about this header?
12831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12832 yes:no: )
12833 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
12834 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
12836 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
12837 ac_header_preproc=yes
12839 no:yes:* )
12840 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
12841 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
12843 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
12845 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
12847 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
12849 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
12851 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
12854 esac
12855 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
12856 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
12857 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 else
12860 ac_cv_header_sys_soundcard_h=$ac_header_preproc
12862 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
12863 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
12868 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12869 oss_library_target=workbench-libs-oss-unix
12874 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12875 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12876 # Check whether --enable-dbus was given.
12877 if test "${enable_dbus+set}" = set; then
12878 enableval=$enable_dbus; dbus="yes"
12879 else
12880 dbus="no"
12883 if test "$dbus" = "yes" ; then
12884 ENABLE_DBUS=1
12885 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12886 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12887 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12888 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12889 else
12890 ENABLE_DBUS=0
12892 { echo "$as_me:$LINENO: result: $dbus" >&5
12893 echo "${ECHO_T}$dbus" >&6; }
12897 # Generic
12907 # Host related
12930 # Target Related
12984 # Graphics Related
13000 # Native version related
13003 # Palm native version related
13006 # Unix/Hosted version related
13009 # Apple iOS related
13014 # DBUS related
13021 #X11 related
13024 # Debug related
13030 # Collect-aros stuff: "-ius" to ignore undefined symbols
13033 # C compiler related
13036 case "$aros_flavour" in
13037 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
13038 aros_flavour="emulation" ;;
13039 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
13040 aros_flavour="emulation" ;;
13041 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
13042 aros_flavour="standalone";;
13043 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13044 aros_flavour="standalone";;
13045 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
13046 aros_flavour="native" ;;
13047 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
13048 aros_flavour="native" ;;
13049 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
13050 aros_flavour="linklib" ;;
13051 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13052 aros_flavour="palmnative" ;;
13053 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13054 aros_flavour="mac68knative" ;;
13055 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13056 aros_flavour="ppcnative" ;;
13057 esac
13059 if test ! -d ${aros_inc_dir} ; then
13060 ${MKDIR} ${aros_inc_dir}
13062 if test ! -d ${aros_geninc_dir} ; then
13063 ${MKDIR} ${aros_geninc_dir}
13065 if test ! -d ${aros_hostcfg_dir} ; then
13066 ${MKDIR} ${aros_hostcfg_dir}
13068 if test ! -d ${aros_targetcfg_dir} ; then
13069 ${MKDIR} ${aros_targetcfg_dir}
13071 if test ! -d ${aros_tools_dir} ; then
13072 ${MKDIR} ${aros_tools_dir}
13074 if test ! -d ${aros_scripts_dir} ; then
13075 ${MKDIR} ${aros_scripts_dir}
13078 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
13081 ac_config_commands="$ac_config_commands compiler_executable"
13083 ac_config_commands="$ac_config_commands genshared_executable"
13085 ac_config_commands="$ac_config_commands genmf_executable"
13088 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_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
13091 cat >confcache <<\_ACEOF
13092 # This file is a shell script that caches the results of configure
13093 # tests run on this system so they can be shared between configure
13094 # scripts and configure runs, see configure's option --config-cache.
13095 # It is not useful on other systems. If it contains results you don't
13096 # want to keep, you may remove or edit it.
13098 # config.status only pays attention to the cache file if you give it
13099 # the --recheck option to rerun configure.
13101 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13102 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13103 # following values.
13105 _ACEOF
13107 # The following way of writing the cache mishandles newlines in values,
13108 # but we know of no workaround that is simple, portable, and efficient.
13109 # So, we kill variables containing newlines.
13110 # Ultrix sh set writes to stderr and can't be redirected directly,
13111 # and sets the high bit in the cache file unless we assign to the vars.
13113 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13114 eval ac_val=\$$ac_var
13115 case $ac_val in #(
13116 *${as_nl}*)
13117 case $ac_var in #(
13118 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13119 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13120 esac
13121 case $ac_var in #(
13122 _ | IFS | as_nl) ;; #(
13123 *) $as_unset $ac_var ;;
13124 esac ;;
13125 esac
13126 done
13128 (set) 2>&1 |
13129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13130 *${as_nl}ac_space=\ *)
13131 # `set' does not quote correctly, so add quotes (double-quote
13132 # substitution turns \\\\ into \\, and sed turns \\ into \).
13133 sed -n \
13134 "s/'/'\\\\''/g;
13135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13136 ;; #(
13138 # `set' quotes correctly as required by POSIX, so do not add quotes.
13139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13141 esac |
13142 sort
13144 sed '
13145 /^ac_cv_env_/b end
13146 t clear
13147 :clear
13148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13149 t end
13150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13151 :end' >>confcache
13152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13153 if test -w "$cache_file"; then
13154 test "x$cache_file" != "x/dev/null" &&
13155 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13156 echo "$as_me: updating cache $cache_file" >&6;}
13157 cat confcache >$cache_file
13158 else
13159 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13160 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13163 rm -f confcache
13165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13166 # Let make expand exec_prefix.
13167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13169 DEFS=-DHAVE_CONFIG_H
13171 ac_libobjs=
13172 ac_ltlibobjs=
13173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13174 # 1. Remove the extension, and $U if already installed.
13175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13176 ac_i=`echo "$ac_i" | sed "$ac_script"`
13177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13178 # will be set to the directory where LIBOBJS objects are built.
13179 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13180 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13181 done
13182 LIBOBJS=$ac_libobjs
13184 LTLIBOBJS=$ac_ltlibobjs
13188 : ${CONFIG_STATUS=./config.status}
13189 ac_clean_files_save=$ac_clean_files
13190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13191 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13192 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13193 cat >$CONFIG_STATUS <<_ACEOF
13194 #! $SHELL
13195 # Generated by $as_me.
13196 # Run this file to recreate the current configuration.
13197 # Compiler output produced by configure, useful for debugging
13198 # configure, is in config.log if it exists.
13200 debug=false
13201 ac_cs_recheck=false
13202 ac_cs_silent=false
13203 SHELL=\${CONFIG_SHELL-$SHELL}
13204 _ACEOF
13206 cat >>$CONFIG_STATUS <<\_ACEOF
13207 ## --------------------- ##
13208 ## M4sh Initialization. ##
13209 ## --------------------- ##
13211 # Be more Bourne compatible
13212 DUALCASE=1; export DUALCASE # for MKS sh
13213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13214 emulate sh
13215 NULLCMD=:
13216 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13217 # is contrary to our usage. Disable this feature.
13218 alias -g '${1+"$@"}'='"$@"'
13219 setopt NO_GLOB_SUBST
13220 else
13221 case `(set -o) 2>/dev/null` in
13222 *posix*) set -o posix ;;
13223 esac
13230 # PATH needs CR
13231 # Avoid depending upon Character Ranges.
13232 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13233 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13234 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13235 as_cr_digits='0123456789'
13236 as_cr_alnum=$as_cr_Letters$as_cr_digits
13238 # The user is always right.
13239 if test "${PATH_SEPARATOR+set}" != set; then
13240 echo "#! /bin/sh" >conf$$.sh
13241 echo "exit 0" >>conf$$.sh
13242 chmod +x conf$$.sh
13243 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13244 PATH_SEPARATOR=';'
13245 else
13246 PATH_SEPARATOR=:
13248 rm -f conf$$.sh
13251 # Support unset when possible.
13252 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13253 as_unset=unset
13254 else
13255 as_unset=false
13259 # IFS
13260 # We need space, tab and new line, in precisely that order. Quoting is
13261 # there to prevent editors from complaining about space-tab.
13262 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13263 # splitting by setting IFS to empty value.)
13264 as_nl='
13266 IFS=" "" $as_nl"
13268 # Find who we are. Look in the path if we contain no directory separator.
13269 case $0 in
13270 *[\\/]* ) as_myself=$0 ;;
13271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13277 done
13278 IFS=$as_save_IFS
13281 esac
13282 # We did not find ourselves, most probably we were run as `sh COMMAND'
13283 # in which case we are not to be found in the path.
13284 if test "x$as_myself" = x; then
13285 as_myself=$0
13287 if test ! -f "$as_myself"; then
13288 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13289 { (exit 1); exit 1; }
13292 # Work around bugs in pre-3.0 UWIN ksh.
13293 for as_var in ENV MAIL MAILPATH
13294 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13295 done
13296 PS1='$ '
13297 PS2='> '
13298 PS4='+ '
13300 # NLS nuisances.
13301 for as_var in \
13302 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13303 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13304 LC_TELEPHONE LC_TIME
13306 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13307 eval $as_var=C; export $as_var
13308 else
13309 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13311 done
13313 # Required to use basename.
13314 if expr a : '\(a\)' >/dev/null 2>&1 &&
13315 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13316 as_expr=expr
13317 else
13318 as_expr=false
13321 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13322 as_basename=basename
13323 else
13324 as_basename=false
13328 # Name of the executable.
13329 as_me=`$as_basename -- "$0" ||
13330 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13331 X"$0" : 'X\(//\)$' \| \
13332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13333 echo X/"$0" |
13334 sed '/^.*\/\([^/][^/]*\)\/*$/{
13335 s//\1/
13338 /^X\/\(\/\/\)$/{
13339 s//\1/
13342 /^X\/\(\/\).*/{
13343 s//\1/
13346 s/.*/./; q'`
13348 # CDPATH.
13349 $as_unset CDPATH
13353 as_lineno_1=$LINENO
13354 as_lineno_2=$LINENO
13355 test "x$as_lineno_1" != "x$as_lineno_2" &&
13356 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13358 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13359 # uniformly replaced by the line number. The first 'sed' inserts a
13360 # line-number line after each line using $LINENO; the second 'sed'
13361 # does the real work. The second script uses 'N' to pair each
13362 # line-number line with the line containing $LINENO, and appends
13363 # trailing '-' during substitution so that $LINENO is not a special
13364 # case at line end.
13365 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13366 # scripts with optimization help from Paolo Bonzini. Blame Lee
13367 # E. McMahon (1931-1989) for sed's syntax. :-)
13368 sed -n '
13370 /[$]LINENO/=
13371 ' <$as_myself |
13372 sed '
13373 s/[$]LINENO.*/&-/
13374 t lineno
13376 :lineno
13378 :loop
13379 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13380 t loop
13381 s/-\n.*//
13382 ' >$as_me.lineno &&
13383 chmod +x "$as_me.lineno" ||
13384 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13385 { (exit 1); exit 1; }; }
13387 # Don't try to exec as it changes $[0], causing all sort of problems
13388 # (the dirname of $[0] is not the place where we might find the
13389 # original and so on. Autoconf is especially sensitive to this).
13390 . "./$as_me.lineno"
13391 # Exit status is that of the last command.
13392 exit
13396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13397 as_dirname=dirname
13398 else
13399 as_dirname=false
13402 ECHO_C= ECHO_N= ECHO_T=
13403 case `echo -n x` in
13404 -n*)
13405 case `echo 'x\c'` in
13406 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13407 *) ECHO_C='\c';;
13408 esac;;
13410 ECHO_N='-n';;
13411 esac
13413 if expr a : '\(a\)' >/dev/null 2>&1 &&
13414 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13415 as_expr=expr
13416 else
13417 as_expr=false
13420 rm -f conf$$ conf$$.exe conf$$.file
13421 if test -d conf$$.dir; then
13422 rm -f conf$$.dir/conf$$.file
13423 else
13424 rm -f conf$$.dir
13425 mkdir conf$$.dir
13427 echo >conf$$.file
13428 if ln -s conf$$.file conf$$ 2>/dev/null; then
13429 as_ln_s='ln -s'
13430 # ... but there are two gotchas:
13431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13433 # In both cases, we have to default to `cp -p'.
13434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13435 as_ln_s='cp -p'
13436 elif ln conf$$.file conf$$ 2>/dev/null; then
13437 as_ln_s=ln
13438 else
13439 as_ln_s='cp -p'
13441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13442 rmdir conf$$.dir 2>/dev/null
13444 if mkdir -p . 2>/dev/null; then
13445 as_mkdir_p=:
13446 else
13447 test -d ./-p && rmdir ./-p
13448 as_mkdir_p=false
13451 if test -x / >/dev/null 2>&1; then
13452 as_test_x='test -x'
13453 else
13454 if ls -dL / >/dev/null 2>&1; then
13455 as_ls_L_option=L
13456 else
13457 as_ls_L_option=
13459 as_test_x='
13460 eval sh -c '\''
13461 if test -d "$1"; then
13462 test -d "$1/.";
13463 else
13464 case $1 in
13465 -*)set "./$1";;
13466 esac;
13467 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13468 ???[sx]*):;;*)false;;esac;fi
13469 '\'' sh
13472 as_executable_p=$as_test_x
13474 # Sed expression to map a string onto a valid CPP name.
13475 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13477 # Sed expression to map a string onto a valid variable name.
13478 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13481 exec 6>&1
13483 # Save the log message, to keep $[0] and so on meaningful, and to
13484 # report actual input values of CONFIG_FILES etc. instead of their
13485 # values after options handling.
13486 ac_log="
13487 This file was extended by $as_me, which was
13488 generated by GNU Autoconf 2.61. Invocation command line was
13490 CONFIG_FILES = $CONFIG_FILES
13491 CONFIG_HEADERS = $CONFIG_HEADERS
13492 CONFIG_LINKS = $CONFIG_LINKS
13493 CONFIG_COMMANDS = $CONFIG_COMMANDS
13494 $ $0 $@
13496 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13499 _ACEOF
13501 cat >>$CONFIG_STATUS <<_ACEOF
13502 # Files that config.status was made for.
13503 config_files="$ac_config_files"
13504 config_headers="$ac_config_headers"
13505 config_commands="$ac_config_commands"
13507 _ACEOF
13509 cat >>$CONFIG_STATUS <<\_ACEOF
13510 ac_cs_usage="\
13511 \`$as_me' instantiates files from templates according to the
13512 current configuration.
13514 Usage: $0 [OPTIONS] [FILE]...
13516 -h, --help print this help, then exit
13517 -V, --version print version number and configuration settings, then exit
13518 -q, --quiet do not print progress messages
13519 -d, --debug don't remove temporary files
13520 --recheck update $as_me by reconfiguring in the same conditions
13521 --file=FILE[:TEMPLATE]
13522 instantiate the configuration file FILE
13523 --header=FILE[:TEMPLATE]
13524 instantiate the configuration header FILE
13526 Configuration files:
13527 $config_files
13529 Configuration headers:
13530 $config_headers
13532 Configuration commands:
13533 $config_commands
13535 Report bugs to <bug-autoconf@gnu.org>."
13537 _ACEOF
13538 cat >>$CONFIG_STATUS <<_ACEOF
13539 ac_cs_version="\\
13540 config.status
13541 configured by $0, generated by GNU Autoconf 2.61,
13542 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13544 Copyright (C) 2006 Free Software Foundation, Inc.
13545 This config.status script is free software; the Free Software Foundation
13546 gives unlimited permission to copy, distribute and modify it."
13548 ac_pwd='$ac_pwd'
13549 srcdir='$srcdir'
13550 _ACEOF
13552 cat >>$CONFIG_STATUS <<\_ACEOF
13553 # If no file are specified by the user, then we need to provide default
13554 # value. By we need to know if files were specified by the user.
13555 ac_need_defaults=:
13556 while test $# != 0
13558 case $1 in
13559 --*=*)
13560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13561 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13562 ac_shift=:
13565 ac_option=$1
13566 ac_optarg=$2
13567 ac_shift=shift
13569 esac
13571 case $ac_option in
13572 # Handling of the options.
13573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13574 ac_cs_recheck=: ;;
13575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13576 echo "$ac_cs_version"; exit ;;
13577 --debug | --debu | --deb | --de | --d | -d )
13578 debug=: ;;
13579 --file | --fil | --fi | --f )
13580 $ac_shift
13581 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13582 ac_need_defaults=false;;
13583 --header | --heade | --head | --hea )
13584 $ac_shift
13585 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13586 ac_need_defaults=false;;
13587 --he | --h)
13588 # Conflict between --help and --header
13589 { echo "$as_me: error: ambiguous option: $1
13590 Try \`$0 --help' for more information." >&2
13591 { (exit 1); exit 1; }; };;
13592 --help | --hel | -h )
13593 echo "$ac_cs_usage"; exit ;;
13594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13596 ac_cs_silent=: ;;
13598 # This is an error.
13599 -*) { echo "$as_me: error: unrecognized option: $1
13600 Try \`$0 --help' for more information." >&2
13601 { (exit 1); exit 1; }; } ;;
13603 *) ac_config_targets="$ac_config_targets $1"
13604 ac_need_defaults=false ;;
13606 esac
13607 shift
13608 done
13610 ac_configure_extra_args=
13612 if $ac_cs_silent; then
13613 exec 6>/dev/null
13614 ac_configure_extra_args="$ac_configure_extra_args --silent"
13617 _ACEOF
13618 cat >>$CONFIG_STATUS <<_ACEOF
13619 if \$ac_cs_recheck; then
13620 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13621 CONFIG_SHELL=$SHELL
13622 export CONFIG_SHELL
13623 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13626 _ACEOF
13627 cat >>$CONFIG_STATUS <<\_ACEOF
13628 exec 5>>config.log
13630 echo
13631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13632 ## Running $as_me. ##
13633 _ASBOX
13634 echo "$ac_log"
13635 } >&5
13637 _ACEOF
13638 cat >>$CONFIG_STATUS <<_ACEOF
13640 # INIT-COMMANDS
13643 aros_host_exe_suffix=${aros_host_exe_suffix}
13644 aros_tools_dir=${aros_tools_dir}
13645 aros_target_cpu=${aros_target_cpu}
13646 aros_target_arch=${aros_target_arch}
13647 aros_target_suffix=${aros_target_suffix}
13648 aros_target_nm_ln=${aros_target_nm_ln}
13649 aros_target_as_ln=${aros_target_as_ln}
13650 aros_target_ar_ln=${aros_target_ar_ln}
13651 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13652 aros_target_objdump_ln=${aros_target_objdump_ln}
13653 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13654 aros_target_strip_ln=${aros_target_strip_ln}
13657 aros_scripts_dir=${aros_scripts_dir}
13659 aros_tools_dir=${aros_tools_dir}
13662 _ACEOF
13664 cat >>$CONFIG_STATUS <<\_ACEOF
13666 # Handling of arguments.
13667 for ac_config_target in $ac_config_targets
13669 case $ac_config_target in
13670 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13671 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13672 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13673 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13674 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13675 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13676 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13677 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13678 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13679 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13680 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13681 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13682 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13683 "${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" ;;
13684 "${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" ;;
13685 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13686 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13687 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13689 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13690 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13691 { (exit 1); exit 1; }; };;
13692 esac
13693 done
13696 # If the user did not use the arguments to specify the items to instantiate,
13697 # then the envvar interface is used. Set only those that are not.
13698 # We use the long form for the default assignment because of an extremely
13699 # bizarre bug on SunOS 4.1.3.
13700 if $ac_need_defaults; then
13701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13706 # Have a temporary directory for convenience. Make it in the build tree
13707 # simply because there is no reason against having it here, and in addition,
13708 # creating and moving files from /tmp can sometimes cause problems.
13709 # Hook for its removal unless debugging.
13710 # Note that there is a small window in which the directory will not be cleaned:
13711 # after its creation but before its name has been assigned to `$tmp'.
13712 $debug ||
13714 tmp=
13715 trap 'exit_status=$?
13716 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13718 trap '{ (exit 1); exit 1; }' 1 2 13 15
13720 # Create a (secure) tmp directory for tmp files.
13723 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13724 test -n "$tmp" && test -d "$tmp"
13725 } ||
13727 tmp=./conf$$-$RANDOM
13728 (umask 077 && mkdir "$tmp")
13729 } ||
13731 echo "$me: cannot create a temporary directory in ." >&2
13732 { (exit 1); exit 1; }
13736 # Set up the sed scripts for CONFIG_FILES section.
13739 # No need to generate the scripts if there are no CONFIG_FILES.
13740 # This happens for instance when ./config.status config.h
13741 if test -n "$CONFIG_FILES"; then
13743 _ACEOF
13747 ac_delim='%!_!# '
13748 for ac_last_try in false false false false false :; do
13749 cat >conf$$subs.sed <<_ACEOF
13750 SHELL!$SHELL$ac_delim
13751 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13752 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13753 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13754 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13755 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13756 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13757 exec_prefix!$exec_prefix$ac_delim
13758 prefix!$prefix$ac_delim
13759 program_transform_name!$program_transform_name$ac_delim
13760 bindir!$bindir$ac_delim
13761 sbindir!$sbindir$ac_delim
13762 libexecdir!$libexecdir$ac_delim
13763 datarootdir!$datarootdir$ac_delim
13764 datadir!$datadir$ac_delim
13765 sysconfdir!$sysconfdir$ac_delim
13766 sharedstatedir!$sharedstatedir$ac_delim
13767 localstatedir!$localstatedir$ac_delim
13768 includedir!$includedir$ac_delim
13769 oldincludedir!$oldincludedir$ac_delim
13770 docdir!$docdir$ac_delim
13771 infodir!$infodir$ac_delim
13772 htmldir!$htmldir$ac_delim
13773 dvidir!$dvidir$ac_delim
13774 pdfdir!$pdfdir$ac_delim
13775 psdir!$psdir$ac_delim
13776 libdir!$libdir$ac_delim
13777 localedir!$localedir$ac_delim
13778 mandir!$mandir$ac_delim
13779 DEFS!$DEFS$ac_delim
13780 ECHO_C!$ECHO_C$ac_delim
13781 ECHO_N!$ECHO_N$ac_delim
13782 ECHO_T!$ECHO_T$ac_delim
13783 LIBS!$LIBS$ac_delim
13784 build_alias!$build_alias$ac_delim
13785 host_alias!$host_alias$ac_delim
13786 target_alias!$target_alias$ac_delim
13787 build!$build$ac_delim
13788 build_cpu!$build_cpu$ac_delim
13789 build_vendor!$build_vendor$ac_delim
13790 build_os!$build_os$ac_delim
13791 host!$host$ac_delim
13792 host_cpu!$host_cpu$ac_delim
13793 host_vendor!$host_vendor$ac_delim
13794 host_os!$host_os$ac_delim
13795 CC!$CC$ac_delim
13796 CFLAGS!$CFLAGS$ac_delim
13797 LDFLAGS!$LDFLAGS$ac_delim
13798 CPPFLAGS!$CPPFLAGS$ac_delim
13799 ac_ct_CC!$ac_ct_CC$ac_delim
13800 EXEEXT!$EXEEXT$ac_delim
13801 OBJEXT!$OBJEXT$ac_delim
13802 CPP!$CPP$ac_delim
13803 AWK!$AWK$ac_delim
13804 MMAKE!$MMAKE$ac_delim
13805 aros_host_ld!$aros_host_ld$ac_delim
13806 aros_host_aclocal!$aros_host_aclocal$ac_delim
13807 aros_host_autoconf!$aros_host_autoconf$ac_delim
13808 aros_host_autoheader!$aros_host_autoheader$ac_delim
13809 aros_host_automake!$aros_host_automake$ac_delim
13810 aros_host_ar!$aros_host_ar$ac_delim
13811 aros_host_ranlib!$aros_host_ranlib$ac_delim
13812 aros_host_strip!$aros_host_strip$ac_delim
13813 RM!$RM$ac_delim
13814 CP!$CP$ac_delim
13815 MV!$MV$ac_delim
13816 ECHO!$ECHO$ac_delim
13817 MKDIR!$MKDIR$ac_delim
13818 TOUCH!$TOUCH$ac_delim
13819 SORT!$SORT$ac_delim
13820 UNIQ!$UNIQ$ac_delim
13821 NOP!$NOP$ac_delim
13822 CAT!$CAT$ac_delim
13823 BISON!$BISON$ac_delim
13824 FLEX!$FLEX$ac_delim
13825 PNGTOPNM!$PNGTOPNM$ac_delim
13826 PPMTOILBM!$PPMTOILBM$ac_delim
13827 SED!$SED$ac_delim
13828 CHMOD!$CHMOD$ac_delim
13829 PYTHON!$PYTHON$ac_delim
13830 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13831 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13832 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13833 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13834 pythondir!$pythondir$ac_delim
13835 pkgpythondir!$pkgpythondir$ac_delim
13836 pyexecdir!$pyexecdir$ac_delim
13837 pkgpyexecdir!$pkgpyexecdir$ac_delim
13838 FOR!$FOR$ac_delim
13839 IF!$IF$ac_delim
13840 TEST!$TEST$ac_delim
13841 CMP!$CMP$ac_delim
13842 GREP!$GREP$ac_delim
13843 EGREP!$EGREP$ac_delim
13844 LIBOBJS!$LIBOBJS$ac_delim
13845 DISTCC!$DISTCC$ac_delim
13846 CCACHE!$CCACHE$ac_delim
13847 _ACEOF
13849 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13850 break
13851 elif $ac_last_try; then
13852 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13853 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13854 { (exit 1); exit 1; }; }
13855 else
13856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13858 done
13860 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13861 if test -n "$ac_eof"; then
13862 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13863 ac_eof=`expr $ac_eof + 1`
13866 cat >>$CONFIG_STATUS <<_ACEOF
13867 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13869 _ACEOF
13870 sed '
13871 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13872 s/^/s,@/; s/!/@,|#_!!_#|/
13875 s/'"$ac_delim"'$/,g/; t
13876 s/$/\\/; p
13877 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13878 ' >>$CONFIG_STATUS <conf$$subs.sed
13879 rm -f conf$$subs.sed
13880 cat >>$CONFIG_STATUS <<_ACEOF
13881 CEOF$ac_eof
13882 _ACEOF
13885 ac_delim='%!_!# '
13886 for ac_last_try in false false false false false :; do
13887 cat >conf$$subs.sed <<_ACEOF
13888 aros_target_cc!$aros_target_cc$ac_delim
13889 aros_target_ld!$aros_target_ld$ac_delim
13890 aros_target_as_ln!$aros_target_as_ln$ac_delim
13891 aros_kernel_ld!$aros_kernel_ld$ac_delim
13892 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13893 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13894 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13895 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13896 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13897 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13898 aros_target_cxx!$aros_target_cxx$ac_delim
13899 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13900 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13901 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13902 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13903 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13904 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13905 host_cflags_iquote!$host_cflags_iquote$ac_delim
13906 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13907 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13908 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13909 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13910 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13911 XMKMF!$XMKMF$ac_delim
13912 SDL_CONFIG!$SDL_CONFIG$ac_delim
13913 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13914 SDL_LIBS!$SDL_LIBS$ac_delim
13915 aros_arch!$aros_arch$ac_delim
13916 aros_cpu!$aros_cpu$ac_delim
13917 aros_flavour!$aros_flavour$ac_delim
13918 aros_flavour_uc!$aros_flavour_uc$ac_delim
13919 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13920 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13921 SRCDIR!$SRCDIR$ac_delim
13922 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13923 aros_cc_pre!$aros_cc_pre$ac_delim
13924 aros_host_arch!$aros_host_arch$ac_delim
13925 aros_host_cpu!$aros_host_cpu$ac_delim
13926 aros_host_cc!$aros_host_cc$ac_delim
13927 aros_host_make!$aros_host_make$ac_delim
13928 aros_host_cflags!$aros_host_cflags$ac_delim
13929 aros_host_ldflags!$aros_host_ldflags$ac_delim
13930 aros_host_debug!$aros_host_debug$ac_delim
13931 aros_host_mkdep!$aros_host_mkdep$ac_delim
13932 aros_host_mkargs!$aros_host_mkargs$ac_delim
13933 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13934 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13935 aros_tools_dir!$aros_tools_dir$ac_delim
13936 aros_target_guitheme!$aros_target_guitheme$ac_delim
13937 aros_target_iconset!$aros_target_iconset$ac_delim
13938 aros_target_bootloader!$aros_target_bootloader$ac_delim
13939 aros_target_arch!$aros_target_arch$ac_delim
13940 aros_target_family!$aros_target_family$ac_delim
13941 aros_target_cpu!$aros_target_cpu$ac_delim
13942 aros_target_variant!$aros_target_variant$ac_delim
13943 aros_target_suffix!$aros_target_suffix$ac_delim
13944 aros_target_incl!$aros_target_incl$ac_delim
13945 aros_target_ar!$aros_target_ar$ac_delim
13946 aros_target_ranlib!$aros_target_ranlib$ac_delim
13947 aros_kernel_nm!$aros_kernel_nm$ac_delim
13948 orig_target_cc!$orig_target_cc$ac_delim
13949 aros_kernel_cc!$aros_kernel_cc$ac_delim
13950 aros_target_as!$aros_target_as$ac_delim
13951 orig_target_ld!$orig_target_ld$ac_delim
13952 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13953 aros_target_cc_path!$aros_target_cc_path$ac_delim
13954 aros_target_objdump!$aros_target_objdump$ac_delim
13955 aros_target_objcopy!$aros_target_objcopy$ac_delim
13956 aros_target_strip!$aros_target_strip$ac_delim
13957 aros_target_nm!$aros_target_nm$ac_delim
13958 aros_shared_default!$aros_shared_default$ac_delim
13959 aros_shared_ld!$aros_shared_ld$ac_delim
13960 aros_object_format!$aros_object_format$ac_delim
13961 aros_compiler_libs!$aros_compiler_libs$ac_delim
13962 aros_arch_libs!$aros_arch_libs$ac_delim
13963 aros_config_cflags!$aros_config_cflags$ac_delim
13964 aros_config_aflags!$aros_config_aflags$ac_delim
13965 aros_config_ldflags!$aros_config_ldflags$ac_delim
13966 aros_shared_cflags!$aros_shared_cflags$ac_delim
13967 aros_shared_aflags!$aros_shared_aflags$ac_delim
13968 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13969 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13970 aros_kernel_includes!$aros_kernel_includes$ac_delim
13971 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
13972 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13973 aros_debug_cflags!$aros_debug_cflags$ac_delim
13974 aros_debug_aflags!$aros_debug_aflags$ac_delim
13975 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13976 aros_paranoia_cflags!$aros_paranoia_cflags$ac_delim
13977 aros_target_genmap!$aros_target_genmap$ac_delim
13978 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13979 crosstools_target!$crosstools_target$ac_delim
13980 x11_hidd_target!$x11_hidd_target$ac_delim
13981 sdl_hidd_target!$sdl_hidd_target$ac_delim
13982 oss_library_target!$oss_library_target$ac_delim
13983 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13984 aros_default_wbheight!$aros_default_wbheight$ac_delim
13985 _ACEOF
13987 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13988 break
13989 elif $ac_last_try; then
13990 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13991 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13992 { (exit 1); exit 1; }; }
13993 else
13994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13996 done
13998 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13999 if test -n "$ac_eof"; then
14000 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14001 ac_eof=`expr $ac_eof + 1`
14004 cat >>$CONFIG_STATUS <<_ACEOF
14005 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14007 _ACEOF
14008 sed '
14009 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14010 s/^/s,@/; s/!/@,|#_!!_#|/
14013 s/'"$ac_delim"'$/,g/; t
14014 s/$/\\/; p
14015 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14016 ' >>$CONFIG_STATUS <conf$$subs.sed
14017 rm -f conf$$subs.sed
14018 cat >>$CONFIG_STATUS <<_ACEOF
14019 CEOF$ac_eof
14020 _ACEOF
14023 ac_delim='%!_!# '
14024 for ac_last_try in false false false false false :; do
14025 cat >conf$$subs.sed <<_ACEOF
14026 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
14027 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
14028 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
14029 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
14030 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
14031 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
14032 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
14033 aros_serial_debug!$aros_serial_debug$ac_delim
14034 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
14035 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
14036 aros_ios_platform!$aros_ios_platform$ac_delim
14037 aros_ios_version!$aros_ios_version$ac_delim
14038 aros_ios_sdk!$aros_ios_sdk$ac_delim
14039 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
14040 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
14041 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
14042 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
14043 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
14044 ENABLE_X11!$ENABLE_X11$ac_delim
14045 aros_debug!$aros_debug$ac_delim
14046 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
14047 aros_stack_debug!$aros_stack_debug$ac_delim
14048 aros_modules_debug!$aros_modules_debug$ac_delim
14049 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
14050 gcc_target_cpu!$gcc_target_cpu$ac_delim
14051 LTLIBOBJS!$LTLIBOBJS$ac_delim
14052 _ACEOF
14054 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
14055 break
14056 elif $ac_last_try; then
14057 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14058 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14059 { (exit 1); exit 1; }; }
14060 else
14061 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14063 done
14065 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14066 if test -n "$ac_eof"; then
14067 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14068 ac_eof=`expr $ac_eof + 1`
14071 cat >>$CONFIG_STATUS <<_ACEOF
14072 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
14073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14074 _ACEOF
14075 sed '
14076 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14077 s/^/s,@/; s/!/@,|#_!!_#|/
14080 s/'"$ac_delim"'$/,g/; t
14081 s/$/\\/; p
14082 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14083 ' >>$CONFIG_STATUS <conf$$subs.sed
14084 rm -f conf$$subs.sed
14085 cat >>$CONFIG_STATUS <<_ACEOF
14086 :end
14087 s/|#_!!_#|//g
14088 CEOF$ac_eof
14089 _ACEOF
14092 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14093 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14094 # trailing colons and then remove the whole line if VPATH becomes empty
14095 # (actually we leave an empty line to preserve line numbers).
14096 if test "x$srcdir" = x.; then
14097 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14098 s/:*\$(srcdir):*/:/
14099 s/:*\${srcdir}:*/:/
14100 s/:*@srcdir@:*/:/
14101 s/^\([^=]*=[ ]*\):*/\1/
14102 s/:*$//
14103 s/^[^=]*=[ ]*$//
14107 cat >>$CONFIG_STATUS <<\_ACEOF
14108 fi # test -n "$CONFIG_FILES"
14111 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14113 case $ac_tag in
14114 :[FHLC]) ac_mode=$ac_tag; continue;;
14115 esac
14116 case $ac_mode$ac_tag in
14117 :[FHL]*:*);;
14118 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14119 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14120 { (exit 1); exit 1; }; };;
14121 :[FH]-) ac_tag=-:-;;
14122 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14123 esac
14124 ac_save_IFS=$IFS
14125 IFS=:
14126 set x $ac_tag
14127 IFS=$ac_save_IFS
14128 shift
14129 ac_file=$1
14130 shift
14132 case $ac_mode in
14133 :L) ac_source=$1;;
14134 :[FH])
14135 ac_file_inputs=
14136 for ac_f
14138 case $ac_f in
14139 -) ac_f="$tmp/stdin";;
14140 *) # Look for the file first in the build tree, then in the source tree
14141 # (if the path is not absolute). The absolute path cannot be DOS-style,
14142 # because $ac_f cannot contain `:'.
14143 test -f "$ac_f" ||
14144 case $ac_f in
14145 [\\/$]*) false;;
14146 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14147 esac ||
14148 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14149 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14150 { (exit 1); exit 1; }; };;
14151 esac
14152 ac_file_inputs="$ac_file_inputs $ac_f"
14153 done
14155 # Let's still pretend it is `configure' which instantiates (i.e., don't
14156 # use $as_me), people would be surprised to read:
14157 # /* config.h. Generated by config.status. */
14158 configure_input="Generated from "`IFS=:
14159 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14160 if test x"$ac_file" != x-; then
14161 configure_input="$ac_file. $configure_input"
14162 { echo "$as_me:$LINENO: creating $ac_file" >&5
14163 echo "$as_me: creating $ac_file" >&6;}
14166 case $ac_tag in
14167 *:-:* | *:-) cat >"$tmp/stdin";;
14168 esac
14170 esac
14172 ac_dir=`$as_dirname -- "$ac_file" ||
14173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14174 X"$ac_file" : 'X\(//\)[^/]' \| \
14175 X"$ac_file" : 'X\(//\)$' \| \
14176 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14177 echo X"$ac_file" |
14178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14179 s//\1/
14182 /^X\(\/\/\)[^/].*/{
14183 s//\1/
14186 /^X\(\/\/\)$/{
14187 s//\1/
14190 /^X\(\/\).*/{
14191 s//\1/
14194 s/.*/./; q'`
14195 { as_dir="$ac_dir"
14196 case $as_dir in #(
14197 -*) as_dir=./$as_dir;;
14198 esac
14199 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14200 as_dirs=
14201 while :; do
14202 case $as_dir in #(
14203 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14204 *) as_qdir=$as_dir;;
14205 esac
14206 as_dirs="'$as_qdir' $as_dirs"
14207 as_dir=`$as_dirname -- "$as_dir" ||
14208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14209 X"$as_dir" : 'X\(//\)[^/]' \| \
14210 X"$as_dir" : 'X\(//\)$' \| \
14211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14212 echo X"$as_dir" |
14213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14214 s//\1/
14217 /^X\(\/\/\)[^/].*/{
14218 s//\1/
14221 /^X\(\/\/\)$/{
14222 s//\1/
14225 /^X\(\/\).*/{
14226 s//\1/
14229 s/.*/./; q'`
14230 test -d "$as_dir" && break
14231 done
14232 test -z "$as_dirs" || eval "mkdir $as_dirs"
14233 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14234 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14235 { (exit 1); exit 1; }; }; }
14236 ac_builddir=.
14238 case "$ac_dir" in
14239 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14241 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14242 # A ".." for each directory in $ac_dir_suffix.
14243 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14244 case $ac_top_builddir_sub in
14245 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14246 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14247 esac ;;
14248 esac
14249 ac_abs_top_builddir=$ac_pwd
14250 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14251 # for backward compatibility:
14252 ac_top_builddir=$ac_top_build_prefix
14254 case $srcdir in
14255 .) # We are building in place.
14256 ac_srcdir=.
14257 ac_top_srcdir=$ac_top_builddir_sub
14258 ac_abs_top_srcdir=$ac_pwd ;;
14259 [\\/]* | ?:[\\/]* ) # Absolute name.
14260 ac_srcdir=$srcdir$ac_dir_suffix;
14261 ac_top_srcdir=$srcdir
14262 ac_abs_top_srcdir=$srcdir ;;
14263 *) # Relative name.
14264 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14265 ac_top_srcdir=$ac_top_build_prefix$srcdir
14266 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14267 esac
14268 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14271 case $ac_mode in
14274 # CONFIG_FILE
14277 _ACEOF
14279 cat >>$CONFIG_STATUS <<\_ACEOF
14280 # If the template does not know about datarootdir, expand it.
14281 # FIXME: This hack should be removed a few years after 2.60.
14282 ac_datarootdir_hack=; ac_datarootdir_seen=
14284 case `sed -n '/datarootdir/ {
14288 /@datadir@/p
14289 /@docdir@/p
14290 /@infodir@/p
14291 /@localedir@/p
14292 /@mandir@/p
14293 ' $ac_file_inputs` in
14294 *datarootdir*) ac_datarootdir_seen=yes;;
14295 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14296 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14297 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14298 _ACEOF
14299 cat >>$CONFIG_STATUS <<_ACEOF
14300 ac_datarootdir_hack='
14301 s&@datadir@&$datadir&g
14302 s&@docdir@&$docdir&g
14303 s&@infodir@&$infodir&g
14304 s&@localedir@&$localedir&g
14305 s&@mandir@&$mandir&g
14306 s&\\\${datarootdir}&$datarootdir&g' ;;
14307 esac
14308 _ACEOF
14310 # Neutralize VPATH when `$srcdir' = `.'.
14311 # Shell code in configure.ac might set extrasub.
14312 # FIXME: do we really want to maintain this feature?
14313 cat >>$CONFIG_STATUS <<_ACEOF
14314 sed "$ac_vpsub
14315 $extrasub
14316 _ACEOF
14317 cat >>$CONFIG_STATUS <<\_ACEOF
14319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14320 s&@configure_input@&$configure_input&;t t
14321 s&@top_builddir@&$ac_top_builddir_sub&;t t
14322 s&@srcdir@&$ac_srcdir&;t t
14323 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14324 s&@top_srcdir@&$ac_top_srcdir&;t t
14325 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14326 s&@builddir@&$ac_builddir&;t t
14327 s&@abs_builddir@&$ac_abs_builddir&;t t
14328 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14329 $ac_datarootdir_hack
14330 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
14332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14333 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14335 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14336 which seems to be undefined. Please make sure it is defined." >&5
14337 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14338 which seems to be undefined. Please make sure it is defined." >&2;}
14340 rm -f "$tmp/stdin"
14341 case $ac_file in
14342 -) cat "$tmp/out"; rm -f "$tmp/out";;
14343 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14344 esac
14348 # CONFIG_HEADER
14350 _ACEOF
14352 # Transform confdefs.h into a sed script `conftest.defines', that
14353 # substitutes the proper values into config.h.in to produce config.h.
14354 rm -f conftest.defines conftest.tail
14355 # First, append a space to every undef/define line, to ease matching.
14356 echo 's/$/ /' >conftest.defines
14357 # Then, protect against being on the right side of a sed subst, or in
14358 # an unquoted here document, in config.status. If some macros were
14359 # called several times there might be several #defines for the same
14360 # symbol, which is useless. But do not sort them, since the last
14361 # AC_DEFINE must be honored.
14362 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14363 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14364 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14365 # PARAMS is the parameter list in the macro definition--in most cases, it's
14366 # just an empty string.
14367 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14368 ac_dB='\\)[ (].*,\\1define\\2'
14369 ac_dC=' '
14370 ac_dD=' ,'
14372 uniq confdefs.h |
14373 sed -n '
14374 t rset
14375 :rset
14376 s/^[ ]*#[ ]*define[ ][ ]*//
14377 t ok
14380 s/[\\&,]/\\&/g
14381 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14382 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14383 ' >>conftest.defines
14385 # Remove the space that was appended to ease matching.
14386 # Then replace #undef with comments. This is necessary, for
14387 # example, in the case of _POSIX_SOURCE, which is predefined and required
14388 # on some systems where configure will not decide to define it.
14389 # (The regexp can be short, since the line contains either #define or #undef.)
14390 echo 's/ $//
14391 s,^[ #]*u.*,/* & */,' >>conftest.defines
14393 # Break up conftest.defines:
14394 ac_max_sed_lines=50
14396 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14397 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14398 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14399 # et cetera.
14400 ac_in='$ac_file_inputs'
14401 ac_out='"$tmp/out1"'
14402 ac_nxt='"$tmp/out2"'
14404 while :
14406 # Write a here document:
14407 cat >>$CONFIG_STATUS <<_ACEOF
14408 # First, check the format of the line:
14409 cat >"\$tmp/defines.sed" <<\\CEOF
14410 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14411 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14413 :def
14414 _ACEOF
14415 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14416 echo 'CEOF
14417 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14418 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14419 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14420 grep . conftest.tail >/dev/null || break
14421 rm -f conftest.defines
14422 mv conftest.tail conftest.defines
14423 done
14424 rm -f conftest.defines conftest.tail
14426 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14427 cat >>$CONFIG_STATUS <<\_ACEOF
14428 if test x"$ac_file" != x-; then
14429 echo "/* $configure_input */" >"$tmp/config.h"
14430 cat "$ac_result" >>"$tmp/config.h"
14431 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14432 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14433 echo "$as_me: $ac_file is unchanged" >&6;}
14434 else
14435 rm -f $ac_file
14436 mv "$tmp/config.h" $ac_file
14438 else
14439 echo "/* $configure_input */"
14440 cat "$ac_result"
14442 rm -f "$tmp/out12"
14445 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14446 echo "$as_me: executing $ac_file commands" >&6;}
14448 esac
14451 case $ac_file$ac_mode in
14452 "compiler_executable":C)
14453 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14454 mkdir -p $prefix
14455 prefix="${prefix}/${aros_target_cpu}-aros"
14456 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14458 echo ${prefix}
14459 echo ${prefix2}
14460 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14462 ln -sf ${prefix2}-gcc ${prefix}-gcc
14463 ln -sf ${prefix2}-ld ${prefix}-ld
14465 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14466 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14467 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14468 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14469 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14470 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14471 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14473 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14474 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14475 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14476 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14477 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14478 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14479 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14481 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14482 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14484 esac
14485 done # for ac_tag
14488 { (exit 0); exit 0; }
14489 _ACEOF
14490 chmod +x $CONFIG_STATUS
14491 ac_clean_files=$ac_clean_files_save
14494 # configure is writing to config.log, and then calls config.status.
14495 # config.status does its own redirection, appending to config.log.
14496 # Unfortunately, on DOS this fails, as config.log is still kept open
14497 # by configure, so config.status won't be able to write to it; its
14498 # output is simply discarded. So we exec the FD to /dev/null,
14499 # effectively closing config.log, so it can be properly (re)opened and
14500 # appended to by config.status. When coming back to configure, we
14501 # need to make the FD available again.
14502 if test "$no_create" != yes; then
14503 ac_cs_success=:
14504 ac_config_status_args=
14505 test "$silent" = yes &&
14506 ac_config_status_args="$ac_config_status_args --quiet"
14507 exec 5>/dev/null
14508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14509 exec 5>>config.log
14510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14511 # would make configure fail if this is the last instruction.
14512 $ac_cs_success || { (exit 1); exit 1; }
14517 #XXX compatability...
14518 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14520 if test -n "$aros_shared_cflags" ; then
14521 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14522 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg