rom/oop: -Wall cleanups
[AROS.git] / configure
blob013e894b1671e700ad8b6c6e0baccc6fd1851ba9
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 pci_hidd_target
808 oss_library_target
809 aros_default_wbwidth
810 aros_default_wbheight
811 aros_default_wbdepth
812 DO_XSHM_SUPPORT
813 DO_VIDMODE_SUPPORT
814 aros_host_x11_includes
815 aros_host_x11_libdirs
816 aros_host_sdl_cflags
817 aros_host_sdl_libs
818 aros_serial_debug
819 aros_palm_debug_hack
820 aros_nesting_supervisor
821 aros_ios_platform
822 aros_ios_version
823 aros_ios_sdk
824 ENABLE_DBUS
825 DBUS_CFLAGS
826 DBUS_LIBFLAGS
827 KERNEL_DBUS_KOBJ
828 KERNEL_DBUS_INCLUDES
829 ENABLE_X11
830 aros_debug
831 aros_mungwall_debug
832 aros_stack_debug
833 aros_modules_debug
834 ignore_undefined_symbols
835 gcc_target_cpu
836 LTLIBOBJS'
837 ac_subst_files=''
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
847 XMKMF'
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
896 ac_prev=
897 ac_dashdash=
898 for ac_option
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
916 ac_dashdash=yes ;;
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
935 --config-cache | -C)
936 cache_file=config.cache ;;
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
950 -disable-* | --disable-*)
951 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
957 eval enable_$ac_feature=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
969 -enable-* | --enable-*)
970 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
973 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
974 { (exit 1); exit 1; }; }
975 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
976 eval enable_$ac_feature=\$ac_optarg ;;
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1166 -with-* | --with-*)
1167 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 { echo "$as_me: error: invalid package name: $ac_package" >&2
1171 { (exit 1); exit 1; }; }
1172 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1173 eval with_$ac_package=\$ac_optarg ;;
1175 -without-* | --without-*)
1176 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid package name: $ac_package" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1182 eval with_$ac_package=no ;;
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1202 -*) { echo "$as_me: error: unrecognized option: $ac_option
1203 Try \`$0 --help' for more information." >&2
1204 { (exit 1); exit 1; }; }
1207 *=*)
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1211 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1212 { (exit 1); exit 1; }; }
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1217 # FIXME: should be removed in autoconf 3.0.
1218 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224 esac
1225 done
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 { echo "$as_me: error: missing argument to $ac_option" >&2
1230 { (exit 1); exit 1; }; }
1233 # Be sure to have absolute directory names.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1239 eval ac_val=\$$ac_var
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1245 { (exit 1); exit 1; }; }
1246 done
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1260 If a cross compiler is detected then cross compile mode will be used." >&2
1261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269 test "$silent" = yes && exec 6>/dev/null
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 { echo "$as_me: error: Working directory cannot be determined" >&2
1276 { (exit 1); exit 1; }; }
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 { echo "$as_me: error: pwd does not report name of working directory" >&2
1279 { (exit 1); exit 1; }; }
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$0" ||
1287 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$0" : 'X\(//\)[^/]' \| \
1289 X"$0" : 'X\(//\)$' \| \
1290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1291 echo X"$0" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1300 /^X\(\/\/\)$/{
1301 s//\1/
1304 /^X\(\/\).*/{
1305 s//\1/
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1313 else
1314 ac_srcdir_defaulted=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1319 { (exit 1); exit 1; }; }
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1324 { (exit 1); exit 1; }; }
1325 pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1344 # Report the --help message.
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350 \`configure' configures this package to adapt to many kinds of systems.
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1357 Defaults for the options are specified in brackets.
1359 Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 [PREFIX]
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1381 For better control, use the options below.
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1403 _ACEOF
1405 cat <<\_ACEOF
1407 X features:
1408 --x-includes=DIR X include files are in DIR
1409 --x-libraries=DIR X library files are in DIR
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1417 if test -n "$ac_init_help"; then
1419 cat <<\_ACEOF
1421 Optional Features:
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-build-type=TYPE
1425 Select the build type. Available types are:
1426 personal, nightly, snapshot, milestone, release. Do
1427 NOT use this option unless you know what you are
1428 doing! (default=personal)
1429 --enable-debug=list Enable different types of debug. Commas or
1430 whitespaces can be used to separate the items in the
1431 list. Available types of debug are: all, none,
1432 messages, stack, mungwall, modules, symbols. If no
1433 list is provided then "all" is assumed.
1434 (default=none)
1435 --enable-crosstools Build cross-compiler toolchains if necessary
1436 (default=no).
1437 --enable-distcc Use distcc as a front end to the compiler
1438 (default=no).
1439 --enable-ccache Use ccache as a front end to the compiler
1440 (default=no).
1441 --enable-target-variant=NAME
1442 Enable a specific target variant(default=none)
1443 --enable-includes=dir Alternative system include directory
1444 --enable-palm-debug-hack
1445 Enable palm debug output hack in palm native
1446 (default=no)
1447 --enable-nesting-supervisor
1448 Enable nesting supervisor support in unix
1449 (default=no)
1450 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1451 --enable-x11-shm use X11 shared memory (default=auto)
1452 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1453 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1454 --disable-sdltest Do not try to compile and run a test SDL program
1455 --enable-dbus Enable DBUS support via dbus.library (default=no)
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-gcc-version=VERSION
1461 Use gcc-VERSION for building AROS
1462 --with-optimization=FLAGS
1463 Use optimization flags FLAGS (default=-O2).
1464 --with-paranoia=FLAGS CC flags to enable paranoia
1465 --with-xcode=PATH Specify XCode path for iOS targets
1466 (default=/Developer).
1467 --with-ios-version=VERSION
1468 Specify minimum supported iOS version (default=2.0).
1469 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1470 --with-portssources=DIR Where to download sourcecode for external ports
1471 --with-bootloader=NAME Use a specific bootloader
1472 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1473 --with-theme=NAME Use a specific GUI Theme
1474 --with-resolution=XRESxYRESxDEPTH
1475 Default resolution of the initial WorkbenchScreen
1476 --with-serial-debug Enable serial debug output in native (default=no)
1477 --with-x use the X Window System
1478 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1479 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CPP C preprocessor
1490 XMKMF Path to xmkmf, Makefile generator for X Window System
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 _ACEOF
1496 ac_status=$?
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" || continue
1503 ac_builddir=.
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 configure
1556 generated by GNU Autoconf 2.61
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by $as_me, which was
1570 generated by GNU Autoconf 2.61. Invocation command line was
1572 $ $0 $@
1574 _ACEOF
1575 exec 5>>config.log
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1599 _ASUNAME
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1610 } >&5
1612 cat >&5 <<_ACEOF
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1619 _ACEOF
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1633 for ac_arg
1635 case $ac_arg in
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 continue ;;
1640 *\'*)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 esac
1643 case $ac_pass in
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1649 else
1650 case $ac_arg in
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 esac
1659 -* ) ac_must_keep_next=true ;;
1660 esac
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1664 esac
1665 done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1678 echo
1680 cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685 echo
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1690 case $ac_val in #(
1691 *${as_nl}*)
1692 case $ac_var in #(
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695 esac
1696 case $ac_var in #(
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1699 esac ;;
1700 esac
1701 done
1702 (set) 2>&1 |
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1705 sed -n \
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 ;; #(
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1712 esac |
1713 sort
1715 echo
1717 cat <<\_ASBOX
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1721 _ASBOX
1722 echo
1723 for ac_var in $ac_subst_vars
1725 eval ac_val=\$$ac_var
1726 case $ac_val in
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 esac
1729 echo "$ac_var='\''$ac_val'\''"
1730 done | sort
1731 echo
1733 if test -n "$ac_subst_files"; then
1734 cat <<\_ASBOX
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1738 _ASBOX
1739 echo
1740 for ac_var in $ac_subst_files
1742 eval ac_val=\$$ac_var
1743 case $ac_val in
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 esac
1746 echo "$ac_var='\''$ac_val'\''"
1747 done | sort
1748 echo
1751 if test -s confdefs.h; then
1752 cat <<\_ASBOX
1753 ## ----------- ##
1754 ## confdefs.h. ##
1755 ## ----------- ##
1756 _ASBOX
1757 echo
1758 cat confdefs.h
1759 echo
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1764 } >&5
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767 exit $exit_status
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 done
1772 ac_signal=0
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1777 # Predefined preprocessor variables.
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 _ACEOF
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 _ACEOF
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 _ACEOF
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 _ACEOF
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 _ACEOF
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 else
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1814 shift
1815 for ac_site_file
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1821 . "$ac_site_file"
1823 done
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1831 case $cache_file in
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1834 esac
1836 else
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1839 >$cache_file
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1851 set,)
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1855 ,set)
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1859 ,);;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1869 fi;;
1870 esac
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1873 case $ac_new_val in
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1876 esac
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880 esac
1882 done
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1907 ac_ext=c
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915 ac_aux_dir=
1916 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1917 if test -f "$ac_dir/install-sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 break
1921 elif test -f "$ac_dir/install.sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 break
1925 elif test -f "$ac_dir/shtool"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 break
1930 done
1931 if test -z "$ac_aux_dir"; then
1932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947 # Check what host we are running on.
1948 # If a target is not suggested, we use this one.
1949 # Note that what we call a target, Autoconf calls a host.
1950 # Make sure we can run config.sub.
1951 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1952 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1953 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1954 { (exit 1); exit 1; }; }
1956 { echo "$as_me:$LINENO: checking build system type" >&5
1957 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1958 if test "${ac_cv_build+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 ac_build_alias=$build_alias
1962 test "x$ac_build_alias" = x &&
1963 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1964 test "x$ac_build_alias" = x &&
1965 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1966 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1967 { (exit 1); exit 1; }; }
1968 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1969 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1970 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1971 { (exit 1); exit 1; }; }
1974 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1975 echo "${ECHO_T}$ac_cv_build" >&6; }
1976 case $ac_cv_build in
1977 *-*-*) ;;
1978 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1979 echo "$as_me: error: invalid value of canonical build" >&2;}
1980 { (exit 1); exit 1; }; };;
1981 esac
1982 build=$ac_cv_build
1983 ac_save_IFS=$IFS; IFS='-'
1984 set x $ac_cv_build
1985 shift
1986 build_cpu=$1
1987 build_vendor=$2
1988 shift; shift
1989 # Remember, the first character of IFS is used to create $*,
1990 # except with old shells:
1991 build_os=$*
1992 IFS=$ac_save_IFS
1993 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1996 { echo "$as_me:$LINENO: checking host system type" >&5
1997 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1998 if test "${ac_cv_host+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test "x$host_alias" = x; then
2002 ac_cv_host=$ac_cv_build
2003 else
2004 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2005 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2006 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2007 { (exit 1); exit 1; }; }
2011 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2012 echo "${ECHO_T}$ac_cv_host" >&6; }
2013 case $ac_cv_host in
2014 *-*-*) ;;
2015 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2016 echo "$as_me: error: invalid value of canonical host" >&2;}
2017 { (exit 1); exit 1; }; };;
2018 esac
2019 host=$ac_cv_host
2020 ac_save_IFS=$IFS; IFS='-'
2021 set x $ac_cv_host
2022 shift
2023 host_cpu=$1
2024 host_vendor=$2
2025 shift; shift
2026 # Remember, the first character of IFS is used to create $*,
2027 # except with old shells:
2028 host_os=$*
2029 IFS=$ac_save_IFS
2030 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2034 # The AROS target is slightly different to the normal GNU style
2035 # format. We don't have the middle part, and we reverse the order
2036 # of the $(CPU) and $(OS) bits.
2038 # Don't strip the version of the target yet, it might be
2039 # useful on some systems.
2041 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2042 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2044 if test "$target" = "NONE" ; then
2045 target=$host_os-$host_cpu
2046 cross_compile=no
2047 else
2048 if test "$target" = "" ; then
2049 target=$host_os-$host_cpu
2050 cross_compile=no
2051 else
2052 cross_compile=yes
2055 { echo "$as_me:$LINENO: result: $target" >&5
2056 echo "${ECHO_T}$target" >&6; }
2058 if test "$host_os" = "mingw32" ; then
2059 PWDCMD="pwd -W"
2062 #don't know where else to put this...
2063 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2064 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2065 AROS_BUILDDIR=`${PWDCMD-pwd}`
2066 AROS_BUILDDIR_UNIX=${PWD}
2067 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2068 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2070 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2071 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2072 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2073 SRCDIR=${srcpwd}
2074 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2075 echo "${ECHO_T}$SRCDIR" >&6; }
2077 # Parse the target field into something useful.
2079 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2080 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2083 aros_default_wbwidth=800
2084 aros_default_wbheight=600
2085 aros_default_wbdepth=4
2088 # The first step is to find the host binaries.
2089 # Check for a compiler.
2090 ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 if test -n "$CC"; then
2104 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2117 done
2118 done
2119 IFS=$as_save_IFS
2123 CC=$ac_cv_prog_CC
2124 if test -n "$CC"; then
2125 { echo "$as_me:$LINENO: result: $CC" >&5
2126 echo "${ECHO_T}$CC" >&6; }
2127 else
2128 { echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6; }
2134 if test -z "$ac_cv_prog_CC"; then
2135 ac_ct_CC=$CC
2136 # Extract the first word of "gcc", so it can be a program name with args.
2137 set dummy gcc; ac_word=$2
2138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 if test -n "$ac_ct_CC"; then
2144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153 ac_cv_prog_ac_ct_CC="gcc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2157 done
2158 done
2159 IFS=$as_save_IFS
2163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2164 if test -n "$ac_ct_CC"; then
2165 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2166 echo "${ECHO_T}$ac_ct_CC" >&6; }
2167 else
2168 { echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6; }
2172 if test "x$ac_ct_CC" = x; then
2173 CC=""
2174 else
2175 case $cross_compiling:$ac_tool_warned in
2176 yes:)
2177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2178 whose name does not start with the host triplet. If you think this
2179 configuration is useful to you, please write to autoconf@gnu.org." >&5
2180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2181 whose name does not start with the host triplet. If you think this
2182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2183 ac_tool_warned=yes ;;
2184 esac
2185 CC=$ac_ct_CC
2187 else
2188 CC="$ac_cv_prog_CC"
2191 if test -z "$CC"; then
2192 if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2194 set dummy ${ac_tool_prefix}cc; ac_word=$2
2195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2197 if test "${ac_cv_prog_CC+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200 if test -n "$CC"; then
2201 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210 ac_cv_prog_CC="${ac_tool_prefix}cc"
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 break 2
2214 done
2215 done
2216 IFS=$as_save_IFS
2220 CC=$ac_cv_prog_CC
2221 if test -n "$CC"; then
2222 { echo "$as_me:$LINENO: result: $CC" >&5
2223 echo "${ECHO_T}$CC" >&6; }
2224 else
2225 { echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6; }
2232 if test -z "$CC"; then
2233 # Extract the first word of "cc", so it can be a program name with args.
2234 set dummy cc; ac_word=$2
2235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237 if test "${ac_cv_prog_CC+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 if test -n "$CC"; then
2241 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 else
2243 ac_prog_rejected=no
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2252 ac_prog_rejected=yes
2253 continue
2255 ac_cv_prog_CC="cc"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2259 done
2260 done
2261 IFS=$as_save_IFS
2263 if test $ac_prog_rejected = yes; then
2264 # We found a bogon in the path, so make sure we never use it.
2265 set dummy $ac_cv_prog_CC
2266 shift
2267 if test $# != 0; then
2268 # We chose a different compiler from the bogus one.
2269 # However, it has the same basename, so the bogon will be chosen
2270 # first if we set CC to just the basename; use the full file name.
2271 shift
2272 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2277 CC=$ac_cv_prog_CC
2278 if test -n "$CC"; then
2279 { echo "$as_me:$LINENO: result: $CC" >&5
2280 echo "${ECHO_T}$CC" >&6; }
2281 else
2282 { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2288 if test -z "$CC"; then
2289 if test -n "$ac_tool_prefix"; then
2290 for ac_prog in cl.exe
2292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2296 if test "${ac_cv_prog_CC+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2313 done
2314 done
2315 IFS=$as_save_IFS
2319 CC=$ac_cv_prog_CC
2320 if test -n "$CC"; then
2321 { echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6; }
2323 else
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2329 test -n "$CC" && break
2330 done
2332 if test -z "$CC"; then
2333 ac_ct_CC=$CC
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_prog", so it can be a program name with args.
2337 set dummy $ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_ac_ct_CC="$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2359 IFS=$as_save_IFS
2363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2364 if test -n "$ac_ct_CC"; then
2365 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2366 echo "${ECHO_T}$ac_ct_CC" >&6; }
2367 else
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2373 test -n "$ac_ct_CC" && break
2374 done
2376 if test "x$ac_ct_CC" = x; then
2377 CC=""
2378 else
2379 case $cross_compiling:$ac_tool_warned in
2380 yes:)
2381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2382 whose name does not start with the host triplet. If you think this
2383 configuration is useful to you, please write to autoconf@gnu.org." >&5
2384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet. If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2387 ac_tool_warned=yes ;;
2388 esac
2389 CC=$ac_ct_CC
2396 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2397 See \`config.log' for more details." >&5
2398 echo "$as_me: error: no acceptable C compiler found in \$PATH
2399 See \`config.log' for more details." >&2;}
2400 { (exit 1); exit 1; }; }
2402 # Provide some information about the compiler.
2403 echo "$as_me:$LINENO: checking for C compiler version" >&5
2404 ac_compiler=`set X $ac_compile; echo $2`
2405 { (ac_try="$ac_compiler --version >&5"
2406 case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_compiler --version >&5") 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }
2415 { (ac_try="$ac_compiler -v >&5"
2416 case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419 esac
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_compiler -v >&5") 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }
2425 { (ac_try="$ac_compiler -V >&5"
2426 case "(($ac_try" in
2427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2428 *) ac_try_echo=$ac_try;;
2429 esac
2430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2431 (eval "$ac_compiler -V >&5") 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }
2436 cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h. */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2444 main ()
2448 return 0;
2450 _ACEOF
2451 ac_clean_files_save=$ac_clean_files
2452 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2453 # Try to create an executable without -o first, disregard a.out.
2454 # It will help us diagnose broken compilers, and finding out an intuition
2455 # of exeext.
2456 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2457 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2458 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2460 # List of possible output files, starting from the most likely.
2461 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2462 # only as a last resort. b.out is created by i960 compilers.
2463 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2465 # The IRIX 6 linker writes into existing files which may not be
2466 # executable, retaining their permissions. Remove them first so a
2467 # subsequent execution test works.
2468 ac_rmfiles=
2469 for ac_file in $ac_files
2471 case $ac_file in
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2474 esac
2475 done
2476 rm -f $ac_rmfiles
2478 if { (ac_try="$ac_link_default"
2479 case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_link_default") 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; then
2488 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2489 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2490 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2491 # so that the user can short-circuit this test for compilers unknown to
2492 # Autoconf.
2493 for ac_file in $ac_files ''
2495 test -f "$ac_file" || continue
2496 case $ac_file in
2497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2499 [ab].out )
2500 # We found the default executable, but exeext='' is most
2501 # certainly right.
2502 break;;
2503 *.* )
2504 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2505 then :; else
2506 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508 # We set ac_cv_exeext here because the later test for it is not
2509 # safe: cross compilers may not add the suffix if given an `-o'
2510 # argument, so we may need to know it at that point already.
2511 # Even if this section looks crufty: it has the advantage of
2512 # actually working.
2513 break;;
2515 break;;
2516 esac
2517 done
2518 test "$ac_cv_exeext" = no && ac_cv_exeext=
2520 else
2521 ac_file=''
2524 { echo "$as_me:$LINENO: result: $ac_file" >&5
2525 echo "${ECHO_T}$ac_file" >&6; }
2526 if test -z "$ac_file"; then
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: C compiler cannot create executables
2533 See \`config.log' for more details." >&2;}
2534 { (exit 77); exit 77; }; }
2537 ac_exeext=$ac_cv_exeext
2539 # Check that the compiler produces executables we can run. If not, either
2540 # the compiler is broken, or we cross compile.
2541 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2542 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2543 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2544 # If not cross compiling, check that we can run a simple program.
2545 if test "$cross_compiling" != yes; then
2546 if { ac_try='./$ac_file'
2547 { (case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_try") 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 cross_compiling=no
2557 else
2558 if test "$cross_compiling" = maybe; then
2559 cross_compiling=yes
2560 else
2561 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2562 If you meant to cross compile, use \`--host'.
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: cannot run C compiled programs.
2565 If you meant to cross compile, use \`--host'.
2566 See \`config.log' for more details." >&2;}
2567 { (exit 1); exit 1; }; }
2571 { echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6; }
2574 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2575 ac_clean_files=$ac_clean_files_save
2576 # Check that the compiler produces executables we can run. If not, either
2577 # the compiler is broken, or we cross compile.
2578 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2579 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2580 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2581 echo "${ECHO_T}$cross_compiling" >&6; }
2583 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2584 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2585 if { (ac_try="$ac_link"
2586 case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_link") 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; then
2595 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2596 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2597 # work properly (i.e., refer to `conftest.exe'), while it won't with
2598 # `rm'.
2599 for ac_file in conftest.exe conftest conftest.*; do
2600 test -f "$ac_file" || continue
2601 case $ac_file in
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 break;;
2605 * ) break;;
2606 esac
2607 done
2608 else
2609 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }
2616 rm -f conftest$ac_cv_exeext
2617 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2618 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2620 rm -f conftest.$ac_ext
2621 EXEEXT=$ac_cv_exeext
2622 ac_exeext=$EXEEXT
2623 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2624 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2625 if test "${ac_cv_objext+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h. */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2636 main ()
2640 return 0;
2642 _ACEOF
2643 rm -f conftest.o conftest.obj
2644 if { (ac_try="$ac_compile"
2645 case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648 esac
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compile") 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; then
2654 for ac_file in conftest.o conftest.obj conftest.*; do
2655 test -f "$ac_file" || continue;
2656 case $ac_file in
2657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2658 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2659 break;;
2660 esac
2661 done
2662 else
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2666 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2669 See \`config.log' for more details." >&2;}
2670 { (exit 1); exit 1; }; }
2673 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2675 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2676 echo "${ECHO_T}$ac_cv_objext" >&6; }
2677 OBJEXT=$ac_cv_objext
2678 ac_objext=$OBJEXT
2679 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2680 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2681 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2692 main ()
2694 #ifndef __GNUC__
2695 choke me
2696 #endif
2699 return 0;
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2704 case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707 esac
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compile") 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } && {
2716 test -z "$ac_c_werror_flag" ||
2717 test ! -s conftest.err
2718 } && test -s conftest.$ac_objext; then
2719 ac_compiler_gnu=yes
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2724 ac_compiler_gnu=no
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2731 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2732 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2733 GCC=`test $ac_compiler_gnu = yes && echo yes`
2734 ac_test_CFLAGS=${CFLAGS+set}
2735 ac_save_CFLAGS=$CFLAGS
2736 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2737 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2738 if test "${ac_cv_prog_cc_g+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741 ac_save_c_werror_flag=$ac_c_werror_flag
2742 ac_c_werror_flag=yes
2743 ac_cv_prog_cc_g=no
2744 CFLAGS="-g"
2745 cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h. */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2753 main ()
2757 return 0;
2759 _ACEOF
2760 rm -f conftest.$ac_objext
2761 if { (ac_try="$ac_compile"
2762 case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compile") 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } && {
2774 test -z "$ac_c_werror_flag" ||
2775 test ! -s conftest.err
2776 } && test -s conftest.$ac_objext; then
2777 ac_cv_prog_cc_g=yes
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2782 CFLAGS=""
2783 cat >conftest.$ac_ext <<_ACEOF
2784 /* confdefs.h. */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2791 main ()
2795 return 0;
2797 _ACEOF
2798 rm -f conftest.$ac_objext
2799 if { (ac_try="$ac_compile"
2800 case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803 esac
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_compile") 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } && {
2812 test -z "$ac_c_werror_flag" ||
2813 test ! -s conftest.err
2814 } && test -s conftest.$ac_objext; then
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 ac_c_werror_flag=$ac_save_c_werror_flag
2821 CFLAGS="-g"
2822 cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h. */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2830 main ()
2834 return 0;
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (ac_try="$ac_compile"
2839 case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compile") 2>conftest.er1
2845 ac_status=$?
2846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } && {
2851 test -z "$ac_c_werror_flag" ||
2852 test ! -s conftest.err
2853 } && test -s conftest.$ac_objext; then
2854 ac_cv_prog_cc_g=yes
2855 else
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 ac_c_werror_flag=$ac_save_c_werror_flag
2871 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2873 if test "$ac_test_CFLAGS" = set; then
2874 CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876 if test "$GCC" = yes; then
2877 CFLAGS="-g -O2"
2878 else
2879 CFLAGS="-g"
2881 else
2882 if test "$GCC" = yes; then
2883 CFLAGS="-O2"
2884 else
2885 CFLAGS=
2888 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2889 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2890 if test "${ac_cv_prog_cc_c89+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 ac_cv_prog_cc_c89=no
2894 ac_save_CC=$CC
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 #include <stdarg.h>
2902 #include <stdio.h>
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2909 char **p;
2910 int i;
2912 return p[i];
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2916 char *s;
2917 va_list v;
2918 va_start (v,p);
2919 s = g (p, va_arg (v,int));
2920 va_end (v);
2921 return s;
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2925 function prototypes and stuff, but not '\xHH' hex character constants.
2926 These don't provoke an error unfortunately, instead are silently treated
2927 as 'x'. The following induces an error, until -std is added to get
2928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2929 array size at least. It's necessary to write '\x00'==0 to get something
2930 that's true only with -std. */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2933 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2934 inside strings and character constants. */
2935 #define FOO(x) 'x'
2936 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2938 int test (int i, double x);
2939 struct s1 {int (*f) (int a);};
2940 struct s2 {int (*f) (double a);};
2941 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2942 int argc;
2943 char **argv;
2945 main ()
2947 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2949 return 0;
2951 _ACEOF
2952 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2953 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955 CC="$ac_save_CC $ac_arg"
2956 rm -f conftest.$ac_objext
2957 if { (ac_try="$ac_compile"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } && {
2970 test -z "$ac_c_werror_flag" ||
2971 test ! -s conftest.err
2972 } && test -s conftest.$ac_objext; then
2973 ac_cv_prog_cc_c89=$ac_arg
2974 else
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2981 rm -f core conftest.err conftest.$ac_objext
2982 test "x$ac_cv_prog_cc_c89" != "xno" && break
2983 done
2984 rm -f conftest.$ac_ext
2985 CC=$ac_save_CC
2988 # AC_CACHE_VAL
2989 case "x$ac_cv_prog_cc_c89" in
2991 { echo "$as_me:$LINENO: result: none needed" >&5
2992 echo "${ECHO_T}none needed" >&6; } ;;
2993 xno)
2994 { echo "$as_me:$LINENO: result: unsupported" >&5
2995 echo "${ECHO_T}unsupported" >&6; } ;;
2997 CC="$CC $ac_cv_prog_cc_c89"
2998 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2999 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3000 esac
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 case $ac_cv_prog_cc_stdc in
3010 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3011 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3012 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cc_c99+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 ac_cv_prog_cc_c99=no
3017 ac_save_CC=$CC
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024 #include <stdarg.h>
3025 #include <stdbool.h>
3026 #include <stdlib.h>
3027 #include <wchar.h>
3028 #include <stdio.h>
3030 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3031 #define debug(...) fprintf (stderr, __VA_ARGS__)
3032 #define showlist(...) puts (#__VA_ARGS__)
3033 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3034 static void
3035 test_varargs_macros (void)
3037 int x = 1234;
3038 int y = 5678;
3039 debug ("Flag");
3040 debug ("X = %d\n", x);
3041 showlist (The first, second, and third items.);
3042 report (x>y, "x is %d but y is %d", x, y);
3045 // Check long long types.
3046 #define BIG64 18446744073709551615ull
3047 #define BIG32 4294967295ul
3048 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3049 #if !BIG_OK
3050 your preprocessor is broken;
3051 #endif
3052 #if BIG_OK
3053 #else
3054 your preprocessor is broken;
3055 #endif
3056 static long long int bignum = -9223372036854775807LL;
3057 static unsigned long long int ubignum = BIG64;
3059 struct incomplete_array
3061 int datasize;
3062 double data[];
3065 struct named_init {
3066 int number;
3067 const wchar_t *name;
3068 double average;
3071 typedef const char *ccp;
3073 static inline int
3074 test_restrict (ccp restrict text)
3076 // See if C++-style comments work.
3077 // Iterate through items via the restricted pointer.
3078 // Also check for declarations in for loops.
3079 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3080 continue;
3081 return 0;
3084 // Check varargs and va_copy.
3085 static void
3086 test_varargs (const char *format, ...)
3088 va_list args;
3089 va_start (args, format);
3090 va_list args_copy;
3091 va_copy (args_copy, args);
3093 const char *str;
3094 int number;
3095 float fnumber;
3097 while (*format)
3099 switch (*format++)
3101 case 's': // string
3102 str = va_arg (args_copy, const char *);
3103 break;
3104 case 'd': // int
3105 number = va_arg (args_copy, int);
3106 break;
3107 case 'f': // float
3108 fnumber = va_arg (args_copy, double);
3109 break;
3110 default:
3111 break;
3114 va_end (args_copy);
3115 va_end (args);
3119 main ()
3122 // Check bool.
3123 _Bool success = false;
3125 // Check restrict.
3126 if (test_restrict ("String literal") == 0)
3127 success = true;
3128 char *restrict newvar = "Another string";
3130 // Check varargs.
3131 test_varargs ("s, d' f .", "string", 65, 34.234);
3132 test_varargs_macros ();
3134 // Check flexible array members.
3135 struct incomplete_array *ia =
3136 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3137 ia->datasize = 10;
3138 for (int i = 0; i < ia->datasize; ++i)
3139 ia->data[i] = i * 1.234;
3141 // Check named initializers.
3142 struct named_init ni = {
3143 .number = 34,
3144 .name = L"Test wide string",
3145 .average = 543.34343,
3148 ni.number = 58;
3150 int dynamic_array[ni.number];
3151 dynamic_array[ni.number - 1] = 543;
3153 // work around unused variable warnings
3154 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3155 || dynamic_array[ni.number - 1] != 543);
3158 return 0;
3160 _ACEOF
3161 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3163 CC="$ac_save_CC $ac_arg"
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_cv_prog_cc_c99=$ac_arg
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3189 rm -f core conftest.err conftest.$ac_objext
3190 test "x$ac_cv_prog_cc_c99" != "xno" && break
3191 done
3192 rm -f conftest.$ac_ext
3193 CC=$ac_save_CC
3196 # AC_CACHE_VAL
3197 case "x$ac_cv_prog_cc_c99" in
3199 { echo "$as_me:$LINENO: result: none needed" >&5
3200 echo "${ECHO_T}none needed" >&6; } ;;
3201 xno)
3202 { echo "$as_me:$LINENO: result: unsupported" >&5
3203 echo "${ECHO_T}unsupported" >&6; } ;;
3205 CC="$CC $ac_cv_prog_cc_c99"
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3208 esac
3209 if test "x$ac_cv_prog_cc_c99" != xno; then
3210 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3211 else
3212 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3213 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3214 if test "${ac_cv_prog_cc_c89+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217 ac_cv_prog_cc_c89=no
3218 ac_save_CC=$CC
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 #include <stdarg.h>
3226 #include <stdio.h>
3227 #include <sys/types.h>
3228 #include <sys/stat.h>
3229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3230 struct buf { int x; };
3231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3232 static char *e (p, i)
3233 char **p;
3234 int i;
3236 return p[i];
3238 static char *f (char * (*g) (char **, int), char **p, ...)
3240 char *s;
3241 va_list v;
3242 va_start (v,p);
3243 s = g (p, va_arg (v,int));
3244 va_end (v);
3245 return s;
3248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3249 function prototypes and stuff, but not '\xHH' hex character constants.
3250 These don't provoke an error unfortunately, instead are silently treated
3251 as 'x'. The following induces an error, until -std is added to get
3252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3253 array size at least. It's necessary to write '\x00'==0 to get something
3254 that's true only with -std. */
3255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3258 inside strings and character constants. */
3259 #define FOO(x) 'x'
3260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3262 int test (int i, double x);
3263 struct s1 {int (*f) (int a);};
3264 struct s2 {int (*f) (double a);};
3265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3266 int argc;
3267 char **argv;
3269 main ()
3271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3273 return 0;
3275 _ACEOF
3276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3279 CC="$ac_save_CC $ac_arg"
3280 rm -f conftest.$ac_objext
3281 if { (ac_try="$ac_compile"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_compile") 2>conftest.er1
3288 ac_status=$?
3289 grep -v '^ *+' conftest.er1 >conftest.err
3290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } && {
3294 test -z "$ac_c_werror_flag" ||
3295 test ! -s conftest.err
3296 } && test -s conftest.$ac_objext; then
3297 ac_cv_prog_cc_c89=$ac_arg
3298 else
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3305 rm -f core conftest.err conftest.$ac_objext
3306 test "x$ac_cv_prog_cc_c89" != "xno" && break
3307 done
3308 rm -f conftest.$ac_ext
3309 CC=$ac_save_CC
3312 # AC_CACHE_VAL
3313 case "x$ac_cv_prog_cc_c89" in
3315 { echo "$as_me:$LINENO: result: none needed" >&5
3316 echo "${ECHO_T}none needed" >&6; } ;;
3317 xno)
3318 { echo "$as_me:$LINENO: result: unsupported" >&5
3319 echo "${ECHO_T}unsupported" >&6; } ;;
3321 CC="$CC $ac_cv_prog_cc_c89"
3322 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3323 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3324 esac
3325 if test "x$ac_cv_prog_cc_c89" != xno; then
3326 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3327 else
3328 ac_cv_prog_cc_stdc=no
3335 esac
3336 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3337 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3338 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 case $ac_cv_prog_cc_stdc in
3343 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3344 echo "${ECHO_T}unsupported" >&6; } ;;
3345 '') { echo "$as_me:$LINENO: result: none needed" >&5
3346 echo "${ECHO_T}none needed" >&6; } ;;
3347 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3348 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3349 esac
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3359 # On Suns, sometimes $CPP names a directory.
3360 if test -n "$CPP" && test -d "$CPP"; then
3361 CPP=
3363 if test -z "$CPP"; then
3364 if test "${ac_cv_prog_CPP+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 # Double quotes because CPP needs to be expanded
3368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370 ac_preproc_ok=false
3371 for ac_c_preproc_warn_flag in '' yes
3373 # Use a header file that comes with gcc, so configuring glibc
3374 # with a fresh cross-compiler works.
3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376 # <limits.h> exists even on freestanding compilers.
3377 # On the NeXT, cc -E runs the code through the compiler's parser,
3378 # not just through cpp. "Syntax error" is here to catch this case.
3379 cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h. */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3385 #ifdef __STDC__
3386 # include <limits.h>
3387 #else
3388 # include <assert.h>
3389 #endif
3390 Syntax error
3391 _ACEOF
3392 if { (ac_try="$ac_cpp conftest.$ac_ext"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null && {
3405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 }; then
3409 else
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3413 # Broken: fails on valid input.
3414 continue
3417 rm -f conftest.err conftest.$ac_ext
3419 # OK, works on sane cases. Now check whether nonexistent headers
3420 # can be detected and how.
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 #include <ac_nonexistent.h>
3428 _ACEOF
3429 if { (ac_try="$ac_cpp conftest.$ac_ext"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null && {
3442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 }; then
3445 # Broken: success on invalid input.
3446 continue
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 # Passes both tests.
3452 ac_preproc_ok=:
3453 break
3456 rm -f conftest.err conftest.$ac_ext
3458 done
3459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3460 rm -f conftest.err conftest.$ac_ext
3461 if $ac_preproc_ok; then
3462 break
3465 done
3466 ac_cv_prog_CPP=$CPP
3469 CPP=$ac_cv_prog_CPP
3470 else
3471 ac_cv_prog_CPP=$CPP
3473 { echo "$as_me:$LINENO: result: $CPP" >&5
3474 echo "${ECHO_T}$CPP" >&6; }
3475 ac_preproc_ok=false
3476 for ac_c_preproc_warn_flag in '' yes
3478 # Use a header file that comes with gcc, so configuring glibc
3479 # with a fresh cross-compiler works.
3480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3481 # <limits.h> exists even on freestanding compilers.
3482 # On the NeXT, cc -E runs the code through the compiler's parser,
3483 # not just through cpp. "Syntax error" is here to catch this case.
3484 cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h. */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #ifdef __STDC__
3491 # include <limits.h>
3492 #else
3493 # include <assert.h>
3494 #endif
3495 Syntax error
3496 _ACEOF
3497 if { (ac_try="$ac_cpp conftest.$ac_ext"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev/null && {
3510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3512 }; then
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 # Broken: fails on valid input.
3519 continue
3522 rm -f conftest.err conftest.$ac_ext
3524 # OK, works on sane cases. Now check whether nonexistent headers
3525 # can be detected and how.
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532 #include <ac_nonexistent.h>
3533 _ACEOF
3534 if { (ac_try="$ac_cpp conftest.$ac_ext"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } >/dev/null && {
3547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3548 test ! -s conftest.err
3549 }; then
3550 # Broken: success on invalid input.
3551 continue
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 # Passes both tests.
3557 ac_preproc_ok=:
3558 break
3561 rm -f conftest.err conftest.$ac_ext
3563 done
3564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3565 rm -f conftest.err conftest.$ac_ext
3566 if $ac_preproc_ok; then
3568 else
3569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3570 See \`config.log' for more details." >&5
3571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3572 See \`config.log' for more details." >&2;}
3573 { (exit 1); exit 1; }; }
3576 ac_ext=c
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583 # Check for a compatible awk
3584 for ac_prog in gawk nawk
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy $ac_prog; ac_word=$2
3588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3590 if test "${ac_cv_prog_AWK+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593 if test -n "$AWK"; then
3594 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_AWK="$ac_prog"
3604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3607 done
3608 done
3609 IFS=$as_save_IFS
3613 AWK=$ac_cv_prog_AWK
3614 if test -n "$AWK"; then
3615 { echo "$as_me:$LINENO: result: $AWK" >&5
3616 echo "${ECHO_T}$AWK" >&6; }
3617 else
3618 { echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6; }
3623 test -n "$AWK" && break
3624 done
3626 if test "$AWK" = ""; then
3627 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3628 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3629 { (exit 1); exit 1; }; }
3631 # Extract the first word of "mmake", so it can be a program name with args.
3632 set dummy mmake; ac_word=$2
3633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3635 if test "${ac_cv_prog_MMAKE+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638 if test -n "$MMAKE"; then
3639 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_MMAKE="mmake "
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3652 done
3653 done
3654 IFS=$as_save_IFS
3658 MMAKE=$ac_cv_prog_MMAKE
3659 if test -n "$MMAKE"; then
3660 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3661 echo "${ECHO_T}$MMAKE" >&6; }
3662 else
3663 { echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6; }
3669 # Perform some default variable assignments. Note all of these will be
3670 # Regenerated from the script, so there is no need to cache them.
3672 aros_host_cc="$CC"
3673 if test "$GCC" = "yes"; then
3674 aros_gcc_ld=`$CC -print-prog-name=ld`
3675 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3676 set dummy `basename $aros_gcc_ld`; ac_word=$2
3677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3679 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 case $aros_host_ld in
3683 [\\/]* | ?:[\\/]*)
3684 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in `dirname $aros_gcc_ld`
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3698 done
3699 done
3700 IFS=$as_save_IFS
3703 esac
3705 aros_host_ld=$ac_cv_path_aros_host_ld
3706 if test -n "$aros_host_ld"; then
3707 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3708 echo "${ECHO_T}$aros_host_ld" >&6; }
3709 else
3710 { echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6; }
3716 if test "$aros_host_ld" = ""; then
3717 # Extract the first word of "ld", so it can be a program name with args.
3718 set dummy ld; ac_word=$2
3719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3721 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 case $aros_host_ld in
3725 [\\/]* | ?:[\\/]*)
3726 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3742 IFS=$as_save_IFS
3745 esac
3747 aros_host_ld=$ac_cv_path_aros_host_ld
3748 if test -n "$aros_host_ld"; then
3749 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3750 echo "${ECHO_T}$aros_host_ld" >&6; }
3751 else
3752 { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3758 if test "$aros_host_ld" = ""; then
3759 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3760 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3761 { (exit 1); exit 1; }; }
3763 aros_host_make="make"
3764 aros_host_cflags=$CFLAGS
3765 aros_host_ldflags=$LDFLAGS
3766 aros_host_debug="-g -O0"
3767 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3768 aros_host_mkargs="--no-print-directory"
3769 aros_host_incl="/usr/include"
3770 aros_host_exe_suffix="$EXEEXT"
3771 aros_host_lib_suffix=""
3773 for ac_prog in aclocal aclocal19 aclocal-1.9
3775 # Extract the first word of "$ac_prog", so it can be a program name with args.
3776 set dummy $ac_prog; ac_word=$2
3777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3779 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 if test -n "$aros_host_aclocal"; then
3783 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3792 ac_cv_prog_aros_host_aclocal="$ac_prog"
3793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3796 done
3797 done
3798 IFS=$as_save_IFS
3802 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3803 if test -n "$aros_host_aclocal"; then
3804 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3805 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3806 else
3807 { echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6; }
3812 test -n "$aros_host_aclocal" && break
3813 done
3815 for ac_prog in autoconf autoconf259 autoconf253
3817 # Extract the first word of "$ac_prog", so it can be a program name with args.
3818 set dummy $ac_prog; ac_word=$2
3819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3821 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 if test -n "$aros_host_autoconf"; then
3825 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834 ac_cv_prog_aros_host_autoconf="$ac_prog"
3835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3838 done
3839 done
3840 IFS=$as_save_IFS
3844 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3845 if test -n "$aros_host_autoconf"; then
3846 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3847 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3848 else
3849 { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3854 test -n "$aros_host_autoconf" && break
3855 done
3857 for ac_prog in autoheader autoheader259 autoheader253
3859 # Extract the first word of "$ac_prog", so it can be a program name with args.
3860 set dummy $ac_prog; ac_word=$2
3861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3863 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 if test -n "$aros_host_autoheader"; then
3867 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876 ac_cv_prog_aros_host_autoheader="$ac_prog"
3877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3880 done
3881 done
3882 IFS=$as_save_IFS
3886 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3887 if test -n "$aros_host_autoheader"; then
3888 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3889 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3890 else
3891 { echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6; }
3896 test -n "$aros_host_autoheader" && break
3897 done
3899 for ac_prog in automake automake19 automake-1.9
3901 # Extract the first word of "$ac_prog", so it can be a program name with args.
3902 set dummy $ac_prog; ac_word=$2
3903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3905 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 if test -n "$aros_host_automake"; then
3909 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_aros_host_automake="$ac_prog"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3922 done
3923 done
3924 IFS=$as_save_IFS
3928 aros_host_automake=$ac_cv_prog_aros_host_automake
3929 if test -n "$aros_host_automake"; then
3930 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3931 echo "${ECHO_T}$aros_host_automake" >&6; }
3932 else
3933 { echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6; }
3938 test -n "$aros_host_automake" && break
3939 done
3942 if test "$aros_host_aclocal" = ""; then
3943 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3944 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3945 { (exit 1); exit 1; }; }
3947 if test "$aros_host_automake" = ""; then
3948 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3949 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3950 { (exit 1); exit 1; }; }
3953 case "$aros_host_cc" in
3954 *gcc*)
3955 aros_host_cc_pipe="-pipe"
3957 icc)
3958 aros_host_cc_pipe=""
3961 aros_host_cc_pipe=""
3963 esac
3965 aros_kernel_cc_includes=""
3966 aros_target_cc_includes=""
3968 # This is the main host configuration section. It is where the host
3969 # can change the values of any variables it needs to change. We do
3970 # not look at anything that compiles to the target yet, we'll get
3971 # to that later.
3973 case "$host_os" in
3974 aros*)
3975 aros_host_arch="aros"
3976 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3977 case "$host_cpu" in
3978 *i?86*)
3979 aros_host_cpu="i386"
3981 *x86_64*)
3982 aros_host_cpu="x86_64"
3984 *powerpc*)
3985 aros_host_cpu="ppc"
3988 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3989 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3990 aros_host_cpu="$host_cpu"
3992 esac
3995 linux*)
3996 aros_host_arch="linux"
3997 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3998 case "$host_cpu" in
3999 *i?86*)
4000 aros_host_cpu="i386"
4002 *x86_64*)
4003 aros_host_cpu="x86_64"
4005 *m68k*)
4006 aros_host_cpu="m68k"
4008 *powerpc*)
4009 aros_host_cpu="ppc"
4011 *arm*)
4012 aros_host_cpu="arm"
4015 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4016 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4017 aros_host_cpu="$host_cpu"
4019 esac
4022 freebsd*)
4023 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4024 aros_host_make="gmake"
4025 aros_host_arch="freebsd"
4026 aros_host_cpu="i386"
4028 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4030 case $host_os in
4031 freebsd[234]*)
4032 aros_object_format="elf_i386"
4036 aros_object_format="elf_i386_fbsd"
4038 esac
4042 darwin*)
4043 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4044 aros_host_arch="darwin"
4045 case "$host_cpu" in
4046 *i?86*)
4047 aros_host_cpu="i386"
4049 *x86_64*)
4050 aros_host_cpu="x86_64"
4052 *powerpc*)
4053 aros_host_cpu="ppc"
4056 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4057 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4058 aros_host_cpu="$host_cpu"
4060 esac
4062 aros_host_ldflags="$aros_host_ldflags -liconv"
4066 dragonfly*)
4067 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4068 aros_host_make="gmake"
4069 aros_host_arch="dragonfly"
4070 case $host_cpu in
4071 *i?86*)
4072 aros_host_cpu="i386"
4074 *amd64*)
4075 aros_host_cpu="x86_64"
4078 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4079 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4080 aros_host_cpu="$host_cpu"
4082 esac
4085 netbsd*)
4086 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4087 aros_host_make="gmake"
4088 aros_host_arch="netbsd"
4089 case "$host_cpu" in
4090 *i?86*)
4091 aros_host_cpu="i386"
4093 *m68k*)
4094 aros_host_cpu="m68k"
4097 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4098 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4099 aros_host_cpu="$host_cpu"
4101 esac
4102 aros_host_lib_suffix=".0.0"
4105 openbsd*)
4106 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4107 aros_host_make="gmake"
4108 aros_host_arch="openbsd"
4109 case "$host_cpu" in
4110 *i?86*)
4111 aros_host_cpu="i386"
4114 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4115 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4116 aros_host_cpu="$host_cpu"
4118 esac
4121 solaris*)
4122 aros_host_arch="solaris"
4123 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4124 case "$host_cpu" in
4125 *i?86*)
4126 aros_host_cpu="i386"
4128 *sparc*)
4129 aros_host_cpu="sparc"
4132 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4133 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4134 aros_host_cpu="$host_cpu"
4136 esac
4139 morphos*)
4140 aros_host_arch="morphos"
4141 aros_host_cpu="ppc"
4144 amiga*)
4145 aros_host_arch="amiga"
4146 SORT="/gg/bin/sort"
4147 TEST="/gg/bin/test"
4148 UNIQ="/gg/bin/uniq"
4149 FOR="for"
4150 TOUCH="/gg/bin/touch"
4151 case "$host_cpu" in
4152 *m68k*)
4153 aros_host_cpu="m68k"
4155 *powerpc*)
4156 aros_host_cpu="ppc"
4159 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4160 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4161 aros_host_cpu="$host_cpu"
4163 esac
4166 cygwin*)
4167 aros_host_arch="cygwin"
4168 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4169 case "$host_cpu" in
4170 *i?86*)
4171 aros_host_cpu="i386"
4174 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4175 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4176 aros_host_cpu="$host_cpu"
4178 esac
4181 mingw32*)
4182 aros_host_arch="mingw32"
4183 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4184 case "$host_cpu" in
4185 *i?86*)
4186 aros_host_cpu="i386"
4189 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4190 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4191 aros_host_cpu="$host_cpu"
4193 esac
4196 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4197 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4198 { (exit 1); exit 1; }; }
4200 esac
4202 # Extract the first word of "ar", so it can be a program name with args.
4203 set dummy ar; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 if test -n "$aros_host_ar"; then
4210 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_aros_host_ar="ar cr"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 aros_host_ar=$ac_cv_prog_aros_host_ar
4230 if test -n "$aros_host_ar"; then
4231 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4232 echo "${ECHO_T}$aros_host_ar" >&6; }
4233 else
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4239 if test "$aros_host_ar" = ""; then
4240 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4241 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4242 { (exit 1); exit 1; }; }
4244 # Extract the first word of "ranlib", so it can be a program name with args.
4245 set dummy ranlib; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 if test -n "$aros_host_ranlib"; then
4252 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_aros_host_ranlib="ranlib "
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4267 IFS=$as_save_IFS
4271 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4272 if test -n "$aros_host_ranlib"; then
4273 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4274 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4275 else
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4281 if test "$aros_host_ranlib" = ""; then
4282 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4283 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4284 { (exit 1); exit 1; }; }
4286 # Extract the first word of "strip", so it can be a program name with args.
4287 set dummy strip; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 if test -n "$aros_host_strip"; then
4294 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_aros_host_strip="strip "
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4307 done
4308 done
4309 IFS=$as_save_IFS
4313 aros_host_strip=$ac_cv_prog_aros_host_strip
4314 if test -n "$aros_host_strip"; then
4315 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4316 echo "${ECHO_T}$aros_host_strip" >&6; }
4317 else
4318 { echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6; }
4323 if test "$aros_host_strip" = ""; then
4324 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4325 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4326 { (exit 1); exit 1; }; }
4329 # Extract the first word of "rm", so it can be a program name with args.
4330 set dummy rm; ac_word=$2
4331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4333 if test "${ac_cv_prog_RM+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336 if test -n "$RM"; then
4337 ac_cv_prog_RM="$RM" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_RM="rm -rf"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4356 RM=$ac_cv_prog_RM
4357 if test -n "$RM"; then
4358 { echo "$as_me:$LINENO: result: $RM" >&5
4359 echo "${ECHO_T}$RM" >&6; }
4360 else
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4366 if test "$RM" = ""; then
4367 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4368 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4369 { (exit 1); exit 1; }; }
4371 # Extract the first word of "cp", so it can be a program name with args.
4372 set dummy cp; ac_word=$2
4373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4375 if test "${ac_cv_prog_CP+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378 if test -n "$CP"; then
4379 ac_cv_prog_CP="$CP" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_prog_CP="cp "
4389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4392 done
4393 done
4394 IFS=$as_save_IFS
4398 CP=$ac_cv_prog_CP
4399 if test -n "$CP"; then
4400 { echo "$as_me:$LINENO: result: $CP" >&5
4401 echo "${ECHO_T}$CP" >&6; }
4402 else
4403 { echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6; }
4408 if test "$CP" = ""; then
4409 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4410 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4411 { (exit 1); exit 1; }; }
4413 # Extract the first word of "mv", so it can be a program name with args.
4414 set dummy mv; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_MV+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 if test -n "$MV"; then
4421 ac_cv_prog_MV="$MV" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_MV="mv "
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4434 done
4435 done
4436 IFS=$as_save_IFS
4440 MV=$ac_cv_prog_MV
4441 if test -n "$MV"; then
4442 { echo "$as_me:$LINENO: result: $MV" >&5
4443 echo "${ECHO_T}$MV" >&6; }
4444 else
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4450 if test "$MV" = ""; then
4451 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4452 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4453 { (exit 1); exit 1; }; }
4455 # Extract the first word of "echo", so it can be a program name with args.
4456 set dummy echo; ac_word=$2
4457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4459 if test "${ac_cv_prog_ECHO+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 if test -n "$ECHO"; then
4463 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_ECHO="echo "
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4476 done
4477 done
4478 IFS=$as_save_IFS
4482 ECHO=$ac_cv_prog_ECHO
4483 if test -n "$ECHO"; then
4484 { echo "$as_me:$LINENO: result: $ECHO" >&5
4485 echo "${ECHO_T}$ECHO" >&6; }
4486 else
4487 { echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6; }
4492 if test "$ECHO" = ""; then
4493 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4494 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4495 { (exit 1); exit 1; }; }
4497 # Extract the first word of "mkdir", so it can be a program name with args.
4498 set dummy mkdir; ac_word=$2
4499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501 if test "${ac_cv_prog_MKDIR+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 if test -n "$MKDIR"; then
4505 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_prog_MKDIR="mkdir -p"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4518 done
4519 done
4520 IFS=$as_save_IFS
4524 MKDIR=$ac_cv_prog_MKDIR
4525 if test -n "$MKDIR"; then
4526 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4527 echo "${ECHO_T}$MKDIR" >&6; }
4528 else
4529 { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4534 if test "$MKDIR" = ""; then
4535 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4536 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4537 { (exit 1); exit 1; }; }
4539 # Extract the first word of "touch", so it can be a program name with args.
4540 set dummy touch; ac_word=$2
4541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543 if test "${ac_cv_prog_TOUCH+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 if test -n "$TOUCH"; then
4547 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_TOUCH="touch "
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4560 done
4561 done
4562 IFS=$as_save_IFS
4566 TOUCH=$ac_cv_prog_TOUCH
4567 if test -n "$TOUCH"; then
4568 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4569 echo "${ECHO_T}$TOUCH" >&6; }
4570 else
4571 { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4576 if test "$TOUCH" = ""; then
4577 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4578 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4579 { (exit 1); exit 1; }; }
4581 # Extract the first word of "sort", so it can be a program name with args.
4582 set dummy sort; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_prog_SORT+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588 if test -n "$SORT"; then
4589 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_SORT="sort "
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4602 done
4603 done
4604 IFS=$as_save_IFS
4608 SORT=$ac_cv_prog_SORT
4609 if test -n "$SORT"; then
4610 { echo "$as_me:$LINENO: result: $SORT" >&5
4611 echo "${ECHO_T}$SORT" >&6; }
4612 else
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4618 if test "$SORT" = ""; then
4619 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4620 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4621 { (exit 1); exit 1; }; }
4623 # Extract the first word of "uniq", so it can be a program name with args.
4624 set dummy uniq; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_prog_UNIQ+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 if test -n "$UNIQ"; then
4631 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_UNIQ="uniq "
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4644 done
4645 done
4646 IFS=$as_save_IFS
4650 UNIQ=$ac_cv_prog_UNIQ
4651 if test -n "$UNIQ"; then
4652 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4653 echo "${ECHO_T}$UNIQ" >&6; }
4654 else
4655 { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4660 if test "$UNIQ" = ""; then
4661 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4662 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4663 { (exit 1); exit 1; }; }
4665 # Extract the first word of "true", so it can be a program name with args.
4666 set dummy true; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_prog_NOP+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672 if test -n "$NOP"; then
4673 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_NOP="true "
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4686 done
4687 done
4688 IFS=$as_save_IFS
4692 NOP=$ac_cv_prog_NOP
4693 if test -n "$NOP"; then
4694 { echo "$as_me:$LINENO: result: $NOP" >&5
4695 echo "${ECHO_T}$NOP" >&6; }
4696 else
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4702 if test "$NOP" = ""; then
4703 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4704 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4705 { (exit 1); exit 1; }; }
4707 # Extract the first word of "cat", so it can be a program name with args.
4708 set dummy cat; ac_word=$2
4709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4711 if test "${ac_cv_prog_CAT+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714 if test -n "$CAT"; then
4715 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_CAT="cat "
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4728 done
4729 done
4730 IFS=$as_save_IFS
4734 CAT=$ac_cv_prog_CAT
4735 if test -n "$CAT"; then
4736 { echo "$as_me:$LINENO: result: $CAT" >&5
4737 echo "${ECHO_T}$CAT" >&6; }
4738 else
4739 { echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6; }
4744 if test "$CAT" = ""; then
4745 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4746 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4747 { (exit 1); exit 1; }; }
4749 # Extract the first word of "bison", so it can be a program name with args.
4750 set dummy bison; ac_word=$2
4751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4753 if test "${ac_cv_prog_BISON+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756 if test -n "$BISON"; then
4757 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_prog_BISON="bison "
4767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4770 done
4771 done
4772 IFS=$as_save_IFS
4776 BISON=$ac_cv_prog_BISON
4777 if test -n "$BISON"; then
4778 { echo "$as_me:$LINENO: result: $BISON" >&5
4779 echo "${ECHO_T}$BISON" >&6; }
4780 else
4781 { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4786 if test "$BISON" = ""; then
4787 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4788 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4789 { (exit 1); exit 1; }; }
4791 # Extract the first word of "flex", so it can be a program name with args.
4792 set dummy flex; ac_word=$2
4793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4795 if test "${ac_cv_prog_FLEX+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 if test -n "$FLEX"; then
4799 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_FLEX="flex "
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4814 IFS=$as_save_IFS
4818 FLEX=$ac_cv_prog_FLEX
4819 if test -n "$FLEX"; then
4820 { echo "$as_me:$LINENO: result: $FLEX" >&5
4821 echo "${ECHO_T}$FLEX" >&6; }
4822 else
4823 { echo "$as_me:$LINENO: result: no" >&5
4824 echo "${ECHO_T}no" >&6; }
4828 if test "$FLEX" = ""; then
4829 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4830 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4831 { (exit 1); exit 1; }; }
4833 # Extract the first word of "pngtopnm", so it can be a program name with args.
4834 set dummy pngtopnm; ac_word=$2
4835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4837 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 if test -n "$PNGTOPNM"; then
4841 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_PNGTOPNM="pngtopnm "
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4856 IFS=$as_save_IFS
4860 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4861 if test -n "$PNGTOPNM"; then
4862 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4863 echo "${ECHO_T}$PNGTOPNM" >&6; }
4864 else
4865 { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4870 if test "$PNGTOPNM" = ""; then
4871 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4872 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4873 { (exit 1); exit 1; }; }
4875 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4876 set dummy ppmtoilbm; ac_word=$2
4877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4879 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 if test -n "$PPMTOILBM"; then
4883 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4898 IFS=$as_save_IFS
4902 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4903 if test -n "$PPMTOILBM"; then
4904 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4905 echo "${ECHO_T}$PPMTOILBM" >&6; }
4906 else
4907 { echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6; }
4912 if test "$PPMTOILBM" = ""; then
4913 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4914 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4915 { (exit 1); exit 1; }; }
4917 # Extract the first word of "sed", so it can be a program name with args.
4918 set dummy sed; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_prog_SED+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 if test -n "$SED"; then
4925 ac_cv_prog_SED="$SED" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_prog_SED="sed "
4935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4938 done
4939 done
4940 IFS=$as_save_IFS
4944 SED=$ac_cv_prog_SED
4945 if test -n "$SED"; then
4946 { echo "$as_me:$LINENO: result: $SED" >&5
4947 echo "${ECHO_T}$SED" >&6; }
4948 else
4949 { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4954 if test "$SED" = ""; then
4955 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4956 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4957 { (exit 1); exit 1; }; }
4959 # Extract the first word of "chmod", so it can be a program name with args.
4960 set dummy chmod; ac_word=$2
4961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4963 if test "${ac_cv_prog_CHMOD+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 if test -n "$CHMOD"; then
4967 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_CHMOD="chmod "
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 CHMOD=$ac_cv_prog_CHMOD
4987 if test -n "$CHMOD"; then
4988 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4989 echo "${ECHO_T}$CHMOD" >&6; }
4990 else
4991 { echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6; }
4996 if test "$CHMOD" = ""; then
4997 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4998 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4999 { (exit 1); exit 1; }; }
5006 if test -n "$PYTHON"; then
5007 # If the user set $PYTHON, use it and don't search something else.
5008 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5009 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5010 prog="import sys, string
5011 # split strings by '.' and convert to numeric. Append some zeros
5012 # because we need at least 4 digits for the hex conversion.
5013 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5014 minverhex = 0
5015 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5016 sys.exit(sys.hexversion < minverhex)"
5017 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5018 ($PYTHON -c "$prog") >&5 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; then
5022 { echo "$as_me:$LINENO: result: yes" >&5
5023 echo "${ECHO_T}yes" >&6; }
5024 else
5025 { { echo "$as_me:$LINENO: error: too old" >&5
5026 echo "$as_me: error: too old" >&2;}
5027 { (exit 1); exit 1; }; }
5030 am_display_PYTHON=$PYTHON
5031 else
5032 # Otherwise, try each interpreter until we find one that satisfies
5033 # VERSION.
5034 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5035 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5036 if test "${am_cv_pathless_PYTHON+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5040 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
5041 test "$am_cv_pathless_PYTHON" = none && break
5042 prog="import sys, string
5043 # split strings by '.' and convert to numeric. Append some zeros
5044 # because we need at least 4 digits for the hex conversion.
5045 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5046 minverhex = 0
5047 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5048 sys.exit(sys.hexversion < minverhex)"
5049 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5050 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; then
5054 break
5057 done
5059 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5060 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5061 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5062 if test "$am_cv_pathless_PYTHON" = none; then
5063 PYTHON=:
5064 else
5065 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5066 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_PYTHON+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 case $PYTHON in
5073 [\\/]* | ?:[\\/]*)
5074 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5088 done
5089 done
5090 IFS=$as_save_IFS
5093 esac
5095 PYTHON=$ac_cv_path_PYTHON
5096 if test -n "$PYTHON"; then
5097 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5098 echo "${ECHO_T}$PYTHON" >&6; }
5099 else
5100 { echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6; }
5106 am_display_PYTHON=$am_cv_pathless_PYTHON
5110 if test "$PYTHON" = :; then
5111 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5112 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5113 { (exit 1); exit 1; }; }
5114 else
5117 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5118 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5119 if test "${am_cv_python_version+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5124 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5125 echo "${ECHO_T}$am_cv_python_version" >&6; }
5126 PYTHON_VERSION=$am_cv_python_version
5130 PYTHON_PREFIX='${prefix}'
5132 PYTHON_EXEC_PREFIX='${exec_prefix}'
5136 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5137 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5138 if test "${am_cv_python_platform+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5143 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5144 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5145 PYTHON_PLATFORM=$am_cv_python_platform
5150 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5151 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5152 if test "${am_cv_python_pythondir+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5156 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5158 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5159 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5160 pythondir=$am_cv_python_pythondir
5164 pkgpythondir=\${pythondir}/$PACKAGE
5167 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5168 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5169 if test "${am_cv_python_pyexecdir+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5173 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5175 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5176 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5177 pyexecdir=$am_cv_python_pyexecdir
5181 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5189 FOR=for
5191 IF=if
5193 TEST=test
5195 CMP=cmp
5199 # Check for some includes for the X11 HIDD and the kernel
5202 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5203 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5204 if test "${ac_cv_path_GREP+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 # Extract the first word of "grep ggrep" to use in msg output
5208 if test -z "$GREP"; then
5209 set dummy grep ggrep; ac_prog_name=$2
5210 if test "${ac_cv_path_GREP+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 ac_path_GREP_found=false
5214 # Loop through the user's path and test for each of PROGNAME-LIST
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_prog in grep ggrep; do
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5223 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5224 # Check for GNU ac_path_GREP and select it if it is found.
5225 # Check for GNU $ac_path_GREP
5226 case `"$ac_path_GREP" --version 2>&1` in
5227 *GNU*)
5228 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5230 ac_count=0
5231 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5232 while :
5234 cat "conftest.in" "conftest.in" >"conftest.tmp"
5235 mv "conftest.tmp" "conftest.in"
5236 cp "conftest.in" "conftest.nl"
5237 echo 'GREP' >> "conftest.nl"
5238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240 ac_count=`expr $ac_count + 1`
5241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5242 # Best one so far, save it but keep looking for a better one
5243 ac_cv_path_GREP="$ac_path_GREP"
5244 ac_path_GREP_max=$ac_count
5246 # 10*(2^10) chars as input seems more than enough
5247 test $ac_count -gt 10 && break
5248 done
5249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250 esac
5253 $ac_path_GREP_found && break 3
5254 done
5255 done
5257 done
5258 IFS=$as_save_IFS
5263 GREP="$ac_cv_path_GREP"
5264 if test -z "$GREP"; then
5265 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5266 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5267 { (exit 1); exit 1; }; }
5270 else
5271 ac_cv_path_GREP=$GREP
5276 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5277 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5278 GREP="$ac_cv_path_GREP"
5281 { echo "$as_me:$LINENO: checking for egrep" >&5
5282 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5283 if test "${ac_cv_path_EGREP+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5287 then ac_cv_path_EGREP="$GREP -E"
5288 else
5289 # Extract the first word of "egrep" to use in msg output
5290 if test -z "$EGREP"; then
5291 set dummy egrep; ac_prog_name=$2
5292 if test "${ac_cv_path_EGREP+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 ac_path_EGREP_found=false
5296 # Loop through the user's path and test for each of PROGNAME-LIST
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_prog in egrep; do
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5305 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5306 # Check for GNU ac_path_EGREP and select it if it is found.
5307 # Check for GNU $ac_path_EGREP
5308 case `"$ac_path_EGREP" --version 2>&1` in
5309 *GNU*)
5310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5312 ac_count=0
5313 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5314 while :
5316 cat "conftest.in" "conftest.in" >"conftest.tmp"
5317 mv "conftest.tmp" "conftest.in"
5318 cp "conftest.in" "conftest.nl"
5319 echo 'EGREP' >> "conftest.nl"
5320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5322 ac_count=`expr $ac_count + 1`
5323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5324 # Best one so far, save it but keep looking for a better one
5325 ac_cv_path_EGREP="$ac_path_EGREP"
5326 ac_path_EGREP_max=$ac_count
5328 # 10*(2^10) chars as input seems more than enough
5329 test $ac_count -gt 10 && break
5330 done
5331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5332 esac
5335 $ac_path_EGREP_found && break 3
5336 done
5337 done
5339 done
5340 IFS=$as_save_IFS
5345 EGREP="$ac_cv_path_EGREP"
5346 if test -z "$EGREP"; then
5347 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5348 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5349 { (exit 1); exit 1; }; }
5352 else
5353 ac_cv_path_EGREP=$EGREP
5359 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5360 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5361 EGREP="$ac_cv_path_EGREP"
5364 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5366 if test "${ac_cv_header_stdc+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #include <stdlib.h>
5376 #include <stdarg.h>
5377 #include <string.h>
5378 #include <float.h>
5381 main ()
5385 return 0;
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5390 case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
5405 ac_cv_header_stdc=yes
5406 else
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 ac_cv_header_stdc=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 if test $ac_cv_header_stdc = yes; then
5416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #include <string.h>
5425 _ACEOF
5426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "memchr" >/dev/null 2>&1; then
5429 else
5430 ac_cv_header_stdc=no
5432 rm -f -r conftest*
5436 if test $ac_cv_header_stdc = yes; then
5437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5438 cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <stdlib.h>
5446 _ACEOF
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448 $EGREP "free" >/dev/null 2>&1; then
5450 else
5451 ac_cv_header_stdc=no
5453 rm -f -r conftest*
5457 if test $ac_cv_header_stdc = yes; then
5458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5459 if test "$cross_compiling" = yes; then
5461 else
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 #include <ctype.h>
5469 #include <stdlib.h>
5470 #if ((' ' & 0x0FF) == 0x020)
5471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5473 #else
5474 # define ISLOWER(c) \
5475 (('a' <= (c) && (c) <= 'i') \
5476 || ('j' <= (c) && (c) <= 'r') \
5477 || ('s' <= (c) && (c) <= 'z'))
5478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5479 #endif
5481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5483 main ()
5485 int i;
5486 for (i = 0; i < 256; i++)
5487 if (XOR (islower (i), ISLOWER (i))
5488 || toupper (i) != TOUPPER (i))
5489 return 2;
5490 return 0;
5492 _ACEOF
5493 rm -f conftest$ac_exeext
5494 if { (ac_try="$ac_link"
5495 case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498 esac
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_link") 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5504 { (case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_try") 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5514 else
5515 echo "$as_me: program exited with status $ac_status" >&5
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5519 ( exit $ac_status )
5520 ac_cv_header_stdc=no
5522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5529 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5530 if test $ac_cv_header_stdc = yes; then
5532 cat >>confdefs.h <<\_ACEOF
5533 #define STDC_HEADERS 1
5534 _ACEOF
5538 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5548 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5549 inttypes.h stdint.h unistd.h
5551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 $ac_includes_default
5565 #include <$ac_header>
5566 _ACEOF
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5569 case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 eval "$as_ac_Header=yes"
5585 else
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 eval "$as_ac_Header=no"
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 ac_res=`eval echo '${'$as_ac_Header'}'`
5595 { echo "$as_me:$LINENO: result: $ac_res" >&5
5596 echo "${ECHO_T}$ac_res" >&6; }
5597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5598 cat >>confdefs.h <<_ACEOF
5599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600 _ACEOF
5604 done
5616 for ac_header in sys/ipc.h sys/shm.h \
5617 sys/mmap.h sys/mman.h sysexits.h \
5618 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 ac_res=`eval echo '${'$as_ac_Header'}'`
5629 { echo "$as_me:$LINENO: result: $ac_res" >&5
5630 echo "${ECHO_T}$ac_res" >&6; }
5631 else
5632 # Is the header compilable?
5633 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h. */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 $ac_includes_default
5642 #include <$ac_header>
5643 _ACEOF
5644 rm -f conftest.$ac_objext
5645 if { (ac_try="$ac_compile"
5646 case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compile") 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } && {
5658 test -z "$ac_c_werror_flag" ||
5659 test ! -s conftest.err
5660 } && test -s conftest.$ac_objext; then
5661 ac_header_compiler=yes
5662 else
5663 echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5666 ac_header_compiler=no
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5671 echo "${ECHO_T}$ac_header_compiler" >&6; }
5673 # Is the header present?
5674 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 #include <$ac_header>
5683 _ACEOF
5684 if { (ac_try="$ac_cpp conftest.$ac_ext"
5685 case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } >/dev/null && {
5697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 }; then
5700 ac_header_preproc=yes
5701 else
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_header_preproc=no
5708 rm -f conftest.err conftest.$ac_ext
5709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5710 echo "${ECHO_T}$ac_header_preproc" >&6; }
5712 # So? What about this header?
5713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5714 yes:no: )
5715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5719 ac_header_preproc=yes
5721 no:yes:* )
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5736 esac
5737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 eval "$as_ac_Header=\$ac_header_preproc"
5744 ac_res=`eval echo '${'$as_ac_Header'}'`
5745 { echo "$as_me:$LINENO: result: $ac_res" >&5
5746 echo "${ECHO_T}$ac_res" >&6; }
5749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5750 cat >>confdefs.h <<_ACEOF
5751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5752 _ACEOF
5756 done
5760 for ac_header in sys/mount.h
5762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #include <sys/param.h>
5776 #include <$ac_header>
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (ac_try="$ac_compile"
5780 case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } && {
5792 test -z "$ac_c_werror_flag" ||
5793 test ! -s conftest.err
5794 } && test -s conftest.$ac_objext; then
5795 eval "$as_ac_Header=yes"
5796 else
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 eval "$as_ac_Header=no"
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 ac_res=`eval echo '${'$as_ac_Header'}'`
5806 { echo "$as_me:$LINENO: result: $ac_res" >&5
5807 echo "${ECHO_T}$ac_res" >&6; }
5808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5809 cat >>confdefs.h <<_ACEOF
5810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5811 _ACEOF
5815 done
5823 ac_header_dirent=no
5824 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5825 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5826 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5827 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831 cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h. */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <sys/types.h>
5838 #include <$ac_hdr>
5841 main ()
5843 if ((DIR *) 0)
5844 return 0;
5846 return 0;
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest.$ac_objext; then
5866 eval "$as_ac_Header=yes"
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 eval "$as_ac_Header=no"
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 ac_res=`eval echo '${'$as_ac_Header'}'`
5877 { echo "$as_me:$LINENO: result: $ac_res" >&5
5878 echo "${ECHO_T}$ac_res" >&6; }
5879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5880 cat >>confdefs.h <<_ACEOF
5881 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5882 _ACEOF
5884 ac_header_dirent=$ac_hdr; break
5887 done
5888 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5889 if test $ac_header_dirent = dirent.h; then
5890 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5891 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5892 if test "${ac_cv_search_opendir+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 ac_func_search_save_LIBS=$LIBS
5896 cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h. */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5903 /* Override any GCC internal prototype to avoid an error.
5904 Use char because int might match the return type of a GCC
5905 builtin and then its argument prototype would still apply. */
5906 #ifdef __cplusplus
5907 extern "C"
5908 #endif
5909 char opendir ();
5911 main ()
5913 return opendir ();
5915 return 0;
5917 _ACEOF
5918 for ac_lib in '' dir; do
5919 if test -z "$ac_lib"; then
5920 ac_res="none required"
5921 else
5922 ac_res=-l$ac_lib
5923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (ac_try="$ac_link"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_link") 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest$ac_exeext &&
5942 $as_test_x conftest$ac_exeext; then
5943 ac_cv_search_opendir=$ac_res
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952 conftest$ac_exeext
5953 if test "${ac_cv_search_opendir+set}" = set; then
5954 break
5956 done
5957 if test "${ac_cv_search_opendir+set}" = set; then
5959 else
5960 ac_cv_search_opendir=no
5962 rm conftest.$ac_ext
5963 LIBS=$ac_func_search_save_LIBS
5965 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5966 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5967 ac_res=$ac_cv_search_opendir
5968 if test "$ac_res" != no; then
5969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5973 else
5974 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5975 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5976 if test "${ac_cv_search_opendir+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 ac_func_search_save_LIBS=$LIBS
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5987 /* Override any GCC internal prototype to avoid an error.
5988 Use char because int might match the return type of a GCC
5989 builtin and then its argument prototype would still apply. */
5990 #ifdef __cplusplus
5991 extern "C"
5992 #endif
5993 char opendir ();
5995 main ()
5997 return opendir ();
5999 return 0;
6001 _ACEOF
6002 for ac_lib in '' x; do
6003 if test -z "$ac_lib"; then
6004 ac_res="none required"
6005 else
6006 ac_res=-l$ac_lib
6007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6009 rm -f conftest.$ac_objext conftest$ac_exeext
6010 if { (ac_try="$ac_link"
6011 case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_link") 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && {
6023 test -z "$ac_c_werror_flag" ||
6024 test ! -s conftest.err
6025 } && test -s conftest$ac_exeext &&
6026 $as_test_x conftest$ac_exeext; then
6027 ac_cv_search_opendir=$ac_res
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6036 conftest$ac_exeext
6037 if test "${ac_cv_search_opendir+set}" = set; then
6038 break
6040 done
6041 if test "${ac_cv_search_opendir+set}" = set; then
6043 else
6044 ac_cv_search_opendir=no
6046 rm conftest.$ac_ext
6047 LIBS=$ac_func_search_save_LIBS
6049 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6050 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6051 ac_res=$ac_cv_search_opendir
6052 if test "$ac_res" != no; then
6053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6059 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6060 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6061 if test "${ac_cv_header_stat_broken+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6071 #include <sys/stat.h>
6073 #if defined S_ISBLK && defined S_IFDIR
6074 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6075 #endif
6077 #if defined S_ISBLK && defined S_IFCHR
6078 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6079 #endif
6081 #if defined S_ISLNK && defined S_IFREG
6082 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6083 #endif
6085 #if defined S_ISSOCK && defined S_IFREG
6086 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6087 #endif
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6092 case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
6107 ac_cv_header_stat_broken=no
6108 else
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_cv_header_stat_broken=yes
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6118 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6119 if test $ac_cv_header_stat_broken = yes; then
6121 cat >>confdefs.h <<\_ACEOF
6122 #define STAT_MACROS_BROKEN 1
6123 _ACEOF
6127 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6128 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6129 if test "${ac_cv_header_stdc+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #include <stdlib.h>
6139 #include <stdarg.h>
6140 #include <string.h>
6141 #include <float.h>
6144 main ()
6148 return 0;
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6153 case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.$ac_objext; then
6168 ac_cv_header_stdc=yes
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_header_stdc=no
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 if test $ac_cv_header_stdc = yes; then
6179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #include <string.h>
6188 _ACEOF
6189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6190 $EGREP "memchr" >/dev/null 2>&1; then
6192 else
6193 ac_cv_header_stdc=no
6195 rm -f -r conftest*
6199 if test $ac_cv_header_stdc = yes; then
6200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6201 cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h. */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 #include <stdlib.h>
6209 _ACEOF
6210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6211 $EGREP "free" >/dev/null 2>&1; then
6213 else
6214 ac_cv_header_stdc=no
6216 rm -f -r conftest*
6220 if test $ac_cv_header_stdc = yes; then
6221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6222 if test "$cross_compiling" = yes; then
6224 else
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #include <ctype.h>
6232 #include <stdlib.h>
6233 #if ((' ' & 0x0FF) == 0x020)
6234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6236 #else
6237 # define ISLOWER(c) \
6238 (('a' <= (c) && (c) <= 'i') \
6239 || ('j' <= (c) && (c) <= 'r') \
6240 || ('s' <= (c) && (c) <= 'z'))
6241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6242 #endif
6244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6246 main ()
6248 int i;
6249 for (i = 0; i < 256; i++)
6250 if (XOR (islower (i), ISLOWER (i))
6251 || toupper (i) != TOUPPER (i))
6252 return 2;
6253 return 0;
6255 _ACEOF
6256 rm -f conftest$ac_exeext
6257 if { (ac_try="$ac_link"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_link") 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6277 else
6278 echo "$as_me: program exited with status $ac_status" >&5
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 ( exit $ac_status )
6283 ac_cv_header_stdc=no
6285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6291 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6292 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6293 if test $ac_cv_header_stdc = yes; then
6295 cat >>confdefs.h <<\_ACEOF
6296 #define STDC_HEADERS 1
6297 _ACEOF
6301 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6302 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6303 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <sys/types.h>
6313 #include <sys/wait.h>
6314 #ifndef WEXITSTATUS
6315 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6316 #endif
6317 #ifndef WIFEXITED
6318 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6319 #endif
6322 main ()
6324 int s;
6325 wait (&s);
6326 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6328 return 0;
6330 _ACEOF
6331 rm -f conftest.$ac_objext
6332 if { (ac_try="$ac_compile"
6333 case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compile") 2>conftest.er1
6339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && {
6345 test -z "$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6347 } && test -s conftest.$ac_objext; then
6348 ac_cv_header_sys_wait_h=yes
6349 else
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 ac_cv_header_sys_wait_h=no
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6359 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6360 if test $ac_cv_header_sys_wait_h = yes; then
6362 cat >>confdefs.h <<\_ACEOF
6363 #define HAVE_SYS_WAIT_H 1
6364 _ACEOF
6368 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6369 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6370 if test "${ac_cv_header_time+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 #include <sys/types.h>
6380 #include <sys/time.h>
6381 #include <time.h>
6384 main ()
6386 if ((struct tm *) 0)
6387 return 0;
6389 return 0;
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (ac_try="$ac_compile"
6394 case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397 esac
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest.$ac_objext; then
6409 ac_cv_header_time=yes
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_cv_header_time=no
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6420 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6421 if test $ac_cv_header_time = yes; then
6423 cat >>confdefs.h <<\_ACEOF
6424 #define TIME_WITH_SYS_TIME 1
6425 _ACEOF
6429 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6430 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6431 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 $ac_includes_default
6442 main ()
6444 static struct stat ac_aggr;
6445 if (ac_aggr.st_blksize)
6446 return 0;
6448 return 0;
6450 _ACEOF
6451 rm -f conftest.$ac_objext
6452 if { (ac_try="$ac_compile"
6453 case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456 esac
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.$ac_objext; then
6468 ac_cv_member_struct_stat_st_blksize=yes
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 $ac_includes_default
6481 main ()
6483 static struct stat ac_aggr;
6484 if (sizeof ac_aggr.st_blksize)
6485 return 0;
6487 return 0;
6489 _ACEOF
6490 rm -f conftest.$ac_objext
6491 if { (ac_try="$ac_compile"
6492 case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495 esac
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_compile") 2>conftest.er1
6498 ac_status=$?
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && {
6504 test -z "$ac_c_werror_flag" ||
6505 test ! -s conftest.err
6506 } && test -s conftest.$ac_objext; then
6507 ac_cv_member_struct_stat_st_blksize=yes
6508 else
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6512 ac_cv_member_struct_stat_st_blksize=no
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6521 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6522 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6524 cat >>confdefs.h <<_ACEOF
6525 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6526 _ACEOF
6529 cat >>confdefs.h <<\_ACEOF
6530 #define HAVE_ST_BLKSIZE 1
6531 _ACEOF
6536 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6537 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6538 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541 cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h. */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 $ac_includes_default
6549 main ()
6551 static struct stat ac_aggr;
6552 if (ac_aggr.st_blocks)
6553 return 0;
6555 return 0;
6557 _ACEOF
6558 rm -f conftest.$ac_objext
6559 if { (ac_try="$ac_compile"
6560 case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563 esac
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_compile") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && {
6572 test -z "$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 } && test -s conftest.$ac_objext; then
6575 ac_cv_member_struct_stat_st_blocks=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6588 main ()
6590 static struct stat ac_aggr;
6591 if (sizeof ac_aggr.st_blocks)
6592 return 0;
6594 return 0;
6596 _ACEOF
6597 rm -f conftest.$ac_objext
6598 if { (ac_try="$ac_compile"
6599 case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602 esac
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_compile") 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } && {
6611 test -z "$ac_c_werror_flag" ||
6612 test ! -s conftest.err
6613 } && test -s conftest.$ac_objext; then
6614 ac_cv_member_struct_stat_st_blocks=yes
6615 else
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6619 ac_cv_member_struct_stat_st_blocks=no
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6628 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6629 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6633 _ACEOF
6636 cat >>confdefs.h <<\_ACEOF
6637 #define HAVE_ST_BLOCKS 1
6638 _ACEOF
6640 else
6641 case " $LIBOBJS " in
6642 *" fileblocks.$ac_objext "* ) ;;
6643 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6645 esac
6650 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6651 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6652 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h. */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 $ac_includes_default
6663 main ()
6665 static struct stat ac_aggr;
6666 if (ac_aggr.st_rdev)
6667 return 0;
6669 return 0;
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (ac_try="$ac_compile"
6674 case "(($ac_try" in
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6677 esac
6678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679 (eval "$ac_compile") 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } && {
6686 test -z "$ac_c_werror_flag" ||
6687 test ! -s conftest.err
6688 } && test -s conftest.$ac_objext; then
6689 ac_cv_member_struct_stat_st_rdev=yes
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 $ac_includes_default
6702 main ()
6704 static struct stat ac_aggr;
6705 if (sizeof ac_aggr.st_rdev)
6706 return 0;
6708 return 0;
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (ac_try="$ac_compile"
6713 case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest.$ac_objext; then
6728 ac_cv_member_struct_stat_st_rdev=yes
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_cv_member_struct_stat_st_rdev=no
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6742 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6743 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6745 cat >>confdefs.h <<_ACEOF
6746 #define HAVE_STRUCT_STAT_ST_RDEV 1
6747 _ACEOF
6750 cat >>confdefs.h <<\_ACEOF
6751 #define HAVE_ST_RDEV 1
6752 _ACEOF
6757 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6758 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6759 if test "${ac_cv_struct_tm+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762 cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h. */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <sys/types.h>
6769 #include <time.h>
6772 main ()
6774 struct tm tm;
6775 int *p = &tm.tm_sec;
6776 return !p;
6778 return 0;
6780 _ACEOF
6781 rm -f conftest.$ac_objext
6782 if { (ac_try="$ac_compile"
6783 case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786 esac
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 ac_cv_struct_tm=time.h
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_cv_struct_tm=sys/time.h
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6809 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6810 if test $ac_cv_struct_tm = sys/time.h; then
6812 cat >>confdefs.h <<\_ACEOF
6813 #define TM_IN_SYS_TIME 1
6814 _ACEOF
6818 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6819 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6820 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 #include <sys/types.h>
6830 #include <$ac_cv_struct_tm>
6834 main ()
6836 static struct tm ac_aggr;
6837 if (ac_aggr.tm_zone)
6838 return 0;
6840 return 0;
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (ac_try="$ac_compile"
6845 case "(($ac_try" in
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6848 esac
6849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850 (eval "$ac_compile") 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest.$ac_objext; then
6860 ac_cv_member_struct_tm_tm_zone=yes
6861 else
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h. */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 #include <sys/types.h>
6872 #include <$ac_cv_struct_tm>
6876 main ()
6878 static struct tm ac_aggr;
6879 if (sizeof ac_aggr.tm_zone)
6880 return 0;
6882 return 0;
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.$ac_objext; then
6902 ac_cv_member_struct_tm_tm_zone=yes
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 ac_cv_member_struct_tm_tm_zone=no
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6916 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6917 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6919 cat >>confdefs.h <<_ACEOF
6920 #define HAVE_STRUCT_TM_TM_ZONE 1
6921 _ACEOF
6926 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6928 cat >>confdefs.h <<\_ACEOF
6929 #define HAVE_TM_ZONE 1
6930 _ACEOF
6932 else
6933 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6934 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6935 if test "${ac_cv_have_decl_tzname+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 #include <time.h>
6947 main ()
6949 #ifndef tzname
6950 (void) tzname;
6951 #endif
6954 return 0;
6956 _ACEOF
6957 rm -f conftest.$ac_objext
6958 if { (ac_try="$ac_compile"
6959 case "(($ac_try" in
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_compile") 2>conftest.er1
6965 ac_status=$?
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && {
6971 test -z "$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6973 } && test -s conftest.$ac_objext; then
6974 ac_cv_have_decl_tzname=yes
6975 else
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_cv_have_decl_tzname=no
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6985 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6986 if test $ac_cv_have_decl_tzname = yes; then
6988 cat >>confdefs.h <<_ACEOF
6989 #define HAVE_DECL_TZNAME 1
6990 _ACEOF
6993 else
6994 cat >>confdefs.h <<_ACEOF
6995 #define HAVE_DECL_TZNAME 0
6996 _ACEOF
7002 { echo "$as_me:$LINENO: checking for tzname" >&5
7003 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7004 if test "${ac_cv_var_tzname+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 #include <time.h>
7014 #if !HAVE_DECL_TZNAME
7015 extern char *tzname[];
7016 #endif
7019 main ()
7021 return tzname[0][0];
7023 return 0;
7025 _ACEOF
7026 rm -f conftest.$ac_objext conftest$ac_exeext
7027 if { (ac_try="$ac_link"
7028 case "(($ac_try" in
7029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030 *) ac_try_echo=$ac_try;;
7031 esac
7032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7033 (eval "$ac_link") 2>conftest.er1
7034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } && {
7040 test -z "$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7042 } && test -s conftest$ac_exeext &&
7043 $as_test_x conftest$ac_exeext; then
7044 ac_cv_var_tzname=yes
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7049 ac_cv_var_tzname=no
7052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7053 conftest$ac_exeext conftest.$ac_ext
7055 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7056 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7057 if test $ac_cv_var_tzname = yes; then
7059 cat >>confdefs.h <<\_ACEOF
7060 #define HAVE_TZNAME 1
7061 _ACEOF
7066 { echo "$as_me:$LINENO: checking for off_t" >&5
7067 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7068 if test "${ac_cv_type_off_t+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 $ac_includes_default
7078 typedef off_t ac__type_new_;
7080 main ()
7082 if ((ac__type_new_ *) 0)
7083 return 0;
7084 if (sizeof (ac__type_new_))
7085 return 0;
7087 return 0;
7089 _ACEOF
7090 rm -f conftest.$ac_objext
7091 if { (ac_try="$ac_compile"
7092 case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7095 esac
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_compile") 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest.$ac_objext; then
7107 ac_cv_type_off_t=yes
7108 else
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 ac_cv_type_off_t=no
7115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7118 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7119 if test $ac_cv_type_off_t = yes; then
7121 else
7123 cat >>confdefs.h <<_ACEOF
7124 #define off_t long int
7125 _ACEOF
7129 { echo "$as_me:$LINENO: checking for pid_t" >&5
7130 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7131 if test "${ac_cv_type_pid_t+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 $ac_includes_default
7141 typedef pid_t ac__type_new_;
7143 main ()
7145 if ((ac__type_new_ *) 0)
7146 return 0;
7147 if (sizeof (ac__type_new_))
7148 return 0;
7150 return 0;
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (ac_try="$ac_compile"
7155 case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158 esac
7159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 ac_cv_type_pid_t=yes
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_cv_type_pid_t=no
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7181 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7182 if test $ac_cv_type_pid_t = yes; then
7184 else
7186 cat >>confdefs.h <<_ACEOF
7187 #define pid_t int
7188 _ACEOF
7192 { echo "$as_me:$LINENO: checking for size_t" >&5
7193 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7194 if test "${ac_cv_type_size_t+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 $ac_includes_default
7204 typedef size_t ac__type_new_;
7206 main ()
7208 if ((ac__type_new_ *) 0)
7209 return 0;
7210 if (sizeof (ac__type_new_))
7211 return 0;
7213 return 0;
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (ac_try="$ac_compile"
7218 case "(($ac_try" in
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7221 esac
7222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7223 (eval "$ac_compile") 2>conftest.er1
7224 ac_status=$?
7225 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -f conftest.er1
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } && {
7230 test -z "$ac_c_werror_flag" ||
7231 test ! -s conftest.err
7232 } && test -s conftest.$ac_objext; then
7233 ac_cv_type_size_t=yes
7234 else
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7238 ac_cv_type_size_t=no
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7244 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7245 if test $ac_cv_type_size_t = yes; then
7247 else
7249 cat >>confdefs.h <<_ACEOF
7250 #define size_t unsigned int
7251 _ACEOF
7255 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7256 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7257 if test "${ac_cv_type_uid_t+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260 cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h. */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 #include <sys/types.h>
7268 _ACEOF
7269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7270 $EGREP "uid_t" >/dev/null 2>&1; then
7271 ac_cv_type_uid_t=yes
7272 else
7273 ac_cv_type_uid_t=no
7275 rm -f -r conftest*
7278 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7279 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7280 if test $ac_cv_type_uid_t = no; then
7282 cat >>confdefs.h <<\_ACEOF
7283 #define uid_t int
7284 _ACEOF
7287 cat >>confdefs.h <<\_ACEOF
7288 #define gid_t int
7289 _ACEOF
7294 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7295 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7296 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 $ac_includes_default
7307 main ()
7309 static struct tm ac_aggr;
7310 if (ac_aggr.tm_gmtoff)
7311 return 0;
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
7333 ac_cv_member_struct_tm_tm_gmtoff=yes
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h. */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 $ac_includes_default
7346 main ()
7348 static struct tm ac_aggr;
7349 if (sizeof ac_aggr.tm_gmtoff)
7350 return 0;
7352 return 0;
7354 _ACEOF
7355 rm -f conftest.$ac_objext
7356 if { (ac_try="$ac_compile"
7357 case "(($ac_try" in
7358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7359 *) ac_try_echo=$ac_try;;
7360 esac
7361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7362 (eval "$ac_compile") 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } && {
7369 test -z "$ac_c_werror_flag" ||
7370 test ! -s conftest.err
7371 } && test -s conftest.$ac_objext; then
7372 ac_cv_member_struct_tm_tm_gmtoff=yes
7373 else
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7377 ac_cv_member_struct_tm_tm_gmtoff=no
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7386 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7387 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7389 cat >>confdefs.h <<_ACEOF
7390 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7391 _ACEOF
7397 # Look for some functions
7412 for ac_func in getpagesize kqueue statfs statvfs \
7413 clone kse_create rfork_thread thr_create sa_register \
7414 getcontext makecontext setcontext sigaltstack swapcontext
7416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7430 #define $ac_func innocuous_$ac_func
7432 /* System header to define __stub macros and hopefully few prototypes,
7433 which can conflict with char $ac_func (); below.
7434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7435 <limits.h> exists even on freestanding compilers. */
7437 #ifdef __STDC__
7438 # include <limits.h>
7439 #else
7440 # include <assert.h>
7441 #endif
7443 #undef $ac_func
7445 /* Override any GCC internal prototype to avoid an error.
7446 Use char because int might match the return type of a GCC
7447 builtin and then its argument prototype would still apply. */
7448 #ifdef __cplusplus
7449 extern "C"
7450 #endif
7451 char $ac_func ();
7452 /* The GNU C library defines this for functions which it implements
7453 to always fail with ENOSYS. Some functions are actually named
7454 something starting with __ and the normal name is an alias. */
7455 #if defined __stub_$ac_func || defined __stub___$ac_func
7456 choke me
7457 #endif
7460 main ()
7462 return $ac_func ();
7464 return 0;
7466 _ACEOF
7467 rm -f conftest.$ac_objext conftest$ac_exeext
7468 if { (ac_try="$ac_link"
7469 case "(($ac_try" in
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7472 esac
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_link") 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && {
7481 test -z "$ac_c_werror_flag" ||
7482 test ! -s conftest.err
7483 } && test -s conftest$ac_exeext &&
7484 $as_test_x conftest$ac_exeext; then
7485 eval "$as_ac_var=yes"
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 eval "$as_ac_var=no"
7493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7494 conftest$ac_exeext conftest.$ac_ext
7496 ac_res=`eval echo '${'$as_ac_var'}'`
7497 { echo "$as_me:$LINENO: result: $ac_res" >&5
7498 echo "${ECHO_T}$ac_res" >&6; }
7499 if test `eval echo '${'$as_ac_var'}'` = yes; then
7500 cat >>confdefs.h <<_ACEOF
7501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7502 _ACEOF
7505 done
7510 for ac_header in stdlib.h unistd.h
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 ac_res=`eval echo '${'$as_ac_Header'}'`
7520 { echo "$as_me:$LINENO: result: $ac_res" >&5
7521 echo "${ECHO_T}$ac_res" >&6; }
7522 else
7523 # Is the header compilable?
7524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 $ac_includes_default
7533 #include <$ac_header>
7534 _ACEOF
7535 rm -f conftest.$ac_objext
7536 if { (ac_try="$ac_compile"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_compile") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest.$ac_objext; then
7552 ac_header_compiler=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 ac_header_compiler=no
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7562 echo "${ECHO_T}$ac_header_compiler" >&6; }
7564 # Is the header present?
7565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h. */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7573 #include <$ac_header>
7574 _ACEOF
7575 if { (ac_try="$ac_cpp conftest.$ac_ext"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } >/dev/null && {
7588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 }; then
7591 ac_header_preproc=yes
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 ac_header_preproc=no
7599 rm -f conftest.err conftest.$ac_ext
7600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7601 echo "${ECHO_T}$ac_header_preproc" >&6; }
7603 # So? What about this header?
7604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7605 yes:no: )
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7610 ac_header_preproc=yes
7612 no:yes:* )
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7627 esac
7628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633 eval "$as_ac_Header=\$ac_header_preproc"
7635 ac_res=`eval echo '${'$as_ac_Header'}'`
7636 { echo "$as_me:$LINENO: result: $ac_res" >&5
7637 echo "${ECHO_T}$ac_res" >&6; }
7640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7641 cat >>confdefs.h <<_ACEOF
7642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7643 _ACEOF
7647 done
7650 for ac_func in getpagesize
7652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7666 #define $ac_func innocuous_$ac_func
7668 /* System header to define __stub macros and hopefully few prototypes,
7669 which can conflict with char $ac_func (); below.
7670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7671 <limits.h> exists even on freestanding compilers. */
7673 #ifdef __STDC__
7674 # include <limits.h>
7675 #else
7676 # include <assert.h>
7677 #endif
7679 #undef $ac_func
7681 /* Override any GCC internal prototype to avoid an error.
7682 Use char because int might match the return type of a GCC
7683 builtin and then its argument prototype would still apply. */
7684 #ifdef __cplusplus
7685 extern "C"
7686 #endif
7687 char $ac_func ();
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined __stub_$ac_func || defined __stub___$ac_func
7692 choke me
7693 #endif
7696 main ()
7698 return $ac_func ();
7700 return 0;
7702 _ACEOF
7703 rm -f conftest.$ac_objext conftest$ac_exeext
7704 if { (ac_try="$ac_link"
7705 case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7708 esac
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_link") 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest$ac_exeext &&
7720 $as_test_x conftest$ac_exeext; then
7721 eval "$as_ac_var=yes"
7722 else
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7726 eval "$as_ac_var=no"
7729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7730 conftest$ac_exeext conftest.$ac_ext
7732 ac_res=`eval echo '${'$as_ac_var'}'`
7733 { echo "$as_me:$LINENO: result: $ac_res" >&5
7734 echo "${ECHO_T}$ac_res" >&6; }
7735 if test `eval echo '${'$as_ac_var'}'` = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7738 _ACEOF
7741 done
7743 { echo "$as_me:$LINENO: checking for working mmap" >&5
7744 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7745 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 if test "$cross_compiling" = yes; then
7749 ac_cv_func_mmap_fixed_mapped=no
7750 else
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h. */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 $ac_includes_default
7758 /* malloc might have been renamed as rpl_malloc. */
7759 #undef malloc
7761 /* Thanks to Mike Haertel and Jim Avera for this test.
7762 Here is a matrix of mmap possibilities:
7763 mmap private not fixed
7764 mmap private fixed at somewhere currently unmapped
7765 mmap private fixed at somewhere already mapped
7766 mmap shared not fixed
7767 mmap shared fixed at somewhere currently unmapped
7768 mmap shared fixed at somewhere already mapped
7769 For private mappings, we should verify that changes cannot be read()
7770 back from the file, nor mmap's back from the file at a different
7771 address. (There have been systems where private was not correctly
7772 implemented like the infamous i386 svr4.0, and systems where the
7773 VM page cache was not coherent with the file system buffer cache
7774 like early versions of FreeBSD and possibly contemporary NetBSD.)
7775 For shared mappings, we should conversely verify that changes get
7776 propagated back to all the places they're supposed to be.
7778 Grep wants private fixed already mapped.
7779 The main things grep needs to know about mmap are:
7780 * does it exist and is it safe to write into the mmap'd area
7781 * how to use it (BSD variants) */
7783 #include <fcntl.h>
7784 #include <sys/mman.h>
7786 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7787 char *malloc ();
7788 #endif
7790 /* This mess was copied from the GNU getpagesize.h. */
7791 #ifndef HAVE_GETPAGESIZE
7792 /* Assume that all systems that can run configure have sys/param.h. */
7793 # ifndef HAVE_SYS_PARAM_H
7794 # define HAVE_SYS_PARAM_H 1
7795 # endif
7797 # ifdef _SC_PAGESIZE
7798 # define getpagesize() sysconf(_SC_PAGESIZE)
7799 # else /* no _SC_PAGESIZE */
7800 # ifdef HAVE_SYS_PARAM_H
7801 # include <sys/param.h>
7802 # ifdef EXEC_PAGESIZE
7803 # define getpagesize() EXEC_PAGESIZE
7804 # else /* no EXEC_PAGESIZE */
7805 # ifdef NBPG
7806 # define getpagesize() NBPG * CLSIZE
7807 # ifndef CLSIZE
7808 # define CLSIZE 1
7809 # endif /* no CLSIZE */
7810 # else /* no NBPG */
7811 # ifdef NBPC
7812 # define getpagesize() NBPC
7813 # else /* no NBPC */
7814 # ifdef PAGESIZE
7815 # define getpagesize() PAGESIZE
7816 # endif /* PAGESIZE */
7817 # endif /* no NBPC */
7818 # endif /* no NBPG */
7819 # endif /* no EXEC_PAGESIZE */
7820 # else /* no HAVE_SYS_PARAM_H */
7821 # define getpagesize() 8192 /* punt totally */
7822 # endif /* no HAVE_SYS_PARAM_H */
7823 # endif /* no _SC_PAGESIZE */
7825 #endif /* no HAVE_GETPAGESIZE */
7828 main ()
7830 char *data, *data2, *data3;
7831 int i, pagesize;
7832 int fd;
7834 pagesize = getpagesize ();
7836 /* First, make a file with some known garbage in it. */
7837 data = (char *) malloc (pagesize);
7838 if (!data)
7839 return 1;
7840 for (i = 0; i < pagesize; ++i)
7841 *(data + i) = rand ();
7842 umask (0);
7843 fd = creat ("conftest.mmap", 0600);
7844 if (fd < 0)
7845 return 1;
7846 if (write (fd, data, pagesize) != pagesize)
7847 return 1;
7848 close (fd);
7850 /* Next, try to mmap the file at a fixed address which already has
7851 something else allocated at it. If we can, also make sure that
7852 we see the same garbage. */
7853 fd = open ("conftest.mmap", O_RDWR);
7854 if (fd < 0)
7855 return 1;
7856 data2 = (char *) malloc (2 * pagesize);
7857 if (!data2)
7858 return 1;
7859 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7860 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7861 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7862 return 1;
7863 for (i = 0; i < pagesize; ++i)
7864 if (*(data + i) != *(data2 + i))
7865 return 1;
7867 /* Finally, make sure that changes to the mapped area do not
7868 percolate back to the file as seen by read(). (This is a bug on
7869 some variants of i386 svr4.0.) */
7870 for (i = 0; i < pagesize; ++i)
7871 *(data2 + i) = *(data2 + i) + 1;
7872 data3 = (char *) malloc (pagesize);
7873 if (!data3)
7874 return 1;
7875 if (read (fd, data3, pagesize) != pagesize)
7876 return 1;
7877 for (i = 0; i < pagesize; ++i)
7878 if (*(data + i) != *(data3 + i))
7879 return 1;
7880 close (fd);
7881 return 0;
7883 _ACEOF
7884 rm -f conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7886 case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889 esac
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_link") 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7895 { (case "(($ac_try" in
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7898 esac
7899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7900 (eval "$ac_try") 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_func_mmap_fixed_mapped=yes
7905 else
7906 echo "$as_me: program exited with status $ac_status" >&5
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ( exit $ac_status )
7911 ac_cv_func_mmap_fixed_mapped=no
7913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7918 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7919 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7920 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7922 cat >>confdefs.h <<\_ACEOF
7923 #define HAVE_MMAP 1
7924 _ACEOF
7927 rm -f conftest.mmap
7932 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7933 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7934 aros_config_ldflags=""
7936 aros_shared_default=yes
7938 aros_shared_cflags="-fPIC"
7939 aros_shared_aflags=""
7940 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7941 aros_kernel_ldflags="-Wl,-rpath,./lib"
7943 aros_target_ar_flags="cr"
7944 aros_target_nm_flags="-C -ul"
7945 aros_target_strip_flags="--strip-unneeded -R.comment"
7947 aros_compiler_libs=
7948 aros_arch_libs=
7950 aros_target_genmap="-Wl,-Map -Xlinker"
7952 # Native flavour stuff
7953 aros_serial_debug="0"
7955 # Palm native flavour stuff
7956 aros_palm_debug_hack="0"
7958 # Unix flavour stuff
7959 aros_nesting_supervisor="0"
7961 # Collect-aros stuff: "-ius" to ignore undefined symbols
7962 ignore_undefined_symbols=""
7964 #-----------------------------------------------------------------------------
7967 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7968 # it switched on by default, and we use the host compiler, so it compiles AROS
7969 # code with this enabled resulting in link failures as we don't have support
7970 # for it.
7972 # We use two methods to disable it. For the host compiler (used to compile
7973 # some hosted modules), we test to see if the compiler supports stack
7974 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7975 # work on all platforms.
7977 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7978 # (this is done unconditionally, as it should have no effect on compilers
7979 # without the stack protection feature). This may be specific to the way that
7980 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7981 # strong enough to disable it in a generic way though, so we'll live with it
7982 # until another vendor ships GCC with it enabled in a different way, and deal
7983 # with it then.
7986 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7987 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7988 save_cflags="$CFLAGS"
7989 CFLAGS="$CFLAGS -fno-stack-protector"
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7998 main ()
8002 return 0;
8004 _ACEOF
8005 rm -f conftest.$ac_objext
8006 if { (ac_try="$ac_compile"
8007 case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_compile") 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest.$ac_objext; then
8022 use_no_stack_protector="yes"
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 use_no_stack_protector="no"
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8032 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8033 if test "x-$use_no_stack_protector" = "x-yes" ; then
8034 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8036 CFLAGS="$save_cflags"
8038 #-----------------------------------------------------------------------------
8040 # Disable pointer-signedness warnings if the compiler recognises the option
8041 # (this only works for the host compiler at the moment)
8043 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8044 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8045 save_cflags="$CFLAGS"
8046 CFLAGS="$CFLAGS -Wno-pointer-sign"
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h. */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8055 main ()
8059 return 0;
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 use_no_sign_warning="yes"
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 use_no_sign_warning="no"
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8089 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8090 if test "x-$use_no_sign_warning" = "x-yes" ; then
8091 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8093 CFLAGS="$save_cflags"
8095 #-----------------------------------------------------------------------------
8097 { echo "$as_me:$LINENO: checking for type of build" >&5
8098 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8099 # Check whether --enable-build_type was given.
8100 if test "${enable_build_type+set}" = set; then
8101 enableval=$enable_build_type; build_type=$enableval
8102 else
8103 build_type="personal"
8107 if test "$build_type" = "nightly"; then
8108 build_type_string="NIGHTLY"
8109 elif test "$build_type" = "snapshot"; then
8110 build_type_string="SNAPSHOT"
8111 elif test "$build_type" = "milestone"; then
8112 build_type_string="MILESTONE"
8113 elif test "$build_type" = "release"; then
8114 build_type_string="RELEASE"
8115 else
8116 build_type_string="PERSONAL"
8117 build_type="personal"
8120 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8122 { echo "$as_me:$LINENO: result: $build_type" >&5
8123 echo "${ECHO_T}$build_type" >&6; }
8125 #-----------------------------------------------------------------------------
8126 all_debug_types="messages stack modules mungwall symbols"
8128 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8129 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8130 # Check whether --enable-debug was given.
8131 if test "${enable_debug+set}" = set; then
8132 enableval=$enable_debug; debug="$enableval"
8133 else
8134 debug=""
8138 if test "$debug" = "" -o "$debug" = "no"; then
8139 debug="none"
8140 elif test "$debug" = "yes"; then
8141 debug="all"
8144 if test "$debug" = "all" ; then
8145 debug="messages stack modules symbols"
8146 for d in $all_debug_types; do
8147 export aros_${d}_debug="1"
8148 done
8149 else
8150 for d in $all_debug_types; do
8151 export aros_${d}_debug="0"
8152 done
8155 if test "$debug" != "none"; then
8156 debug=`echo $debug | sed s/,/\ /g`
8157 for d in $debug; do
8158 found="0"
8159 for d2 in $all_debug_types; do
8160 if test "$d2" = "$d"; then
8161 found="1"
8162 break
8164 done
8165 if test "$found" = "0"; then
8166 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8167 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8168 { (exit 1); exit 1; }; }
8170 export aros_${d}_debug="1"
8171 done
8172 aros_debug="yes"
8174 { echo "$as_me:$LINENO: result: $debug" >&5
8175 echo "${ECHO_T}$debug" >&6; }
8177 if test "$aros_messages_debug" = "1"; then
8178 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8179 else
8180 aros_messages_debug=""
8182 if test "$aros_symbols_debug" = "1"; then
8183 aros_symbols_debug="-g"
8184 else
8185 aros_symbols_debug=""
8188 # These are the flags to pass when compiling debugged programs
8189 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8190 aros_debug_aflags=""
8191 aros_debug_ldflags="$aros_symbols_debug"
8193 aros_crosstools="no"
8195 #-----------------------------------------------------------------------------
8196 # Checking if we should build crosstools..
8197 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8198 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8199 # Check whether --enable-crosstools was given.
8200 if test "${enable_crosstools+set}" = set; then
8201 enableval=$enable_crosstools; crosstools="$enableval"
8202 else
8203 crosstools="no"
8206 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8207 { echo "$as_me:$LINENO: result: yes" >&5
8208 echo "${ECHO_T}yes" >&6; }
8209 aros_crosstools="yes"
8210 else
8211 { echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6; }
8215 #-----------------------------------------------------------------------------
8216 # Checking for distcc and ccache.
8218 # Always apply the transforms in this particular order. Basically you should
8219 # always run 'ccache distcc compiler' in that order for the best performance.
8221 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8222 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8223 # Check whether --enable-distcc was given.
8224 if test "${enable_distcc+set}" = set; then
8225 enableval=$enable_distcc; distcc="$enableval"
8226 else
8227 distcc="no"
8230 if test "$distcc" != "" -a "$distcc" != "no"; then
8231 # AC_CHECK_PROG will print out the result in this case
8232 # Extract the first word of "distcc", so it can be a program name with args.
8233 set dummy distcc; ac_word=$2
8234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8236 if test "${ac_cv_path_DISTCC+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239 case $DISTCC in
8240 [\\/]* | ?:[\\/]*)
8241 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8251 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 break 2
8255 done
8256 done
8257 IFS=$as_save_IFS
8259 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8261 esac
8263 DISTCC=$ac_cv_path_DISTCC
8264 if test -n "$DISTCC"; then
8265 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8266 echo "${ECHO_T}$DISTCC" >&6; }
8267 else
8268 { echo "$as_me:$LINENO: result: no" >&5
8269 echo "${ECHO_T}no" >&6; }
8273 else
8274 { echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6; }
8278 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8279 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8280 # Check whether --enable-ccache was given.
8281 if test "${enable_ccache+set}" = set; then
8282 enableval=$enable_ccache; ccache="$enableval"
8283 else
8284 ccache="no"
8287 if test "$ccache" != "" -a "$ccache" != "no"; then
8288 # AC_CHECK_PROG will print out the result in this case
8289 # Extract the first word of "ccache", so it can be a program name with args.
8290 set dummy ccache; ac_word=$2
8291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8293 if test "${ac_cv_prog_CCACHE+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296 if test -n "$CCACHE"; then
8297 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_prog_CCACHE="ccache"
8307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 break 2
8310 done
8311 done
8312 IFS=$as_save_IFS
8316 CCACHE=$ac_cv_prog_CCACHE
8317 if test -n "$CCACHE"; then
8318 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8319 echo "${ECHO_T}$CCACHE" >&6; }
8320 else
8321 { echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6; }
8326 else
8327 { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8331 #-----------------------------------------------------------------------------
8332 { echo "$as_me:$LINENO: checking what specific gcc version to use" >&5
8333 echo $ECHO_N "checking what specific gcc version to use... $ECHO_C" >&6; }
8335 # Check whether --with-gcc-version was given.
8336 if test "${with_gcc_version+set}" = set; then
8337 withval=$with_gcc_version; target_tool_version="$withval"
8338 else
8339 target_tool_version="default"
8342 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8343 echo "${ECHO_T}$target_tool_version" >&6; }
8345 #-----------------------------------------------------------------------------
8346 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8347 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8349 # Check whether --with-optimization was given.
8350 if test "${with_optimization+set}" = set; then
8351 withval=$with_optimization; optimization="$withval"
8352 else
8353 optimization="unknown"
8356 if test "$optimization" = "unknown"; then
8357 if test "$debug" != "none"; then
8358 optimization="-O0"
8359 else
8360 optimization="-O2"
8363 aros_config_cflags="$aros_config_cflags $optimization"
8364 { echo "$as_me:$LINENO: result: $optimization" >&5
8365 echo "${ECHO_T}$optimization" >&6; }
8367 #-----------------------------------------------------------------------------
8368 { echo "$as_me:$LINENO: checking what paranoia flags to use" >&5
8369 echo $ECHO_N "checking what paranoia flags to use... $ECHO_C" >&6; }
8371 # Check whether --with-paranoia was given.
8372 if test "${with_paranoia+set}" = set; then
8373 withval=$with_paranoia; paranoia_flags="$withval"
8374 else
8375 paranoia_flags="default"
8378 if test "$paranoia_flags" = "default"; then
8379 paranoia_flags=""
8380 else if test "$paranoia_flags" = "yes"; then
8381 paranoia_flags="-Wall -Werror"
8382 fi fi
8383 { echo "$as_me:$LINENO: result: $paranoia_flags" >&5
8384 echo "${ECHO_T}$paranoia_flags" >&6; }
8385 aros_paranoia_cflags="$paranoia_flags"
8387 #-----------------------------------------------------------------------------
8388 if test "$target_os" = "ios"; then
8390 { echo "$as_me:$LINENO: checking XCode path" >&5
8391 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8393 # Check whether --with-xcode-path was given.
8394 if test "${with_xcode_path+set}" = set; then
8395 withval=$with_xcode_path; aros_xcode_path="$withval"
8396 else
8397 aros_xcode_path="/Developer"
8400 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8401 echo "${ECHO_T}$aros_xcode_path" >&6; }
8403 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8404 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8406 # Check whether --with-ios-version was given.
8407 if test "${with_ios_version+set}" = set; then
8408 withval=$with_ios_version; aros_ios_version="$withval"
8409 else
8410 aros_ios_version="2.0"
8413 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8414 echo "${ECHO_T}$aros_ios_version" >&6; }
8416 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8417 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8419 # Check whether --with-ios-sdk was given.
8420 if test "${with_ios_sdk+set}" = set; then
8421 withval=$with_ios_sdk; aros_ios_sdk="$withval"
8422 else
8423 aros_ios_sdk="4.1"
8426 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8427 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8431 #-----------------------------------------------------------------------------
8432 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8433 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8434 # Check whether --enable-target_variant was given.
8435 if test "${enable_target_variant+set}" = set; then
8436 enableval=$enable_target_variant; target_variant=$enableval
8437 else
8438 target_variant=""
8441 if test "$target_variant" = ""; then
8442 aros_target_variant=""
8443 aros_target_suffix=""
8444 enableval="none"
8445 else
8446 aros_target_variant="$target_variant"
8447 aros_target_suffix="-$target_variant"
8449 { echo "$as_me:$LINENO: result: $enableval" >&5
8450 echo "${ECHO_T}$enableval" >&6; }
8452 target_bootloader="none"
8454 #-----------------------------------------------------------------------------
8455 # This is the target configuration switch.
8456 case "$target_os" in
8457 linux*)
8458 aros_target_arch="linux"
8459 aros_target_family="unix"
8460 case "$target_cpu" in
8461 *m68k*)
8462 aros_target_cpu="m68k"
8463 aros_object_format="m68kelf"
8464 aros_flavour="emulcompat"
8465 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8466 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8467 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8468 gcc_target_cpu="mc68000"
8470 *i?86*)
8471 aros_target_cpu="i386"
8472 aros_object_format="elf_i386"
8473 aros_flavour="emulation"
8474 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8475 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8476 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8477 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8478 aros_config_ldflags="-m32 -march=i486"
8479 aros_kernel_ldflags="-melf_i386"
8480 aros_default_wbdepth=8
8481 gcc_target_cpu="i386"
8482 pci_hidd_target="hidd-pci-linux"
8484 *x86_64*)
8485 aros_target_cpu="x86_64"
8486 aros_object_format="elf_x86_64"
8487 aros_flavour="emulation"
8488 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8489 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8490 aros_default_wbdepth=8
8491 gcc_target_cpu="x86_64"
8492 pci_hidd_target="hidd-pci-linux"
8494 *powerpc*)
8495 aros_target_cpu="ppc"
8496 aros_object_format="elf32ppc"
8497 aros_flavour="emulation"
8498 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8499 aros_default_wbdepth=8
8500 gcc_target_cpu="ppc"
8502 # TODO
8503 # Same as powerpc, but I need this for the nightly build to work again.
8504 # Actually, the nightly should be made working with powerpc target.
8505 # That just was too much work for the moment, another week or two.
8506 *ppc*)
8507 aros_target_cpu="ppc"
8508 aros_object_format="elf32ppc"
8509 aros_flavour="emulation"
8510 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8511 aros_default_wbdepth=8
8512 gcc_target_cpu="ppc"
8514 *arm*)
8515 aros_target_cpu="arm"
8516 aros_object_format="armelf_linux_eabi"
8517 aros_flavour="emulation"
8518 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8519 gcc_target_cpu="arm"
8520 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8521 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8524 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8525 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8526 { (exit 1); exit 1; }; }
8528 esac
8532 aros_target_arch="pc"
8533 aros_shared_default="no"
8534 target_bootloader="grub2"
8535 case "$target_cpu" in
8536 *i?86*)
8537 aros_target_cpu="i386"
8540 if test "$aros_object_format" = "" ; then
8541 aros_object_format="elf_i386"
8543 aros_flavour="standalone"
8544 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8545 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8546 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8547 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8548 aros_config_ldflags="-m32 -march=i486"
8549 aros_kernel_ldflags="-melf_i386"
8550 aros_default_wbwidth=640
8551 aros_default_wbheight=480
8552 gcc_target_cpu="i386"
8554 *x86_64*)
8555 aros_target_cpu="x86_64"
8556 aros_serial_debug=1
8557 if test "$aros_object_format" = "" ; then
8558 aros_object_format="elf_x86_64"
8560 aros_flavour="standalone"
8561 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8562 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8563 aros_kernel_ldflags=""
8564 aros_default_wbwidth=640
8565 aros_default_wbheight=480
8566 gcc_target_cpu="x86_64"
8569 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8570 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8571 { (exit 1); exit 1; }; }
8573 esac
8576 prep)
8577 aros_target_arch="prep"
8578 aros_shared_default="no"
8579 aros_target_cpu="ppc"
8580 aros_object_format="elf32ppc"
8581 aros_flavour="ppcnative"
8582 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8583 aros_kernel_ldflags=""
8584 aros_default_wbwidth=640
8585 aros_default_wbheight=480
8586 gcc_target_cpu="ppc"
8589 freebsd*)
8590 aros_target_arch="freebsd"
8591 aros_target_family="unix"
8592 aros_target_cpu="i386"
8593 aros_flavour="emulation"
8594 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8595 gcc_target_cpu="i386"
8597 aros_target_strip_flags="-x"
8600 darwin*)
8601 aros_target_arch="darwin"
8602 aros_target_family="unix"
8603 aros_flavour="emulation"
8604 case "$target_cpu" in
8605 *i?86*)
8606 aros_target_cpu="i386"
8607 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8608 aros_kernel_cflags="$aros_kernel_cflags -m32"
8609 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8610 aros_default_wbdepth=8
8611 gcc_target_cpu="i386"
8612 aros_object_format="elf_i386"
8613 aros_target_strip_flags="-x"
8614 aros_target_cc="i386-aros-gcc"
8615 aros_target_cxx="i386-aros-g++"
8616 aros_target_ld="i386-aros-ld"
8617 aros_target_as="i386-aros-as"
8618 aros_target_ar="i386-aros-ar"
8619 aros_target_ranlib="i386-aros-ranlib"
8620 aros_target_nm="i386-aros-nm"
8621 aros_target_strip="i386-aros-strip"
8622 aros_target_objcopy="i386-aros-objcopy"
8623 aros_target_objdump="i386-aros-objdump"
8624 target_tool_prefix="i686-apple-darwin10-"
8626 *x86_64*)
8627 aros_target_cpu="x86_64"
8628 aros_object_format="elf_x86_64"
8629 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8630 aros_kernel_cflags="$aros_kernel_cflags -m64"
8631 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
8632 aros_default_wbdepth=8
8633 gcc_target_cpu="x86_64"
8634 aros_target_cc="x86_64-aros-gcc"
8635 aros_target_cxx="x86_64-aros-g++"
8636 aros_target_ld="x86_64-aros-ld"
8637 aros_target_as="x86_64-aros-as"
8638 aros_target_ar="x86_64-aros-ar"
8639 aros_target_ranlib="x86_64-aros-ranlib"
8640 aros_target_nm="x86_64-aros-nm"
8641 aros_target_strip="x86_64-aros-strip"
8642 aros_target_objcopy="x86_64-aros-objcopy"
8643 aros_target_objdump="x86_64-aros-objdump"
8644 target_tool_prefix="i686-apple-darwin10-"
8646 *ppc*)
8647 aros_target_cpu="ppc"
8648 aros_object_format="elf32_ppc"
8649 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8650 aros_default_wbdepth=8
8651 gcc_target_cpu="ppc"
8652 aros_target_cc="ppc-aros-gcc"
8653 aros_target_cxx="ppc-aros-g++"
8654 aros_target_ld="ppc-aros-ld"
8655 aros_target_as="ppc-aros-as"
8656 aros_target_ar="ppc-aros-ar"
8657 aros_target_ranlib="ppc-aros-ranlib"
8658 aros_target_nm="ppc-aros-nm"
8659 aros_target_strip="ppc-aros-strip"
8660 aros_target_objcopy="ppc-aros-objcopy"
8661 aros_target_objdump="ppc-aros-objdump"
8662 target_tool_prefix="powerpc-apple-darwin10-"
8665 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8666 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8667 { (exit 1); exit 1; }; }
8669 esac
8672 ios*)
8673 aros_target_arch="ios"
8674 aros_target_family="unix"
8675 aros_flavour="emulation"
8676 # This is here because it may depend on iOS or SDK version
8677 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8678 case "$target_cpu" in
8679 *i?86*)
8680 aros_ios_platform="iPhoneSimulator"
8681 aros_target_cpu="i386"
8682 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8683 aros_default_wbdepth=8
8684 gcc_target_cpu="i386"
8685 aros_object_format="elf_i386"
8686 aros_target_strip_flags="-x"
8687 aros_target_cc="i386-aros-gcc"
8688 aros_target_cxx="i386-aros-g++"
8689 aros_target_ld="i386-aros-ld"
8690 aros_target_as="i386-aros-as"
8691 aros_target_ar="i386-aros-ar"
8692 aros_target_ranlib="i386-aros-ranlib"
8693 aros_target_nm="i386-aros-nm"
8694 aros_target_strip="i386-aros-strip"
8695 aros_target_objcopy="i386-aros-objcopy"
8696 aros_target_objdump="i386-aros-objdump"
8697 target_tool_prefix="i686-apple-darwin10-"
8698 target_tool_flags="-m32"
8700 *arm*)
8701 aros_ios_platform="iPhoneOS"
8702 aros_target_cpu="arm"
8703 aros_object_format="armelf_linux_eabi"
8704 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8705 aros_config_cflags="$aros_config_cflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8706 aros_config_aflags="$aros_config_aflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8707 aros_arch_libs="-laeabi"
8708 aros_default_wbdepth=8
8709 gcc_target_cpu="arm"
8710 aros_kernel_ld="ld -arch armv6"
8711 aros_target_cc="arm-aros-gcc"
8712 aros_target_cxx="arm-aros-g++"
8713 aros_target_ld="arm-aros-ld"
8714 aros_target_as="arm-aros-as"
8715 aros_target_ar="arm-aros-ar"
8716 aros_target_ranlib="arm-aros-ranlib"
8717 aros_target_nm="arm-aros-nm"
8718 aros_target_strip="arm-aros-strip"
8719 aros_target_objcopy="arm-aros-objcopy"
8720 aros_target_objdump="arm-aros-objdump"
8721 target_tool_prefix="arm-apple-darwin10-"
8722 aros_default_wbwidth=320
8723 aros_default_wbheight=480
8724 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8727 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&5
8728 echo "$as_me: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&2;}
8729 { (exit 1); exit 1; }; }
8731 esac
8732 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
8733 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
8736 dragonfly*)
8737 aros_target_arch="dragonfly"
8738 aros_target_family="unix"
8739 aros_flavour="emulation"
8740 case "$target_cpu" in
8741 *i?86*)
8742 aros_target_cpu="i386"
8743 aros_object_format="elf_i386"
8744 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8746 *x86_64*)
8747 aros_target_cpu="x86_64"
8748 aros_object_format="elf_x86_64"
8749 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8752 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8753 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8754 { (exit 1); exit 1; }; }
8756 esac
8759 netbsd*)
8760 aros_target_arch="netbsd"
8761 aros_target_family="unix"
8762 case "$target_cpu" in
8763 *m68k*)
8764 aros_target_cpu="m68k"
8765 aros_object_format="m68kelf"
8766 aros_flavour="emulcompat"
8767 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8768 gcc_target_cpu="mc68000"
8770 *i?86*)
8771 aros_target_cpu="i386"
8772 aros_object_format="elf_i386"
8773 aros_flavour="emulation"
8774 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8775 aros_default_wbdepth=8
8776 gcc_target_cpu="i386"
8779 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8780 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8781 { (exit 1); exit 1; }; }
8783 esac
8784 aros_target_genmap="-Wl,-M -Xlinker >"
8785 aros_flavour="emulation"
8786 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8789 openbsd*)
8790 aros_target_arch="openbsd"
8791 aros_target_family="unix"
8792 case "$target_cpu" in
8793 *i?86*)
8794 aros_target_cpu="i386"
8795 aros_object_format="elf_i386"
8796 aros_flavour="emulation"
8797 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8798 gcc_target_cpu="i386"
8801 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8802 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8803 { (exit 1); exit 1; }; }
8805 esac
8806 aros_target_genmap="-Wl,-M -Xlinker >"
8807 aros_target_nm_flags="-u"
8808 aros_flavour="emulation"
8811 solaris*)
8812 aros_target_arch="solaris"
8813 aros_target_family="unix"
8814 case "$target_cpu" in
8815 *i?86*)
8816 aros_target_cpu="i386"
8817 aros_object_format="elf_i386"
8818 aros_flavour="emulation"
8819 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8820 aros_default_wbdepth=8
8821 gcc_target_cpu="i386"
8823 *sparc*)
8824 aros_target_cpu="sparc"
8825 aros_object_format="elf_sparc"
8826 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8827 gcc_target_cpu="sparc"
8830 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8831 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8832 { (exit 1); exit 1; }; }
8834 esac
8835 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8836 aros_flavour="emulation"
8839 morphos*)
8840 aros_target_arch="morphos"
8841 aros_shared_default="no"
8842 aros_target_cpu="ppc"
8843 aros_object_format="elf_ppc"
8844 aros_flavour="nativecompat"
8845 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8846 gcc_target_cpu="ppc"
8849 sam440)
8850 aros_target_arch="sam440"
8851 aros_shared_default="no"
8852 aros_target_cpu="ppc"
8853 aros_object_format="elf32ppc"
8854 aros_flavour="ppcnative"
8855 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8856 aros_kernel_ldflags=""
8857 aros_default_wbwidth=1024
8858 aros_default_wbheight=768
8859 aros_default_wbdepth=24
8860 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8861 gcc_target_cpu="powerpc"
8864 efika)
8865 aros_target_arch="efika"
8866 aros_shared_default="no"
8867 aros_target_cpu="arm"
8868 aros_object_format="armelf_linux_eabi"
8869 aros_flavour="standalone"
8870 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8871 aros_kernel_ldflags=""
8872 aros_default_wbwidth=1024
8873 aros_default_wbheight=600
8874 aros_arch_libs="-laeabi"
8875 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"
8876 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"
8879 chrp)
8880 aros_target_arch="chrp"
8881 aros_shared_default="no"
8882 aros_target_cpu="ppc"
8883 aros_object_format="elf32ppc"
8884 aros_flavour="ppcnative"
8885 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8886 aros_kernel_ldflags=""
8887 aros_default_wbwidth=640
8888 aros_default_wbheight=480
8889 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8890 gcc_target_cpu="powerpc"
8891 case "$aros_target_variant" in
8892 efika)
8893 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8895 esac
8898 amiga*)
8899 aros_target_arch="amiga"
8900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8901 aros_shared_default="no"
8903 case "$target_cpu" in
8904 *m68k-eabi)
8905 aros_target_cpu="m68k"
8906 aros_object_format="m68kelf"
8907 aros_flavour="standalone"
8908 gcc_target_cpu="mc68000"
8909 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8910 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8911 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8912 target_tool_prefix="m68k-elf-"
8913 aros_target_nostdlib_ldflags="" # We always need -lgcc
8914 aros_target_strip_flags="-R.comment"
8916 *m68k*)
8917 aros_target_cpu="m68k"
8918 aros_object_format="m68kelf"
8919 aros_flavour="standcompat"
8920 gcc_target_cpu="mc68000"
8921 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8922 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8923 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
8924 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8925 target_tool_prefix="m68k-elf-"
8926 aros_target_nostdlib_ldflags="" # We always need -lgcc
8927 aros_target_strip_flags="-R.comment"
8929 *ppc*)
8930 aros_cpu="ppc"
8931 aros_flavour="native"
8932 gcc_target_cpu="ppc"
8935 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8936 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8937 { (exit 1); exit 1; }; }
8939 esac
8942 mingw*)
8943 aros_target_arch="mingw32"
8944 aros_shared_default="no"
8945 aros_flavour="emulation"
8946 aros_shared_cflags=""
8947 need_dlopen="no"
8948 rescomp="windres"
8949 case "$target_cpu" in
8950 *i?86*)
8951 aros_target_cpu="i386"
8952 aros_object_format="elf_i386"
8953 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8954 aros_default_wbdepth=8
8955 gcc_target_cpu="i386"
8956 aros_target_cc="i386-aros-gcc"
8957 aros_target_cxx="i386-aros-g++"
8958 aros_target_ld="i386-aros-ld"
8959 aros_target_as="i386-aros-as"
8960 aros_target_ar="i386-aros-ar"
8961 aros_target_ranlib="i386-aros-ranlib"
8962 aros_target_nm="i386-aros-nm"
8963 aros_target_strip="i386-aros-strip"
8964 aros_target_objcopy="i386-aros-objcopy"
8965 aros_target_objdump="i386-aros-objdump"
8966 target_tool_prefix="i386-mingw32-"
8968 *x86_64*)
8969 aros_target_cpu="x86_64"
8970 aros_object_format="elf_x86_64"
8971 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8972 aros_default_wbdepth=8
8973 gcc_target_cpu="x86_64"
8974 aros_target_cc="x86_64-aros-gcc"
8975 aros_target_cxx="x86_64-aros-g++"
8976 aros_target_ld="x86_64-aros-ld"
8977 aros_target_as="x86_64-aros-as"
8978 aros_target_ar="x86_64-aros-ar"
8979 aros_target_ranlib="x86_64-aros-ranlib"
8980 aros_target_nm="x86_64-aros-nm"
8981 aros_target_strip="x86_64-aros-strip"
8982 aros_target_objcopy="x86_64-aros-objcopy"
8983 aros_target_objdump="x86_64-aros-objdump"
8984 target_tool_prefix="x86_64-w64-mingw32-"
8986 *arm*)
8987 aros_target_cpu="arm"
8988 aros_object_format="armelf_linux_eabi"
8989 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8990 aros_arch_libs="-laeabi"
8991 aros_default_wbdepth=8
8992 gcc_target_cpu="arm"
8993 aros_target_cc="arm-aros-gcc"
8994 aros_target_cxx="arm-aros-g++"
8995 aros_target_ld="arm-aros-ld"
8996 aros_target_as="arm-aros-as"
8997 aros_target_ar="arm-aros-ar"
8998 aros_target_ranlib="arm-aros-ranlib"
8999 aros_target_nm="arm-aros-nm"
9000 aros_target_strip="arm-aros-strip"
9001 aros_target_objcopy="arm-aros-objcopy"
9002 aros_target_objdump="arm-aros-objdump"
9003 target_tool_prefix="arm-mingw32ce-"
9004 aros_default_wbwidth=160
9005 aros_default_wbheight=160
9008 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
9009 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
9010 { (exit 1); exit 1; }; }
9012 esac
9013 if test $host_os = "cygwin"; then
9014 aros_kernel_cflags="-mno-cygwin"
9017 pp*)
9018 aros_target_arch="pp"
9019 aros_shared_default="no"
9020 case "$target_cpu" in
9021 *m68k*)
9022 aros_target_cpu="m68k"
9023 aros_object_format="m68kelf"
9024 aros_flavour="palmnative"
9025 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9026 aros_default_wbwidth=160
9027 aros_default_wbheight=160
9028 aros_default_wbdepth=1
9029 aros_target_ar_flags="cru"
9030 aros_compiler_libs="-lgcc1"
9031 aros_shared_default=no
9032 aros_shared_cflags="-fpic"
9033 aros_shared_aflags=""
9034 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9035 aros_kernel_ldflags="-Wl,-rpath,./lib"
9036 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9037 aros_debug_aflags=""
9038 aros_debug_ldflags="$aros_symbols_debug"
9039 aros_mungwall_debug="0"
9040 aros_modules_debug="0"
9041 gcc_target_cpu="mc68000"
9042 ignore_undefined_symbols="-ius"
9045 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9046 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9047 { (exit 1); exit 1; }; }
9049 esac
9052 mac*)
9053 aros_target_arch="mac"
9054 aros_shared_default="no"
9055 case "$target_cpu" in
9056 *m68k*)
9057 aros_target_cpu="m68k"
9058 aros_object_format="m68kelf"
9059 aros_flavour="mac68knative"
9060 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9061 aros_default_wbwidth=512
9062 aros_default_wbheight=384
9063 aros_default_wbdepth=8
9064 aros_target_ar_flags="cru"
9065 aros_compiler_libs="-lgcc1"
9066 aros_shared_default=no
9067 aros_shared_cflags="-fpic"
9068 aros_shared_aflags=""
9069 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9070 aros_kernel_ldflags="-Wl,-rpath,./lib"
9071 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9072 aros_debug_aflags=""
9073 aros_debug_ldflags="$aros_symbols_debug"
9074 aros_mungwall_debug="0"
9075 aros_modules_debug="0"
9076 gcc_target_cpu="mc68000"
9077 ignore_undefined_symbols="-ius"
9080 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9081 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9082 { (exit 1); exit 1; }; }
9084 esac
9088 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9089 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9090 { (exit 1); exit 1; }; }
9092 esac
9094 # FIXME: for cross-compiling this should point to another location
9095 if test "$aros_flavour" = "emulation"; then
9096 aros_kernel_includes="-isystem /usr/include"
9098 if test "$aros_flavour" = "emulcompat"; then
9099 aros_kernel_includes="-isystem /usr/include"
9102 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9103 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
9105 # Check whether --with-portssources was given.
9106 if test "${with_portssources+set}" = set; then
9107 withval=$with_portssources; with_portssrcdir=$withval
9108 else
9109 with_portssrcdir="default"
9112 if test "$with_portssrcdir" = "default"; then
9113 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9114 else
9115 AROS_PORTSSRCDIR="$with_portssrcdir"
9117 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9118 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9120 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9121 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9123 # Check whether --with-bootloader was given.
9124 if test "${with_bootloader+set}" = set; then
9125 withval=$with_bootloader; target_bootloader=$withval
9126 else
9127 target_bootloader=$target_bootloader
9130 if test "$target_bootloader" = "none"; then
9131 aros_target_bootloader=""
9132 else
9133 aros_target_bootloader="$target_bootloader"
9135 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9136 echo "${ECHO_T}$target_bootloader" >&6; }
9138 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9139 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9141 # Check whether --with-iconset was given.
9142 if test "${with_iconset+set}" = set; then
9143 withval=$with_iconset; target_iconset=$withval
9144 else
9145 target_iconset="default"
9148 if test "$target_iconset" = "default"; then
9149 aros_target_iconset="Gorilla"
9150 target_iconset="default (Gorilla)"
9151 else
9152 aros_target_iconset="$target_iconset"
9154 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9155 echo "${ECHO_T}$target_iconset" >&6; }
9157 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9158 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9160 # Check whether --with-theme was given.
9161 if test "${with_theme+set}" = set; then
9162 withval=$with_theme; target_guitheme=$withval
9163 else
9164 target_guitheme="default"
9167 if test "$target_guitheme" = "default"; then
9168 aros_target_guitheme="Ice"
9169 else
9170 aros_target_guitheme="$target_guitheme"
9172 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9173 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9175 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9176 # for target code)
9177 cross_compiling=no
9178 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9179 cross_compiling=yes
9181 if test "$aros_host_cpu" == "x86_64" ; then
9182 if test "$aros_target_cpu" == "i386" ; then
9183 if test "$aros_target_arch" != "mingw32"; then
9184 cross_compiling=no
9189 # Set prefix for target compiler etc. if we're cross-compiling
9190 # (should possibly be earlier but needs to be after AC_PROG_CC)
9191 if test "$cross_compiling" = "yes" ; then
9192 if test "$target_tool_prefix" = ""; then
9193 target_tool_prefix=${target_cpu}-elf-
9195 CC=${target_tool_prefix}gcc
9196 CPP=${target_tool_prefix}cpp
9197 if test "$target_tool_version" != "default"; then
9198 CC="$CC-$target_tool_version"
9199 CPP="$CC-$target_tool_version"
9201 # Extract the first word of "$CC", so it can be a program name with args.
9202 set dummy $CC; ac_word=$2
9203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9205 if test "${ac_cv_path_CC+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208 case $CC in
9209 [\\/]* | ?:[\\/]*)
9210 ac_cv_path_CC="$CC" # Let the user override the test with a path.
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 for as_dir in $PATH
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9220 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
9221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 break 2
9224 done
9225 done
9226 IFS=$as_save_IFS
9229 esac
9231 CC=$ac_cv_path_CC
9232 if test -n "$CC"; then
9233 { echo "$as_me:$LINENO: result: $CC" >&5
9234 echo "${ECHO_T}$CC" >&6; }
9235 else
9236 { echo "$as_me:$LINENO: result: no" >&5
9237 echo "${ECHO_T}no" >&6; }
9241 if test "$CC" = ""; then
9242 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9243 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9244 { (exit 1); exit 1; }; }
9247 CC="$CC $target_tool_flags"
9249 #-----------------------------------------------------------------------------
9251 # Disable pointer-signedness warnings if the compiler recognises the option
9253 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9254 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9255 save_cflags="$CFLAGS"
9256 CFLAGS="$CFLAGS -Wno-pointer-sign"
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h. */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9265 main ()
9269 return 0;
9271 _ACEOF
9272 rm -f conftest.$ac_objext
9273 if { (ac_try="$ac_compile"
9274 case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9277 esac
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_compile") 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest.$ac_objext; then
9289 use_no_sign_warning="yes"
9290 else
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9294 use_no_sign_warning="no"
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9299 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9300 if test "x-$use_no_sign_warning" = "x-yes" ; then
9301 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9303 CFLAGS="$save_cflags"
9305 #-----------------------------------------------------------------------------
9307 # Find all the tools we need to compile. This could be cross-compiling
9308 # though! If that is the case we use the GNU form of the target and
9309 # simply add this to the front of the binary name. This is rather simple,
9310 # but it should work under most circumstances.
9312 # The default tools are to use the same as the host, but only if the
9313 # host and target CPU are the same. With GCC this is normally enough.
9316 aros_cc_pre=""
9317 aros_shared_ld="$aros_host_ld"
9319 aros_target_mkdep="$aros_host_mkdep"
9320 aros_target_incl_def="$aros_host_incl"
9322 aros_kernel_cc="$CC"
9324 # The default tools executables to be linked to.
9325 if test "$aros_target_cc" != ""; then
9326 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9327 set dummy $aros_target_cc; ac_word=$2
9328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9330 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 case $aros_target_cc in
9334 [\\/]* | ?:[\\/]*)
9335 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 for as_dir in $PATH
9341 IFS=$as_save_IFS
9342 test -z "$as_dir" && as_dir=.
9343 for ac_exec_ext in '' $ac_executable_extensions; do
9344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9345 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9347 break 2
9349 done
9350 done
9351 IFS=$as_save_IFS
9354 esac
9356 aros_target_cc=$ac_cv_path_aros_target_cc
9357 if test -n "$aros_target_cc"; then
9358 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9359 echo "${ECHO_T}$aros_target_cc" >&6; }
9360 else
9361 { echo "$as_me:$LINENO: result: no" >&5
9362 echo "${ECHO_T}no" >&6; }
9366 if test "$aros_target_cc" = ""; then
9367 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9368 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9369 { (exit 1); exit 1; }; }
9372 if test "$aros_target_ld" != ""; then
9373 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9374 set dummy $aros_target_ld; ac_word=$2
9375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9377 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380 case $aros_target_ld in
9381 [\\/]* | ?:[\\/]*)
9382 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $PATH
9388 IFS=$as_save_IFS
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9394 break 2
9396 done
9397 done
9398 IFS=$as_save_IFS
9401 esac
9403 aros_target_ld=$ac_cv_path_aros_target_ld
9404 if test -n "$aros_target_ld"; then
9405 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9406 echo "${ECHO_T}$aros_target_ld" >&6; }
9407 else
9408 { echo "$as_me:$LINENO: result: no" >&5
9409 echo "${ECHO_T}no" >&6; }
9413 if test "$aros_target_ld" = ""; then
9414 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9415 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9416 { (exit 1); exit 1; }; }
9420 if test "$crosstools" != "yes"; then
9422 if test "$aros_target_as" = ""; then
9423 if test "$cross_compiling" = "yes" ; then
9424 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9425 set dummy ${target_tool_prefix}as; ac_word=$2
9426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9428 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431 case $aros_target_as_ln in
9432 [\\/]* | ?:[\\/]*)
9433 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9443 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9447 done
9448 done
9449 IFS=$as_save_IFS
9452 esac
9454 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9455 if test -n "$aros_target_as_ln"; then
9456 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9457 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9458 else
9459 { echo "$as_me:$LINENO: result: no" >&5
9460 echo "${ECHO_T}no" >&6; }
9464 else
9465 if test "$GCC" = "yes"; then
9466 aros_gcc_as=`$CC -print-prog-name=as`
9467 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9468 set dummy `basename $aros_gcc_as`; ac_word=$2
9469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9471 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 case $aros_target_as_ln in
9475 [\\/]* | ?:[\\/]*)
9476 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 for as_dir in `dirname $aros_gcc_as`
9482 IFS=$as_save_IFS
9483 test -z "$as_dir" && as_dir=.
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9486 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9488 break 2
9490 done
9491 done
9492 IFS=$as_save_IFS
9495 esac
9497 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9498 if test -n "$aros_target_as_ln"; then
9499 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9500 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9501 else
9502 { echo "$as_me:$LINENO: result: no" >&5
9503 echo "${ECHO_T}no" >&6; }
9508 if test "$aros_target_as_ln" = ""; then
9509 # Extract the first word of "as", so it can be a program name with args.
9510 set dummy as; ac_word=$2
9511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9513 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 case $aros_target_as_ln in
9517 [\\/]* | ?:[\\/]*)
9518 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 for as_dir in $PATH
9524 IFS=$as_save_IFS
9525 test -z "$as_dir" && as_dir=.
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9528 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9530 break 2
9532 done
9533 done
9534 IFS=$as_save_IFS
9537 esac
9539 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9540 if test -n "$aros_target_as_ln"; then
9541 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9542 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9543 else
9544 { echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6; }
9551 else
9552 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9553 set dummy $aros_target_as; ac_word=$2
9554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9556 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559 case $aros_target_as_ln in
9560 [\\/]* | ?:[\\/]*)
9561 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9575 done
9576 done
9577 IFS=$as_save_IFS
9580 esac
9582 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9583 if test -n "$aros_target_as_ln"; then
9584 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9585 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9586 else
9587 { echo "$as_me:$LINENO: result: no" >&5
9588 echo "${ECHO_T}no" >&6; }
9594 if test "$aros_target_as_ln" = ""; then
9595 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9596 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9597 { (exit 1); exit 1; }; }
9600 if test "$aros_kernel_ld" = ""; then
9601 if test "$cross_compiling" = "yes" ; then
9602 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9603 set dummy ${target_tool_prefix}ld; ac_word=$2
9604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9606 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 case $aros_kernel_ld in
9610 [\\/]* | ?:[\\/]*)
9611 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in $PATH
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9621 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 break 2
9625 done
9626 done
9627 IFS=$as_save_IFS
9630 esac
9632 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9633 if test -n "$aros_kernel_ld"; then
9634 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9635 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9636 else
9637 { echo "$as_me:$LINENO: result: no" >&5
9638 echo "${ECHO_T}no" >&6; }
9642 else
9643 if test "$GCC" = "yes"; then
9644 aros_gcc_ld=`$CC -print-prog-name=ld`
9645 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9646 set dummy `basename $aros_gcc_ld`; ac_word=$2
9647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9649 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652 case $aros_kernel_ld in
9653 [\\/]* | ?:[\\/]*)
9654 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in `dirname $aros_gcc_ld`
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9664 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9668 done
9669 done
9670 IFS=$as_save_IFS
9673 esac
9675 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9676 if test -n "$aros_kernel_ld"; then
9677 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9678 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9679 else
9680 { echo "$as_me:$LINENO: result: no" >&5
9681 echo "${ECHO_T}no" >&6; }
9686 if test "$aros_kernel_ld" = ""; then
9687 # Extract the first word of "ld", so it can be a program name with args.
9688 set dummy ld; ac_word=$2
9689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9691 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 case $aros_kernel_ld in
9695 [\\/]* | ?:[\\/]*)
9696 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9710 done
9711 done
9712 IFS=$as_save_IFS
9715 esac
9717 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9718 if test -n "$aros_kernel_ld"; then
9719 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9720 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9721 else
9722 { echo "$as_me:$LINENO: result: no" >&5
9723 echo "${ECHO_T}no" >&6; }
9729 else
9730 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9731 set dummy $aros_kernel_ld; ac_word=$2
9732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9734 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 case $aros_kernel_ld in
9738 [\\/]* | ?:[\\/]*)
9739 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 for as_dir in $PATH
9745 IFS=$as_save_IFS
9746 test -z "$as_dir" && as_dir=.
9747 for ac_exec_ext in '' $ac_executable_extensions; do
9748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9749 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9751 break 2
9753 done
9754 done
9755 IFS=$as_save_IFS
9758 esac
9760 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9761 if test -n "$aros_kernel_ld"; then
9762 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9763 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9764 else
9765 { echo "$as_me:$LINENO: result: no" >&5
9766 echo "${ECHO_T}no" >&6; }
9772 if test "$aros_kernel_ld" = ""; then
9773 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9774 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9775 { (exit 1); exit 1; }; }
9778 if test "$aros_target_ar" = ""; then
9779 if test "$cross_compiling" = "yes" ; then
9780 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9781 set dummy ${target_tool_prefix}ar; ac_word=$2
9782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9784 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 case $aros_target_ar_ln in
9788 [\\/]* | ?:[\\/]*)
9789 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793 for as_dir in $PATH
9795 IFS=$as_save_IFS
9796 test -z "$as_dir" && as_dir=.
9797 for ac_exec_ext in '' $ac_executable_extensions; do
9798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9799 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9801 break 2
9803 done
9804 done
9805 IFS=$as_save_IFS
9808 esac
9810 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9811 if test -n "$aros_target_ar_ln"; then
9812 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9813 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9814 else
9815 { echo "$as_me:$LINENO: result: no" >&5
9816 echo "${ECHO_T}no" >&6; }
9820 else
9821 if test "$GCC" = "yes"; then
9822 aros_gcc_ar=`$CC -print-prog-name=ar`
9823 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9824 set dummy `basename $aros_gcc_ar`; ac_word=$2
9825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9827 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830 case $aros_target_ar_ln in
9831 [\\/]* | ?:[\\/]*)
9832 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836 for as_dir in `dirname $aros_gcc_ar`
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9842 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9846 done
9847 done
9848 IFS=$as_save_IFS
9851 esac
9853 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9854 if test -n "$aros_target_ar_ln"; then
9855 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9856 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9857 else
9858 { echo "$as_me:$LINENO: result: no" >&5
9859 echo "${ECHO_T}no" >&6; }
9864 if test "$aros_target_ar_ln" = ""; then
9865 # Extract the first word of "ar", so it can be a program name with args.
9866 set dummy ar; ac_word=$2
9867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9869 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872 case $aros_target_ar_ln in
9873 [\\/]* | ?:[\\/]*)
9874 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9884 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 break 2
9888 done
9889 done
9890 IFS=$as_save_IFS
9893 esac
9895 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9896 if test -n "$aros_target_ar_ln"; then
9897 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9898 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9899 else
9900 { echo "$as_me:$LINENO: result: no" >&5
9901 echo "${ECHO_T}no" >&6; }
9907 else
9908 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9909 set dummy $aros_target_ar; ac_word=$2
9910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9912 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915 case $aros_target_ar_ln in
9916 [\\/]* | ?:[\\/]*)
9917 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in $PATH
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9927 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 break 2
9931 done
9932 done
9933 IFS=$as_save_IFS
9936 esac
9938 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9939 if test -n "$aros_target_ar_ln"; then
9940 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9941 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9942 else
9943 { echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6; }
9950 if test "$aros_target_ar_ln" = ""; then
9951 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9952 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9953 { (exit 1); exit 1; }; }
9956 if test "$aros_target_nm" = ""; then
9957 if test "$cross_compiling" = "yes" ; then
9958 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9959 set dummy ${target_tool_prefix}nm; ac_word=$2
9960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9962 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965 case $aros_target_nm_ln in
9966 [\\/]* | ?:[\\/]*)
9967 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 for as_dir in $PATH
9973 IFS=$as_save_IFS
9974 test -z "$as_dir" && as_dir=.
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9977 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 break 2
9981 done
9982 done
9983 IFS=$as_save_IFS
9986 esac
9988 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9989 if test -n "$aros_target_nm_ln"; then
9990 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9991 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9992 else
9993 { echo "$as_me:$LINENO: result: no" >&5
9994 echo "${ECHO_T}no" >&6; }
9998 else
9999 if test "$GCC" = "yes"; then
10000 aros_gcc_nm=`$CC -print-prog-name=nm`
10001 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10002 set dummy `basename $aros_gcc_nm`; ac_word=$2
10003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10005 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008 case $aros_target_nm_ln in
10009 [\\/]* | ?:[\\/]*)
10010 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in `dirname $aros_gcc_nm`
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10020 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 break 2
10024 done
10025 done
10026 IFS=$as_save_IFS
10029 esac
10031 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10032 if test -n "$aros_target_nm_ln"; then
10033 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10034 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10035 else
10036 { echo "$as_me:$LINENO: result: no" >&5
10037 echo "${ECHO_T}no" >&6; }
10042 if test "$aros_target_nm_ln" = ""; then
10043 # Extract the first word of "nm", so it can be a program name with args.
10044 set dummy nm; ac_word=$2
10045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10047 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 case $aros_target_nm_ln in
10051 [\\/]* | ?:[\\/]*)
10052 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10062 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10066 done
10067 done
10068 IFS=$as_save_IFS
10071 esac
10073 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10074 if test -n "$aros_target_nm_ln"; then
10075 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10076 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10077 else
10078 { echo "$as_me:$LINENO: result: no" >&5
10079 echo "${ECHO_T}no" >&6; }
10085 else
10086 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10087 set dummy $aros_target_nm; ac_word=$2
10088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10090 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093 case $aros_target_nm_ln in
10094 [\\/]* | ?:[\\/]*)
10095 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10105 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10109 done
10110 done
10111 IFS=$as_save_IFS
10114 esac
10116 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10117 if test -n "$aros_target_nm_ln"; then
10118 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10119 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10120 else
10121 { echo "$as_me:$LINENO: result: no" >&5
10122 echo "${ECHO_T}no" >&6; }
10128 if test "$aros_target_nm_ln" = ""; then
10129 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10130 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10131 { (exit 1); exit 1; }; }
10134 if test "$aros_target_objcopy" = ""; then
10135 if test "$cross_compiling" = "yes" ; then
10136 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10137 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10140 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143 case $aros_target_objcopy_ln in
10144 [\\/]* | ?:[\\/]*)
10145 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149 for as_dir in $PATH
10151 IFS=$as_save_IFS
10152 test -z "$as_dir" && as_dir=.
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10155 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10157 break 2
10159 done
10160 done
10161 IFS=$as_save_IFS
10164 esac
10166 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10167 if test -n "$aros_target_objcopy_ln"; then
10168 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10169 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10170 else
10171 { echo "$as_me:$LINENO: result: no" >&5
10172 echo "${ECHO_T}no" >&6; }
10176 else
10177 if test "$GCC" = "yes"; then
10178 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10179 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10180 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10183 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186 case $aros_target_objcopy_ln in
10187 [\\/]* | ?:[\\/]*)
10188 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192 for as_dir in `dirname $aros_gcc_objcopy`
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10198 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10200 break 2
10202 done
10203 done
10204 IFS=$as_save_IFS
10207 esac
10209 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10210 if test -n "$aros_target_objcopy_ln"; then
10211 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10212 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10213 else
10214 { echo "$as_me:$LINENO: result: no" >&5
10215 echo "${ECHO_T}no" >&6; }
10220 if test "$aros_target_objcopy_ln" = ""; then
10221 # Extract the first word of "objcopy", so it can be a program name with args.
10222 set dummy objcopy; ac_word=$2
10223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10225 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 else
10228 case $aros_target_objcopy_ln in
10229 [\\/]* | ?:[\\/]*)
10230 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234 for as_dir in $PATH
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10240 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10244 done
10245 done
10246 IFS=$as_save_IFS
10249 esac
10251 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10252 if test -n "$aros_target_objcopy_ln"; then
10253 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10254 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10255 else
10256 { echo "$as_me:$LINENO: result: no" >&5
10257 echo "${ECHO_T}no" >&6; }
10263 else
10264 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10265 set dummy $aros_target_objcopy; ac_word=$2
10266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10268 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271 case $aros_target_objcopy_ln in
10272 [\\/]* | ?:[\\/]*)
10273 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10283 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10287 done
10288 done
10289 IFS=$as_save_IFS
10292 esac
10294 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10295 if test -n "$aros_target_objcopy_ln"; then
10296 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10297 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10298 else
10299 { echo "$as_me:$LINENO: result: no" >&5
10300 echo "${ECHO_T}no" >&6; }
10306 if test "$aros_target_objcopy_ln" = ""; then
10307 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10308 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10309 { (exit 1); exit 1; }; }
10312 if test "$aros_target_objdump" = ""; then
10313 if test "$cross_compiling" = "yes" ; then
10314 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10315 set dummy ${target_tool_prefix}objdump; ac_word=$2
10316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10318 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321 case $aros_target_objdump_ln in
10322 [\\/]* | ?:[\\/]*)
10323 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10333 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10337 done
10338 done
10339 IFS=$as_save_IFS
10342 esac
10344 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10345 if test -n "$aros_target_objdump_ln"; then
10346 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10347 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10348 else
10349 { echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6; }
10354 else
10355 if test "$GCC" = "yes"; then
10356 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10357 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10358 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10361 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364 case $aros_target_objdump_ln in
10365 [\\/]* | ?:[\\/]*)
10366 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 for as_dir in `dirname $aros_gcc_objdump`
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10376 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10380 done
10381 done
10382 IFS=$as_save_IFS
10385 esac
10387 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10388 if test -n "$aros_target_objdump_ln"; then
10389 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10390 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10391 else
10392 { echo "$as_me:$LINENO: result: no" >&5
10393 echo "${ECHO_T}no" >&6; }
10398 if test "$aros_target_objdump_ln" = ""; then
10399 # Extract the first word of "objdump", so it can be a program name with args.
10400 set dummy objdump; ac_word=$2
10401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10403 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406 case $aros_target_objdump_ln in
10407 [\\/]* | ?:[\\/]*)
10408 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10418 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10422 done
10423 done
10424 IFS=$as_save_IFS
10427 esac
10429 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10430 if test -n "$aros_target_objdump_ln"; then
10431 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10432 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10433 else
10434 { echo "$as_me:$LINENO: result: no" >&5
10435 echo "${ECHO_T}no" >&6; }
10441 else
10442 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10443 set dummy $aros_target_objdump; ac_word=$2
10444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10446 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 else
10449 case $aros_target_objdump_ln in
10450 [\\/]* | ?:[\\/]*)
10451 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455 for as_dir in $PATH
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10461 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 break 2
10465 done
10466 done
10467 IFS=$as_save_IFS
10470 esac
10472 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10473 if test -n "$aros_target_objdump_ln"; then
10474 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10475 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10476 else
10477 { echo "$as_me:$LINENO: result: no" >&5
10478 echo "${ECHO_T}no" >&6; }
10484 if test "$aros_target_objdump_ln" = ""; then
10485 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10486 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10487 { (exit 1); exit 1; }; }
10490 if test "$aros_target_ranlib" = ""; then
10491 if test "$cross_compiling" = "yes" ; then
10492 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10493 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10496 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499 case $aros_target_ranlib_ln in
10500 [\\/]* | ?:[\\/]*)
10501 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10511 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10515 done
10516 done
10517 IFS=$as_save_IFS
10520 esac
10522 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10523 if test -n "$aros_target_ranlib_ln"; then
10524 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10525 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10526 else
10527 { echo "$as_me:$LINENO: result: no" >&5
10528 echo "${ECHO_T}no" >&6; }
10532 else
10533 if test "$GCC" = "yes"; then
10534 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10535 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10536 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10539 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 case $aros_target_ranlib_ln in
10543 [\\/]* | ?:[\\/]*)
10544 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in `dirname $aros_gcc_ranlib`
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10554 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10558 done
10559 done
10560 IFS=$as_save_IFS
10563 esac
10565 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10566 if test -n "$aros_target_ranlib_ln"; then
10567 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10568 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10569 else
10570 { echo "$as_me:$LINENO: result: no" >&5
10571 echo "${ECHO_T}no" >&6; }
10576 if test "$aros_target_ranlib_ln" = ""; then
10577 # Extract the first word of "ranlib", so it can be a program name with args.
10578 set dummy ranlib; ac_word=$2
10579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10581 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584 case $aros_target_ranlib_ln in
10585 [\\/]* | ?:[\\/]*)
10586 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590 for as_dir in $PATH
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10596 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10598 break 2
10600 done
10601 done
10602 IFS=$as_save_IFS
10605 esac
10607 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10608 if test -n "$aros_target_ranlib_ln"; then
10609 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10610 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10611 else
10612 { echo "$as_me:$LINENO: result: no" >&5
10613 echo "${ECHO_T}no" >&6; }
10619 else
10620 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10621 set dummy $aros_target_ranlib; ac_word=$2
10622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10624 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 else
10627 case $aros_target_ranlib_ln in
10628 [\\/]* | ?:[\\/]*)
10629 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10639 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 break 2
10643 done
10644 done
10645 IFS=$as_save_IFS
10648 esac
10650 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10651 if test -n "$aros_target_ranlib_ln"; then
10652 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10653 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10654 else
10655 { echo "$as_me:$LINENO: result: no" >&5
10656 echo "${ECHO_T}no" >&6; }
10662 if test "$aros_target_ranlib_ln" = ""; then
10663 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10664 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10665 { (exit 1); exit 1; }; }
10668 if test "$aros_target_strip" = ""; then
10669 if test "$cross_compiling" = "yes" ; then
10670 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10671 set dummy ${target_tool_prefix}strip; ac_word=$2
10672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10674 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 case $aros_target_strip_ln in
10678 [\\/]* | ?:[\\/]*)
10679 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10689 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 break 2
10693 done
10694 done
10695 IFS=$as_save_IFS
10698 esac
10700 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10701 if test -n "$aros_target_strip_ln"; then
10702 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10703 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10704 else
10705 { echo "$as_me:$LINENO: result: no" >&5
10706 echo "${ECHO_T}no" >&6; }
10710 else
10711 if test "$GCC" = "yes"; then
10712 aros_gcc_strip=`$CC -print-prog-name=strip`
10713 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10714 set dummy `basename $aros_gcc_strip`; ac_word=$2
10715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10717 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720 case $aros_target_strip_ln in
10721 [\\/]* | ?:[\\/]*)
10722 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in `dirname $aros_gcc_strip`
10728 IFS=$as_save_IFS
10729 test -z "$as_dir" && as_dir=.
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10732 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 break 2
10736 done
10737 done
10738 IFS=$as_save_IFS
10741 esac
10743 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10744 if test -n "$aros_target_strip_ln"; then
10745 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10746 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10747 else
10748 { echo "$as_me:$LINENO: result: no" >&5
10749 echo "${ECHO_T}no" >&6; }
10754 if test "$aros_target_strip_ln" = ""; then
10755 # Extract the first word of "strip", so it can be a program name with args.
10756 set dummy strip; ac_word=$2
10757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10759 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762 case $aros_target_strip_ln in
10763 [\\/]* | ?:[\\/]*)
10764 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10774 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10778 done
10779 done
10780 IFS=$as_save_IFS
10783 esac
10785 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10786 if test -n "$aros_target_strip_ln"; then
10787 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10788 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10789 else
10790 { echo "$as_me:$LINENO: result: no" >&5
10791 echo "${ECHO_T}no" >&6; }
10797 else
10798 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10799 set dummy $aros_target_strip; ac_word=$2
10800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10802 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805 case $aros_target_strip_ln in
10806 [\\/]* | ?:[\\/]*)
10807 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10817 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10821 done
10822 done
10823 IFS=$as_save_IFS
10826 esac
10828 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10829 if test -n "$aros_target_strip_ln"; then
10830 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10831 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10832 else
10833 { echo "$as_me:$LINENO: result: no" >&5
10834 echo "${ECHO_T}no" >&6; }
10840 if test "$aros_target_strip_ln" = ""; then
10841 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10842 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10843 { (exit 1); exit 1; }; }
10845 if test "$aros_target_cxx" != ""; then
10846 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10847 set dummy $aros_target_cxx; ac_word=$2
10848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10850 if test "${ac_cv_path_aros_target_cxx+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853 case $aros_target_cxx in
10854 [\\/]* | ?:[\\/]*)
10855 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10865 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10869 done
10870 done
10871 IFS=$as_save_IFS
10874 esac
10876 aros_target_cxx=$ac_cv_path_aros_target_cxx
10877 if test -n "$aros_target_cxx"; then
10878 { echo "$as_me:$LINENO: result: $aros_target_cxx" >&5
10879 echo "${ECHO_T}$aros_target_cxx" >&6; }
10880 else
10881 { echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6; }
10886 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
10887 # AROS_REQUIRED(c++,$aros_target_cxx)
10889 else
10890 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10891 aros_target_cxx=""
10894 # Build crosstools if we have no C++ - temporary thing
10895 if test "$aros_target_cxx" = ""; then
10896 crosstools_target=tools-crosstools
10899 if test "$rescomp" != ""; then
10900 if test "$cross_compiling" = "yes" ; then
10901 rescomp=${target_tool_prefix}${rescomp}
10903 # Extract the first word of "$rescomp", so it can be a program name with args.
10904 set dummy $rescomp; ac_word=$2
10905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10907 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910 case $aros_kernel_rescomp in
10911 [\\/]* | ?:[\\/]*)
10912 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916 for as_dir in $PATH
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
10920 for ac_exec_ext in '' $ac_executable_extensions; do
10921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10922 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10924 break 2
10926 done
10927 done
10928 IFS=$as_save_IFS
10931 esac
10933 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10934 if test -n "$aros_kernel_rescomp"; then
10935 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10936 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10937 else
10938 { echo "$as_me:$LINENO: result: no" >&5
10939 echo "${ECHO_T}no" >&6; }
10943 if test "$aros_kernel_rescomp" = ""; then
10944 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10945 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10946 { (exit 1); exit 1; }; }
10950 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10951 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10952 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10953 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10954 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10955 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10956 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10958 # aros_cc_pre is a variable that is added to the front of the compiler name
10959 # in the generated aros-gcc shell script. We need this to enable the cache
10960 # to work across cleaned builds. Also, support DISTCC using the correct
10961 # environment variable.
10964 if test "x${DISTCC}" != "x" ; then
10965 if test "x${CCACHE}" != "x" ; then
10966 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10967 else
10968 aros_cc_pre="${DISTCC} "
10970 else
10971 if test "x${CCACHE}" != "x" ; then
10972 aros_cc_pre="${CCACHE} "
10976 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10978 aros_target_nostdinc_cflags=-nostdinc
10980 aros_target_nostartup_ldflags=-nostartfiles
10982 aros_target_nix_ldflags=-nix
10984 aros_target_detach_ldflags=-detach
10986 aros_target_nostdlib_ldflags=-nostdlib
10989 # Target tools
10990 if test "$aros_target_cc" = ""; then
10991 orig_target_cc=$aros_kernel_cc
10992 else
10993 orig_target_cc=$aros_target_cc
10995 if test "$aros_target_ld" = ""; then
10996 orig_target_ld=$aros_kernel_ld
10997 else
10998 orig_target_ld=$aros_target_ld
11000 if test "$GCC" = "yes"; then
11001 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
11003 aros_target_cc="${prefix}-gcc"
11004 aros_target_as="${prefix}-as"
11005 aros_target_ld="${prefix}-ld"
11006 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
11007 aros_target_objcopy=${prefix}-objcopy
11008 aros_target_objdump=${prefix}-objdump
11009 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
11010 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
11011 aros_kernel_nm="${prefix}-nm"
11012 aros_target_strip=${prefix}-strip
11014 # Find the system include path. We can suggest that an alternative is
11015 # used if we don't get it correct. The default is to use /usr/include.
11016 # Which is set in the aros_target_incl_def variable.
11018 # Check whether --enable-includes was given.
11019 if test "${enable_includes+set}" = set; then
11020 enableval=$enable_includes; aros_target_incl=$enable_includes
11021 else
11022 aros_target_incl=$aros_target_incl_def
11026 if test "$aros_kernel_includes" != "" ; then
11027 { echo "$as_me:$LINENO: checking for the kernel compiler's include path" >&5
11028 echo $ECHO_N "checking for the kernel compiler's include path... $ECHO_C" >&6; }
11029 if test "$aros_kernel_cc_includes" = "" ; then
11030 #try to guess where the directory is
11031 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
11032 if ! test -d $aros_kernel_cc_includes; then
11033 #the directory doesn't exist, we need to do some more work
11034 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
11036 #these are the headers we're looling for
11037 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11038 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11039 zutil.h"
11041 dirs=
11042 for h in $headers; do
11043 #which other headers each of the above headers needs?
11044 deps=$(echo "#include <$h>" | \
11045 $aros_kernel_cc -E -M - 2>/dev/null | \
11046 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11048 #copy all the needed headers to a directory beneath gendir
11049 for d in $deps; do
11050 h=$(basename $d)
11051 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
11052 sed -n "s,^.*/include\(/.*\),\1,p")
11053 ! test -d $dir && mkdir -p $dir
11054 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11055 done
11056 done
11059 { echo "$as_me:$LINENO: result: $aros_kernel_cc_includes" >&5
11060 echo "${ECHO_T}$aros_kernel_cc_includes" >&6; }
11061 aros_kernel_includes="$aros_kernel_includes -isystem $aros_kernel_cc_includes"
11064 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
11065 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
11066 if test "$aros_target_cc_includes" = "" ; then
11067 #try to guess where the directory is
11068 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11069 if ! test -d $aros_target_cc_includes; then
11070 #the directory doesn't exist, we need to do some more work
11071 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11073 #these are the headers we're looling for
11074 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11075 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11076 zutil.h"
11078 dirs=
11079 for h in $headers; do
11080 #which other headers each of the above headers needs?
11081 deps=$(echo "#include <$h>" | \
11082 $orig_target_cc -E -M - 2>/dev/null | \
11083 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11085 #copy all the needed headers to a directory beneath gendir
11086 for d in $deps; do
11087 h=$(basename $d)
11088 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11089 sed -n "s,^.*/include\(/.*\),\1,p")
11090 ! test -d $dir && mkdir -p $dir
11091 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11092 done
11093 done
11096 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11097 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11100 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11101 # On GCC >= 4.0 -iquote should be used
11104 save_cc="$CC"
11105 save_cflags="$CFLAGS"
11106 CFLAGS="-iquote."
11107 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11108 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h. */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11117 main ()
11121 return 0;
11123 _ACEOF
11124 rm -f conftest.$ac_objext
11125 if { (ac_try="$ac_compile"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129 esac
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_compile") 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest.$ac_objext; then
11141 has_iquote="yes"
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 has_iquote="no"
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11151 echo "${ECHO_T}$has_iquote" >&6; }
11152 if test "x-$has_iquote" = "x-yes" ; then
11153 host_cflags_iquote=-iquote
11154 host_cflags_iquote_end=
11155 else
11156 host_cflags_iquote=-I
11157 host_cflags_iquote_end=-I-
11159 kernel_cflags_iquote=$host_cflags_iquote
11160 kernel_cflags_iquote_end=$host_cflags_iquote_end
11161 if test "x-$cross_compiling" = "x-yes"; then
11162 CC="$aros_kernel_cc"
11163 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11164 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11173 main ()
11177 return 0;
11179 _ACEOF
11180 rm -f conftest.$ac_objext
11181 if { (ac_try="$ac_compile"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_compile") 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && {
11194 test -z "$ac_c_werror_flag" ||
11195 test ! -s conftest.err
11196 } && test -s conftest.$ac_objext; then
11197 use_no_stack_protector="yes"
11198 else
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 use_no_stack_protector="no"
11205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11207 echo "${ECHO_T}$use_no_stack_protector" >&6; }
11208 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11209 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11218 main ()
11222 return 0;
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (ac_try="$ac_compile"
11227 case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11230 esac
11231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232 (eval "$ac_compile") 2>conftest.er1
11233 ac_status=$?
11234 grep -v '^ *+' conftest.er1 >conftest.err
11235 rm -f conftest.er1
11236 cat conftest.err >&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } && {
11239 test -z "$ac_c_werror_flag" ||
11240 test ! -s conftest.err
11241 } && test -s conftest.$ac_objext; then
11242 has_iquote="yes"
11243 else
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 has_iquote="no"
11250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11251 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11252 echo "${ECHO_T}$has_iquote" >&6; }
11253 if test "x-$has_iquote" = "x-yes" ; then
11254 kernel_cflags_iquote=-iquote
11255 kernel_cflags_iquote_end=
11256 else
11257 kernel_cflags_iquote=-I
11258 kernel_cflags_iquote_end=-I-
11261 aros_cflags_iquote=$kernel_cflags_iquote
11262 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11263 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11264 CC="$orig_target_cc"
11265 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11266 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h. */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11275 main ()
11279 return 0;
11281 _ACEOF
11282 rm -f conftest.$ac_objext
11283 if { (ac_try="$ac_compile"
11284 case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_compile") 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest.$ac_objext; then
11299 has_iquote="yes"
11300 else
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 has_iquote="no"
11307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11309 echo "${ECHO_T}$has_iquote" >&6; }
11310 if test "x-$has_iquote" = "x-yes" ; then
11311 aros_cflags_iquote=-iquote
11312 aros_cflags_iquote_end=
11313 else
11314 aros_cflags_iquote=-I
11315 aros_cflags_iquote_end=-I-
11318 if test "x-$use_no_stack_protector" = "x-yes" ; then
11319 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11322 #-----------------------------------------------------------------------------
11324 # Check if we can explicitly choose older version of symbol hashing
11326 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11327 CC="$aros_kernel_cc"
11328 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11329 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11338 main ()
11342 return 0;
11344 _ACEOF
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (ac_try="$ac_link"
11347 case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_link") 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } && {
11359 test -z "$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11361 } && test -s conftest$ac_exeext &&
11362 $as_test_x conftest$ac_exeext; then
11363 use_hash_style="yes"
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 use_hash_style="no"
11371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11372 conftest$ac_exeext conftest.$ac_ext
11373 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11374 echo "${ECHO_T}$use_hash_style" >&6; }
11375 if test "x-$use_hash_style" = "x-yes" ; then
11376 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11378 CC="$save_cc"
11379 CFLAGS="$save_cflags"
11389 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11390 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11392 # Check whether --with-resolution was given.
11393 if test "${with_resolution+set}" = set; then
11394 withval=$with_resolution; resolution=$withval
11395 else
11396 resolution=none
11399 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11400 if test "$resolution" = "yes" ; then
11401 resolution="none"
11403 if test "$resolution" = "no" ; then
11404 resolution="none"
11406 if test "$resolution" != "none" ; then
11407 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11408 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11409 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11411 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11412 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11413 aros_cv_default_wbwidth=$aros_default_wbwidth
11414 aros_cv_default_wbheight=$aros_default_wbheight
11415 aros_cv_default_wbdepth=$aros_default_wbdepth
11417 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11418 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11420 # Check whether --with-serial-debug was given.
11421 if test "${with_serial_debug+set}" = set; then
11422 withval=$with_serial_debug; serial_debug=$withval
11423 else
11424 serial_debug=none
11427 if test "$aros_serial_debug" = 0 ; then
11428 serial_debug_forced=""
11429 if test "$serial_debug" = "yes" ; then
11430 serial_debug="2"
11432 if test "$serial_debug" = "no" ; then
11433 serial_debug="none"
11435 else
11436 serial_debug_forced="(forced)"
11437 serial_debug=$aros_serial_debug
11439 if test "$serial_debug" != "none" ; then
11440 aros_serial_debug=$serial_debug
11441 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11442 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11443 else
11444 { echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6; }
11448 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11449 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11450 # Check whether --enable-palm_debug_hack was given.
11451 if test "${enable_palm_debug_hack+set}" = set; then
11452 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11453 else
11454 palm_debug_hack="no"
11457 if test "$palm_debug_hack" = "yes" ; then
11458 aros_palm_debug_hack="1"
11460 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11461 echo "${ECHO_T}$palm_debug_hack" >&6; }
11464 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11465 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11466 # Check whether --enable-nesting_supervisor was given.
11467 if test "${enable_nesting_supervisor+set}" = set; then
11468 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11469 else
11470 nesting_supervisor="no"
11473 if test "$nesting_supervisor" = "yes" ; then
11474 aros_nesting_supervisor="1"
11476 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11477 echo "${ECHO_T}$nesting_supervisor" >&6; }
11480 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11482 if test "x-$need_dlopen" != "x-no" ; then
11483 { echo "$as_me:$LINENO: checking for dlopen" >&5
11484 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11485 if test "${ac_cv_func_dlopen+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11496 #define dlopen innocuous_dlopen
11498 /* System header to define __stub macros and hopefully few prototypes,
11499 which can conflict with char dlopen (); below.
11500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11501 <limits.h> exists even on freestanding compilers. */
11503 #ifdef __STDC__
11504 # include <limits.h>
11505 #else
11506 # include <assert.h>
11507 #endif
11509 #undef dlopen
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char dlopen ();
11518 /* The GNU C library defines this for functions which it implements
11519 to always fail with ENOSYS. Some functions are actually named
11520 something starting with __ and the normal name is an alias. */
11521 #if defined __stub_dlopen || defined __stub___dlopen
11522 choke me
11523 #endif
11526 main ()
11528 return dlopen ();
11530 return 0;
11532 _ACEOF
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (ac_try="$ac_link"
11535 case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_link") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest$ac_exeext &&
11550 $as_test_x conftest$ac_exeext; then
11551 ac_cv_func_dlopen=yes
11552 else
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11556 ac_cv_func_dlopen=no
11559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11560 conftest$ac_exeext conftest.$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11564 if test $ac_cv_func_dlopen = yes; then
11565 have_dl="yes"
11566 else
11567 have_dl="no"
11570 if test "x-$have_dl" = "x-no" ; then
11571 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11572 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576 ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-ldl $LIBS"
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h. */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11585 /* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 char dlopen ();
11593 main ()
11595 return dlopen ();
11597 return 0;
11599 _ACEOF
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (ac_try="$ac_link"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605 esac
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_link") 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && {
11614 test -z "$ac_c_werror_flag" ||
11615 test ! -s conftest.err
11616 } && test -s conftest$ac_exeext &&
11617 $as_test_x conftest$ac_exeext; then
11618 ac_cv_lib_dl_dlopen=yes
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 ac_cv_lib_dl_dlopen=no
11626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11630 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11632 if test $ac_cv_lib_dl_dlopen = yes; then
11633 have_dl="yes"
11634 aros_host_ldflags="$aros_host_ldflags -ldl"
11635 else
11636 have_dl="no"
11640 if test "x-$have_dl" = "x-no" ; then
11641 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11642 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11643 { (exit 1); exit 1; }; }
11648 # Check whether --enable-x11_hidd was given.
11649 if test "${enable_x11_hidd+set}" = set; then
11650 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11651 else
11652 x11_hidd="auto"
11655 case "x-$x11_hidd" in
11656 x-yes|x-no|x-auto) ;;
11657 *) x11_hidd="auto" ;;
11658 esac
11660 ENABLE_X11=0
11662 if test "x-$x11_hidd" != "x-no" ; then
11664 { echo "$as_me:$LINENO: checking for X" >&5
11665 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11668 # Check whether --with-x was given.
11669 if test "${with_x+set}" = set; then
11670 withval=$with_x;
11673 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11674 if test "x$with_x" = xno; then
11675 # The user explicitly disabled X.
11676 have_x=disabled
11677 else
11678 case $x_includes,$x_libraries in #(
11679 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11680 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11681 { (exit 1); exit 1; }; };; #(
11682 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685 # One or both of the vars are not set, and there is no cached value.
11686 ac_x_includes=no ac_x_libraries=no
11687 rm -f -r conftest.dir
11688 if mkdir conftest.dir; then
11689 cd conftest.dir
11690 cat >Imakefile <<'_ACEOF'
11691 incroot:
11692 @echo incroot='${INCROOT}'
11693 usrlibdir:
11694 @echo usrlibdir='${USRLIBDIR}'
11695 libdir:
11696 @echo libdir='${LIBDIR}'
11697 _ACEOF
11698 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11699 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11700 for ac_var in incroot usrlibdir libdir; do
11701 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11702 done
11703 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11704 for ac_extension in a so sl dylib la dll; do
11705 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11706 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11707 ac_im_usrlibdir=$ac_im_libdir; break
11709 done
11710 # Screen out bogus values from the imake configuration. They are
11711 # bogus both because they are the default anyway, and because
11712 # using them would break gcc on systems where it needs fixed includes.
11713 case $ac_im_incroot in
11714 /usr/include) ac_x_includes= ;;
11715 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11716 esac
11717 case $ac_im_usrlibdir in
11718 /usr/lib | /lib) ;;
11719 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11720 esac
11722 cd ..
11723 rm -f -r conftest.dir
11726 # Standard set of common directories for X headers.
11727 # Check X11 before X11Rn because it is often a symlink to the current release.
11728 ac_x_header_dirs='
11729 /usr/X11/include
11730 /usr/X11R6/include
11731 /usr/X11R5/include
11732 /usr/X11R4/include
11734 /usr/include/X11
11735 /usr/include/X11R6
11736 /usr/include/X11R5
11737 /usr/include/X11R4
11739 /usr/local/X11/include
11740 /usr/local/X11R6/include
11741 /usr/local/X11R5/include
11742 /usr/local/X11R4/include
11744 /usr/local/include/X11
11745 /usr/local/include/X11R6
11746 /usr/local/include/X11R5
11747 /usr/local/include/X11R4
11749 /usr/X386/include
11750 /usr/x386/include
11751 /usr/XFree86/include/X11
11753 /usr/include
11754 /usr/local/include
11755 /usr/unsupported/include
11756 /usr/athena/include
11757 /usr/local/x11r5/include
11758 /usr/lpp/Xamples/include
11760 /usr/openwin/include
11761 /usr/openwin/share/include'
11763 if test "$ac_x_includes" = no; then
11764 # Guess where to find include files, by looking for Xlib.h.
11765 # First, try using that file with no special directory specified.
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h. */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 #include <X11/Xlib.h>
11773 _ACEOF
11774 if { (ac_try="$ac_cpp conftest.$ac_ext"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } >/dev/null && {
11787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 }; then
11790 # We can compile using X headers with no special include directory.
11791 ac_x_includes=
11792 else
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 for ac_dir in $ac_x_header_dirs; do
11797 if test -r "$ac_dir/X11/Xlib.h"; then
11798 ac_x_includes=$ac_dir
11799 break
11801 done
11804 rm -f conftest.err conftest.$ac_ext
11805 fi # $ac_x_includes = no
11807 if test "$ac_x_libraries" = no; then
11808 # Check for the libraries.
11809 # See if we find them without any special options.
11810 # Don't add to $LIBS permanently.
11811 ac_save_LIBS=$LIBS
11812 LIBS="-lX11 $LIBS"
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <X11/Xlib.h>
11821 main ()
11823 XrmInitialize ()
11825 return 0;
11827 _ACEOF
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest$ac_exeext &&
11845 $as_test_x conftest$ac_exeext; then
11846 LIBS=$ac_save_LIBS
11847 # We can link X programs with no special library path.
11848 ac_x_libraries=
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 LIBS=$ac_save_LIBS
11854 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11856 # Don't even attempt the hair of trying to link an X program!
11857 for ac_extension in a so sl dylib la dll; do
11858 if test -r "$ac_dir/libX11.$ac_extension"; then
11859 ac_x_libraries=$ac_dir
11860 break 2
11862 done
11863 done
11866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11867 conftest$ac_exeext conftest.$ac_ext
11868 fi # $ac_x_libraries = no
11870 case $ac_x_includes,$ac_x_libraries in #(
11871 no,* | *,no | *\'*)
11872 # Didn't find X, or a directory has "'" in its name.
11873 ac_cv_have_x="have_x=no";; #(
11875 # Record where we found X for the cache.
11876 ac_cv_have_x="have_x=yes\
11877 ac_x_includes='$ac_x_includes'\
11878 ac_x_libraries='$ac_x_libraries'"
11879 esac
11881 ;; #(
11882 *) have_x=yes;;
11883 esac
11884 eval "$ac_cv_have_x"
11885 fi # $with_x != no
11887 if test "$have_x" != yes; then
11888 { echo "$as_me:$LINENO: result: $have_x" >&5
11889 echo "${ECHO_T}$have_x" >&6; }
11890 no_x=yes
11891 else
11892 # If each of the values was on the command line, it overrides each guess.
11893 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11894 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11895 # Update the cache value to reflect the command line values.
11896 ac_cv_have_x="have_x=yes\
11897 ac_x_includes='$x_includes'\
11898 ac_x_libraries='$x_libraries'"
11899 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11900 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11904 x_cflags=
11905 for path in $x_libraries
11907 x_cflags="$x_cflags -L$path"
11908 done
11910 for path in $x_includes
11912 x_cflags="$x_cflags -I$path"
11913 done
11915 if test "x-$no_x" = "x-yes" ; then
11917 if test "x-$x11_hidd" != "x-auto" ; then
11918 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11919 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11920 { (exit 1); exit 1; }; }
11923 else
11924 x11_hidd_target=kernel-x11gfx-kobj
11925 ENABLE_X11=1
11927 # Check whether --enable-x11_shm was given.
11928 if test "${enable_x11_shm+set}" = set; then
11929 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11930 else
11931 x11_hidd_shm="auto"
11934 case "x-$x11_hidd_shm" in
11935 x-yes|x-no|x-auto) ;;
11936 *) x11_hidd_shm="auto" ;;
11937 esac
11939 have_xshm=no
11941 if test "x-$x11_hidd_shm" != "x-no" ; then
11944 for ac_header in sys/ipc.h
11946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 ac_res=`eval echo '${'$as_ac_Header'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 else
11957 # Is the header compilable?
11958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 $ac_includes_default
11967 #include <$ac_header>
11968 _ACEOF
11969 rm -f conftest.$ac_objext
11970 if { (ac_try="$ac_compile"
11971 case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_compile") 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest.$ac_objext; then
11986 ac_header_compiler=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ac_header_compiler=no
11994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11996 echo "${ECHO_T}$ac_header_compiler" >&6; }
11998 # Is the header present?
11999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 #include <$ac_header>
12008 _ACEOF
12009 if { (ac_try="$ac_cpp conftest.$ac_ext"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } >/dev/null && {
12022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 }; then
12025 ac_header_preproc=yes
12026 else
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 ac_header_preproc=no
12033 rm -f conftest.err conftest.$ac_ext
12034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12035 echo "${ECHO_T}$ac_header_preproc" >&6; }
12037 # So? What about this header?
12038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12039 yes:no: )
12040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12044 ac_header_preproc=yes
12046 no:yes:* )
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12061 esac
12062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067 eval "$as_ac_Header=\$ac_header_preproc"
12069 ac_res=`eval echo '${'$as_ac_Header'}'`
12070 { echo "$as_me:$LINENO: result: $ac_res" >&5
12071 echo "${ECHO_T}$ac_res" >&6; }
12074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12077 _ACEOF
12081 done
12084 for ac_header in sys/shm.h
12086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 ac_res=`eval echo '${'$as_ac_Header'}'`
12094 { echo "$as_me:$LINENO: result: $ac_res" >&5
12095 echo "${ECHO_T}$ac_res" >&6; }
12096 else
12097 # Is the header compilable?
12098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 $ac_includes_default
12107 #include <$ac_header>
12108 _ACEOF
12109 rm -f conftest.$ac_objext
12110 if { (ac_try="$ac_compile"
12111 case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_compile") 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest.$ac_objext; then
12126 ac_header_compiler=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_header_compiler=no
12134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12136 echo "${ECHO_T}$ac_header_compiler" >&6; }
12138 # Is the header present?
12139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12141 cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h. */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 #include <$ac_header>
12148 _ACEOF
12149 if { (ac_try="$ac_cpp conftest.$ac_ext"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153 esac
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } >/dev/null && {
12162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12163 test ! -s conftest.err
12164 }; then
12165 ac_header_preproc=yes
12166 else
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 ac_header_preproc=no
12173 rm -f conftest.err conftest.$ac_ext
12174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12175 echo "${ECHO_T}$ac_header_preproc" >&6; }
12177 # So? What about this header?
12178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12179 yes:no: )
12180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12184 ac_header_preproc=yes
12186 no:yes:* )
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12201 esac
12202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 eval "$as_ac_Header=\$ac_header_preproc"
12209 ac_res=`eval echo '${'$as_ac_Header'}'`
12210 { echo "$as_me:$LINENO: result: $ac_res" >&5
12211 echo "${ECHO_T}$ac_res" >&6; }
12214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12215 cat >>confdefs.h <<_ACEOF
12216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12217 _ACEOF
12221 done
12224 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12226 save_cflags="$CFLAGS"
12227 CFLAGS="$CFLAGS $x_cflags"
12228 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12229 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
12230 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lXext $LIBS"
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char XShmQueryExtension ();
12250 main ()
12252 return XShmQueryExtension ();
12254 return 0;
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (ac_try="$ac_link"
12259 case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262 esac
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_link") 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } && {
12271 test -z "$ac_c_werror_flag" ||
12272 test ! -s conftest.err
12273 } && test -s conftest$ac_exeext &&
12274 $as_test_x conftest$ac_exeext; then
12275 ac_cv_lib_Xext_XShmQueryExtension=yes
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_cv_lib_Xext_XShmQueryExtension=no
12283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12284 conftest$ac_exeext conftest.$ac_ext
12285 LIBS=$ac_check_lib_save_LIBS
12287 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12288 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12289 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12290 have_xshm=yes
12293 CFLAGS="$save_cflags"
12297 if test "x-$have_xshm" = "x-yes" ; then
12298 DO_XSHM_SUPPORT="1"
12299 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12300 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12301 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12302 { (exit 1); exit 1; }; }
12303 else
12304 DO_XSHM_SUPPORT="0"
12308 # Check whether --enable-x11_vidmode was given.
12309 if test "${enable_x11_vidmode+set}" = set; then
12310 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12311 else
12312 x11_hidd_vidmode="auto"
12315 case "x-$x11_hidd_vidmode" in
12316 x-yes|x-no|x-auto) ;;
12317 *) x11_hidd_vidmode="auto" ;;
12318 esac
12320 have_vidmode=no
12322 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12324 save_cflags="$CFLAGS"
12325 CFLAGS="$CFLAGS $x_cflags"
12326 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12327 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12328 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 ac_check_lib_save_LIBS=$LIBS
12332 LIBS="-lXxf86vm $LIBS"
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12340 /* Override any GCC internal prototype to avoid an error.
12341 Use char because int might match the return type of a GCC
12342 builtin and then its argument prototype would still apply. */
12343 #ifdef __cplusplus
12344 extern "C"
12345 #endif
12346 char XF86VidModeQueryExtension ();
12348 main ()
12350 return XF86VidModeQueryExtension ();
12352 return 0;
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (ac_try="$ac_link"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_link") 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } && {
12369 test -z "$ac_c_werror_flag" ||
12370 test ! -s conftest.err
12371 } && test -s conftest$ac_exeext &&
12372 $as_test_x conftest$ac_exeext; then
12373 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12374 else
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12382 conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12385 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12386 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12387 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12388 have_vidmode=yes
12391 CFLAGS="$save_cflags"
12394 if test "x-$have_vidmode" = "x-yes" ; then
12395 DO_VIDMODE_SUPPORT="1"
12396 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12397 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12398 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12399 { (exit 1); exit 1; }; }
12400 else
12401 DO_VIDMODE_SUPPORT="0"
12405 aros_host_x11_includes=$x_includes
12406 aros_host_x11_libdirs=$x_libraries
12410 # Check whether --enable-sdl_hidd was given.
12411 if test "${enable_sdl_hidd+set}" = set; then
12412 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12413 else
12414 sdl_hidd="auto"
12417 case "x-$sdl_hidd" in
12418 x-yes|x-no|x-auto) ;;
12419 *) sdl_hidd="auto" ;;
12420 esac
12422 if test "x-$sdl_hidd" != "x-no" ; then
12425 # Check whether --with-sdl-prefix was given.
12426 if test "${with_sdl_prefix+set}" = set; then
12427 withval=$with_sdl_prefix; sdl_prefix="$withval"
12428 else
12429 sdl_prefix=""
12433 # Check whether --with-sdl-exec-prefix was given.
12434 if test "${with_sdl_exec_prefix+set}" = set; then
12435 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12436 else
12437 sdl_exec_prefix=""
12440 # Check whether --enable-sdltest was given.
12441 if test "${enable_sdltest+set}" = set; then
12442 enableval=$enable_sdltest;
12443 else
12444 enable_sdltest=yes
12448 if test x$sdl_exec_prefix != x ; then
12449 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12450 if test x${SDL_CONFIG+set} != xset ; then
12451 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12454 if test x$sdl_prefix != x ; then
12455 sdl_args="$sdl_args --prefix=$sdl_prefix"
12456 if test x${SDL_CONFIG+set} != xset ; then
12457 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12461 if test "x$prefix" != xNONE; then
12462 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12464 # Extract the first word of "sdl-config", so it can be a program name with args.
12465 set dummy sdl-config; ac_word=$2
12466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12468 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471 case $SDL_CONFIG in
12472 [\\/]* | ?:[\\/]*)
12473 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 break 2
12487 done
12488 done
12489 IFS=$as_save_IFS
12491 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12493 esac
12495 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12496 if test -n "$SDL_CONFIG"; then
12497 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12498 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12499 else
12500 { echo "$as_me:$LINENO: result: no" >&5
12501 echo "${ECHO_T}no" >&6; }
12505 min_sdl_version=1.2.10
12506 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12507 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12508 no_sdl=""
12509 if test "$SDL_CONFIG" = "no" ; then
12510 no_sdl=yes
12511 else
12512 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12513 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12515 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12517 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12519 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12520 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12521 if test "x$enable_sdltest" = "xyes" ; then
12522 ac_save_CFLAGS="$CFLAGS"
12523 ac_save_CXXFLAGS="$CXXFLAGS"
12524 ac_save_LIBS="$LIBS"
12525 CFLAGS="$CFLAGS $SDL_CFLAGS"
12526 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12527 LIBS="$LIBS $SDL_LIBS"
12528 rm -f conf.sdltest
12529 if test "$cross_compiling" = yes; then
12530 echo $ac_n "cross compiling; assumed OK... $ac_c"
12531 else
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12539 #include <stdio.h>
12540 #include <stdlib.h>
12541 #include <string.h>
12542 #include "SDL.h"
12544 char*
12545 my_strdup (char *str)
12547 char *new_str;
12549 if (str)
12551 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12552 strcpy (new_str, str);
12554 else
12555 new_str = NULL;
12557 return new_str;
12560 int main (int argc, char *argv[])
12562 int major, minor, micro;
12563 char *tmp_version;
12565 /* This hangs on some systems (?)
12566 system ("touch conf.sdltest");
12568 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12570 /* HP/UX 9 (%@#!) writes to sscanf strings */
12571 tmp_version = my_strdup("$min_sdl_version");
12572 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12573 printf("%s, bad version string\n", "$min_sdl_version");
12574 exit(1);
12577 if (($sdl_major_version > major) ||
12578 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12579 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12581 return 0;
12583 else
12585 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12586 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12587 printf("*** best to upgrade to the required version.\n");
12588 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12589 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12590 printf("*** config.cache before re-running configure\n");
12591 return 1;
12596 _ACEOF
12597 rm -f conftest$ac_exeext
12598 if { (ac_try="$ac_link"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_link") 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12618 else
12619 echo "$as_me: program exited with status $ac_status" >&5
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 ( exit $ac_status )
12624 no_sdl=yes
12626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12630 CFLAGS="$ac_save_CFLAGS"
12631 CXXFLAGS="$ac_save_CXXFLAGS"
12632 LIBS="$ac_save_LIBS"
12635 if test "x$no_sdl" = x ; then
12636 { echo "$as_me:$LINENO: result: yes" >&5
12637 echo "${ECHO_T}yes" >&6; }
12638 have_sdl="yes"
12639 else
12640 { echo "$as_me:$LINENO: result: no" >&5
12641 echo "${ECHO_T}no" >&6; }
12642 if test "$SDL_CONFIG" = "no" ; then
12643 echo "*** The sdl-config script installed by SDL could not be found"
12644 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12645 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12646 echo "*** full path to sdl-config."
12647 else
12648 if test -f conf.sdltest ; then
12650 else
12651 echo "*** Could not run SDL test program, checking why..."
12652 CFLAGS="$CFLAGS $SDL_CFLAGS"
12653 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12654 LIBS="$LIBS $SDL_LIBS"
12655 cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h. */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 #include <stdio.h>
12663 #include "SDL.h"
12665 int main(int argc, char *argv[])
12666 { return 0; }
12667 #undef main
12668 #define main K_and_R_C_main
12671 main ()
12673 return 0;
12675 return 0;
12677 _ACEOF
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest$ac_exeext &&
12695 $as_test_x conftest$ac_exeext; then
12696 echo "*** The test program compiled, but did not run. This usually means"
12697 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12698 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12699 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12700 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12701 echo "*** is required on your system"
12702 echo "***"
12703 echo "*** If you have an old version installed, it is best to remove it, although"
12704 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12705 else
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12709 echo "*** The test program failed to compile or link. See the file config.log for the"
12710 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12711 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12712 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12716 conftest$ac_exeext conftest.$ac_ext
12717 CFLAGS="$ac_save_CFLAGS"
12718 CXXFLAGS="$ac_save_CXXFLAGS"
12719 LIBS="$ac_save_LIBS"
12722 SDL_CFLAGS=""
12723 SDL_LIBS=""
12724 have_sdl="no"
12728 rm -f conf.sdltest
12731 if test "x-$have_sdl" != "x-yes" ; then
12733 if test "x-$sdl_hidd" != "x-auto" ; then
12734 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12735 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12736 { (exit 1); exit 1; }; }
12739 else
12740 sdl_hidd_target=kernel-hidd-sdl
12741 aros_host_sdl_cflags=SDL_CFLAGS
12742 aros_host_sdl_libs=SDL_LIBS
12746 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12747 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
12748 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
12749 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
12753 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
12754 else
12755 # Is the header compilable?
12756 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
12757 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 $ac_includes_default
12765 #include <sys/soundcard.h>
12766 _ACEOF
12767 rm -f conftest.$ac_objext
12768 if { (ac_try="$ac_compile"
12769 case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772 esac
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_compile") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } && {
12781 test -z "$ac_c_werror_flag" ||
12782 test ! -s conftest.err
12783 } && test -s conftest.$ac_objext; then
12784 ac_header_compiler=yes
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_header_compiler=no
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12794 echo "${ECHO_T}$ac_header_compiler" >&6; }
12796 # Is the header present?
12797 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
12798 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h. */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 #include <sys/soundcard.h>
12806 _ACEOF
12807 if { (ac_try="$ac_cpp conftest.$ac_ext"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12814 ac_status=$?
12815 grep -v '^ *+' conftest.er1 >conftest.err
12816 rm -f conftest.er1
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } >/dev/null && {
12820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 }; then
12823 ac_header_preproc=yes
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_header_preproc=no
12831 rm -f conftest.err conftest.$ac_ext
12832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12833 echo "${ECHO_T}$ac_header_preproc" >&6; }
12835 # So? What about this header?
12836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12837 yes:no: )
12838 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
12839 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
12841 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
12842 ac_header_preproc=yes
12844 no:yes:* )
12845 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
12846 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
12848 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
12850 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
12851 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
12852 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
12853 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
12854 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
12855 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
12856 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
12859 esac
12860 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
12861 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
12862 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865 ac_cv_header_sys_soundcard_h=$ac_header_preproc
12867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
12868 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
12873 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12874 oss_library_target=workbench-libs-oss-unix
12879 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12880 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12881 # Check whether --enable-dbus was given.
12882 if test "${enable_dbus+set}" = set; then
12883 enableval=$enable_dbus; dbus="yes"
12884 else
12885 dbus="no"
12888 if test "$dbus" = "yes" ; then
12889 ENABLE_DBUS=1
12890 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12891 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12892 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12893 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12894 else
12895 ENABLE_DBUS=0
12897 { echo "$as_me:$LINENO: result: $dbus" >&5
12898 echo "${ECHO_T}$dbus" >&6; }
12902 # Generic
12912 # Host related
12935 # Target Related
12989 # Graphics Related
13006 # Native version related
13009 # Palm native version related
13012 # Unix/Hosted version related
13015 # Apple iOS related
13020 # DBUS related
13027 #X11 related
13030 # Debug related
13036 # Collect-aros stuff: "-ius" to ignore undefined symbols
13039 # C compiler related
13042 case "$aros_flavour" in
13043 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
13044 aros_flavour="emulation" ;;
13045 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
13046 aros_flavour="emulation" ;;
13047 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
13048 aros_flavour="standalone";;
13049 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13050 aros_flavour="standalone";;
13051 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
13052 aros_flavour="native" ;;
13053 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
13054 aros_flavour="native" ;;
13055 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
13056 aros_flavour="linklib" ;;
13057 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13058 aros_flavour="palmnative" ;;
13059 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13060 aros_flavour="mac68knative" ;;
13061 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13062 aros_flavour="ppcnative" ;;
13063 esac
13065 if test ! -d ${aros_inc_dir} ; then
13066 ${MKDIR} ${aros_inc_dir}
13068 if test ! -d ${aros_geninc_dir} ; then
13069 ${MKDIR} ${aros_geninc_dir}
13071 if test ! -d ${aros_hostcfg_dir} ; then
13072 ${MKDIR} ${aros_hostcfg_dir}
13074 if test ! -d ${aros_targetcfg_dir} ; then
13075 ${MKDIR} ${aros_targetcfg_dir}
13077 if test ! -d ${aros_tools_dir} ; then
13078 ${MKDIR} ${aros_tools_dir}
13080 if test ! -d ${aros_scripts_dir} ; then
13081 ${MKDIR} ${aros_scripts_dir}
13084 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
13087 ac_config_commands="$ac_config_commands compiler_executable"
13089 ac_config_commands="$ac_config_commands genshared_executable"
13091 ac_config_commands="$ac_config_commands genmf_executable"
13094 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"
13097 cat >confcache <<\_ACEOF
13098 # This file is a shell script that caches the results of configure
13099 # tests run on this system so they can be shared between configure
13100 # scripts and configure runs, see configure's option --config-cache.
13101 # It is not useful on other systems. If it contains results you don't
13102 # want to keep, you may remove or edit it.
13104 # config.status only pays attention to the cache file if you give it
13105 # the --recheck option to rerun configure.
13107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13109 # following values.
13111 _ACEOF
13113 # The following way of writing the cache mishandles newlines in values,
13114 # but we know of no workaround that is simple, portable, and efficient.
13115 # So, we kill variables containing newlines.
13116 # Ultrix sh set writes to stderr and can't be redirected directly,
13117 # and sets the high bit in the cache file unless we assign to the vars.
13119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13120 eval ac_val=\$$ac_var
13121 case $ac_val in #(
13122 *${as_nl}*)
13123 case $ac_var in #(
13124 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13125 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13126 esac
13127 case $ac_var in #(
13128 _ | IFS | as_nl) ;; #(
13129 *) $as_unset $ac_var ;;
13130 esac ;;
13131 esac
13132 done
13134 (set) 2>&1 |
13135 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13136 *${as_nl}ac_space=\ *)
13137 # `set' does not quote correctly, so add quotes (double-quote
13138 # substitution turns \\\\ into \\, and sed turns \\ into \).
13139 sed -n \
13140 "s/'/'\\\\''/g;
13141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13142 ;; #(
13144 # `set' quotes correctly as required by POSIX, so do not add quotes.
13145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13147 esac |
13148 sort
13150 sed '
13151 /^ac_cv_env_/b end
13152 t clear
13153 :clear
13154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13155 t end
13156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13157 :end' >>confcache
13158 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13159 if test -w "$cache_file"; then
13160 test "x$cache_file" != "x/dev/null" &&
13161 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13162 echo "$as_me: updating cache $cache_file" >&6;}
13163 cat confcache >$cache_file
13164 else
13165 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13166 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13169 rm -f confcache
13171 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13172 # Let make expand exec_prefix.
13173 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13175 DEFS=-DHAVE_CONFIG_H
13177 ac_libobjs=
13178 ac_ltlibobjs=
13179 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13180 # 1. Remove the extension, and $U if already installed.
13181 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13182 ac_i=`echo "$ac_i" | sed "$ac_script"`
13183 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13184 # will be set to the directory where LIBOBJS objects are built.
13185 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13186 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13187 done
13188 LIBOBJS=$ac_libobjs
13190 LTLIBOBJS=$ac_ltlibobjs
13194 : ${CONFIG_STATUS=./config.status}
13195 ac_clean_files_save=$ac_clean_files
13196 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13197 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13198 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13199 cat >$CONFIG_STATUS <<_ACEOF
13200 #! $SHELL
13201 # Generated by $as_me.
13202 # Run this file to recreate the current configuration.
13203 # Compiler output produced by configure, useful for debugging
13204 # configure, is in config.log if it exists.
13206 debug=false
13207 ac_cs_recheck=false
13208 ac_cs_silent=false
13209 SHELL=\${CONFIG_SHELL-$SHELL}
13210 _ACEOF
13212 cat >>$CONFIG_STATUS <<\_ACEOF
13213 ## --------------------- ##
13214 ## M4sh Initialization. ##
13215 ## --------------------- ##
13217 # Be more Bourne compatible
13218 DUALCASE=1; export DUALCASE # for MKS sh
13219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13220 emulate sh
13221 NULLCMD=:
13222 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13223 # is contrary to our usage. Disable this feature.
13224 alias -g '${1+"$@"}'='"$@"'
13225 setopt NO_GLOB_SUBST
13226 else
13227 case `(set -o) 2>/dev/null` in
13228 *posix*) set -o posix ;;
13229 esac
13236 # PATH needs CR
13237 # Avoid depending upon Character Ranges.
13238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13241 as_cr_digits='0123456789'
13242 as_cr_alnum=$as_cr_Letters$as_cr_digits
13244 # The user is always right.
13245 if test "${PATH_SEPARATOR+set}" != set; then
13246 echo "#! /bin/sh" >conf$$.sh
13247 echo "exit 0" >>conf$$.sh
13248 chmod +x conf$$.sh
13249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13250 PATH_SEPARATOR=';'
13251 else
13252 PATH_SEPARATOR=:
13254 rm -f conf$$.sh
13257 # Support unset when possible.
13258 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13259 as_unset=unset
13260 else
13261 as_unset=false
13265 # IFS
13266 # We need space, tab and new line, in precisely that order. Quoting is
13267 # there to prevent editors from complaining about space-tab.
13268 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13269 # splitting by setting IFS to empty value.)
13270 as_nl='
13272 IFS=" "" $as_nl"
13274 # Find who we are. Look in the path if we contain no directory separator.
13275 case $0 in
13276 *[\\/]* ) as_myself=$0 ;;
13277 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
13282 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13283 done
13284 IFS=$as_save_IFS
13287 esac
13288 # We did not find ourselves, most probably we were run as `sh COMMAND'
13289 # in which case we are not to be found in the path.
13290 if test "x$as_myself" = x; then
13291 as_myself=$0
13293 if test ! -f "$as_myself"; then
13294 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13295 { (exit 1); exit 1; }
13298 # Work around bugs in pre-3.0 UWIN ksh.
13299 for as_var in ENV MAIL MAILPATH
13300 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13301 done
13302 PS1='$ '
13303 PS2='> '
13304 PS4='+ '
13306 # NLS nuisances.
13307 for as_var in \
13308 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13309 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13310 LC_TELEPHONE LC_TIME
13312 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13313 eval $as_var=C; export $as_var
13314 else
13315 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13317 done
13319 # Required to use basename.
13320 if expr a : '\(a\)' >/dev/null 2>&1 &&
13321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13322 as_expr=expr
13323 else
13324 as_expr=false
13327 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13328 as_basename=basename
13329 else
13330 as_basename=false
13334 # Name of the executable.
13335 as_me=`$as_basename -- "$0" ||
13336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13337 X"$0" : 'X\(//\)$' \| \
13338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13339 echo X/"$0" |
13340 sed '/^.*\/\([^/][^/]*\)\/*$/{
13341 s//\1/
13344 /^X\/\(\/\/\)$/{
13345 s//\1/
13348 /^X\/\(\/\).*/{
13349 s//\1/
13352 s/.*/./; q'`
13354 # CDPATH.
13355 $as_unset CDPATH
13359 as_lineno_1=$LINENO
13360 as_lineno_2=$LINENO
13361 test "x$as_lineno_1" != "x$as_lineno_2" &&
13362 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13364 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13365 # uniformly replaced by the line number. The first 'sed' inserts a
13366 # line-number line after each line using $LINENO; the second 'sed'
13367 # does the real work. The second script uses 'N' to pair each
13368 # line-number line with the line containing $LINENO, and appends
13369 # trailing '-' during substitution so that $LINENO is not a special
13370 # case at line end.
13371 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13372 # scripts with optimization help from Paolo Bonzini. Blame Lee
13373 # E. McMahon (1931-1989) for sed's syntax. :-)
13374 sed -n '
13376 /[$]LINENO/=
13377 ' <$as_myself |
13378 sed '
13379 s/[$]LINENO.*/&-/
13380 t lineno
13382 :lineno
13384 :loop
13385 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13386 t loop
13387 s/-\n.*//
13388 ' >$as_me.lineno &&
13389 chmod +x "$as_me.lineno" ||
13390 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13391 { (exit 1); exit 1; }; }
13393 # Don't try to exec as it changes $[0], causing all sort of problems
13394 # (the dirname of $[0] is not the place where we might find the
13395 # original and so on. Autoconf is especially sensitive to this).
13396 . "./$as_me.lineno"
13397 # Exit status is that of the last command.
13398 exit
13402 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13403 as_dirname=dirname
13404 else
13405 as_dirname=false
13408 ECHO_C= ECHO_N= ECHO_T=
13409 case `echo -n x` in
13410 -n*)
13411 case `echo 'x\c'` in
13412 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13413 *) ECHO_C='\c';;
13414 esac;;
13416 ECHO_N='-n';;
13417 esac
13419 if expr a : '\(a\)' >/dev/null 2>&1 &&
13420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13421 as_expr=expr
13422 else
13423 as_expr=false
13426 rm -f conf$$ conf$$.exe conf$$.file
13427 if test -d conf$$.dir; then
13428 rm -f conf$$.dir/conf$$.file
13429 else
13430 rm -f conf$$.dir
13431 mkdir conf$$.dir
13433 echo >conf$$.file
13434 if ln -s conf$$.file conf$$ 2>/dev/null; then
13435 as_ln_s='ln -s'
13436 # ... but there are two gotchas:
13437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13439 # In both cases, we have to default to `cp -p'.
13440 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13441 as_ln_s='cp -p'
13442 elif ln conf$$.file conf$$ 2>/dev/null; then
13443 as_ln_s=ln
13444 else
13445 as_ln_s='cp -p'
13447 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13448 rmdir conf$$.dir 2>/dev/null
13450 if mkdir -p . 2>/dev/null; then
13451 as_mkdir_p=:
13452 else
13453 test -d ./-p && rmdir ./-p
13454 as_mkdir_p=false
13457 if test -x / >/dev/null 2>&1; then
13458 as_test_x='test -x'
13459 else
13460 if ls -dL / >/dev/null 2>&1; then
13461 as_ls_L_option=L
13462 else
13463 as_ls_L_option=
13465 as_test_x='
13466 eval sh -c '\''
13467 if test -d "$1"; then
13468 test -d "$1/.";
13469 else
13470 case $1 in
13471 -*)set "./$1";;
13472 esac;
13473 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13474 ???[sx]*):;;*)false;;esac;fi
13475 '\'' sh
13478 as_executable_p=$as_test_x
13480 # Sed expression to map a string onto a valid CPP name.
13481 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13483 # Sed expression to map a string onto a valid variable name.
13484 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13487 exec 6>&1
13489 # Save the log message, to keep $[0] and so on meaningful, and to
13490 # report actual input values of CONFIG_FILES etc. instead of their
13491 # values after options handling.
13492 ac_log="
13493 This file was extended by $as_me, which was
13494 generated by GNU Autoconf 2.61. Invocation command line was
13496 CONFIG_FILES = $CONFIG_FILES
13497 CONFIG_HEADERS = $CONFIG_HEADERS
13498 CONFIG_LINKS = $CONFIG_LINKS
13499 CONFIG_COMMANDS = $CONFIG_COMMANDS
13500 $ $0 $@
13502 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13505 _ACEOF
13507 cat >>$CONFIG_STATUS <<_ACEOF
13508 # Files that config.status was made for.
13509 config_files="$ac_config_files"
13510 config_headers="$ac_config_headers"
13511 config_commands="$ac_config_commands"
13513 _ACEOF
13515 cat >>$CONFIG_STATUS <<\_ACEOF
13516 ac_cs_usage="\
13517 \`$as_me' instantiates files from templates according to the
13518 current configuration.
13520 Usage: $0 [OPTIONS] [FILE]...
13522 -h, --help print this help, then exit
13523 -V, --version print version number and configuration settings, then exit
13524 -q, --quiet do not print progress messages
13525 -d, --debug don't remove temporary files
13526 --recheck update $as_me by reconfiguring in the same conditions
13527 --file=FILE[:TEMPLATE]
13528 instantiate the configuration file FILE
13529 --header=FILE[:TEMPLATE]
13530 instantiate the configuration header FILE
13532 Configuration files:
13533 $config_files
13535 Configuration headers:
13536 $config_headers
13538 Configuration commands:
13539 $config_commands
13541 Report bugs to <bug-autoconf@gnu.org>."
13543 _ACEOF
13544 cat >>$CONFIG_STATUS <<_ACEOF
13545 ac_cs_version="\\
13546 config.status
13547 configured by $0, generated by GNU Autoconf 2.61,
13548 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13550 Copyright (C) 2006 Free Software Foundation, Inc.
13551 This config.status script is free software; the Free Software Foundation
13552 gives unlimited permission to copy, distribute and modify it."
13554 ac_pwd='$ac_pwd'
13555 srcdir='$srcdir'
13556 _ACEOF
13558 cat >>$CONFIG_STATUS <<\_ACEOF
13559 # If no file are specified by the user, then we need to provide default
13560 # value. By we need to know if files were specified by the user.
13561 ac_need_defaults=:
13562 while test $# != 0
13564 case $1 in
13565 --*=*)
13566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13568 ac_shift=:
13571 ac_option=$1
13572 ac_optarg=$2
13573 ac_shift=shift
13575 esac
13577 case $ac_option in
13578 # Handling of the options.
13579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13580 ac_cs_recheck=: ;;
13581 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13582 echo "$ac_cs_version"; exit ;;
13583 --debug | --debu | --deb | --de | --d | -d )
13584 debug=: ;;
13585 --file | --fil | --fi | --f )
13586 $ac_shift
13587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13588 ac_need_defaults=false;;
13589 --header | --heade | --head | --hea )
13590 $ac_shift
13591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13592 ac_need_defaults=false;;
13593 --he | --h)
13594 # Conflict between --help and --header
13595 { echo "$as_me: error: ambiguous option: $1
13596 Try \`$0 --help' for more information." >&2
13597 { (exit 1); exit 1; }; };;
13598 --help | --hel | -h )
13599 echo "$ac_cs_usage"; exit ;;
13600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13601 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13602 ac_cs_silent=: ;;
13604 # This is an error.
13605 -*) { echo "$as_me: error: unrecognized option: $1
13606 Try \`$0 --help' for more information." >&2
13607 { (exit 1); exit 1; }; } ;;
13609 *) ac_config_targets="$ac_config_targets $1"
13610 ac_need_defaults=false ;;
13612 esac
13613 shift
13614 done
13616 ac_configure_extra_args=
13618 if $ac_cs_silent; then
13619 exec 6>/dev/null
13620 ac_configure_extra_args="$ac_configure_extra_args --silent"
13623 _ACEOF
13624 cat >>$CONFIG_STATUS <<_ACEOF
13625 if \$ac_cs_recheck; then
13626 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13627 CONFIG_SHELL=$SHELL
13628 export CONFIG_SHELL
13629 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13632 _ACEOF
13633 cat >>$CONFIG_STATUS <<\_ACEOF
13634 exec 5>>config.log
13636 echo
13637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13638 ## Running $as_me. ##
13639 _ASBOX
13640 echo "$ac_log"
13641 } >&5
13643 _ACEOF
13644 cat >>$CONFIG_STATUS <<_ACEOF
13646 # INIT-COMMANDS
13649 aros_host_exe_suffix=${aros_host_exe_suffix}
13650 aros_tools_dir=${aros_tools_dir}
13651 aros_target_cpu=${aros_target_cpu}
13652 aros_target_arch=${aros_target_arch}
13653 aros_target_suffix=${aros_target_suffix}
13654 aros_target_nm_ln=${aros_target_nm_ln}
13655 aros_target_as_ln=${aros_target_as_ln}
13656 aros_target_ar_ln=${aros_target_ar_ln}
13657 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13658 aros_target_objdump_ln=${aros_target_objdump_ln}
13659 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13660 aros_target_strip_ln=${aros_target_strip_ln}
13663 aros_scripts_dir=${aros_scripts_dir}
13665 aros_tools_dir=${aros_tools_dir}
13668 _ACEOF
13670 cat >>$CONFIG_STATUS <<\_ACEOF
13672 # Handling of arguments.
13673 for ac_config_target in $ac_config_targets
13675 case $ac_config_target in
13676 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13677 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13678 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13679 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13681 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13682 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13683 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13684 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13685 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13686 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13687 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13688 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13689 "${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" ;;
13690 "${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" ;;
13691 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13692 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13693 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13695 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13696 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13697 { (exit 1); exit 1; }; };;
13698 esac
13699 done
13702 # If the user did not use the arguments to specify the items to instantiate,
13703 # then the envvar interface is used. Set only those that are not.
13704 # We use the long form for the default assignment because of an extremely
13705 # bizarre bug on SunOS 4.1.3.
13706 if $ac_need_defaults; then
13707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13708 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13709 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13712 # Have a temporary directory for convenience. Make it in the build tree
13713 # simply because there is no reason against having it here, and in addition,
13714 # creating and moving files from /tmp can sometimes cause problems.
13715 # Hook for its removal unless debugging.
13716 # Note that there is a small window in which the directory will not be cleaned:
13717 # after its creation but before its name has been assigned to `$tmp'.
13718 $debug ||
13720 tmp=
13721 trap 'exit_status=$?
13722 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13724 trap '{ (exit 1); exit 1; }' 1 2 13 15
13726 # Create a (secure) tmp directory for tmp files.
13729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13730 test -n "$tmp" && test -d "$tmp"
13731 } ||
13733 tmp=./conf$$-$RANDOM
13734 (umask 077 && mkdir "$tmp")
13735 } ||
13737 echo "$me: cannot create a temporary directory in ." >&2
13738 { (exit 1); exit 1; }
13742 # Set up the sed scripts for CONFIG_FILES section.
13745 # No need to generate the scripts if there are no CONFIG_FILES.
13746 # This happens for instance when ./config.status config.h
13747 if test -n "$CONFIG_FILES"; then
13749 _ACEOF
13753 ac_delim='%!_!# '
13754 for ac_last_try in false false false false false :; do
13755 cat >conf$$subs.sed <<_ACEOF
13756 SHELL!$SHELL$ac_delim
13757 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13758 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13759 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13760 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13761 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13762 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13763 exec_prefix!$exec_prefix$ac_delim
13764 prefix!$prefix$ac_delim
13765 program_transform_name!$program_transform_name$ac_delim
13766 bindir!$bindir$ac_delim
13767 sbindir!$sbindir$ac_delim
13768 libexecdir!$libexecdir$ac_delim
13769 datarootdir!$datarootdir$ac_delim
13770 datadir!$datadir$ac_delim
13771 sysconfdir!$sysconfdir$ac_delim
13772 sharedstatedir!$sharedstatedir$ac_delim
13773 localstatedir!$localstatedir$ac_delim
13774 includedir!$includedir$ac_delim
13775 oldincludedir!$oldincludedir$ac_delim
13776 docdir!$docdir$ac_delim
13777 infodir!$infodir$ac_delim
13778 htmldir!$htmldir$ac_delim
13779 dvidir!$dvidir$ac_delim
13780 pdfdir!$pdfdir$ac_delim
13781 psdir!$psdir$ac_delim
13782 libdir!$libdir$ac_delim
13783 localedir!$localedir$ac_delim
13784 mandir!$mandir$ac_delim
13785 DEFS!$DEFS$ac_delim
13786 ECHO_C!$ECHO_C$ac_delim
13787 ECHO_N!$ECHO_N$ac_delim
13788 ECHO_T!$ECHO_T$ac_delim
13789 LIBS!$LIBS$ac_delim
13790 build_alias!$build_alias$ac_delim
13791 host_alias!$host_alias$ac_delim
13792 target_alias!$target_alias$ac_delim
13793 build!$build$ac_delim
13794 build_cpu!$build_cpu$ac_delim
13795 build_vendor!$build_vendor$ac_delim
13796 build_os!$build_os$ac_delim
13797 host!$host$ac_delim
13798 host_cpu!$host_cpu$ac_delim
13799 host_vendor!$host_vendor$ac_delim
13800 host_os!$host_os$ac_delim
13801 CC!$CC$ac_delim
13802 CFLAGS!$CFLAGS$ac_delim
13803 LDFLAGS!$LDFLAGS$ac_delim
13804 CPPFLAGS!$CPPFLAGS$ac_delim
13805 ac_ct_CC!$ac_ct_CC$ac_delim
13806 EXEEXT!$EXEEXT$ac_delim
13807 OBJEXT!$OBJEXT$ac_delim
13808 CPP!$CPP$ac_delim
13809 AWK!$AWK$ac_delim
13810 MMAKE!$MMAKE$ac_delim
13811 aros_host_ld!$aros_host_ld$ac_delim
13812 aros_host_aclocal!$aros_host_aclocal$ac_delim
13813 aros_host_autoconf!$aros_host_autoconf$ac_delim
13814 aros_host_autoheader!$aros_host_autoheader$ac_delim
13815 aros_host_automake!$aros_host_automake$ac_delim
13816 aros_host_ar!$aros_host_ar$ac_delim
13817 aros_host_ranlib!$aros_host_ranlib$ac_delim
13818 aros_host_strip!$aros_host_strip$ac_delim
13819 RM!$RM$ac_delim
13820 CP!$CP$ac_delim
13821 MV!$MV$ac_delim
13822 ECHO!$ECHO$ac_delim
13823 MKDIR!$MKDIR$ac_delim
13824 TOUCH!$TOUCH$ac_delim
13825 SORT!$SORT$ac_delim
13826 UNIQ!$UNIQ$ac_delim
13827 NOP!$NOP$ac_delim
13828 CAT!$CAT$ac_delim
13829 BISON!$BISON$ac_delim
13830 FLEX!$FLEX$ac_delim
13831 PNGTOPNM!$PNGTOPNM$ac_delim
13832 PPMTOILBM!$PPMTOILBM$ac_delim
13833 SED!$SED$ac_delim
13834 CHMOD!$CHMOD$ac_delim
13835 PYTHON!$PYTHON$ac_delim
13836 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13837 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13838 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13839 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13840 pythondir!$pythondir$ac_delim
13841 pkgpythondir!$pkgpythondir$ac_delim
13842 pyexecdir!$pyexecdir$ac_delim
13843 pkgpyexecdir!$pkgpyexecdir$ac_delim
13844 FOR!$FOR$ac_delim
13845 IF!$IF$ac_delim
13846 TEST!$TEST$ac_delim
13847 CMP!$CMP$ac_delim
13848 GREP!$GREP$ac_delim
13849 EGREP!$EGREP$ac_delim
13850 LIBOBJS!$LIBOBJS$ac_delim
13851 DISTCC!$DISTCC$ac_delim
13852 CCACHE!$CCACHE$ac_delim
13853 _ACEOF
13855 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13856 break
13857 elif $ac_last_try; then
13858 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13859 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13860 { (exit 1); exit 1; }; }
13861 else
13862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13864 done
13866 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13867 if test -n "$ac_eof"; then
13868 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13869 ac_eof=`expr $ac_eof + 1`
13872 cat >>$CONFIG_STATUS <<_ACEOF
13873 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13875 _ACEOF
13876 sed '
13877 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13878 s/^/s,@/; s/!/@,|#_!!_#|/
13881 s/'"$ac_delim"'$/,g/; t
13882 s/$/\\/; p
13883 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13884 ' >>$CONFIG_STATUS <conf$$subs.sed
13885 rm -f conf$$subs.sed
13886 cat >>$CONFIG_STATUS <<_ACEOF
13887 CEOF$ac_eof
13888 _ACEOF
13891 ac_delim='%!_!# '
13892 for ac_last_try in false false false false false :; do
13893 cat >conf$$subs.sed <<_ACEOF
13894 aros_target_cc!$aros_target_cc$ac_delim
13895 aros_target_ld!$aros_target_ld$ac_delim
13896 aros_target_as_ln!$aros_target_as_ln$ac_delim
13897 aros_kernel_ld!$aros_kernel_ld$ac_delim
13898 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13899 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13900 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13901 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13902 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13903 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13904 aros_target_cxx!$aros_target_cxx$ac_delim
13905 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13906 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13907 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13908 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13909 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13910 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13911 host_cflags_iquote!$host_cflags_iquote$ac_delim
13912 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13913 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13914 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13915 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13916 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13917 XMKMF!$XMKMF$ac_delim
13918 SDL_CONFIG!$SDL_CONFIG$ac_delim
13919 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13920 SDL_LIBS!$SDL_LIBS$ac_delim
13921 aros_arch!$aros_arch$ac_delim
13922 aros_cpu!$aros_cpu$ac_delim
13923 aros_flavour!$aros_flavour$ac_delim
13924 aros_flavour_uc!$aros_flavour_uc$ac_delim
13925 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13926 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13927 SRCDIR!$SRCDIR$ac_delim
13928 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13929 aros_cc_pre!$aros_cc_pre$ac_delim
13930 aros_host_arch!$aros_host_arch$ac_delim
13931 aros_host_cpu!$aros_host_cpu$ac_delim
13932 aros_host_cc!$aros_host_cc$ac_delim
13933 aros_host_make!$aros_host_make$ac_delim
13934 aros_host_cflags!$aros_host_cflags$ac_delim
13935 aros_host_ldflags!$aros_host_ldflags$ac_delim
13936 aros_host_debug!$aros_host_debug$ac_delim
13937 aros_host_mkdep!$aros_host_mkdep$ac_delim
13938 aros_host_mkargs!$aros_host_mkargs$ac_delim
13939 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13940 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13941 aros_tools_dir!$aros_tools_dir$ac_delim
13942 aros_target_guitheme!$aros_target_guitheme$ac_delim
13943 aros_target_iconset!$aros_target_iconset$ac_delim
13944 aros_target_bootloader!$aros_target_bootloader$ac_delim
13945 aros_target_arch!$aros_target_arch$ac_delim
13946 aros_target_family!$aros_target_family$ac_delim
13947 aros_target_cpu!$aros_target_cpu$ac_delim
13948 aros_target_variant!$aros_target_variant$ac_delim
13949 aros_target_suffix!$aros_target_suffix$ac_delim
13950 aros_target_incl!$aros_target_incl$ac_delim
13951 aros_target_ar!$aros_target_ar$ac_delim
13952 aros_target_ranlib!$aros_target_ranlib$ac_delim
13953 aros_kernel_nm!$aros_kernel_nm$ac_delim
13954 orig_target_cc!$orig_target_cc$ac_delim
13955 aros_kernel_cc!$aros_kernel_cc$ac_delim
13956 aros_target_as!$aros_target_as$ac_delim
13957 orig_target_ld!$orig_target_ld$ac_delim
13958 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13959 aros_target_cc_path!$aros_target_cc_path$ac_delim
13960 aros_target_objdump!$aros_target_objdump$ac_delim
13961 aros_target_objcopy!$aros_target_objcopy$ac_delim
13962 aros_target_strip!$aros_target_strip$ac_delim
13963 aros_target_nm!$aros_target_nm$ac_delim
13964 aros_shared_default!$aros_shared_default$ac_delim
13965 aros_shared_ld!$aros_shared_ld$ac_delim
13966 aros_object_format!$aros_object_format$ac_delim
13967 aros_compiler_libs!$aros_compiler_libs$ac_delim
13968 aros_arch_libs!$aros_arch_libs$ac_delim
13969 aros_config_cflags!$aros_config_cflags$ac_delim
13970 aros_config_aflags!$aros_config_aflags$ac_delim
13971 aros_config_ldflags!$aros_config_ldflags$ac_delim
13972 aros_shared_cflags!$aros_shared_cflags$ac_delim
13973 aros_shared_aflags!$aros_shared_aflags$ac_delim
13974 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13975 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13976 aros_kernel_includes!$aros_kernel_includes$ac_delim
13977 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
13978 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13979 aros_debug_cflags!$aros_debug_cflags$ac_delim
13980 aros_debug_aflags!$aros_debug_aflags$ac_delim
13981 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13982 aros_paranoia_cflags!$aros_paranoia_cflags$ac_delim
13983 aros_target_genmap!$aros_target_genmap$ac_delim
13984 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13985 crosstools_target!$crosstools_target$ac_delim
13986 x11_hidd_target!$x11_hidd_target$ac_delim
13987 sdl_hidd_target!$sdl_hidd_target$ac_delim
13988 pci_hidd_target!$pci_hidd_target$ac_delim
13989 oss_library_target!$oss_library_target$ac_delim
13990 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13991 _ACEOF
13993 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13994 break
13995 elif $ac_last_try; then
13996 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13998 { (exit 1); exit 1; }; }
13999 else
14000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14002 done
14004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14005 if test -n "$ac_eof"; then
14006 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14007 ac_eof=`expr $ac_eof + 1`
14010 cat >>$CONFIG_STATUS <<_ACEOF
14011 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14013 _ACEOF
14014 sed '
14015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14016 s/^/s,@/; s/!/@,|#_!!_#|/
14019 s/'"$ac_delim"'$/,g/; t
14020 s/$/\\/; p
14021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14022 ' >>$CONFIG_STATUS <conf$$subs.sed
14023 rm -f conf$$subs.sed
14024 cat >>$CONFIG_STATUS <<_ACEOF
14025 CEOF$ac_eof
14026 _ACEOF
14029 ac_delim='%!_!# '
14030 for ac_last_try in false false false false false :; do
14031 cat >conf$$subs.sed <<_ACEOF
14032 aros_default_wbheight!$aros_default_wbheight$ac_delim
14033 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
14034 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
14035 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
14036 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
14037 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
14038 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
14039 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
14040 aros_serial_debug!$aros_serial_debug$ac_delim
14041 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
14042 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
14043 aros_ios_platform!$aros_ios_platform$ac_delim
14044 aros_ios_version!$aros_ios_version$ac_delim
14045 aros_ios_sdk!$aros_ios_sdk$ac_delim
14046 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
14047 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
14048 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
14049 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
14050 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
14051 ENABLE_X11!$ENABLE_X11$ac_delim
14052 aros_debug!$aros_debug$ac_delim
14053 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
14054 aros_stack_debug!$aros_stack_debug$ac_delim
14055 aros_modules_debug!$aros_modules_debug$ac_delim
14056 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
14057 gcc_target_cpu!$gcc_target_cpu$ac_delim
14058 LTLIBOBJS!$LTLIBOBJS$ac_delim
14059 _ACEOF
14061 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
14062 break
14063 elif $ac_last_try; then
14064 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14065 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14066 { (exit 1); exit 1; }; }
14067 else
14068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14070 done
14072 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14073 if test -n "$ac_eof"; then
14074 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14075 ac_eof=`expr $ac_eof + 1`
14078 cat >>$CONFIG_STATUS <<_ACEOF
14079 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
14080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14081 _ACEOF
14082 sed '
14083 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14084 s/^/s,@/; s/!/@,|#_!!_#|/
14087 s/'"$ac_delim"'$/,g/; t
14088 s/$/\\/; p
14089 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14090 ' >>$CONFIG_STATUS <conf$$subs.sed
14091 rm -f conf$$subs.sed
14092 cat >>$CONFIG_STATUS <<_ACEOF
14093 :end
14094 s/|#_!!_#|//g
14095 CEOF$ac_eof
14096 _ACEOF
14099 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14100 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14101 # trailing colons and then remove the whole line if VPATH becomes empty
14102 # (actually we leave an empty line to preserve line numbers).
14103 if test "x$srcdir" = x.; then
14104 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14105 s/:*\$(srcdir):*/:/
14106 s/:*\${srcdir}:*/:/
14107 s/:*@srcdir@:*/:/
14108 s/^\([^=]*=[ ]*\):*/\1/
14109 s/:*$//
14110 s/^[^=]*=[ ]*$//
14114 cat >>$CONFIG_STATUS <<\_ACEOF
14115 fi # test -n "$CONFIG_FILES"
14118 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14120 case $ac_tag in
14121 :[FHLC]) ac_mode=$ac_tag; continue;;
14122 esac
14123 case $ac_mode$ac_tag in
14124 :[FHL]*:*);;
14125 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14126 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14127 { (exit 1); exit 1; }; };;
14128 :[FH]-) ac_tag=-:-;;
14129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14130 esac
14131 ac_save_IFS=$IFS
14132 IFS=:
14133 set x $ac_tag
14134 IFS=$ac_save_IFS
14135 shift
14136 ac_file=$1
14137 shift
14139 case $ac_mode in
14140 :L) ac_source=$1;;
14141 :[FH])
14142 ac_file_inputs=
14143 for ac_f
14145 case $ac_f in
14146 -) ac_f="$tmp/stdin";;
14147 *) # Look for the file first in the build tree, then in the source tree
14148 # (if the path is not absolute). The absolute path cannot be DOS-style,
14149 # because $ac_f cannot contain `:'.
14150 test -f "$ac_f" ||
14151 case $ac_f in
14152 [\\/$]*) false;;
14153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14154 esac ||
14155 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14156 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14157 { (exit 1); exit 1; }; };;
14158 esac
14159 ac_file_inputs="$ac_file_inputs $ac_f"
14160 done
14162 # Let's still pretend it is `configure' which instantiates (i.e., don't
14163 # use $as_me), people would be surprised to read:
14164 # /* config.h. Generated by config.status. */
14165 configure_input="Generated from "`IFS=:
14166 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14167 if test x"$ac_file" != x-; then
14168 configure_input="$ac_file. $configure_input"
14169 { echo "$as_me:$LINENO: creating $ac_file" >&5
14170 echo "$as_me: creating $ac_file" >&6;}
14173 case $ac_tag in
14174 *:-:* | *:-) cat >"$tmp/stdin";;
14175 esac
14177 esac
14179 ac_dir=`$as_dirname -- "$ac_file" ||
14180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14181 X"$ac_file" : 'X\(//\)[^/]' \| \
14182 X"$ac_file" : 'X\(//\)$' \| \
14183 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14184 echo X"$ac_file" |
14185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14186 s//\1/
14189 /^X\(\/\/\)[^/].*/{
14190 s//\1/
14193 /^X\(\/\/\)$/{
14194 s//\1/
14197 /^X\(\/\).*/{
14198 s//\1/
14201 s/.*/./; q'`
14202 { as_dir="$ac_dir"
14203 case $as_dir in #(
14204 -*) as_dir=./$as_dir;;
14205 esac
14206 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14207 as_dirs=
14208 while :; do
14209 case $as_dir in #(
14210 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14211 *) as_qdir=$as_dir;;
14212 esac
14213 as_dirs="'$as_qdir' $as_dirs"
14214 as_dir=`$as_dirname -- "$as_dir" ||
14215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14216 X"$as_dir" : 'X\(//\)[^/]' \| \
14217 X"$as_dir" : 'X\(//\)$' \| \
14218 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14219 echo X"$as_dir" |
14220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14221 s//\1/
14224 /^X\(\/\/\)[^/].*/{
14225 s//\1/
14228 /^X\(\/\/\)$/{
14229 s//\1/
14232 /^X\(\/\).*/{
14233 s//\1/
14236 s/.*/./; q'`
14237 test -d "$as_dir" && break
14238 done
14239 test -z "$as_dirs" || eval "mkdir $as_dirs"
14240 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14241 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14242 { (exit 1); exit 1; }; }; }
14243 ac_builddir=.
14245 case "$ac_dir" in
14246 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14248 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14249 # A ".." for each directory in $ac_dir_suffix.
14250 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14251 case $ac_top_builddir_sub in
14252 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14253 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14254 esac ;;
14255 esac
14256 ac_abs_top_builddir=$ac_pwd
14257 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14258 # for backward compatibility:
14259 ac_top_builddir=$ac_top_build_prefix
14261 case $srcdir in
14262 .) # We are building in place.
14263 ac_srcdir=.
14264 ac_top_srcdir=$ac_top_builddir_sub
14265 ac_abs_top_srcdir=$ac_pwd ;;
14266 [\\/]* | ?:[\\/]* ) # Absolute name.
14267 ac_srcdir=$srcdir$ac_dir_suffix;
14268 ac_top_srcdir=$srcdir
14269 ac_abs_top_srcdir=$srcdir ;;
14270 *) # Relative name.
14271 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14272 ac_top_srcdir=$ac_top_build_prefix$srcdir
14273 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14274 esac
14275 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14278 case $ac_mode in
14281 # CONFIG_FILE
14284 _ACEOF
14286 cat >>$CONFIG_STATUS <<\_ACEOF
14287 # If the template does not know about datarootdir, expand it.
14288 # FIXME: This hack should be removed a few years after 2.60.
14289 ac_datarootdir_hack=; ac_datarootdir_seen=
14291 case `sed -n '/datarootdir/ {
14295 /@datadir@/p
14296 /@docdir@/p
14297 /@infodir@/p
14298 /@localedir@/p
14299 /@mandir@/p
14300 ' $ac_file_inputs` in
14301 *datarootdir*) ac_datarootdir_seen=yes;;
14302 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14303 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14304 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14305 _ACEOF
14306 cat >>$CONFIG_STATUS <<_ACEOF
14307 ac_datarootdir_hack='
14308 s&@datadir@&$datadir&g
14309 s&@docdir@&$docdir&g
14310 s&@infodir@&$infodir&g
14311 s&@localedir@&$localedir&g
14312 s&@mandir@&$mandir&g
14313 s&\\\${datarootdir}&$datarootdir&g' ;;
14314 esac
14315 _ACEOF
14317 # Neutralize VPATH when `$srcdir' = `.'.
14318 # Shell code in configure.ac might set extrasub.
14319 # FIXME: do we really want to maintain this feature?
14320 cat >>$CONFIG_STATUS <<_ACEOF
14321 sed "$ac_vpsub
14322 $extrasub
14323 _ACEOF
14324 cat >>$CONFIG_STATUS <<\_ACEOF
14326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14327 s&@configure_input@&$configure_input&;t t
14328 s&@top_builddir@&$ac_top_builddir_sub&;t t
14329 s&@srcdir@&$ac_srcdir&;t t
14330 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14331 s&@top_srcdir@&$ac_top_srcdir&;t t
14332 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14333 s&@builddir@&$ac_builddir&;t t
14334 s&@abs_builddir@&$ac_abs_builddir&;t t
14335 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14336 $ac_datarootdir_hack
14337 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
14339 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14340 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14341 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14342 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14343 which seems to be undefined. Please make sure it is defined." >&5
14344 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14345 which seems to be undefined. Please make sure it is defined." >&2;}
14347 rm -f "$tmp/stdin"
14348 case $ac_file in
14349 -) cat "$tmp/out"; rm -f "$tmp/out";;
14350 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14351 esac
14355 # CONFIG_HEADER
14357 _ACEOF
14359 # Transform confdefs.h into a sed script `conftest.defines', that
14360 # substitutes the proper values into config.h.in to produce config.h.
14361 rm -f conftest.defines conftest.tail
14362 # First, append a space to every undef/define line, to ease matching.
14363 echo 's/$/ /' >conftest.defines
14364 # Then, protect against being on the right side of a sed subst, or in
14365 # an unquoted here document, in config.status. If some macros were
14366 # called several times there might be several #defines for the same
14367 # symbol, which is useless. But do not sort them, since the last
14368 # AC_DEFINE must be honored.
14369 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14370 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14371 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14372 # PARAMS is the parameter list in the macro definition--in most cases, it's
14373 # just an empty string.
14374 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14375 ac_dB='\\)[ (].*,\\1define\\2'
14376 ac_dC=' '
14377 ac_dD=' ,'
14379 uniq confdefs.h |
14380 sed -n '
14381 t rset
14382 :rset
14383 s/^[ ]*#[ ]*define[ ][ ]*//
14384 t ok
14387 s/[\\&,]/\\&/g
14388 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14389 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14390 ' >>conftest.defines
14392 # Remove the space that was appended to ease matching.
14393 # Then replace #undef with comments. This is necessary, for
14394 # example, in the case of _POSIX_SOURCE, which is predefined and required
14395 # on some systems where configure will not decide to define it.
14396 # (The regexp can be short, since the line contains either #define or #undef.)
14397 echo 's/ $//
14398 s,^[ #]*u.*,/* & */,' >>conftest.defines
14400 # Break up conftest.defines:
14401 ac_max_sed_lines=50
14403 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14404 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14405 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14406 # et cetera.
14407 ac_in='$ac_file_inputs'
14408 ac_out='"$tmp/out1"'
14409 ac_nxt='"$tmp/out2"'
14411 while :
14413 # Write a here document:
14414 cat >>$CONFIG_STATUS <<_ACEOF
14415 # First, check the format of the line:
14416 cat >"\$tmp/defines.sed" <<\\CEOF
14417 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14418 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14420 :def
14421 _ACEOF
14422 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14423 echo 'CEOF
14424 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14425 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14426 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14427 grep . conftest.tail >/dev/null || break
14428 rm -f conftest.defines
14429 mv conftest.tail conftest.defines
14430 done
14431 rm -f conftest.defines conftest.tail
14433 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14434 cat >>$CONFIG_STATUS <<\_ACEOF
14435 if test x"$ac_file" != x-; then
14436 echo "/* $configure_input */" >"$tmp/config.h"
14437 cat "$ac_result" >>"$tmp/config.h"
14438 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14439 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14440 echo "$as_me: $ac_file is unchanged" >&6;}
14441 else
14442 rm -f $ac_file
14443 mv "$tmp/config.h" $ac_file
14445 else
14446 echo "/* $configure_input */"
14447 cat "$ac_result"
14449 rm -f "$tmp/out12"
14452 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14453 echo "$as_me: executing $ac_file commands" >&6;}
14455 esac
14458 case $ac_file$ac_mode in
14459 "compiler_executable":C)
14460 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14461 mkdir -p $prefix
14462 prefix="${prefix}/${aros_target_cpu}-aros"
14463 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14465 echo ${prefix}
14466 echo ${prefix2}
14467 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14469 ln -sf ${prefix2}-gcc ${prefix}-gcc
14470 ln -sf ${prefix2}-ld ${prefix}-ld
14472 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14473 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14474 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14475 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14476 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14477 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14478 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14480 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14481 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14482 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14483 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14484 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14485 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14486 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14488 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14489 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14491 esac
14492 done # for ac_tag
14495 { (exit 0); exit 0; }
14496 _ACEOF
14497 chmod +x $CONFIG_STATUS
14498 ac_clean_files=$ac_clean_files_save
14501 # configure is writing to config.log, and then calls config.status.
14502 # config.status does its own redirection, appending to config.log.
14503 # Unfortunately, on DOS this fails, as config.log is still kept open
14504 # by configure, so config.status won't be able to write to it; its
14505 # output is simply discarded. So we exec the FD to /dev/null,
14506 # effectively closing config.log, so it can be properly (re)opened and
14507 # appended to by config.status. When coming back to configure, we
14508 # need to make the FD available again.
14509 if test "$no_create" != yes; then
14510 ac_cs_success=:
14511 ac_config_status_args=
14512 test "$silent" = yes &&
14513 ac_config_status_args="$ac_config_status_args --quiet"
14514 exec 5>/dev/null
14515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14516 exec 5>>config.log
14517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14518 # would make configure fail if this is the last instruction.
14519 $ac_cs_success || { (exit 1); exit 1; }
14524 #XXX compatability...
14525 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14527 if test -n "$aros_shared_cflags" ; then
14528 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14529 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg