workbench/libs/prometheus: -Wall cleanups
[AROS.git] / configure
blob1d4f90213c6dc9b392f4869866ecb5450ae046f1
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_kernel_rescomp
724 aros_target_nostdinc_cflags
725 aros_target_nostartup_ldflags
726 aros_target_nix_ldflags
727 aros_target_detach_ldflags
728 aros_target_nostdlib_ldflags
729 host_cflags_iquote
730 host_cflags_iquote_end
731 kernel_cflags_iquote
732 kernel_cflags_iquote_end
733 aros_cflags_iquote
734 aros_cflags_iquote_end
735 XMKMF
736 SDL_CONFIG
737 SDL_CFLAGS
738 SDL_LIBS
739 aros_arch
740 aros_cpu
741 aros_flavour
742 aros_flavour_uc
743 AROS_BUILDDIR
744 AROS_BUILDDIR_UNIX
745 SRCDIR
746 AROS_PORTSSRCDIR
747 aros_cc_pre
748 aros_host_arch
749 aros_host_cpu
750 aros_host_cc
751 aros_host_make
752 aros_host_cflags
753 aros_host_ldflags
754 aros_host_debug
755 aros_host_mkdep
756 aros_host_mkargs
757 aros_host_exe_suffix
758 aros_host_lib_suffix
759 aros_tools_dir
760 aros_target_guitheme
761 aros_target_iconset
762 aros_target_bootloader
763 aros_target_arch
764 aros_target_cpu
765 aros_target_variant
766 aros_target_suffix
767 aros_target_incl
768 aros_target_ar
769 aros_target_ranlib
770 aros_kernel_nm
771 orig_target_cc
772 aros_target_cxx
773 aros_kernel_cc
774 aros_target_as
775 orig_target_ld
776 aros_target_cc_includes
777 aros_target_cc_path
778 aros_target_objdump
779 aros_target_objcopy
780 aros_target_strip
781 aros_target_nm
782 aros_shared_default
783 aros_shared_ld
784 aros_object_format
785 aros_compiler_libs
786 aros_arch_libs
787 aros_config_cflags
788 aros_config_aflags
789 aros_config_ldflags
790 aros_shared_cflags
791 aros_shared_aflags
792 aros_shared_ldflags
793 aros_kernel_cflags
794 aros_kernel_objcflags
795 aros_kernel_ldflags
796 aros_debug_cflags
797 aros_debug_aflags
798 aros_debug_ldflags
799 aros_target_genmap
800 aros_target_strip_flags
801 x11_hidd_target
802 sdl_hidd_target
803 aros_default_wbwidth
804 aros_default_wbheight
805 aros_default_wbdepth
806 DO_XSHM_SUPPORT
807 DO_VIDMODE_SUPPORT
808 aros_host_x11_includes
809 aros_host_x11_libdirs
810 aros_host_sdl_cflags
811 aros_host_sdl_libs
812 aros_serial_debug
813 aros_palm_debug_hack
814 aros_nesting_supervisor
815 aros_ios_platform
816 aros_ios_version
817 aros_ios_sdk
818 ENABLE_DBUS
819 DBUS_CFLAGS
820 DBUS_LIBFLAGS
821 KERNEL_DBUS_KOBJ
822 KERNEL_DBUS_INCLUDES
823 ENABLE_X11
824 aros_debug
825 aros_mungwall_debug
826 aros_stack_debug
827 aros_modules_debug
828 ignore_undefined_symbols
829 gcc_target_cpu
830 LTLIBOBJS'
831 ac_subst_files=''
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
841 XMKMF'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
890 ac_prev=
891 ac_dashdash=
892 for ac_option
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
901 case $ac_option in
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *) ac_optarg=yes ;;
904 esac
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
910 ac_dashdash=yes ;;
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
929 --config-cache | -C)
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
951 eval enable_$ac_feature=no ;;
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
963 -enable-* | --enable-*)
964 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
967 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
968 { (exit 1); exit 1; }; }
969 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
970 eval enable_$ac_feature=\$ac_optarg ;;
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
1119 sbindir=$ac_optarg ;;
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
1130 sharedstatedir=$ac_optarg ;;
1132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
1135 site=$ac_optarg ;;
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140 srcdir=$ac_optarg ;;
1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147 sysconfdir=$ac_optarg ;;
1149 -target | --target | --targe | --targ | --tar | --ta | --t)
1150 ac_prev=target_alias ;;
1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152 target_alias=$ac_optarg ;;
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
1160 -with-* | --with-*)
1161 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid package name: $ac_package" >&2
1165 { (exit 1); exit 1; }; }
1166 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1167 eval with_$ac_package=\$ac_optarg ;;
1169 -without-* | --without-*)
1170 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 { echo "$as_me: error: invalid package name: $ac_package" >&2
1174 { (exit 1); exit 1; }; }
1175 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1176 eval with_$ac_package=no ;;
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1196 -*) { echo "$as_me: error: unrecognized option: $ac_option
1197 Try \`$0 --help' for more information." >&2
1198 { (exit 1); exit 1; }; }
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1205 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1206 { (exit 1); exit 1; }; }
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1211 # FIXME: should be removed in autoconf 3.0.
1212 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1218 esac
1219 done
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 { echo "$as_me: error: missing argument to $ac_option" >&2
1224 { (exit 1); exit 1; }; }
1227 # Be sure to have absolute directory names.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 case $ac_val in
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 esac
1238 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1239 { (exit 1); exit 1; }; }
1240 done
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1254 If a cross compiler is detected then cross compile mode will be used." >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263 test "$silent" = yes && exec 6>/dev/null
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 { echo "$as_me: error: Working directory cannot be determined" >&2
1270 { (exit 1); exit 1; }; }
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 { echo "$as_me: error: pwd does not report name of working directory" >&2
1273 { (exit 1); exit 1; }; }
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$0" ||
1281 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$0" : 'X\(//\)[^/]' \| \
1283 X"$0" : 'X\(//\)$' \| \
1284 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1285 echo X"$0" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1294 /^X\(\/\/\)$/{
1295 s//\1/
1298 /^X\(\/\).*/{
1299 s//\1/
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1307 else
1308 ac_srcdir_defaulted=no
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1313 { (exit 1); exit 1; }; }
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1318 { (exit 1); exit 1; }; }
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures this package to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1399 cat <<\_ACEOF
1401 X features:
1402 --x-includes=DIR X include files are in DIR
1403 --x-libraries=DIR X library files are in DIR
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1411 if test -n "$ac_init_help"; then
1413 cat <<\_ACEOF
1415 Optional Features:
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-build-type=TYPE
1419 Select the build type. Available types are:
1420 personal, nightly, snapshot, milestone, release. Do
1421 NOT use this option unless you know what you are
1422 doing! (default=personal)
1423 --enable-debug=list Enable different types of debug. Commas or
1424 whitespaces can be used to separate the items in the
1425 list. Available types of debug are: all, none,
1426 messages, stack, mungwall, modules, symbols. If no
1427 list is provided then "all" is assumed.
1428 (default=none)
1429 --enable-crosstools Build cross-compiler toolchains if necessary
1430 (default=no).
1431 --enable-distcc Use distcc as a front end to the compiler
1432 (default=no).
1433 --enable-ccache Use ccache as a front end to the compiler
1434 (default=no).
1435 --enable-target-variant=NAME
1436 Enable a specific target variant(default=none)
1437 --enable-includes=dir Alternative system include directory
1438 --enable-palm-debug-hack
1439 Enable palm debug output hack in palm native
1440 (default=no)
1441 --enable-nesting-supervisor
1442 Enable nesting supervisor support in unix
1443 (default=no)
1444 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1445 --enable-x11-shm use X11 shared memory (default=auto)
1446 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1447 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1448 --disable-sdltest Do not try to compile and run a test SDL program
1449 --enable-dbus Enable DBUS support via dbus.library (default=no)
1451 Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-gcc-version=VERSION
1455 Use gcc-VERSION for building AROS
1456 --with-optimization=FLAGS
1457 Use optimization flags FLAGS (default=-O2).
1458 --with-xcode=PATH Specify XCode path for iOS targets
1459 (default=/Developer).
1460 --with-ios-version=VERSION
1461 Specify minimum supported iOS version (default=2.0).
1462 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1463 --with-portssources=DIR Where to download sourcecode for external ports
1464 --with-bootloader=NAME Use a specific bootloader
1465 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1466 --with-theme=NAME Use a specific GUI Theme
1467 --with-resolution=XRESxYRESxDEPTH
1468 Default resolution of the initial WorkbenchScreen
1469 --with-serial-debug Enable serial debug output in native (default=no)
1470 --with-x use the X Window System
1471 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1472 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CPP C preprocessor
1483 XMKMF Path to xmkmf, Makefile generator for X Window System
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1488 _ACEOF
1489 ac_status=$?
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" || continue
1496 ac_builddir=.
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1514 case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547 cat <<\_ACEOF
1548 configure
1549 generated by GNU Autoconf 2.61
1551 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1552 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556 exit
1558 cat >config.log <<_ACEOF
1559 This file contains any messages produced by compilers while
1560 running configure, to aid debugging if configure makes a mistake.
1562 It was created by $as_me, which was
1563 generated by GNU Autoconf 2.61. Invocation command line was
1565 $ $0 $@
1567 _ACEOF
1568 exec 5>>config.log
1570 cat <<_ASUNAME
1571 ## --------- ##
1572 ## Platform. ##
1573 ## --------- ##
1575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1592 _ASUNAME
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 echo "PATH: $as_dir"
1600 done
1601 IFS=$as_save_IFS
1603 } >&5
1605 cat >&5 <<_ACEOF
1608 ## ----------- ##
1609 ## Core tests. ##
1610 ## ----------- ##
1612 _ACEOF
1615 # Keep a trace of the command line.
1616 # Strip out --no-create and --no-recursion so they do not pile up.
1617 # Strip out --silent because we don't want to record it for future runs.
1618 # Also quote any args containing shell meta-characters.
1619 # Make two passes to allow for proper duplicate-argument suppression.
1620 ac_configure_args=
1621 ac_configure_args0=
1622 ac_configure_args1=
1623 ac_must_keep_next=false
1624 for ac_pass in 1 2
1626 for ac_arg
1628 case $ac_arg in
1629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631 | -silent | --silent | --silen | --sile | --sil)
1632 continue ;;
1633 *\'*)
1634 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635 esac
1636 case $ac_pass in
1637 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1639 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640 if test $ac_must_keep_next = true; then
1641 ac_must_keep_next=false # Got value, back to normal.
1642 else
1643 case $ac_arg in
1644 *=* | --config-cache | -C | -disable-* | --disable-* \
1645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647 | -with-* | --with-* | -without-* | --without-* | --x)
1648 case "$ac_configure_args0 " in
1649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650 esac
1652 -* ) ac_must_keep_next=true ;;
1653 esac
1655 ac_configure_args="$ac_configure_args '$ac_arg'"
1657 esac
1658 done
1659 done
1660 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1663 # When interrupted or exit'd, cleanup temporary files, and complete
1664 # config.log. We remove comments because anyway the quotes in there
1665 # would cause problems or look ugly.
1666 # WARNING: Use '\'' to represent an apostrophe within the trap.
1667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1668 trap 'exit_status=$?
1669 # Save into config.log some information that might help in debugging.
1671 echo
1673 cat <<\_ASBOX
1674 ## ---------------- ##
1675 ## Cache variables. ##
1676 ## ---------------- ##
1677 _ASBOX
1678 echo
1679 # The following way of writing the cache mishandles newlines in values,
1681 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682 eval ac_val=\$$ac_var
1683 case $ac_val in #(
1684 *${as_nl}*)
1685 case $ac_var in #(
1686 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1687 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1688 esac
1689 case $ac_var in #(
1690 _ | IFS | as_nl) ;; #(
1691 *) $as_unset $ac_var ;;
1692 esac ;;
1693 esac
1694 done
1695 (set) 2>&1 |
1696 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1697 *${as_nl}ac_space=\ *)
1698 sed -n \
1699 "s/'\''/'\''\\\\'\'''\''/g;
1700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1701 ;; #(
1703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1705 esac |
1706 sort
1708 echo
1710 cat <<\_ASBOX
1711 ## ----------------- ##
1712 ## Output variables. ##
1713 ## ----------------- ##
1714 _ASBOX
1715 echo
1716 for ac_var in $ac_subst_vars
1718 eval ac_val=\$$ac_var
1719 case $ac_val in
1720 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721 esac
1722 echo "$ac_var='\''$ac_val'\''"
1723 done | sort
1724 echo
1726 if test -n "$ac_subst_files"; then
1727 cat <<\_ASBOX
1728 ## ------------------- ##
1729 ## File substitutions. ##
1730 ## ------------------- ##
1731 _ASBOX
1732 echo
1733 for ac_var in $ac_subst_files
1735 eval ac_val=\$$ac_var
1736 case $ac_val in
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 esac
1739 echo "$ac_var='\''$ac_val'\''"
1740 done | sort
1741 echo
1744 if test -s confdefs.h; then
1745 cat <<\_ASBOX
1746 ## ----------- ##
1747 ## confdefs.h. ##
1748 ## ----------- ##
1749 _ASBOX
1750 echo
1751 cat confdefs.h
1752 echo
1754 test "$ac_signal" != 0 &&
1755 echo "$as_me: caught signal $ac_signal"
1756 echo "$as_me: exit $exit_status"
1757 } >&5
1758 rm -f core *.core core.conftest.* &&
1759 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1760 exit $exit_status
1762 for ac_signal in 1 2 13 15; do
1763 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1764 done
1765 ac_signal=0
1767 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1768 rm -f -r conftest* confdefs.h
1770 # Predefined preprocessor variables.
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_NAME "$PACKAGE_NAME"
1774 _ACEOF
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1779 _ACEOF
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1784 _ACEOF
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_STRING "$PACKAGE_STRING"
1789 _ACEOF
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1794 _ACEOF
1797 # Let the site file select an alternate cache file if it wants to.
1798 # Prefer explicitly selected file to automatically selected ones.
1799 if test -n "$CONFIG_SITE"; then
1800 set x "$CONFIG_SITE"
1801 elif test "x$prefix" != xNONE; then
1802 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1803 else
1804 set x "$ac_default_prefix/share/config.site" \
1805 "$ac_default_prefix/etc/config.site"
1807 shift
1808 for ac_site_file
1810 if test -r "$ac_site_file"; then
1811 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1812 echo "$as_me: loading site script $ac_site_file" >&6;}
1813 sed 's/^/| /' "$ac_site_file" >&5
1814 . "$ac_site_file"
1816 done
1818 if test -r "$cache_file"; then
1819 # Some versions of bash will fail to source /dev/null (special
1820 # files actually), so we avoid doing that.
1821 if test -f "$cache_file"; then
1822 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1823 echo "$as_me: loading cache $cache_file" >&6;}
1824 case $cache_file in
1825 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1826 *) . "./$cache_file";;
1827 esac
1829 else
1830 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1831 echo "$as_me: creating cache $cache_file" >&6;}
1832 >$cache_file
1835 # Check that the precious variables saved in the cache have kept the same
1836 # value.
1837 ac_cache_corrupted=false
1838 for ac_var in $ac_precious_vars; do
1839 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1840 eval ac_new_set=\$ac_env_${ac_var}_set
1841 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1842 eval ac_new_val=\$ac_env_${ac_var}_value
1843 case $ac_old_set,$ac_new_set in
1844 set,)
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1848 ,set)
1849 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1850 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1851 ac_cache_corrupted=: ;;
1852 ,);;
1854 if test "x$ac_old_val" != "x$ac_new_val"; then
1855 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1856 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1858 echo "$as_me: former value: $ac_old_val" >&2;}
1859 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1860 echo "$as_me: current value: $ac_new_val" >&2;}
1861 ac_cache_corrupted=:
1862 fi;;
1863 esac
1864 # Pass precious variables to config.status.
1865 if test "$ac_new_set" = set; then
1866 case $ac_new_val in
1867 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 *) ac_arg=$ac_var=$ac_new_val ;;
1869 esac
1870 case " $ac_configure_args " in
1871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1872 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1873 esac
1875 done
1876 if $ac_cache_corrupted; then
1877 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1881 { (exit 1); exit 1; }; }
1900 ac_ext=c
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908 ac_aux_dir=
1909 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1910 if test -f "$ac_dir/install-sh"; then
1911 ac_aux_dir=$ac_dir
1912 ac_install_sh="$ac_aux_dir/install-sh -c"
1913 break
1914 elif test -f "$ac_dir/install.sh"; then
1915 ac_aux_dir=$ac_dir
1916 ac_install_sh="$ac_aux_dir/install.sh -c"
1917 break
1918 elif test -f "$ac_dir/shtool"; then
1919 ac_aux_dir=$ac_dir
1920 ac_install_sh="$ac_aux_dir/shtool install -c"
1921 break
1923 done
1924 if test -z "$ac_aux_dir"; then
1925 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1926 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1927 { (exit 1); exit 1; }; }
1930 # These three variables are undocumented and unsupported,
1931 # and are intended to be withdrawn in a future Autoconf release.
1932 # They can cause serious problems if a builder's source tree is in a directory
1933 # whose full name contains unusual characters.
1934 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1935 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1936 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1940 # Check what host we are running on.
1941 # If a target is not suggested, we use this one.
1942 # Note that what we call a target, Autoconf calls a host.
1943 # Make sure we can run config.sub.
1944 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1945 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1946 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1947 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: checking build system type" >&5
1950 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1951 if test "${ac_cv_build+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 ac_build_alias=$build_alias
1955 test "x$ac_build_alias" = x &&
1956 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1957 test "x$ac_build_alias" = x &&
1958 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1959 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1960 { (exit 1); exit 1; }; }
1961 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1962 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1963 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1964 { (exit 1); exit 1; }; }
1967 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1968 echo "${ECHO_T}$ac_cv_build" >&6; }
1969 case $ac_cv_build in
1970 *-*-*) ;;
1971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1972 echo "$as_me: error: invalid value of canonical build" >&2;}
1973 { (exit 1); exit 1; }; };;
1974 esac
1975 build=$ac_cv_build
1976 ac_save_IFS=$IFS; IFS='-'
1977 set x $ac_cv_build
1978 shift
1979 build_cpu=$1
1980 build_vendor=$2
1981 shift; shift
1982 # Remember, the first character of IFS is used to create $*,
1983 # except with old shells:
1984 build_os=$*
1985 IFS=$ac_save_IFS
1986 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1989 { echo "$as_me:$LINENO: checking host system type" >&5
1990 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1991 if test "${ac_cv_host+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 if test "x$host_alias" = x; then
1995 ac_cv_host=$ac_cv_build
1996 else
1997 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2000 { (exit 1); exit 1; }; }
2004 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2005 echo "${ECHO_T}$ac_cv_host" >&6; }
2006 case $ac_cv_host in
2007 *-*-*) ;;
2008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2009 echo "$as_me: error: invalid value of canonical host" >&2;}
2010 { (exit 1); exit 1; }; };;
2011 esac
2012 host=$ac_cv_host
2013 ac_save_IFS=$IFS; IFS='-'
2014 set x $ac_cv_host
2015 shift
2016 host_cpu=$1
2017 host_vendor=$2
2018 shift; shift
2019 # Remember, the first character of IFS is used to create $*,
2020 # except with old shells:
2021 host_os=$*
2022 IFS=$ac_save_IFS
2023 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2027 # The AROS target is slightly different to the normal GNU style
2028 # format. We don't have the middle part, and we reverse the order
2029 # of the $(CPU) and $(OS) bits.
2031 # Don't strip the version of the target yet, it might be
2032 # useful on some systems.
2034 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2035 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2037 if test "$target" = "NONE" ; then
2038 target=$host_os-$host_cpu
2039 cross_compile=no
2040 else
2041 if test "$target" = "" ; then
2042 target=$host_os-$host_cpu
2043 cross_compile=no
2044 else
2045 cross_compile=yes
2048 { echo "$as_me:$LINENO: result: $target" >&5
2049 echo "${ECHO_T}$target" >&6; }
2051 if test "$host_os" = "mingw32" ; then
2052 PWDCMD="pwd -W"
2055 #don't know where else to put this...
2056 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2057 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2058 AROS_BUILDDIR=`${PWDCMD-pwd}`
2059 AROS_BUILDDIR_UNIX=${PWD}
2060 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2061 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2063 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2064 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2065 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2066 SRCDIR=${srcpwd}
2067 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2068 echo "${ECHO_T}$SRCDIR" >&6; }
2070 # Parse the target field into something useful.
2072 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2073 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2076 aros_default_wbwidth=800
2077 aros_default_wbheight=600
2078 aros_default_wbdepth=4
2081 # The first step is to find the host binaries.
2082 # Check for a compiler.
2083 ac_ext=c
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2110 done
2111 done
2112 IFS=$as_save_IFS
2116 CC=$ac_cv_prog_CC
2117 if test -n "$CC"; then
2118 { echo "$as_me:$LINENO: result: $CC" >&5
2119 echo "${ECHO_T}$CC" >&6; }
2120 else
2121 { echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6; }
2127 if test -z "$ac_cv_prog_CC"; then
2128 ac_ct_CC=$CC
2129 # Extract the first word of "gcc", so it can be a program name with args.
2130 set dummy gcc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test -n "$ac_ct_CC"; then
2137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_ac_ct_CC="gcc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2150 done
2151 done
2152 IFS=$as_save_IFS
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6; }
2160 else
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2165 if test "x$ac_ct_CC" = x; then
2166 CC=""
2167 else
2168 case $cross_compiling:$ac_tool_warned in
2169 yes:)
2170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2171 whose name does not start with the host triplet. If you think this
2172 configuration is useful to you, please write to autoconf@gnu.org." >&5
2173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2174 whose name does not start with the host triplet. If you think this
2175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2176 ac_tool_warned=yes ;;
2177 esac
2178 CC=$ac_ct_CC
2180 else
2181 CC="$ac_cv_prog_CC"
2184 if test -z "$CC"; then
2185 if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}cc; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_CC="${ac_tool_prefix}cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2207 done
2208 done
2209 IFS=$as_save_IFS
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215 { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2217 else
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2225 if test -z "$CC"; then
2226 # Extract the first word of "cc", so it can be a program name with args.
2227 set dummy cc; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 ac_prog_rejected=no
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245 ac_prog_rejected=yes
2246 continue
2248 ac_cv_prog_CC="cc"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2252 done
2253 done
2254 IFS=$as_save_IFS
2256 if test $ac_prog_rejected = yes; then
2257 # We found a bogon in the path, so make sure we never use it.
2258 set dummy $ac_cv_prog_CC
2259 shift
2260 if test $# != 0; then
2261 # We chose a different compiler from the bogus one.
2262 # However, it has the same basename, so the bogon will be chosen
2263 # first if we set CC to just the basename; use the full file name.
2264 shift
2265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2270 CC=$ac_cv_prog_CC
2271 if test -n "$CC"; then
2272 { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2274 else
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2281 if test -z "$CC"; then
2282 if test -n "$ac_tool_prefix"; then
2283 for ac_prog in cl.exe
2285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 if test -n "$CC"; then
2293 ac_cv_prog_CC="$CC" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2306 done
2307 done
2308 IFS=$as_save_IFS
2312 CC=$ac_cv_prog_CC
2313 if test -n "$CC"; then
2314 { echo "$as_me:$LINENO: result: $CC" >&5
2315 echo "${ECHO_T}$CC" >&6; }
2316 else
2317 { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2322 test -n "$CC" && break
2323 done
2325 if test -z "$CC"; then
2326 ac_ct_CC=$CC
2327 for ac_prog in cl.exe
2329 # Extract the first word of "$ac_prog", so it can be a program name with args.
2330 set dummy $ac_prog; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 if test -n "$ac_ct_CC"; then
2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_ac_ct_CC="$ac_prog"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2350 done
2351 done
2352 IFS=$as_save_IFS
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6; }
2360 else
2361 { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2366 test -n "$ac_ct_CC" && break
2367 done
2369 if test "x$ac_ct_CC" = x; then
2370 CC=""
2371 else
2372 case $cross_compiling:$ac_tool_warned in
2373 yes:)
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet. If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2381 esac
2382 CC=$ac_ct_CC
2389 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: no acceptable C compiler found in \$PATH
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2395 # Provide some information about the compiler.
2396 echo "$as_me:$LINENO: checking for C compiler version" >&5
2397 ac_compiler=`set X $ac_compile; echo $2`
2398 { (ac_try="$ac_compiler --version >&5"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_compiler --version >&5") 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }
2408 { (ac_try="$ac_compiler -v >&5"
2409 case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_compiler -v >&5") 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }
2418 { (ac_try="$ac_compiler -V >&5"
2419 case "(($ac_try" in
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compiler -V >&5") 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2437 main ()
2441 return 0;
2443 _ACEOF
2444 ac_clean_files_save=$ac_clean_files
2445 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2446 # Try to create an executable without -o first, disregard a.out.
2447 # It will help us diagnose broken compilers, and finding out an intuition
2448 # of exeext.
2449 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2450 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2451 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2453 # List of possible output files, starting from the most likely.
2454 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2455 # only as a last resort. b.out is created by i960 compilers.
2456 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2458 # The IRIX 6 linker writes into existing files which may not be
2459 # executable, retaining their permissions. Remove them first so a
2460 # subsequent execution test works.
2461 ac_rmfiles=
2462 for ac_file in $ac_files
2464 case $ac_file in
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2466 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2467 esac
2468 done
2469 rm -f $ac_rmfiles
2471 if { (ac_try="$ac_link_default"
2472 case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_link_default") 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; then
2481 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2482 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2483 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2484 # so that the user can short-circuit this test for compilers unknown to
2485 # Autoconf.
2486 for ac_file in $ac_files ''
2488 test -f "$ac_file" || continue
2489 case $ac_file in
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2492 [ab].out )
2493 # We found the default executable, but exeext='' is most
2494 # certainly right.
2495 break;;
2496 *.* )
2497 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2498 then :; else
2499 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2501 # We set ac_cv_exeext here because the later test for it is not
2502 # safe: cross compilers may not add the suffix if given an `-o'
2503 # argument, so we may need to know it at that point already.
2504 # Even if this section looks crufty: it has the advantage of
2505 # actually working.
2506 break;;
2508 break;;
2509 esac
2510 done
2511 test "$ac_cv_exeext" = no && ac_cv_exeext=
2513 else
2514 ac_file=''
2517 { echo "$as_me:$LINENO: result: $ac_file" >&5
2518 echo "${ECHO_T}$ac_file" >&6; }
2519 if test -z "$ac_file"; then
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: C compiler cannot create executables
2526 See \`config.log' for more details." >&2;}
2527 { (exit 77); exit 77; }; }
2530 ac_exeext=$ac_cv_exeext
2532 # Check that the compiler produces executables we can run. If not, either
2533 # the compiler is broken, or we cross compile.
2534 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2535 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2536 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2537 # If not cross compiling, check that we can run a simple program.
2538 if test "$cross_compiling" != yes; then
2539 if { ac_try='./$ac_file'
2540 { (case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_try") 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 cross_compiling=no
2550 else
2551 if test "$cross_compiling" = maybe; then
2552 cross_compiling=yes
2553 else
2554 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2555 If you meant to cross compile, use \`--host'.
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: cannot run C compiled programs.
2558 If you meant to cross compile, use \`--host'.
2559 See \`config.log' for more details." >&2;}
2560 { (exit 1); exit 1; }; }
2564 { echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6; }
2567 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2568 ac_clean_files=$ac_clean_files_save
2569 # Check that the compiler produces executables we can run. If not, either
2570 # the compiler is broken, or we cross compile.
2571 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2572 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2573 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2574 echo "${ECHO_T}$cross_compiling" >&6; }
2576 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2577 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2578 if { (ac_try="$ac_link"
2579 case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_link") 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; then
2588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2589 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2590 # work properly (i.e., refer to `conftest.exe'), while it won't with
2591 # `rm'.
2592 for ac_file in conftest.exe conftest conftest.*; do
2593 test -f "$ac_file" || continue
2594 case $ac_file in
2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2597 break;;
2598 * ) break;;
2599 esac
2600 done
2601 else
2602 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2605 See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2609 rm -f conftest$ac_cv_exeext
2610 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2611 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2613 rm -f conftest.$ac_ext
2614 EXEEXT=$ac_cv_exeext
2615 ac_exeext=$EXEEXT
2616 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2617 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2618 if test "${ac_cv_objext+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h. */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2629 main ()
2633 return 0;
2635 _ACEOF
2636 rm -f conftest.o conftest.obj
2637 if { (ac_try="$ac_compile"
2638 case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641 esac
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compile") 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; then
2647 for ac_file in conftest.o conftest.obj conftest.*; do
2648 test -f "$ac_file" || continue;
2649 case $ac_file in
2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2651 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2652 break;;
2653 esac
2654 done
2655 else
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2659 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2668 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2669 echo "${ECHO_T}$ac_cv_objext" >&6; }
2670 OBJEXT=$ac_cv_objext
2671 ac_objext=$OBJEXT
2672 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2673 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2674 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h. */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2685 main ()
2687 #ifndef __GNUC__
2688 choke me
2689 #endif
2692 return 0;
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2697 case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2712 ac_compiler_gnu=yes
2713 else
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2717 ac_compiler_gnu=no
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2724 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2725 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2726 GCC=`test $ac_compiler_gnu = yes && echo yes`
2727 ac_test_CFLAGS=${CFLAGS+set}
2728 ac_save_CFLAGS=$CFLAGS
2729 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2730 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2731 if test "${ac_cv_prog_cc_g+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734 ac_save_c_werror_flag=$ac_c_werror_flag
2735 ac_c_werror_flag=yes
2736 ac_cv_prog_cc_g=no
2737 CFLAGS="-g"
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h. */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2746 main ()
2750 return 0;
2752 _ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (ac_try="$ac_compile"
2755 case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compile") 2>conftest.er1
2761 ac_status=$?
2762 grep -v '^ *+' conftest.er1 >conftest.err
2763 rm -f conftest.er1
2764 cat conftest.err >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } && {
2767 test -z "$ac_c_werror_flag" ||
2768 test ! -s conftest.err
2769 } && test -s conftest.$ac_objext; then
2770 ac_cv_prog_cc_g=yes
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 CFLAGS=""
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2784 main ()
2788 return 0;
2790 _ACEOF
2791 rm -f conftest.$ac_objext
2792 if { (ac_try="$ac_compile"
2793 case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compile") 2>conftest.er1
2799 ac_status=$?
2800 grep -v '^ *+' conftest.er1 >conftest.err
2801 rm -f conftest.er1
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } && {
2805 test -z "$ac_c_werror_flag" ||
2806 test ! -s conftest.err
2807 } && test -s conftest.$ac_objext; then
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 ac_c_werror_flag=$ac_save_c_werror_flag
2814 CFLAGS="-g"
2815 cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h. */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2823 main ()
2827 return 0;
2829 _ACEOF
2830 rm -f conftest.$ac_objext
2831 if { (ac_try="$ac_compile"
2832 case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compile") 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } && {
2844 test -z "$ac_c_werror_flag" ||
2845 test ! -s conftest.err
2846 } && test -s conftest.$ac_objext; then
2847 ac_cv_prog_cc_g=yes
2848 else
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 ac_c_werror_flag=$ac_save_c_werror_flag
2864 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2865 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2866 if test "$ac_test_CFLAGS" = set; then
2867 CFLAGS=$ac_save_CFLAGS
2868 elif test $ac_cv_prog_cc_g = yes; then
2869 if test "$GCC" = yes; then
2870 CFLAGS="-g -O2"
2871 else
2872 CFLAGS="-g"
2874 else
2875 if test "$GCC" = yes; then
2876 CFLAGS="-O2"
2877 else
2878 CFLAGS=
2881 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2882 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_cc_c89+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 ac_cv_prog_cc_c89=no
2887 ac_save_CC=$CC
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 #include <stdarg.h>
2895 #include <stdio.h>
2896 #include <sys/types.h>
2897 #include <sys/stat.h>
2898 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2899 struct buf { int x; };
2900 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2901 static char *e (p, i)
2902 char **p;
2903 int i;
2905 return p[i];
2907 static char *f (char * (*g) (char **, int), char **p, ...)
2909 char *s;
2910 va_list v;
2911 va_start (v,p);
2912 s = g (p, va_arg (v,int));
2913 va_end (v);
2914 return s;
2917 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2918 function prototypes and stuff, but not '\xHH' hex character constants.
2919 These don't provoke an error unfortunately, instead are silently treated
2920 as 'x'. The following induces an error, until -std is added to get
2921 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2922 array size at least. It's necessary to write '\x00'==0 to get something
2923 that's true only with -std. */
2924 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2926 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2927 inside strings and character constants. */
2928 #define FOO(x) 'x'
2929 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2931 int test (int i, double x);
2932 struct s1 {int (*f) (int a);};
2933 struct s2 {int (*f) (double a);};
2934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2935 int argc;
2936 char **argv;
2938 main ()
2940 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2942 return 0;
2944 _ACEOF
2945 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2946 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2948 CC="$ac_save_CC $ac_arg"
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2951 case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } && {
2963 test -z "$ac_c_werror_flag" ||
2964 test ! -s conftest.err
2965 } && test -s conftest.$ac_objext; then
2966 ac_cv_prog_cc_c89=$ac_arg
2967 else
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2974 rm -f core conftest.err conftest.$ac_objext
2975 test "x$ac_cv_prog_cc_c89" != "xno" && break
2976 done
2977 rm -f conftest.$ac_ext
2978 CC=$ac_save_CC
2981 # AC_CACHE_VAL
2982 case "x$ac_cv_prog_cc_c89" in
2984 { echo "$as_me:$LINENO: result: none needed" >&5
2985 echo "${ECHO_T}none needed" >&6; } ;;
2986 xno)
2987 { echo "$as_me:$LINENO: result: unsupported" >&5
2988 echo "${ECHO_T}unsupported" >&6; } ;;
2990 CC="$CC $ac_cv_prog_cc_c89"
2991 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2992 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2993 esac
2996 ac_ext=c
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 case $ac_cv_prog_cc_stdc in
3003 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3004 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3005 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3006 if test "${ac_cv_prog_cc_c99+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 ac_cv_prog_cc_c99=no
3010 ac_save_CC=$CC
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <stdarg.h>
3018 #include <stdbool.h>
3019 #include <stdlib.h>
3020 #include <wchar.h>
3021 #include <stdio.h>
3023 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3024 #define debug(...) fprintf (stderr, __VA_ARGS__)
3025 #define showlist(...) puts (#__VA_ARGS__)
3026 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3027 static void
3028 test_varargs_macros (void)
3030 int x = 1234;
3031 int y = 5678;
3032 debug ("Flag");
3033 debug ("X = %d\n", x);
3034 showlist (The first, second, and third items.);
3035 report (x>y, "x is %d but y is %d", x, y);
3038 // Check long long types.
3039 #define BIG64 18446744073709551615ull
3040 #define BIG32 4294967295ul
3041 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3042 #if !BIG_OK
3043 your preprocessor is broken;
3044 #endif
3045 #if BIG_OK
3046 #else
3047 your preprocessor is broken;
3048 #endif
3049 static long long int bignum = -9223372036854775807LL;
3050 static unsigned long long int ubignum = BIG64;
3052 struct incomplete_array
3054 int datasize;
3055 double data[];
3058 struct named_init {
3059 int number;
3060 const wchar_t *name;
3061 double average;
3064 typedef const char *ccp;
3066 static inline int
3067 test_restrict (ccp restrict text)
3069 // See if C++-style comments work.
3070 // Iterate through items via the restricted pointer.
3071 // Also check for declarations in for loops.
3072 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3073 continue;
3074 return 0;
3077 // Check varargs and va_copy.
3078 static void
3079 test_varargs (const char *format, ...)
3081 va_list args;
3082 va_start (args, format);
3083 va_list args_copy;
3084 va_copy (args_copy, args);
3086 const char *str;
3087 int number;
3088 float fnumber;
3090 while (*format)
3092 switch (*format++)
3094 case 's': // string
3095 str = va_arg (args_copy, const char *);
3096 break;
3097 case 'd': // int
3098 number = va_arg (args_copy, int);
3099 break;
3100 case 'f': // float
3101 fnumber = va_arg (args_copy, double);
3102 break;
3103 default:
3104 break;
3107 va_end (args_copy);
3108 va_end (args);
3112 main ()
3115 // Check bool.
3116 _Bool success = false;
3118 // Check restrict.
3119 if (test_restrict ("String literal") == 0)
3120 success = true;
3121 char *restrict newvar = "Another string";
3123 // Check varargs.
3124 test_varargs ("s, d' f .", "string", 65, 34.234);
3125 test_varargs_macros ();
3127 // Check flexible array members.
3128 struct incomplete_array *ia =
3129 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3130 ia->datasize = 10;
3131 for (int i = 0; i < ia->datasize; ++i)
3132 ia->data[i] = i * 1.234;
3134 // Check named initializers.
3135 struct named_init ni = {
3136 .number = 34,
3137 .name = L"Test wide string",
3138 .average = 543.34343,
3141 ni.number = 58;
3143 int dynamic_array[ni.number];
3144 dynamic_array[ni.number - 1] = 543;
3146 // work around unused variable warnings
3147 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3148 || dynamic_array[ni.number - 1] != 543);
3151 return 0;
3153 _ACEOF
3154 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3156 CC="$ac_save_CC $ac_arg"
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } && {
3171 test -z "$ac_c_werror_flag" ||
3172 test ! -s conftest.err
3173 } && test -s conftest.$ac_objext; then
3174 ac_cv_prog_cc_c99=$ac_arg
3175 else
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3182 rm -f core conftest.err conftest.$ac_objext
3183 test "x$ac_cv_prog_cc_c99" != "xno" && break
3184 done
3185 rm -f conftest.$ac_ext
3186 CC=$ac_save_CC
3189 # AC_CACHE_VAL
3190 case "x$ac_cv_prog_cc_c99" in
3192 { echo "$as_me:$LINENO: result: none needed" >&5
3193 echo "${ECHO_T}none needed" >&6; } ;;
3194 xno)
3195 { echo "$as_me:$LINENO: result: unsupported" >&5
3196 echo "${ECHO_T}unsupported" >&6; } ;;
3198 CC="$CC $ac_cv_prog_cc_c99"
3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3200 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3201 esac
3202 if test "x$ac_cv_prog_cc_c99" != xno; then
3203 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3204 else
3205 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3206 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3207 if test "${ac_cv_prog_cc_c89+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210 ac_cv_prog_cc_c89=no
3211 ac_save_CC=$CC
3212 cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h. */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218 #include <stdarg.h>
3219 #include <stdio.h>
3220 #include <sys/types.h>
3221 #include <sys/stat.h>
3222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3223 struct buf { int x; };
3224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3225 static char *e (p, i)
3226 char **p;
3227 int i;
3229 return p[i];
3231 static char *f (char * (*g) (char **, int), char **p, ...)
3233 char *s;
3234 va_list v;
3235 va_start (v,p);
3236 s = g (p, va_arg (v,int));
3237 va_end (v);
3238 return s;
3241 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3242 function prototypes and stuff, but not '\xHH' hex character constants.
3243 These don't provoke an error unfortunately, instead are silently treated
3244 as 'x'. The following induces an error, until -std is added to get
3245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3246 array size at least. It's necessary to write '\x00'==0 to get something
3247 that's true only with -std. */
3248 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3250 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3251 inside strings and character constants. */
3252 #define FOO(x) 'x'
3253 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3255 int test (int i, double x);
3256 struct s1 {int (*f) (int a);};
3257 struct s2 {int (*f) (double a);};
3258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3259 int argc;
3260 char **argv;
3262 main ()
3264 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3266 return 0;
3268 _ACEOF
3269 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3272 CC="$ac_save_CC $ac_arg"
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_compile") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } && {
3287 test -z "$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3289 } && test -s conftest.$ac_objext; then
3290 ac_cv_prog_cc_c89=$ac_arg
3291 else
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3298 rm -f core conftest.err conftest.$ac_objext
3299 test "x$ac_cv_prog_cc_c89" != "xno" && break
3300 done
3301 rm -f conftest.$ac_ext
3302 CC=$ac_save_CC
3305 # AC_CACHE_VAL
3306 case "x$ac_cv_prog_cc_c89" in
3308 { echo "$as_me:$LINENO: result: none needed" >&5
3309 echo "${ECHO_T}none needed" >&6; } ;;
3310 xno)
3311 { echo "$as_me:$LINENO: result: unsupported" >&5
3312 echo "${ECHO_T}unsupported" >&6; } ;;
3314 CC="$CC $ac_cv_prog_cc_c89"
3315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3316 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3317 esac
3318 if test "x$ac_cv_prog_cc_c89" != xno; then
3319 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3320 else
3321 ac_cv_prog_cc_stdc=no
3328 esac
3329 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3330 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 case $ac_cv_prog_cc_stdc in
3336 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3337 echo "${ECHO_T}unsupported" >&6; } ;;
3338 '') { echo "$as_me:$LINENO: result: none needed" >&5
3339 echo "${ECHO_T}none needed" >&6; } ;;
3340 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3341 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3342 esac
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3351 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3352 # On Suns, sometimes $CPP names a directory.
3353 if test -n "$CPP" && test -d "$CPP"; then
3354 CPP=
3356 if test -z "$CPP"; then
3357 if test "${ac_cv_prog_CPP+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 # Double quotes because CPP needs to be expanded
3361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3363 ac_preproc_ok=false
3364 for ac_c_preproc_warn_flag in '' yes
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
3368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369 # <limits.h> exists even on freestanding compilers.
3370 # On the NeXT, cc -E runs the code through the compiler's parser,
3371 # not just through cpp. "Syntax error" is here to catch this case.
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h. */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 #ifdef __STDC__
3379 # include <limits.h>
3380 #else
3381 # include <assert.h>
3382 #endif
3383 Syntax error
3384 _ACEOF
3385 if { (ac_try="$ac_cpp conftest.$ac_ext"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null && {
3398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 }; then
3402 else
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 # Broken: fails on valid input.
3407 continue
3410 rm -f conftest.err conftest.$ac_ext
3412 # OK, works on sane cases. Now check whether nonexistent headers
3413 # can be detected and how.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <ac_nonexistent.h>
3421 _ACEOF
3422 if { (ac_try="$ac_cpp conftest.$ac_ext"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null && {
3435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 }; then
3438 # Broken: success on invalid input.
3439 continue
3440 else
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 # Passes both tests.
3445 ac_preproc_ok=:
3446 break
3449 rm -f conftest.err conftest.$ac_ext
3451 done
3452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453 rm -f conftest.err conftest.$ac_ext
3454 if $ac_preproc_ok; then
3455 break
3458 done
3459 ac_cv_prog_CPP=$CPP
3462 CPP=$ac_cv_prog_CPP
3463 else
3464 ac_cv_prog_CPP=$CPP
3466 { echo "$as_me:$LINENO: result: $CPP" >&5
3467 echo "${ECHO_T}$CPP" >&6; }
3468 ac_preproc_ok=false
3469 for ac_c_preproc_warn_flag in '' yes
3471 # Use a header file that comes with gcc, so configuring glibc
3472 # with a fresh cross-compiler works.
3473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3474 # <limits.h> exists even on freestanding compilers.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error" is here to catch this case.
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 #ifdef __STDC__
3484 # include <limits.h>
3485 #else
3486 # include <assert.h>
3487 #endif
3488 Syntax error
3489 _ACEOF
3490 if { (ac_try="$ac_cpp conftest.$ac_ext"
3491 case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } >/dev/null && {
3503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3505 }; then
3507 else
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 # Broken: fails on valid input.
3512 continue
3515 rm -f conftest.err conftest.$ac_ext
3517 # OK, works on sane cases. Now check whether nonexistent headers
3518 # can be detected and how.
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 #include <ac_nonexistent.h>
3526 _ACEOF
3527 if { (ac_try="$ac_cpp conftest.$ac_ext"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } >/dev/null && {
3540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 }; then
3543 # Broken: success on invalid input.
3544 continue
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 # Passes both tests.
3550 ac_preproc_ok=:
3551 break
3554 rm -f conftest.err conftest.$ac_ext
3556 done
3557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3558 rm -f conftest.err conftest.$ac_ext
3559 if $ac_preproc_ok; then
3561 else
3562 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3563 See \`config.log' for more details." >&5
3564 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3565 See \`config.log' for more details." >&2;}
3566 { (exit 1); exit 1; }; }
3569 ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 # Check for a compatible awk
3577 for ac_prog in gawk nawk
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3583 if test "${ac_cv_prog_AWK+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 if test -n "$AWK"; then
3587 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_AWK="$ac_prog"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3602 IFS=$as_save_IFS
3606 AWK=$ac_cv_prog_AWK
3607 if test -n "$AWK"; then
3608 { echo "$as_me:$LINENO: result: $AWK" >&5
3609 echo "${ECHO_T}$AWK" >&6; }
3610 else
3611 { echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6; }
3616 test -n "$AWK" && break
3617 done
3619 if test "$AWK" = ""; then
3620 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3621 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3622 { (exit 1); exit 1; }; }
3624 # Extract the first word of "mmake", so it can be a program name with args.
3625 set dummy mmake; ac_word=$2
3626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3628 if test "${ac_cv_prog_MMAKE+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 if test -n "$MMAKE"; then
3632 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_MMAKE="mmake "
3642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3645 done
3646 done
3647 IFS=$as_save_IFS
3651 MMAKE=$ac_cv_prog_MMAKE
3652 if test -n "$MMAKE"; then
3653 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3654 echo "${ECHO_T}$MMAKE" >&6; }
3655 else
3656 { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3662 # Perform some default variable assignments. Note all of these will be
3663 # Regenerated from the script, so there is no need to cache them.
3665 aros_host_cc="$CC"
3666 if test "$GCC" = "yes"; then
3667 aros_gcc_ld=`$CC -print-prog-name=ld`
3668 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3669 set dummy `basename $aros_gcc_ld`; ac_word=$2
3670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3672 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 case $aros_host_ld in
3676 [\\/]* | ?:[\\/]*)
3677 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in `dirname $aros_gcc_ld`
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3691 done
3692 done
3693 IFS=$as_save_IFS
3696 esac
3698 aros_host_ld=$ac_cv_path_aros_host_ld
3699 if test -n "$aros_host_ld"; then
3700 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3701 echo "${ECHO_T}$aros_host_ld" >&6; }
3702 else
3703 { echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6; }
3709 if test "$aros_host_ld" = ""; then
3710 # Extract the first word of "ld", so it can be a program name with args.
3711 set dummy ld; ac_word=$2
3712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3714 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717 case $aros_host_ld in
3718 [\\/]* | ?:[\\/]*)
3719 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3733 done
3734 done
3735 IFS=$as_save_IFS
3738 esac
3740 aros_host_ld=$ac_cv_path_aros_host_ld
3741 if test -n "$aros_host_ld"; then
3742 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3743 echo "${ECHO_T}$aros_host_ld" >&6; }
3744 else
3745 { echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6; }
3751 if test "$aros_host_ld" = ""; then
3752 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3753 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3754 { (exit 1); exit 1; }; }
3756 aros_host_make="make"
3757 aros_host_cflags=$CFLAGS
3758 aros_host_ldflags=$LDFLAGS
3759 aros_host_debug="-g -O0"
3760 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3761 aros_host_mkargs="--no-print-directory"
3762 aros_host_incl="/usr/include"
3763 aros_host_exe_suffix="$EXEEXT"
3764 aros_host_lib_suffix=""
3766 for ac_prog in aclocal aclocal19 aclocal-1.9
3768 # Extract the first word of "$ac_prog", so it can be a program name with args.
3769 set dummy $ac_prog; ac_word=$2
3770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3772 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 if test -n "$aros_host_aclocal"; then
3776 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_aros_host_aclocal="$ac_prog"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3791 IFS=$as_save_IFS
3795 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3796 if test -n "$aros_host_aclocal"; then
3797 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3798 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3799 else
3800 { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3805 test -n "$aros_host_aclocal" && break
3806 done
3808 for ac_prog in autoconf autoconf259 autoconf253
3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy $ac_prog; ac_word=$2
3812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3814 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817 if test -n "$aros_host_autoconf"; then
3818 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_aros_host_autoconf="$ac_prog"
3828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3831 done
3832 done
3833 IFS=$as_save_IFS
3837 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3838 if test -n "$aros_host_autoconf"; then
3839 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3840 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3841 else
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3847 test -n "$aros_host_autoconf" && break
3848 done
3850 for ac_prog in autoheader autoheader259 autoheader253
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3856 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 if test -n "$aros_host_autoheader"; then
3860 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_aros_host_autoheader="$ac_prog"
3870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3873 done
3874 done
3875 IFS=$as_save_IFS
3879 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3880 if test -n "$aros_host_autoheader"; then
3881 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3882 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3883 else
3884 { echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6; }
3889 test -n "$aros_host_autoheader" && break
3890 done
3892 for ac_prog in automake automake19 automake-1.9
3894 # Extract the first word of "$ac_prog", so it can be a program name with args.
3895 set dummy $ac_prog; ac_word=$2
3896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3898 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 if test -n "$aros_host_automake"; then
3902 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_aros_host_automake="$ac_prog"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3915 done
3916 done
3917 IFS=$as_save_IFS
3921 aros_host_automake=$ac_cv_prog_aros_host_automake
3922 if test -n "$aros_host_automake"; then
3923 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3924 echo "${ECHO_T}$aros_host_automake" >&6; }
3925 else
3926 { echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6; }
3931 test -n "$aros_host_automake" && break
3932 done
3935 if test "$aros_host_aclocal" = ""; then
3936 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3937 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3938 { (exit 1); exit 1; }; }
3940 if test "$aros_host_automake" = ""; then
3941 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3942 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3943 { (exit 1); exit 1; }; }
3946 case "$aros_host_cc" in
3947 *gcc*)
3948 aros_host_cc_pipe="-pipe"
3950 icc)
3951 aros_host_cc_pipe=""
3954 aros_host_cc_pipe=""
3956 esac
3958 aros_target_cc_includes=""
3960 # This is the main host configuration section. It is where the host
3961 # can change the values of any variables it needs to change. We do
3962 # not look at anything that compiles to the target yet, we'll get
3963 # to that later.
3965 case "$host_os" in
3966 aros*)
3967 aros_host_arch="aros"
3968 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3969 case "$host_cpu" in
3970 *i?86*)
3971 aros_host_cpu="i386"
3973 *x86_64*)
3974 aros_host_cpu="x86_64"
3976 *powerpc*)
3977 aros_host_cpu="ppc"
3980 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3981 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3982 aros_host_cpu="$host_cpu"
3984 esac
3987 linux*)
3988 aros_host_arch="linux"
3989 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3990 case "$host_cpu" in
3991 *i?86*)
3992 aros_host_cpu="i386"
3994 *x86_64*)
3995 aros_host_cpu="x86_64"
3997 *m68k*)
3998 aros_host_cpu="m68k"
4000 *powerpc*)
4001 aros_host_cpu="ppc"
4003 *arm*)
4004 aros_host_cpu="arm"
4007 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4008 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4009 aros_host_cpu="$host_cpu"
4011 esac
4014 freebsd*)
4015 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4016 aros_host_make="gmake"
4017 aros_host_arch="freebsd"
4018 aros_host_cpu="i386"
4020 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4023 case $host_os in
4024 freebsd[234]*)
4025 aros_object_format="elf_i386"
4029 aros_object_format="elf_i386_fbsd"
4031 esac
4035 darwin*)
4036 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4037 aros_host_arch="darwin"
4038 case "$host_cpu" in
4039 *i?86*)
4040 aros_host_cpu="i386"
4042 *x86_64*)
4043 aros_host_cpu="x86_64"
4045 *powerpc*)
4046 aros_host_cpu="ppc"
4049 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4050 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4051 aros_host_cpu="$host_cpu"
4053 esac
4055 aros_host_ldflags="$aros_host_ldflags -liconv"
4059 dragonfly*)
4060 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4061 aros_host_make="gmake"
4062 aros_host_arch="dragonfly"
4063 case $host_cpu in
4064 *i?86*)
4065 aros_host_cpu="i386"
4067 *amd64*)
4068 aros_host_cpu="x86_64"
4071 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4072 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4073 aros_host_cpu="$host_cpu"
4075 esac
4078 netbsd*)
4079 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4080 aros_host_make="gmake"
4081 aros_host_arch="netbsd"
4082 case "$host_cpu" in
4083 *i?86*)
4084 aros_host_cpu="i386"
4086 *m68k*)
4087 aros_host_cpu="m68k"
4090 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4091 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4092 aros_host_cpu="$host_cpu"
4094 esac
4095 aros_host_lib_suffix=".0.0"
4098 openbsd*)
4099 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4100 aros_host_make="gmake"
4101 aros_host_arch="openbsd"
4102 case "$host_cpu" in
4103 *i?86*)
4104 aros_host_cpu="i386"
4107 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4108 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4109 aros_host_cpu="$host_cpu"
4111 esac
4114 solaris*)
4115 aros_host_arch="solaris"
4116 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4117 case "$host_cpu" in
4118 *i?86*)
4119 aros_host_cpu="i386"
4121 *sparc*)
4122 aros_host_cpu="sparc"
4125 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4126 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4127 aros_host_cpu="$host_cpu"
4129 esac
4132 morphos*)
4133 aros_host_arch="morphos"
4134 aros_host_cpu="ppc"
4137 amiga*)
4138 aros_host_arch="amiga"
4139 SORT="/gg/bin/sort"
4140 TEST="/gg/bin/test"
4141 UNIQ="/gg/bin/uniq"
4142 FOR="for"
4143 TOUCH="/gg/bin/touch"
4144 case "$host_cpu" in
4145 *m68k*)
4146 aros_host_cpu="m68k"
4148 *powerpc*)
4149 aros_host_cpu="ppc"
4152 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4153 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4154 aros_host_cpu="$host_cpu"
4156 esac
4159 cygwin*)
4160 aros_host_arch="cygwin"
4161 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4162 case "$host_cpu" in
4163 *i?86*)
4164 aros_host_cpu="i386"
4167 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4168 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4169 aros_host_cpu="$host_cpu"
4171 esac
4174 mingw32*)
4175 aros_host_arch="mingw32"
4176 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4177 case "$host_cpu" in
4178 *i?86*)
4179 aros_host_cpu="i386"
4182 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4183 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4184 aros_host_cpu="$host_cpu"
4186 esac
4189 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4190 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4191 { (exit 1); exit 1; }; }
4193 esac
4195 # Extract the first word of "ar", so it can be a program name with args.
4196 set dummy ar; ac_word=$2
4197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4199 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 if test -n "$aros_host_ar"; then
4203 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_prog_aros_host_ar="ar cr"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4216 done
4217 done
4218 IFS=$as_save_IFS
4222 aros_host_ar=$ac_cv_prog_aros_host_ar
4223 if test -n "$aros_host_ar"; then
4224 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4225 echo "${ECHO_T}$aros_host_ar" >&6; }
4226 else
4227 { echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6; }
4232 if test "$aros_host_ar" = ""; then
4233 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4234 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4235 { (exit 1); exit 1; }; }
4237 # Extract the first word of "ranlib", so it can be a program name with args.
4238 set dummy ranlib; ac_word=$2
4239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4241 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 if test -n "$aros_host_ranlib"; then
4245 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4246 else
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254 ac_cv_prog_aros_host_ranlib="ranlib "
4255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 break 2
4258 done
4259 done
4260 IFS=$as_save_IFS
4264 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4265 if test -n "$aros_host_ranlib"; then
4266 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4267 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4268 else
4269 { echo "$as_me:$LINENO: result: no" >&5
4270 echo "${ECHO_T}no" >&6; }
4274 if test "$aros_host_ranlib" = ""; then
4275 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4276 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4277 { (exit 1); exit 1; }; }
4279 # Extract the first word of "strip", so it can be a program name with args.
4280 set dummy strip; ac_word=$2
4281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4283 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 if test -n "$aros_host_strip"; then
4287 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 ac_cv_prog_aros_host_strip="strip "
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4300 done
4301 done
4302 IFS=$as_save_IFS
4306 aros_host_strip=$ac_cv_prog_aros_host_strip
4307 if test -n "$aros_host_strip"; then
4308 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4309 echo "${ECHO_T}$aros_host_strip" >&6; }
4310 else
4311 { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4316 if test "$aros_host_strip" = ""; then
4317 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4318 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4319 { (exit 1); exit 1; }; }
4322 # Extract the first word of "rm", so it can be a program name with args.
4323 set dummy rm; ac_word=$2
4324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4326 if test "${ac_cv_prog_RM+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 if test -n "$RM"; then
4330 ac_cv_prog_RM="$RM" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_RM="rm -rf"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4345 IFS=$as_save_IFS
4349 RM=$ac_cv_prog_RM
4350 if test -n "$RM"; then
4351 { echo "$as_me:$LINENO: result: $RM" >&5
4352 echo "${ECHO_T}$RM" >&6; }
4353 else
4354 { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4359 if test "$RM" = ""; then
4360 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4361 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4362 { (exit 1); exit 1; }; }
4364 # Extract the first word of "cp", so it can be a program name with args.
4365 set dummy cp; ac_word=$2
4366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4368 if test "${ac_cv_prog_CP+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371 if test -n "$CP"; then
4372 ac_cv_prog_CP="$CP" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_prog_CP="cp "
4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4385 done
4386 done
4387 IFS=$as_save_IFS
4391 CP=$ac_cv_prog_CP
4392 if test -n "$CP"; then
4393 { echo "$as_me:$LINENO: result: $CP" >&5
4394 echo "${ECHO_T}$CP" >&6; }
4395 else
4396 { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4401 if test "$CP" = ""; then
4402 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4403 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4404 { (exit 1); exit 1; }; }
4406 # Extract the first word of "mv", so it can be a program name with args.
4407 set dummy mv; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_prog_MV+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413 if test -n "$MV"; then
4414 ac_cv_prog_MV="$MV" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_MV="mv "
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4427 done
4428 done
4429 IFS=$as_save_IFS
4433 MV=$ac_cv_prog_MV
4434 if test -n "$MV"; then
4435 { echo "$as_me:$LINENO: result: $MV" >&5
4436 echo "${ECHO_T}$MV" >&6; }
4437 else
4438 { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4443 if test "$MV" = ""; then
4444 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4445 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4446 { (exit 1); exit 1; }; }
4448 # Extract the first word of "echo", so it can be a program name with args.
4449 set dummy echo; ac_word=$2
4450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452 if test "${ac_cv_prog_ECHO+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 if test -n "$ECHO"; then
4456 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465 ac_cv_prog_ECHO="echo "
4466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4469 done
4470 done
4471 IFS=$as_save_IFS
4475 ECHO=$ac_cv_prog_ECHO
4476 if test -n "$ECHO"; then
4477 { echo "$as_me:$LINENO: result: $ECHO" >&5
4478 echo "${ECHO_T}$ECHO" >&6; }
4479 else
4480 { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4485 if test "$ECHO" = ""; then
4486 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4487 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4488 { (exit 1); exit 1; }; }
4490 # Extract the first word of "mkdir", so it can be a program name with args.
4491 set dummy mkdir; ac_word=$2
4492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494 if test "${ac_cv_prog_MKDIR+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497 if test -n "$MKDIR"; then
4498 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_prog_MKDIR="mkdir -p"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4511 done
4512 done
4513 IFS=$as_save_IFS
4517 MKDIR=$ac_cv_prog_MKDIR
4518 if test -n "$MKDIR"; then
4519 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4520 echo "${ECHO_T}$MKDIR" >&6; }
4521 else
4522 { echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6; }
4527 if test "$MKDIR" = ""; then
4528 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4529 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4530 { (exit 1); exit 1; }; }
4532 # Extract the first word of "touch", so it can be a program name with args.
4533 set dummy touch; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_prog_TOUCH+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 if test -n "$TOUCH"; then
4540 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_prog_TOUCH="touch "
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4553 done
4554 done
4555 IFS=$as_save_IFS
4559 TOUCH=$ac_cv_prog_TOUCH
4560 if test -n "$TOUCH"; then
4561 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4562 echo "${ECHO_T}$TOUCH" >&6; }
4563 else
4564 { echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6; }
4569 if test "$TOUCH" = ""; then
4570 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4571 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4572 { (exit 1); exit 1; }; }
4574 # Extract the first word of "sort", so it can be a program name with args.
4575 set dummy sort; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_prog_SORT+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 if test -n "$SORT"; then
4582 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_SORT="sort "
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4595 done
4596 done
4597 IFS=$as_save_IFS
4601 SORT=$ac_cv_prog_SORT
4602 if test -n "$SORT"; then
4603 { echo "$as_me:$LINENO: result: $SORT" >&5
4604 echo "${ECHO_T}$SORT" >&6; }
4605 else
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4611 if test "$SORT" = ""; then
4612 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4613 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4614 { (exit 1); exit 1; }; }
4616 # Extract the first word of "uniq", so it can be a program name with args.
4617 set dummy uniq; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_UNIQ+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 if test -n "$UNIQ"; then
4624 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_UNIQ="uniq "
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4643 UNIQ=$ac_cv_prog_UNIQ
4644 if test -n "$UNIQ"; then
4645 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4646 echo "${ECHO_T}$UNIQ" >&6; }
4647 else
4648 { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4653 if test "$UNIQ" = ""; then
4654 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4655 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4656 { (exit 1); exit 1; }; }
4658 # Extract the first word of "true", so it can be a program name with args.
4659 set dummy true; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_NOP+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665 if test -n "$NOP"; then
4666 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_NOP="true "
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4679 done
4680 done
4681 IFS=$as_save_IFS
4685 NOP=$ac_cv_prog_NOP
4686 if test -n "$NOP"; then
4687 { echo "$as_me:$LINENO: result: $NOP" >&5
4688 echo "${ECHO_T}$NOP" >&6; }
4689 else
4690 { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4695 if test "$NOP" = ""; then
4696 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4697 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4698 { (exit 1); exit 1; }; }
4700 # Extract the first word of "cat", so it can be a program name with args.
4701 set dummy cat; ac_word=$2
4702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4704 if test "${ac_cv_prog_CAT+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 if test -n "$CAT"; then
4708 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_CAT="cat "
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4721 done
4722 done
4723 IFS=$as_save_IFS
4727 CAT=$ac_cv_prog_CAT
4728 if test -n "$CAT"; then
4729 { echo "$as_me:$LINENO: result: $CAT" >&5
4730 echo "${ECHO_T}$CAT" >&6; }
4731 else
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4737 if test "$CAT" = ""; then
4738 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4739 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4740 { (exit 1); exit 1; }; }
4742 # Extract the first word of "bison", so it can be a program name with args.
4743 set dummy bison; ac_word=$2
4744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4746 if test "${ac_cv_prog_BISON+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 if test -n "$BISON"; then
4750 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_prog_BISON="bison "
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4763 done
4764 done
4765 IFS=$as_save_IFS
4769 BISON=$ac_cv_prog_BISON
4770 if test -n "$BISON"; then
4771 { echo "$as_me:$LINENO: result: $BISON" >&5
4772 echo "${ECHO_T}$BISON" >&6; }
4773 else
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4779 if test "$BISON" = ""; then
4780 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4781 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4782 { (exit 1); exit 1; }; }
4784 # Extract the first word of "flex", so it can be a program name with args.
4785 set dummy flex; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_FLEX+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791 if test -n "$FLEX"; then
4792 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_FLEX="flex "
4802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4807 IFS=$as_save_IFS
4811 FLEX=$ac_cv_prog_FLEX
4812 if test -n "$FLEX"; then
4813 { echo "$as_me:$LINENO: result: $FLEX" >&5
4814 echo "${ECHO_T}$FLEX" >&6; }
4815 else
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4821 if test "$FLEX" = ""; then
4822 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4823 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4824 { (exit 1); exit 1; }; }
4826 # Extract the first word of "pngtopnm", so it can be a program name with args.
4827 set dummy pngtopnm; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 if test -n "$PNGTOPNM"; then
4834 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_PNGTOPNM="pngtopnm "
4844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4854 if test -n "$PNGTOPNM"; then
4855 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4856 echo "${ECHO_T}$PNGTOPNM" >&6; }
4857 else
4858 { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4863 if test "$PNGTOPNM" = ""; then
4864 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4865 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4866 { (exit 1); exit 1; }; }
4868 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4869 set dummy ppmtoilbm; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 if test -n "$PPMTOILBM"; then
4876 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4896 if test -n "$PPMTOILBM"; then
4897 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4898 echo "${ECHO_T}$PPMTOILBM" >&6; }
4899 else
4900 { echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6; }
4905 if test "$PPMTOILBM" = ""; then
4906 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4907 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4908 { (exit 1); exit 1; }; }
4910 # Extract the first word of "sed", so it can be a program name with args.
4911 set dummy sed; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_prog_SED+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 if test -n "$SED"; then
4918 ac_cv_prog_SED="$SED" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_SED="sed "
4928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 SED=$ac_cv_prog_SED
4938 if test -n "$SED"; then
4939 { echo "$as_me:$LINENO: result: $SED" >&5
4940 echo "${ECHO_T}$SED" >&6; }
4941 else
4942 { echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6; }
4947 if test "$SED" = ""; then
4948 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4949 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4950 { (exit 1); exit 1; }; }
4952 # Extract the first word of "chmod", so it can be a program name with args.
4953 set dummy chmod; ac_word=$2
4954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4956 if test "${ac_cv_prog_CHMOD+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 if test -n "$CHMOD"; then
4960 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_CHMOD="chmod "
4970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4973 done
4974 done
4975 IFS=$as_save_IFS
4979 CHMOD=$ac_cv_prog_CHMOD
4980 if test -n "$CHMOD"; then
4981 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4982 echo "${ECHO_T}$CHMOD" >&6; }
4983 else
4984 { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4989 if test "$CHMOD" = ""; then
4990 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4991 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4992 { (exit 1); exit 1; }; }
4999 if test -n "$PYTHON"; then
5000 # If the user set $PYTHON, use it and don't search something else.
5001 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5002 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5003 prog="import sys, string
5004 # split strings by '.' and convert to numeric. Append some zeros
5005 # because we need at least 4 digits for the hex conversion.
5006 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5007 minverhex = 0
5008 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5009 sys.exit(sys.hexversion < minverhex)"
5010 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5011 ($PYTHON -c "$prog") >&5 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; then
5015 { echo "$as_me:$LINENO: result: yes" >&5
5016 echo "${ECHO_T}yes" >&6; }
5017 else
5018 { { echo "$as_me:$LINENO: error: too old" >&5
5019 echo "$as_me: error: too old" >&2;}
5020 { (exit 1); exit 1; }; }
5023 am_display_PYTHON=$PYTHON
5024 else
5025 # Otherwise, try each interpreter until we find one that satisfies
5026 # VERSION.
5027 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5028 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5029 if test "${am_cv_pathless_PYTHON+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5033 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
5034 test "$am_cv_pathless_PYTHON" = none && break
5035 prog="import sys, string
5036 # split strings by '.' and convert to numeric. Append some zeros
5037 # because we need at least 4 digits for the hex conversion.
5038 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5039 minverhex = 0
5040 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5041 sys.exit(sys.hexversion < minverhex)"
5042 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5043 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; then
5047 break
5050 done
5052 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5053 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5054 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5055 if test "$am_cv_pathless_PYTHON" = none; then
5056 PYTHON=:
5057 else
5058 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5059 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_path_PYTHON+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065 case $PYTHON in
5066 [\\/]* | ?:[\\/]*)
5067 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5086 esac
5088 PYTHON=$ac_cv_path_PYTHON
5089 if test -n "$PYTHON"; then
5090 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5091 echo "${ECHO_T}$PYTHON" >&6; }
5092 else
5093 { echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6; }
5099 am_display_PYTHON=$am_cv_pathless_PYTHON
5103 if test "$PYTHON" = :; then
5104 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5105 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5106 { (exit 1); exit 1; }; }
5107 else
5110 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5111 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5112 if test "${am_cv_python_version+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5117 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5118 echo "${ECHO_T}$am_cv_python_version" >&6; }
5119 PYTHON_VERSION=$am_cv_python_version
5123 PYTHON_PREFIX='${prefix}'
5125 PYTHON_EXEC_PREFIX='${exec_prefix}'
5129 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5130 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5131 if test "${am_cv_python_platform+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5136 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5137 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5138 PYTHON_PLATFORM=$am_cv_python_platform
5143 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5144 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5145 if test "${am_cv_python_pythondir+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5149 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5151 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5152 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5153 pythondir=$am_cv_python_pythondir
5157 pkgpythondir=\${pythondir}/$PACKAGE
5160 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5161 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5162 if test "${am_cv_python_pyexecdir+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5166 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5168 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5169 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5170 pyexecdir=$am_cv_python_pyexecdir
5174 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5182 FOR=for
5184 IF=if
5186 TEST=test
5188 CMP=cmp
5192 # Check for some includes for the X11 HIDD and the kernel
5195 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5196 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5197 if test "${ac_cv_path_GREP+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 # Extract the first word of "grep ggrep" to use in msg output
5201 if test -z "$GREP"; then
5202 set dummy grep ggrep; ac_prog_name=$2
5203 if test "${ac_cv_path_GREP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 ac_path_GREP_found=false
5207 # Loop through the user's path and test for each of PROGNAME-LIST
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_prog in grep ggrep; do
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5216 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5217 # Check for GNU ac_path_GREP and select it if it is found.
5218 # Check for GNU $ac_path_GREP
5219 case `"$ac_path_GREP" --version 2>&1` in
5220 *GNU*)
5221 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5223 ac_count=0
5224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5225 while :
5227 cat "conftest.in" "conftest.in" >"conftest.tmp"
5228 mv "conftest.tmp" "conftest.in"
5229 cp "conftest.in" "conftest.nl"
5230 echo 'GREP' >> "conftest.nl"
5231 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5233 ac_count=`expr $ac_count + 1`
5234 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5235 # Best one so far, save it but keep looking for a better one
5236 ac_cv_path_GREP="$ac_path_GREP"
5237 ac_path_GREP_max=$ac_count
5239 # 10*(2^10) chars as input seems more than enough
5240 test $ac_count -gt 10 && break
5241 done
5242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5243 esac
5246 $ac_path_GREP_found && break 3
5247 done
5248 done
5250 done
5251 IFS=$as_save_IFS
5256 GREP="$ac_cv_path_GREP"
5257 if test -z "$GREP"; then
5258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5260 { (exit 1); exit 1; }; }
5263 else
5264 ac_cv_path_GREP=$GREP
5269 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5270 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5271 GREP="$ac_cv_path_GREP"
5274 { echo "$as_me:$LINENO: checking for egrep" >&5
5275 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5276 if test "${ac_cv_path_EGREP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5280 then ac_cv_path_EGREP="$GREP -E"
5281 else
5282 # Extract the first word of "egrep" to use in msg output
5283 if test -z "$EGREP"; then
5284 set dummy egrep; ac_prog_name=$2
5285 if test "${ac_cv_path_EGREP+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 ac_path_EGREP_found=false
5289 # Loop through the user's path and test for each of PROGNAME-LIST
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_prog in egrep; do
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5298 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5299 # Check for GNU ac_path_EGREP and select it if it is found.
5300 # Check for GNU $ac_path_EGREP
5301 case `"$ac_path_EGREP" --version 2>&1` in
5302 *GNU*)
5303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5305 ac_count=0
5306 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5307 while :
5309 cat "conftest.in" "conftest.in" >"conftest.tmp"
5310 mv "conftest.tmp" "conftest.in"
5311 cp "conftest.in" "conftest.nl"
5312 echo 'EGREP' >> "conftest.nl"
5313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315 ac_count=`expr $ac_count + 1`
5316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5317 # Best one so far, save it but keep looking for a better one
5318 ac_cv_path_EGREP="$ac_path_EGREP"
5319 ac_path_EGREP_max=$ac_count
5321 # 10*(2^10) chars as input seems more than enough
5322 test $ac_count -gt 10 && break
5323 done
5324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325 esac
5328 $ac_path_EGREP_found && break 3
5329 done
5330 done
5332 done
5333 IFS=$as_save_IFS
5338 EGREP="$ac_cv_path_EGREP"
5339 if test -z "$EGREP"; then
5340 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5341 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5342 { (exit 1); exit 1; }; }
5345 else
5346 ac_cv_path_EGREP=$EGREP
5352 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5353 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5354 EGREP="$ac_cv_path_EGREP"
5357 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5358 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5359 if test "${ac_cv_header_stdc+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 #include <stdlib.h>
5369 #include <stdarg.h>
5370 #include <string.h>
5371 #include <float.h>
5374 main ()
5378 return 0;
5380 _ACEOF
5381 rm -f conftest.$ac_objext
5382 if { (ac_try="$ac_compile"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compile") 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest.$ac_objext; then
5398 ac_cv_header_stdc=yes
5399 else
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_header_stdc=no
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 if test $ac_cv_header_stdc = yes; then
5409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #include <string.h>
5418 _ACEOF
5419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5420 $EGREP "memchr" >/dev/null 2>&1; then
5422 else
5423 ac_cv_header_stdc=no
5425 rm -f -r conftest*
5429 if test $ac_cv_header_stdc = yes; then
5430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 #include <stdlib.h>
5439 _ACEOF
5440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441 $EGREP "free" >/dev/null 2>&1; then
5443 else
5444 ac_cv_header_stdc=no
5446 rm -f -r conftest*
5450 if test $ac_cv_header_stdc = yes; then
5451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5452 if test "$cross_compiling" = yes; then
5454 else
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <ctype.h>
5462 #include <stdlib.h>
5463 #if ((' ' & 0x0FF) == 0x020)
5464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5466 #else
5467 # define ISLOWER(c) \
5468 (('a' <= (c) && (c) <= 'i') \
5469 || ('j' <= (c) && (c) <= 'r') \
5470 || ('s' <= (c) && (c) <= 'z'))
5471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5472 #endif
5474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5476 main ()
5478 int i;
5479 for (i = 0; i < 256; i++)
5480 if (XOR (islower (i), ISLOWER (i))
5481 || toupper (i) != TOUPPER (i))
5482 return 2;
5483 return 0;
5485 _ACEOF
5486 rm -f conftest$ac_exeext
5487 if { (ac_try="$ac_link"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_link") 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5497 { (case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500 esac
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_try") 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5507 else
5508 echo "$as_me: program exited with status $ac_status" >&5
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ( exit $ac_status )
5513 ac_cv_header_stdc=no
5515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5521 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5522 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5523 if test $ac_cv_header_stdc = yes; then
5525 cat >>confdefs.h <<\_ACEOF
5526 #define STDC_HEADERS 1
5527 _ACEOF
5531 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5541 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5542 inttypes.h stdint.h unistd.h
5544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 $ac_includes_default
5558 #include <$ac_header>
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 eval "$as_ac_Header=yes"
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 eval "$as_ac_Header=no"
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 ac_res=`eval echo '${'$as_ac_Header'}'`
5588 { echo "$as_me:$LINENO: result: $ac_res" >&5
5589 echo "${ECHO_T}$ac_res" >&6; }
5590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5591 cat >>confdefs.h <<_ACEOF
5592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5593 _ACEOF
5597 done
5609 for ac_header in sys/ipc.h sys/shm.h \
5610 sys/mmap.h sys/mman.h sysexits.h \
5611 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 ac_res=`eval echo '${'$as_ac_Header'}'`
5622 { echo "$as_me:$LINENO: result: $ac_res" >&5
5623 echo "${ECHO_T}$ac_res" >&6; }
5624 else
5625 # Is the header compilable?
5626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 $ac_includes_default
5635 #include <$ac_header>
5636 _ACEOF
5637 rm -f conftest.$ac_objext
5638 if { (ac_try="$ac_compile"
5639 case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_compile") 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && {
5651 test -z "$ac_c_werror_flag" ||
5652 test ! -s conftest.err
5653 } && test -s conftest.$ac_objext; then
5654 ac_header_compiler=yes
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 ac_header_compiler=no
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5664 echo "${ECHO_T}$ac_header_compiler" >&6; }
5666 # Is the header present?
5667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h. */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #include <$ac_header>
5676 _ACEOF
5677 if { (ac_try="$ac_cpp conftest.$ac_ext"
5678 case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } >/dev/null && {
5690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 }; then
5693 ac_header_preproc=yes
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 ac_header_preproc=no
5701 rm -f conftest.err conftest.$ac_ext
5702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5703 echo "${ECHO_T}$ac_header_preproc" >&6; }
5705 # So? What about this header?
5706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5707 yes:no: )
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5712 ac_header_preproc=yes
5714 no:yes:* )
5715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5729 esac
5730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 eval "$as_ac_Header=\$ac_header_preproc"
5737 ac_res=`eval echo '${'$as_ac_Header'}'`
5738 { echo "$as_me:$LINENO: result: $ac_res" >&5
5739 echo "${ECHO_T}$ac_res" >&6; }
5742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5743 cat >>confdefs.h <<_ACEOF
5744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5745 _ACEOF
5749 done
5753 for ac_header in sys/mount.h
5755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 #include <sys/param.h>
5769 #include <$ac_header>
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (ac_try="$ac_compile"
5773 case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compile") 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest.$ac_objext; then
5788 eval "$as_ac_Header=yes"
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 eval "$as_ac_Header=no"
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_res=`eval echo '${'$as_ac_Header'}'`
5799 { echo "$as_me:$LINENO: result: $ac_res" >&5
5800 echo "${ECHO_T}$ac_res" >&6; }
5801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5804 _ACEOF
5808 done
5816 ac_header_dirent=no
5817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5818 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5819 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5820 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 #include <sys/types.h>
5831 #include <$ac_hdr>
5834 main ()
5836 if ((DIR *) 0)
5837 return 0;
5839 return 0;
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (ac_try="$ac_compile"
5844 case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_compile") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.$ac_objext; then
5859 eval "$as_ac_Header=yes"
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 eval "$as_ac_Header=no"
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 ac_res=`eval echo '${'$as_ac_Header'}'`
5870 { echo "$as_me:$LINENO: result: $ac_res" >&5
5871 echo "${ECHO_T}$ac_res" >&6; }
5872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5873 cat >>confdefs.h <<_ACEOF
5874 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5875 _ACEOF
5877 ac_header_dirent=$ac_hdr; break
5880 done
5881 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5882 if test $ac_header_dirent = dirent.h; then
5883 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5884 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5885 if test "${ac_cv_search_opendir+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888 ac_func_search_save_LIBS=$LIBS
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5896 /* Override any GCC internal prototype to avoid an error.
5897 Use char because int might match the return type of a GCC
5898 builtin and then its argument prototype would still apply. */
5899 #ifdef __cplusplus
5900 extern "C"
5901 #endif
5902 char opendir ();
5904 main ()
5906 return opendir ();
5908 return 0;
5910 _ACEOF
5911 for ac_lib in '' dir; do
5912 if test -z "$ac_lib"; then
5913 ac_res="none required"
5914 else
5915 ac_res=-l$ac_lib
5916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5918 rm -f conftest.$ac_objext conftest$ac_exeext
5919 if { (ac_try="$ac_link"
5920 case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_link") 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && {
5932 test -z "$ac_c_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest$ac_exeext &&
5935 $as_test_x conftest$ac_exeext; then
5936 ac_cv_search_opendir=$ac_res
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5945 conftest$ac_exeext
5946 if test "${ac_cv_search_opendir+set}" = set; then
5947 break
5949 done
5950 if test "${ac_cv_search_opendir+set}" = set; then
5952 else
5953 ac_cv_search_opendir=no
5955 rm conftest.$ac_ext
5956 LIBS=$ac_func_search_save_LIBS
5958 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5959 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5960 ac_res=$ac_cv_search_opendir
5961 if test "$ac_res" != no; then
5962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5966 else
5967 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5968 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5969 if test "${ac_cv_search_opendir+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 ac_func_search_save_LIBS=$LIBS
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5980 /* Override any GCC internal prototype to avoid an error.
5981 Use char because int might match the return type of a GCC
5982 builtin and then its argument prototype would still apply. */
5983 #ifdef __cplusplus
5984 extern "C"
5985 #endif
5986 char opendir ();
5988 main ()
5990 return opendir ();
5992 return 0;
5994 _ACEOF
5995 for ac_lib in '' x; do
5996 if test -z "$ac_lib"; then
5997 ac_res="none required"
5998 else
5999 ac_res=-l$ac_lib
6000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6002 rm -f conftest.$ac_objext conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6004 case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest$ac_exeext &&
6019 $as_test_x conftest$ac_exeext; then
6020 ac_cv_search_opendir=$ac_res
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029 conftest$ac_exeext
6030 if test "${ac_cv_search_opendir+set}" = set; then
6031 break
6033 done
6034 if test "${ac_cv_search_opendir+set}" = set; then
6036 else
6037 ac_cv_search_opendir=no
6039 rm conftest.$ac_ext
6040 LIBS=$ac_func_search_save_LIBS
6042 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6043 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6044 ac_res=$ac_cv_search_opendir
6045 if test "$ac_res" != no; then
6046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6052 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6053 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6054 if test "${ac_cv_header_stat_broken+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 #include <sys/types.h>
6064 #include <sys/stat.h>
6066 #if defined S_ISBLK && defined S_IFDIR
6067 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6068 #endif
6070 #if defined S_ISBLK && defined S_IFCHR
6071 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6072 #endif
6074 #if defined S_ISLNK && defined S_IFREG
6075 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6076 #endif
6078 #if defined S_ISSOCK && defined S_IFREG
6079 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6080 #endif
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6085 case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.$ac_objext; then
6100 ac_cv_header_stat_broken=no
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_cv_header_stat_broken=yes
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6111 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6112 if test $ac_cv_header_stat_broken = yes; then
6114 cat >>confdefs.h <<\_ACEOF
6115 #define STAT_MACROS_BROKEN 1
6116 _ACEOF
6120 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6121 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6122 if test "${ac_cv_header_stdc+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125 cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h. */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6131 #include <stdlib.h>
6132 #include <stdarg.h>
6133 #include <string.h>
6134 #include <float.h>
6137 main ()
6141 return 0;
6143 _ACEOF
6144 rm -f conftest.$ac_objext
6145 if { (ac_try="$ac_compile"
6146 case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_compile") 2>conftest.er1
6152 ac_status=$?
6153 grep -v '^ *+' conftest.er1 >conftest.err
6154 rm -f conftest.er1
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && {
6158 test -z "$ac_c_werror_flag" ||
6159 test ! -s conftest.err
6160 } && test -s conftest.$ac_objext; then
6161 ac_cv_header_stdc=yes
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6166 ac_cv_header_stdc=no
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 if test $ac_cv_header_stdc = yes; then
6172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <string.h>
6181 _ACEOF
6182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6183 $EGREP "memchr" >/dev/null 2>&1; then
6185 else
6186 ac_cv_header_stdc=no
6188 rm -f -r conftest*
6192 if test $ac_cv_header_stdc = yes; then
6193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6194 cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 #include <stdlib.h>
6202 _ACEOF
6203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6204 $EGREP "free" >/dev/null 2>&1; then
6206 else
6207 ac_cv_header_stdc=no
6209 rm -f -r conftest*
6213 if test $ac_cv_header_stdc = yes; then
6214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6215 if test "$cross_compiling" = yes; then
6217 else
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 #include <ctype.h>
6225 #include <stdlib.h>
6226 #if ((' ' & 0x0FF) == 0x020)
6227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6229 #else
6230 # define ISLOWER(c) \
6231 (('a' <= (c) && (c) <= 'i') \
6232 || ('j' <= (c) && (c) <= 'r') \
6233 || ('s' <= (c) && (c) <= 'z'))
6234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6235 #endif
6237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6239 main ()
6241 int i;
6242 for (i = 0; i < 256; i++)
6243 if (XOR (islower (i), ISLOWER (i))
6244 || toupper (i) != TOUPPER (i))
6245 return 2;
6246 return 0;
6248 _ACEOF
6249 rm -f conftest$ac_exeext
6250 if { (ac_try="$ac_link"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_link") 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6260 { (case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_try") 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6270 else
6271 echo "$as_me: program exited with status $ac_status" >&5
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ( exit $ac_status )
6276 ac_cv_header_stdc=no
6278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6284 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6285 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6286 if test $ac_cv_header_stdc = yes; then
6288 cat >>confdefs.h <<\_ACEOF
6289 #define STDC_HEADERS 1
6290 _ACEOF
6294 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6295 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6296 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <sys/types.h>
6306 #include <sys/wait.h>
6307 #ifndef WEXITSTATUS
6308 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6309 #endif
6310 #ifndef WIFEXITED
6311 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6312 #endif
6315 main ()
6317 int s;
6318 wait (&s);
6319 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6321 return 0;
6323 _ACEOF
6324 rm -f conftest.$ac_objext
6325 if { (ac_try="$ac_compile"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compile") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } && {
6338 test -z "$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6340 } && test -s conftest.$ac_objext; then
6341 ac_cv_header_sys_wait_h=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_cv_header_sys_wait_h=no
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6352 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6353 if test $ac_cv_header_sys_wait_h = yes; then
6355 cat >>confdefs.h <<\_ACEOF
6356 #define HAVE_SYS_WAIT_H 1
6357 _ACEOF
6361 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6362 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6363 if test "${ac_cv_header_time+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 #include <sys/types.h>
6373 #include <sys/time.h>
6374 #include <time.h>
6377 main ()
6379 if ((struct tm *) 0)
6380 return 0;
6382 return 0;
6384 _ACEOF
6385 rm -f conftest.$ac_objext
6386 if { (ac_try="$ac_compile"
6387 case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6390 esac
6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_compile") 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && {
6399 test -z "$ac_c_werror_flag" ||
6400 test ! -s conftest.err
6401 } && test -s conftest.$ac_objext; then
6402 ac_cv_header_time=yes
6403 else
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6407 ac_cv_header_time=no
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6413 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6414 if test $ac_cv_header_time = yes; then
6416 cat >>confdefs.h <<\_ACEOF
6417 #define TIME_WITH_SYS_TIME 1
6418 _ACEOF
6422 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6423 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6424 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h. */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 $ac_includes_default
6435 main ()
6437 static struct stat ac_aggr;
6438 if (ac_aggr.st_blksize)
6439 return 0;
6441 return 0;
6443 _ACEOF
6444 rm -f conftest.$ac_objext
6445 if { (ac_try="$ac_compile"
6446 case "(($ac_try" in
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6449 esac
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_compile") 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } && {
6458 test -z "$ac_c_werror_flag" ||
6459 test ! -s conftest.err
6460 } && test -s conftest.$ac_objext; then
6461 ac_cv_member_struct_stat_st_blksize=yes
6462 else
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h. */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 $ac_includes_default
6474 main ()
6476 static struct stat ac_aggr;
6477 if (sizeof ac_aggr.st_blksize)
6478 return 0;
6480 return 0;
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (ac_try="$ac_compile"
6485 case "(($ac_try" in
6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6488 esac
6489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6490 (eval "$ac_compile") 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && {
6497 test -z "$ac_c_werror_flag" ||
6498 test ! -s conftest.err
6499 } && test -s conftest.$ac_objext; then
6500 ac_cv_member_struct_stat_st_blksize=yes
6501 else
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_cv_member_struct_stat_st_blksize=no
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6514 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6515 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6517 cat >>confdefs.h <<_ACEOF
6518 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6519 _ACEOF
6522 cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_ST_BLKSIZE 1
6524 _ACEOF
6529 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6530 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6531 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 $ac_includes_default
6542 main ()
6544 static struct stat ac_aggr;
6545 if (ac_aggr.st_blocks)
6546 return 0;
6548 return 0;
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 ac_cv_member_struct_stat_st_blocks=yes
6569 else
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 $ac_includes_default
6581 main ()
6583 static struct stat ac_aggr;
6584 if (sizeof ac_aggr.st_blocks)
6585 return 0;
6587 return 0;
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (ac_try="$ac_compile"
6592 case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595 esac
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.$ac_objext; then
6607 ac_cv_member_struct_stat_st_blocks=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_cv_member_struct_stat_st_blocks=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6621 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6622 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6624 cat >>confdefs.h <<_ACEOF
6625 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6626 _ACEOF
6629 cat >>confdefs.h <<\_ACEOF
6630 #define HAVE_ST_BLOCKS 1
6631 _ACEOF
6633 else
6634 case " $LIBOBJS " in
6635 *" fileblocks.$ac_objext "* ) ;;
6636 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6638 esac
6643 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6644 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6645 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 $ac_includes_default
6656 main ()
6658 static struct stat ac_aggr;
6659 if (ac_aggr.st_rdev)
6660 return 0;
6662 return 0;
6664 _ACEOF
6665 rm -f conftest.$ac_objext
6666 if { (ac_try="$ac_compile"
6667 case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670 esac
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_compile") 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } && {
6679 test -z "$ac_c_werror_flag" ||
6680 test ! -s conftest.err
6681 } && test -s conftest.$ac_objext; then
6682 ac_cv_member_struct_stat_st_rdev=yes
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 $ac_includes_default
6695 main ()
6697 static struct stat ac_aggr;
6698 if (sizeof ac_aggr.st_rdev)
6699 return 0;
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6706 case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.$ac_objext; then
6721 ac_cv_member_struct_stat_st_rdev=yes
6722 else
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 ac_cv_member_struct_stat_st_rdev=no
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6735 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6736 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6738 cat >>confdefs.h <<_ACEOF
6739 #define HAVE_STRUCT_STAT_ST_RDEV 1
6740 _ACEOF
6743 cat >>confdefs.h <<\_ACEOF
6744 #define HAVE_ST_RDEV 1
6745 _ACEOF
6750 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6751 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6752 if test "${ac_cv_struct_tm+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 #include <sys/types.h>
6762 #include <time.h>
6765 main ()
6767 struct tm tm;
6768 int *p = &tm.tm_sec;
6769 return !p;
6771 return 0;
6773 _ACEOF
6774 rm -f conftest.$ac_objext
6775 if { (ac_try="$ac_compile"
6776 case "(($ac_try" in
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6779 esac
6780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6781 (eval "$ac_compile") 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 } && test -s conftest.$ac_objext; then
6791 ac_cv_struct_tm=time.h
6792 else
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 ac_cv_struct_tm=sys/time.h
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6802 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6803 if test $ac_cv_struct_tm = sys/time.h; then
6805 cat >>confdefs.h <<\_ACEOF
6806 #define TM_IN_SYS_TIME 1
6807 _ACEOF
6811 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6812 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6813 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 #include <sys/types.h>
6823 #include <$ac_cv_struct_tm>
6827 main ()
6829 static struct tm ac_aggr;
6830 if (ac_aggr.tm_zone)
6831 return 0;
6833 return 0;
6835 _ACEOF
6836 rm -f conftest.$ac_objext
6837 if { (ac_try="$ac_compile"
6838 case "(($ac_try" in
6839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840 *) ac_try_echo=$ac_try;;
6841 esac
6842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6843 (eval "$ac_compile") 2>conftest.er1
6844 ac_status=$?
6845 grep -v '^ *+' conftest.er1 >conftest.err
6846 rm -f conftest.er1
6847 cat conftest.err >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } && {
6850 test -z "$ac_c_werror_flag" ||
6851 test ! -s conftest.err
6852 } && test -s conftest.$ac_objext; then
6853 ac_cv_member_struct_tm_tm_zone=yes
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 #include <sys/types.h>
6865 #include <$ac_cv_struct_tm>
6869 main ()
6871 static struct tm ac_aggr;
6872 if (sizeof ac_aggr.tm_zone)
6873 return 0;
6875 return 0;
6877 _ACEOF
6878 rm -f conftest.$ac_objext
6879 if { (ac_try="$ac_compile"
6880 case "(($ac_try" in
6881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882 *) ac_try_echo=$ac_try;;
6883 esac
6884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885 (eval "$ac_compile") 2>conftest.er1
6886 ac_status=$?
6887 grep -v '^ *+' conftest.er1 >conftest.err
6888 rm -f conftest.er1
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && {
6892 test -z "$ac_c_werror_flag" ||
6893 test ! -s conftest.err
6894 } && test -s conftest.$ac_objext; then
6895 ac_cv_member_struct_tm_tm_zone=yes
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_member_struct_tm_tm_zone=no
6903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6909 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6910 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6912 cat >>confdefs.h <<_ACEOF
6913 #define HAVE_STRUCT_TM_TM_ZONE 1
6914 _ACEOF
6919 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6921 cat >>confdefs.h <<\_ACEOF
6922 #define HAVE_TM_ZONE 1
6923 _ACEOF
6925 else
6926 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6927 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6928 if test "${ac_cv_have_decl_tzname+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #include <time.h>
6940 main ()
6942 #ifndef tzname
6943 (void) tzname;
6944 #endif
6947 return 0;
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_compile") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest.$ac_objext; then
6967 ac_cv_have_decl_tzname=yes
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 ac_cv_have_decl_tzname=no
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6978 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6979 if test $ac_cv_have_decl_tzname = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define HAVE_DECL_TZNAME 1
6983 _ACEOF
6986 else
6987 cat >>confdefs.h <<_ACEOF
6988 #define HAVE_DECL_TZNAME 0
6989 _ACEOF
6995 { echo "$as_me:$LINENO: checking for tzname" >&5
6996 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6997 if test "${ac_cv_var_tzname+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <time.h>
7007 #if !HAVE_DECL_TZNAME
7008 extern char *tzname[];
7009 #endif
7012 main ()
7014 return tzname[0][0];
7016 return 0;
7018 _ACEOF
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (ac_try="$ac_link"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_link") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest$ac_exeext &&
7036 $as_test_x conftest$ac_exeext; then
7037 ac_cv_var_tzname=yes
7038 else
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7042 ac_cv_var_tzname=no
7045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7046 conftest$ac_exeext conftest.$ac_ext
7048 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7049 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7050 if test $ac_cv_var_tzname = yes; then
7052 cat >>confdefs.h <<\_ACEOF
7053 #define HAVE_TZNAME 1
7054 _ACEOF
7059 { echo "$as_me:$LINENO: checking for off_t" >&5
7060 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7061 if test "${ac_cv_type_off_t+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h. */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7071 typedef off_t ac__type_new_;
7073 main ()
7075 if ((ac__type_new_ *) 0)
7076 return 0;
7077 if (sizeof (ac__type_new_))
7078 return 0;
7080 return 0;
7082 _ACEOF
7083 rm -f conftest.$ac_objext
7084 if { (ac_try="$ac_compile"
7085 case "(($ac_try" in
7086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087 *) ac_try_echo=$ac_try;;
7088 esac
7089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090 (eval "$ac_compile") 2>conftest.er1
7091 ac_status=$?
7092 grep -v '^ *+' conftest.er1 >conftest.err
7093 rm -f conftest.er1
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && {
7097 test -z "$ac_c_werror_flag" ||
7098 test ! -s conftest.err
7099 } && test -s conftest.$ac_objext; then
7100 ac_cv_type_off_t=yes
7101 else
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_cv_type_off_t=no
7108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7111 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7112 if test $ac_cv_type_off_t = yes; then
7114 else
7116 cat >>confdefs.h <<_ACEOF
7117 #define off_t long int
7118 _ACEOF
7122 { echo "$as_me:$LINENO: checking for pid_t" >&5
7123 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7124 if test "${ac_cv_type_pid_t+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127 cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h. */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7133 $ac_includes_default
7134 typedef pid_t ac__type_new_;
7136 main ()
7138 if ((ac__type_new_ *) 0)
7139 return 0;
7140 if (sizeof (ac__type_new_))
7141 return 0;
7143 return 0;
7145 _ACEOF
7146 rm -f conftest.$ac_objext
7147 if { (ac_try="$ac_compile"
7148 case "(($ac_try" in
7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150 *) ac_try_echo=$ac_try;;
7151 esac
7152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7153 (eval "$ac_compile") 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } && {
7160 test -z "$ac_c_werror_flag" ||
7161 test ! -s conftest.err
7162 } && test -s conftest.$ac_objext; then
7163 ac_cv_type_pid_t=yes
7164 else
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_type_pid_t=no
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7174 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7175 if test $ac_cv_type_pid_t = yes; then
7177 else
7179 cat >>confdefs.h <<_ACEOF
7180 #define pid_t int
7181 _ACEOF
7185 { echo "$as_me:$LINENO: checking for size_t" >&5
7186 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7187 if test "${ac_cv_type_size_t+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190 cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h. */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 $ac_includes_default
7197 typedef size_t ac__type_new_;
7199 main ()
7201 if ((ac__type_new_ *) 0)
7202 return 0;
7203 if (sizeof (ac__type_new_))
7204 return 0;
7206 return 0;
7208 _ACEOF
7209 rm -f conftest.$ac_objext
7210 if { (ac_try="$ac_compile"
7211 case "(($ac_try" in
7212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7214 esac
7215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216 (eval "$ac_compile") 2>conftest.er1
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && {
7223 test -z "$ac_c_werror_flag" ||
7224 test ! -s conftest.err
7225 } && test -s conftest.$ac_objext; then
7226 ac_cv_type_size_t=yes
7227 else
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 ac_cv_type_size_t=no
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7237 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7238 if test $ac_cv_type_size_t = yes; then
7240 else
7242 cat >>confdefs.h <<_ACEOF
7243 #define size_t unsigned int
7244 _ACEOF
7248 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7249 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7250 if test "${ac_cv_type_uid_t+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 #include <sys/types.h>
7261 _ACEOF
7262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263 $EGREP "uid_t" >/dev/null 2>&1; then
7264 ac_cv_type_uid_t=yes
7265 else
7266 ac_cv_type_uid_t=no
7268 rm -f -r conftest*
7271 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7272 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7273 if test $ac_cv_type_uid_t = no; then
7275 cat >>confdefs.h <<\_ACEOF
7276 #define uid_t int
7277 _ACEOF
7280 cat >>confdefs.h <<\_ACEOF
7281 #define gid_t int
7282 _ACEOF
7287 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7288 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7289 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7300 main ()
7302 static struct tm ac_aggr;
7303 if (ac_aggr.tm_gmtoff)
7304 return 0;
7306 return 0;
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (ac_try="$ac_compile"
7311 case "(($ac_try" in
7312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7314 esac
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_compile") 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && {
7323 test -z "$ac_c_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest.$ac_objext; then
7326 ac_cv_member_struct_tm_tm_gmtoff=yes
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 $ac_includes_default
7339 main ()
7341 static struct tm ac_aggr;
7342 if (sizeof ac_aggr.tm_gmtoff)
7343 return 0;
7345 return 0;
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_member_struct_tm_tm_gmtoff=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_cv_member_struct_tm_tm_gmtoff=no
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7379 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7380 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7382 cat >>confdefs.h <<_ACEOF
7383 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7384 _ACEOF
7390 # Look for some functions
7405 for ac_func in getpagesize kqueue statfs statvfs \
7406 clone kse_create rfork_thread thr_create sa_register \
7407 getcontext makecontext setcontext sigaltstack swapcontext
7409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415 cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h. */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7423 #define $ac_func innocuous_$ac_func
7425 /* System header to define __stub macros and hopefully few prototypes,
7426 which can conflict with char $ac_func (); below.
7427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7428 <limits.h> exists even on freestanding compilers. */
7430 #ifdef __STDC__
7431 # include <limits.h>
7432 #else
7433 # include <assert.h>
7434 #endif
7436 #undef $ac_func
7438 /* Override any GCC internal prototype to avoid an error.
7439 Use char because int might match the return type of a GCC
7440 builtin and then its argument prototype would still apply. */
7441 #ifdef __cplusplus
7442 extern "C"
7443 #endif
7444 char $ac_func ();
7445 /* The GNU C library defines this for functions which it implements
7446 to always fail with ENOSYS. Some functions are actually named
7447 something starting with __ and the normal name is an alias. */
7448 #if defined __stub_$ac_func || defined __stub___$ac_func
7449 choke me
7450 #endif
7453 main ()
7455 return $ac_func ();
7457 return 0;
7459 _ACEOF
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7462 case "(($ac_try" in
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_link") 2>conftest.er1
7468 ac_status=$?
7469 grep -v '^ *+' conftest.er1 >conftest.err
7470 rm -f conftest.er1
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest$ac_exeext &&
7477 $as_test_x conftest$ac_exeext; then
7478 eval "$as_ac_var=yes"
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 eval "$as_ac_var=no"
7486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7487 conftest$ac_exeext conftest.$ac_ext
7489 ac_res=`eval echo '${'$as_ac_var'}'`
7490 { echo "$as_me:$LINENO: result: $ac_res" >&5
7491 echo "${ECHO_T}$ac_res" >&6; }
7492 if test `eval echo '${'$as_ac_var'}'` = yes; then
7493 cat >>confdefs.h <<_ACEOF
7494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7495 _ACEOF
7498 done
7503 for ac_header in stdlib.h unistd.h
7505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 ac_res=`eval echo '${'$as_ac_Header'}'`
7513 { echo "$as_me:$LINENO: result: $ac_res" >&5
7514 echo "${ECHO_T}$ac_res" >&6; }
7515 else
7516 # Is the header compilable?
7517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 $ac_includes_default
7526 #include <$ac_header>
7527 _ACEOF
7528 rm -f conftest.$ac_objext
7529 if { (ac_try="$ac_compile"
7530 case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533 esac
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7536 ac_status=$?
7537 grep -v '^ *+' conftest.er1 >conftest.err
7538 rm -f conftest.er1
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.$ac_objext; then
7545 ac_header_compiler=yes
7546 else
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 ac_header_compiler=no
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7555 echo "${ECHO_T}$ac_header_compiler" >&6; }
7557 # Is the header present?
7558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #include <$ac_header>
7567 _ACEOF
7568 if { (ac_try="$ac_cpp conftest.$ac_ext"
7569 case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572 esac
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } >/dev/null && {
7581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 }; then
7584 ac_header_preproc=yes
7585 else
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 ac_header_preproc=no
7592 rm -f conftest.err conftest.$ac_ext
7593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7594 echo "${ECHO_T}$ac_header_preproc" >&6; }
7596 # So? What about this header?
7597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7598 yes:no: )
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7603 ac_header_preproc=yes
7605 no:yes:* )
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7620 esac
7621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626 eval "$as_ac_Header=\$ac_header_preproc"
7628 ac_res=`eval echo '${'$as_ac_Header'}'`
7629 { echo "$as_me:$LINENO: result: $ac_res" >&5
7630 echo "${ECHO_T}$ac_res" >&6; }
7633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7634 cat >>confdefs.h <<_ACEOF
7635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7636 _ACEOF
7640 done
7643 for ac_func in getpagesize
7645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7659 #define $ac_func innocuous_$ac_func
7661 /* System header to define __stub macros and hopefully few prototypes,
7662 which can conflict with char $ac_func (); below.
7663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7664 <limits.h> exists even on freestanding compilers. */
7666 #ifdef __STDC__
7667 # include <limits.h>
7668 #else
7669 # include <assert.h>
7670 #endif
7672 #undef $ac_func
7674 /* Override any GCC internal prototype to avoid an error.
7675 Use char because int might match the return type of a GCC
7676 builtin and then its argument prototype would still apply. */
7677 #ifdef __cplusplus
7678 extern "C"
7679 #endif
7680 char $ac_func ();
7681 /* The GNU C library defines this for functions which it implements
7682 to always fail with ENOSYS. Some functions are actually named
7683 something starting with __ and the normal name is an alias. */
7684 #if defined __stub_$ac_func || defined __stub___$ac_func
7685 choke me
7686 #endif
7689 main ()
7691 return $ac_func ();
7693 return 0;
7695 _ACEOF
7696 rm -f conftest.$ac_objext conftest$ac_exeext
7697 if { (ac_try="$ac_link"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_link") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest$ac_exeext &&
7713 $as_test_x conftest$ac_exeext; then
7714 eval "$as_ac_var=yes"
7715 else
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 eval "$as_ac_var=no"
7722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7723 conftest$ac_exeext conftest.$ac_ext
7725 ac_res=`eval echo '${'$as_ac_var'}'`
7726 { echo "$as_me:$LINENO: result: $ac_res" >&5
7727 echo "${ECHO_T}$ac_res" >&6; }
7728 if test `eval echo '${'$as_ac_var'}'` = yes; then
7729 cat >>confdefs.h <<_ACEOF
7730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7731 _ACEOF
7734 done
7736 { echo "$as_me:$LINENO: checking for working mmap" >&5
7737 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7738 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741 if test "$cross_compiling" = yes; then
7742 ac_cv_func_mmap_fixed_mapped=no
7743 else
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 $ac_includes_default
7751 /* malloc might have been renamed as rpl_malloc. */
7752 #undef malloc
7754 /* Thanks to Mike Haertel and Jim Avera for this test.
7755 Here is a matrix of mmap possibilities:
7756 mmap private not fixed
7757 mmap private fixed at somewhere currently unmapped
7758 mmap private fixed at somewhere already mapped
7759 mmap shared not fixed
7760 mmap shared fixed at somewhere currently unmapped
7761 mmap shared fixed at somewhere already mapped
7762 For private mappings, we should verify that changes cannot be read()
7763 back from the file, nor mmap's back from the file at a different
7764 address. (There have been systems where private was not correctly
7765 implemented like the infamous i386 svr4.0, and systems where the
7766 VM page cache was not coherent with the file system buffer cache
7767 like early versions of FreeBSD and possibly contemporary NetBSD.)
7768 For shared mappings, we should conversely verify that changes get
7769 propagated back to all the places they're supposed to be.
7771 Grep wants private fixed already mapped.
7772 The main things grep needs to know about mmap are:
7773 * does it exist and is it safe to write into the mmap'd area
7774 * how to use it (BSD variants) */
7776 #include <fcntl.h>
7777 #include <sys/mman.h>
7779 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7780 char *malloc ();
7781 #endif
7783 /* This mess was copied from the GNU getpagesize.h. */
7784 #ifndef HAVE_GETPAGESIZE
7785 /* Assume that all systems that can run configure have sys/param.h. */
7786 # ifndef HAVE_SYS_PARAM_H
7787 # define HAVE_SYS_PARAM_H 1
7788 # endif
7790 # ifdef _SC_PAGESIZE
7791 # define getpagesize() sysconf(_SC_PAGESIZE)
7792 # else /* no _SC_PAGESIZE */
7793 # ifdef HAVE_SYS_PARAM_H
7794 # include <sys/param.h>
7795 # ifdef EXEC_PAGESIZE
7796 # define getpagesize() EXEC_PAGESIZE
7797 # else /* no EXEC_PAGESIZE */
7798 # ifdef NBPG
7799 # define getpagesize() NBPG * CLSIZE
7800 # ifndef CLSIZE
7801 # define CLSIZE 1
7802 # endif /* no CLSIZE */
7803 # else /* no NBPG */
7804 # ifdef NBPC
7805 # define getpagesize() NBPC
7806 # else /* no NBPC */
7807 # ifdef PAGESIZE
7808 # define getpagesize() PAGESIZE
7809 # endif /* PAGESIZE */
7810 # endif /* no NBPC */
7811 # endif /* no NBPG */
7812 # endif /* no EXEC_PAGESIZE */
7813 # else /* no HAVE_SYS_PARAM_H */
7814 # define getpagesize() 8192 /* punt totally */
7815 # endif /* no HAVE_SYS_PARAM_H */
7816 # endif /* no _SC_PAGESIZE */
7818 #endif /* no HAVE_GETPAGESIZE */
7821 main ()
7823 char *data, *data2, *data3;
7824 int i, pagesize;
7825 int fd;
7827 pagesize = getpagesize ();
7829 /* First, make a file with some known garbage in it. */
7830 data = (char *) malloc (pagesize);
7831 if (!data)
7832 return 1;
7833 for (i = 0; i < pagesize; ++i)
7834 *(data + i) = rand ();
7835 umask (0);
7836 fd = creat ("conftest.mmap", 0600);
7837 if (fd < 0)
7838 return 1;
7839 if (write (fd, data, pagesize) != pagesize)
7840 return 1;
7841 close (fd);
7843 /* Next, try to mmap the file at a fixed address which already has
7844 something else allocated at it. If we can, also make sure that
7845 we see the same garbage. */
7846 fd = open ("conftest.mmap", O_RDWR);
7847 if (fd < 0)
7848 return 1;
7849 data2 = (char *) malloc (2 * pagesize);
7850 if (!data2)
7851 return 1;
7852 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7853 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7854 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7855 return 1;
7856 for (i = 0; i < pagesize; ++i)
7857 if (*(data + i) != *(data2 + i))
7858 return 1;
7860 /* Finally, make sure that changes to the mapped area do not
7861 percolate back to the file as seen by read(). (This is a bug on
7862 some variants of i386 svr4.0.) */
7863 for (i = 0; i < pagesize; ++i)
7864 *(data2 + i) = *(data2 + i) + 1;
7865 data3 = (char *) malloc (pagesize);
7866 if (!data3)
7867 return 1;
7868 if (read (fd, data3, pagesize) != pagesize)
7869 return 1;
7870 for (i = 0; i < pagesize; ++i)
7871 if (*(data + i) != *(data3 + i))
7872 return 1;
7873 close (fd);
7874 return 0;
7876 _ACEOF
7877 rm -f conftest$ac_exeext
7878 if { (ac_try="$ac_link"
7879 case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882 esac
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_link") 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7888 { (case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891 esac
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_try") 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_cv_func_mmap_fixed_mapped=yes
7898 else
7899 echo "$as_me: program exited with status $ac_status" >&5
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 ( exit $ac_status )
7904 ac_cv_func_mmap_fixed_mapped=no
7906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7911 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7912 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7913 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_MMAP 1
7917 _ACEOF
7920 rm -f conftest.mmap
7925 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7926 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7927 aros_config_ldflags=""
7929 aros_shared_default=yes
7931 aros_shared_cflags="-fPIC"
7932 aros_shared_aflags=""
7933 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7934 aros_kernel_ldflags="-Wl,-rpath,./lib"
7936 aros_target_ar_flags="cr"
7937 aros_target_nm_flags="-C -ul"
7938 aros_target_strip_flags="--strip-unneeded -R.comment"
7940 aros_compiler_libs=
7941 aros_arch_libs=
7943 aros_target_genmap="-Wl,-Map -Xlinker"
7945 # Native flavour stuff
7946 aros_serial_debug="0"
7948 # Palm native flavour stuff
7949 aros_palm_debug_hack="0"
7951 # Unix flavour stuff
7952 aros_nesting_supervisor="0"
7954 # Collect-aros stuff: "-ius" to ignore undefined symbols
7955 ignore_undefined_symbols=""
7957 #-----------------------------------------------------------------------------
7960 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7961 # it switched on by default, and we use the host compiler, so it compiles AROS
7962 # code with this enabled resulting in link failures as we don't have support
7963 # for it.
7965 # We use two methods to disable it. For the host compiler (used to compile
7966 # some hosted modules), we test to see if the compiler supports stack
7967 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7968 # work on all platforms.
7970 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7971 # (this is done unconditionally, as it should have no effect on compilers
7972 # without the stack protection feature). This may be specific to the way that
7973 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7974 # strong enough to disable it in a generic way though, so we'll live with it
7975 # until another vendor ships GCC with it enabled in a different way, and deal
7976 # with it then.
7979 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7980 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7981 save_cflags="$CFLAGS"
7982 CFLAGS="$CFLAGS -fno-stack-protector"
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7991 main ()
7995 return 0;
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8000 case "(($ac_try" in
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8003 esac
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_compile") 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest.$ac_objext; then
8015 use_no_stack_protector="yes"
8016 else
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 use_no_stack_protector="no"
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8025 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8026 if test "x-$use_no_stack_protector" = "x-yes" ; then
8027 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8029 CFLAGS="$save_cflags"
8031 #-----------------------------------------------------------------------------
8033 # Disable pointer-signedness warnings if the compiler recognises the option
8034 # (this only works for the host compiler at the moment)
8036 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8037 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8038 save_cflags="$CFLAGS"
8039 CFLAGS="$CFLAGS -Wno-pointer-sign"
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8048 main ()
8052 return 0;
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (ac_try="$ac_compile"
8057 case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_compile") 2>conftest.er1
8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } && {
8069 test -z "$ac_c_werror_flag" ||
8070 test ! -s conftest.err
8071 } && test -s conftest.$ac_objext; then
8072 use_no_sign_warning="yes"
8073 else
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 use_no_sign_warning="no"
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8082 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8083 if test "x-$use_no_sign_warning" = "x-yes" ; then
8084 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8086 CFLAGS="$save_cflags"
8088 #-----------------------------------------------------------------------------
8090 { echo "$as_me:$LINENO: checking for type of build" >&5
8091 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8092 # Check whether --enable-build_type was given.
8093 if test "${enable_build_type+set}" = set; then
8094 enableval=$enable_build_type; build_type=$enableval
8095 else
8096 build_type="personal"
8100 if test "$build_type" = "nightly"; then
8101 build_type_string="NIGHTLY"
8102 elif test "$build_type" = "snapshot"; then
8103 build_type_string="SNAPSHOT"
8104 elif test "$build_type" = "milestone"; then
8105 build_type_string="MILESTONE"
8106 elif test "$build_type" = "release"; then
8107 build_type_string="RELEASE"
8108 else
8109 build_type_string="PERSONAL"
8110 build_type="personal"
8113 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8115 { echo "$as_me:$LINENO: result: $build_type" >&5
8116 echo "${ECHO_T}$build_type" >&6; }
8118 #-----------------------------------------------------------------------------
8119 all_debug_types="messages stack modules mungwall symbols"
8121 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8122 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8123 # Check whether --enable-debug was given.
8124 if test "${enable_debug+set}" = set; then
8125 enableval=$enable_debug; debug="$enableval"
8126 else
8127 debug=""
8131 if test "$debug" = "" -o "$debug" = "no"; then
8132 debug="none"
8133 elif test "$debug" = "yes"; then
8134 debug="all"
8137 if test "$debug" = "all" ; then
8138 debug="messages stack modules symbols"
8139 for d in $all_debug_types; do
8140 export aros_${d}_debug="1"
8141 done
8142 else
8143 for d in $all_debug_types; do
8144 export aros_${d}_debug="0"
8145 done
8148 if test "$debug" != "none"; then
8149 debug=`echo $debug | sed s/,/\ /g`
8150 for d in $debug; do
8151 found="0"
8152 for d2 in $all_debug_types; do
8153 if test "$d2" = "$d"; then
8154 found="1"
8155 break
8157 done
8158 if test "$found" = "0"; then
8159 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8160 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8161 { (exit 1); exit 1; }; }
8163 export aros_${d}_debug="1"
8164 done
8165 aros_debug="yes"
8167 { echo "$as_me:$LINENO: result: $debug" >&5
8168 echo "${ECHO_T}$debug" >&6; }
8170 if test "$aros_messages_debug" = "1"; then
8171 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8172 else
8173 aros_messages_debug=""
8175 if test "$aros_symbols_debug" = "1"; then
8176 aros_symbols_debug="-g"
8177 else
8178 aros_symbols_debug=""
8181 # These are the flags to pass when compiling debugged programs
8182 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8183 aros_debug_aflags=""
8184 aros_debug_ldflags="$aros_symbols_debug"
8186 aros_crosstools="no"
8188 #-----------------------------------------------------------------------------
8189 # Checking if we should build crosstools..
8190 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8191 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8192 # Check whether --enable-crosstools was given.
8193 if test "${enable_crosstools+set}" = set; then
8194 enableval=$enable_crosstools; crosstools="$enableval"
8195 else
8196 crosstools="no"
8199 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8200 { echo "$as_me:$LINENO: result: yes" >&5
8201 echo "${ECHO_T}yes" >&6; }
8202 aros_crosstools="yes"
8203 else
8204 { echo "$as_me:$LINENO: result: no" >&5
8205 echo "${ECHO_T}no" >&6; }
8208 #-----------------------------------------------------------------------------
8209 # Checking for distcc and ccache.
8211 # Always apply the transforms in this particular order. Basically you should
8212 # always run 'ccache distcc compiler' in that order for the best performance.
8214 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8215 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8216 # Check whether --enable-distcc was given.
8217 if test "${enable_distcc+set}" = set; then
8218 enableval=$enable_distcc; distcc="$enableval"
8219 else
8220 distcc="no"
8223 if test "$distcc" != "" -a "$distcc" != "no"; then
8224 # AC_CHECK_PROG will print out the result in this case
8225 # Extract the first word of "distcc", so it can be a program name with args.
8226 set dummy distcc; ac_word=$2
8227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8229 if test "${ac_cv_path_DISTCC+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 case $DISTCC in
8233 [\\/]* | ?:[\\/]*)
8234 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8244 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8248 done
8249 done
8250 IFS=$as_save_IFS
8252 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8254 esac
8256 DISTCC=$ac_cv_path_DISTCC
8257 if test -n "$DISTCC"; then
8258 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8259 echo "${ECHO_T}$DISTCC" >&6; }
8260 else
8261 { echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6; }
8266 else
8267 { echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6; }
8271 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8272 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8273 # Check whether --enable-ccache was given.
8274 if test "${enable_ccache+set}" = set; then
8275 enableval=$enable_ccache; ccache="$enableval"
8276 else
8277 ccache="no"
8280 if test "$ccache" != "" -a "$ccache" != "no"; then
8281 # AC_CHECK_PROG will print out the result in this case
8282 # Extract the first word of "ccache", so it can be a program name with args.
8283 set dummy ccache; ac_word=$2
8284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8286 if test "${ac_cv_prog_CCACHE+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289 if test -n "$CCACHE"; then
8290 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_CCACHE="ccache"
8300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8303 done
8304 done
8305 IFS=$as_save_IFS
8309 CCACHE=$ac_cv_prog_CCACHE
8310 if test -n "$CCACHE"; then
8311 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8312 echo "${ECHO_T}$CCACHE" >&6; }
8313 else
8314 { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8319 else
8320 { echo "$as_me:$LINENO: result: no" >&5
8321 echo "${ECHO_T}no" >&6; }
8324 #-----------------------------------------------------------------------------
8325 { echo "$as_me:$LINENO: checking what specific gcc version to use" >&5
8326 echo $ECHO_N "checking what specific gcc version to use... $ECHO_C" >&6; }
8328 # Check whether --with-gcc-version was given.
8329 if test "${with_gcc_version+set}" = set; then
8330 withval=$with_gcc_version; target_tool_version="$withval"
8331 else
8332 target_tool_version="default"
8335 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8336 echo "${ECHO_T}$target_tool_version" >&6; }
8338 #-----------------------------------------------------------------------------
8339 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8340 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8342 # Check whether --with-optimization was given.
8343 if test "${with_optimization+set}" = set; then
8344 withval=$with_optimization; optimization="$withval"
8345 else
8346 optimization="unknown"
8349 if test "$optimization" = "unknown"; then
8350 if test "$debug" != "none"; then
8351 optimization="-O0"
8352 else
8353 optimization="-O2"
8356 aros_config_cflags="$aros_config_cflags $optimization"
8357 { echo "$as_me:$LINENO: result: $optimization" >&5
8358 echo "${ECHO_T}$optimization" >&6; }
8360 #-----------------------------------------------------------------------------
8361 if test "$target_os" = "ios"; then
8363 { echo "$as_me:$LINENO: checking XCode path" >&5
8364 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8366 # Check whether --with-xcode-path was given.
8367 if test "${with_xcode_path+set}" = set; then
8368 withval=$with_xcode_path; aros_xcode_path="$withval"
8369 else
8370 aros_xcode_path="/Developer"
8373 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8374 echo "${ECHO_T}$aros_xcode_path" >&6; }
8376 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8377 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8379 # Check whether --with-ios-version was given.
8380 if test "${with_ios_version+set}" = set; then
8381 withval=$with_ios_version; aros_ios_version="$withval"
8382 else
8383 aros_ios_version="2.0"
8386 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8387 echo "${ECHO_T}$aros_ios_version" >&6; }
8389 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8390 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8392 # Check whether --with-ios-sdk was given.
8393 if test "${with_ios_sdk+set}" = set; then
8394 withval=$with_ios_sdk; aros_ios_sdk="$withval"
8395 else
8396 aros_ios_sdk="4.1"
8399 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8400 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8404 #-----------------------------------------------------------------------------
8405 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8406 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8407 # Check whether --enable-target_variant was given.
8408 if test "${enable_target_variant+set}" = set; then
8409 enableval=$enable_target_variant; target_variant=$enableval
8410 else
8411 target_variant="none"
8414 if test "$target_variant" = "none"; then
8415 aros_target_variant=""
8416 aros_target_suffix=""
8417 else
8418 aros_target_variant="$target_variant"
8419 aros_target_suffix="-$target_variant"
8421 { echo "$as_me:$LINENO: result: $enableval" >&5
8422 echo "${ECHO_T}$enableval" >&6; }
8424 target_bootloader="none"
8426 #-----------------------------------------------------------------------------
8427 # This is the target configuration switch.
8428 case "$target_os" in
8429 linux*)
8430 aros_target_arch="linux"
8431 case "$target_cpu" in
8432 *m68k*)
8433 aros_target_cpu="m68k"
8434 aros_object_format="m68kelf"
8435 aros_flavour="emulcompat"
8436 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8437 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8438 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8439 gcc_target_cpu="mc68000"
8441 *i?86*)
8442 aros_target_cpu="i386"
8443 aros_object_format="elf_i386"
8444 aros_flavour="emulation"
8445 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8446 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8447 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8448 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8449 aros_config_ldflags="-m32 -march=i486"
8450 aros_kernel_ldflags="-melf_i386"
8451 aros_default_wbdepth=8
8452 gcc_target_cpu="i386"
8454 *x86_64*)
8455 aros_target_cpu="x86_64"
8456 aros_object_format="elf_x86_64"
8457 aros_flavour="emulation"
8458 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8459 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8460 aros_default_wbdepth=8
8461 gcc_target_cpu="x86_64"
8463 *powerpc*)
8464 aros_target_cpu="ppc"
8465 aros_object_format="elf32ppc"
8466 aros_flavour="emulation"
8467 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8468 aros_default_wbdepth=8
8469 gcc_target_cpu="ppc"
8471 # TODO
8472 # Same as powerpc, but I need this for the nightly build to work again.
8473 # Actually, the nightly should be made working with powerpc target.
8474 # That just was too much work for the moment, another week or two.
8475 *ppc*)
8476 aros_target_cpu="ppc"
8477 aros_object_format="elf32ppc"
8478 aros_flavour="emulation"
8479 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8480 aros_default_wbdepth=8
8481 gcc_target_cpu="ppc"
8483 *arm*)
8484 aros_target_cpu="arm"
8485 aros_object_format="armelf_linux_eabi"
8486 aros_flavour="emulation"
8487 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8488 gcc_target_cpu="arm"
8489 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8490 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8493 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8494 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8495 { (exit 1); exit 1; }; }
8497 esac
8501 aros_target_arch="pc"
8502 aros_shared_default="no"
8503 target_bootloader="grub2"
8504 case "$target_cpu" in
8505 *i?86*)
8506 aros_target_cpu="i386"
8509 if test "$aros_object_format" = "" ; then
8510 aros_object_format="elf_i386"
8512 aros_flavour="standalone"
8513 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8514 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8515 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8516 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8517 aros_config_ldflags="-m32 -march=i486"
8518 aros_kernel_ldflags="-melf_i386"
8519 aros_default_wbwidth=640
8520 aros_default_wbheight=480
8521 gcc_target_cpu="i386"
8523 *x86_64*)
8524 aros_target_cpu="x86_64"
8525 aros_serial_debug=1
8526 if test "$aros_object_format" = "" ; then
8527 aros_object_format="elf_x86_64"
8529 aros_flavour="standalone"
8530 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8531 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8532 aros_kernel_ldflags=""
8533 aros_default_wbwidth=640
8534 aros_default_wbheight=480
8535 gcc_target_cpu="x86_64"
8538 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8539 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8540 { (exit 1); exit 1; }; }
8542 esac
8545 prep)
8546 aros_target_arch="prep"
8547 aros_shared_default="no"
8548 aros_target_cpu="ppc"
8549 aros_object_format="elf32ppc"
8550 aros_flavour="ppcnative"
8551 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8552 aros_kernel_ldflags=""
8553 aros_default_wbwidth=640
8554 aros_default_wbheight=480
8555 gcc_target_cpu="ppc"
8558 freebsd*)
8559 aros_target_arch="freebsd"
8560 aros_target_cpu="i386"
8561 aros_flavour="emulation"
8562 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8563 gcc_target_cpu="i386"
8565 aros_target_strip_flags="-x"
8568 darwin*)
8569 aros_target_arch="darwin"
8570 aros_flavour="emulation"
8571 case "$target_cpu" in
8572 *i?86*)
8573 aros_target_cpu="i386"
8574 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8575 aros_kernel_cflags="$aros_kernel_cflags -m32"
8576 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8577 aros_default_wbdepth=8
8578 gcc_target_cpu="i386"
8579 aros_object_format="elf_i386"
8580 aros_target_strip_flags="-x"
8581 aros_target_cc="i386-aros-gcc"
8582 aros_target_cxx="i386-aros-g++"
8583 aros_target_ld="i386-aros-ld"
8584 aros_target_as="i386-aros-as"
8585 aros_target_ar="i386-aros-ar"
8586 aros_target_ranlib="i386-aros-ranlib"
8587 aros_target_nm="i386-aros-nm"
8588 aros_target_strip="i386-aros-strip"
8589 aros_target_objcopy="i386-aros-objcopy"
8590 aros_target_objdump="i386-aros-objdump"
8591 target_tool_prefix="i686-apple-darwin10-"
8593 *x86_64*)
8594 aros_target_cpu="x86_64"
8595 aros_object_format="elf_x86_64"
8596 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8597 aros_kernel_cflags="$aros_kernel_cflags -m64"
8598 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
8599 aros_default_wbdepth=8
8600 gcc_target_cpu="x86_64"
8601 aros_target_cc="x86_64-aros-gcc"
8602 aros_target_cxx="x86_64-aros-g++"
8603 aros_target_ld="x86_64-aros-ld"
8604 aros_target_as="x86_64-aros-as"
8605 aros_target_ar="x86_64-aros-ar"
8606 aros_target_ranlib="x86_64-aros-ranlib"
8607 aros_target_nm="x86_64-aros-nm"
8608 aros_target_strip="x86_64-aros-strip"
8609 aros_target_objcopy="x86_64-aros-objcopy"
8610 aros_target_objdump="x86_64-aros-objdump"
8611 target_tool_prefix="i686-apple-darwin10-"
8613 *ppc*)
8614 aros_target_cpu="ppc"
8615 aros_object_format="elf32_ppc"
8616 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8617 aros_default_wbdepth=8
8618 gcc_target_cpu="ppc"
8619 aros_target_cc="ppc-aros-gcc"
8620 aros_target_cxx="ppc-aros-g++"
8621 aros_target_ld="ppc-aros-ld"
8622 aros_target_as="ppc-aros-as"
8623 aros_target_ar="ppc-aros-ar"
8624 aros_target_ranlib="ppc-aros-ranlib"
8625 aros_target_nm="ppc-aros-nm"
8626 aros_target_strip="ppc-aros-strip"
8627 aros_target_objcopy="ppc-aros-objcopy"
8628 aros_target_objdump="ppc-aros-objdump"
8629 target_tool_prefix="powerpc-apple-darwin10-"
8632 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8633 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8634 { (exit 1); exit 1; }; }
8636 esac
8639 ios*)
8640 aros_target_arch="ios"
8641 aros_flavour="emulation"
8642 # This is here because it may depend on iOS or SDK version
8643 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8644 case "$target_cpu" in
8645 *i?86*)
8646 aros_ios_platform="iPhoneSimulator"
8647 aros_target_cpu="i386"
8648 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8649 aros_default_wbdepth=8
8650 gcc_target_cpu="i386"
8651 aros_object_format="elf_i386"
8652 aros_target_strip_flags="-x"
8653 aros_target_cc="i386-aros-gcc"
8654 aros_target_cxx="i386-aros-g++"
8655 aros_target_ld="i386-aros-ld"
8656 aros_target_as="i386-aros-as"
8657 aros_target_ar="i386-aros-ar"
8658 aros_target_ranlib="i386-aros-ranlib"
8659 aros_target_nm="i386-aros-nm"
8660 aros_target_strip="i386-aros-strip"
8661 aros_target_objcopy="i386-aros-objcopy"
8662 aros_target_objdump="i386-aros-objdump"
8663 target_tool_prefix="i686-apple-darwin10-"
8664 target_tool_flags="-m32"
8666 *arm*)
8667 aros_ios_platform="iPhoneOS"
8668 aros_target_cpu="arm"
8669 aros_object_format="armelf_linux_eabi"
8670 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8671 aros_default_wbdepth=8
8672 gcc_target_cpu="arm"
8673 aros_kernel_ld="ld -arch armv6"
8674 aros_target_cc="arm-elf-gcc"
8675 aros_target_ld="arm-elf-ld"
8676 aros_target_as="arm-elf-as"
8677 aros_target_ar="arm-elf-ar"
8678 aros_target_ranlib="arm-elf-ranlib"
8679 aros_target_nm="arm-elf-nm"
8680 aros_target_strip="arm-elf-strip"
8681 aros_target_objcopy="arm-elf-objcopy"
8682 aros_target_objdump="arm-elf-objdump"
8683 target_tool_prefix="arm-apple-darwin10-"
8684 aros_default_wbwidth=320
8685 aros_default_wbheight=480
8686 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8689 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&5
8690 echo "$as_me: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&2;}
8691 { (exit 1); exit 1; }; }
8693 esac
8694 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
8695 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
8698 dragonfly*)
8699 aros_target_arch="dragonfly"
8700 aros_flavour="emulation"
8701 case "$target_cpu" in
8702 *i?86*)
8703 aros_target_cpu="i386"
8704 aros_object_format="elf_i386"
8705 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8707 *x86_64*)
8708 aros_target_cpu="x86_64"
8709 aros_object_format="elf_x86_64"
8710 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8713 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8714 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8715 { (exit 1); exit 1; }; }
8717 esac
8720 netbsd*)
8721 aros_target_arch="netbsd"
8722 case "$target_cpu" in
8723 *m68k*)
8724 aros_target_cpu="m68k"
8725 aros_object_format="m68kelf"
8726 aros_flavour="emulcompat"
8727 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8728 gcc_target_cpu="mc68000"
8730 *i?86*)
8731 aros_target_cpu="i386"
8732 aros_object_format="elf_i386"
8733 aros_flavour="emulation"
8734 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8735 aros_default_wbdepth=8
8736 gcc_target_cpu="i386"
8739 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8740 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8741 { (exit 1); exit 1; }; }
8743 esac
8744 aros_target_genmap="-Wl,-M -Xlinker >"
8745 aros_flavour="emulation"
8746 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8749 openbsd*)
8750 aros_target_arch="openbsd"
8751 case "$target_cpu" in
8752 *i?86*)
8753 aros_target_cpu="i386"
8754 aros_object_format="elf_i386"
8755 aros_flavour="emulation"
8756 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8757 gcc_target_cpu="i386"
8760 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8761 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8762 { (exit 1); exit 1; }; }
8764 esac
8765 aros_target_genmap="-Wl,-M -Xlinker >"
8766 aros_target_nm_flags="-u"
8767 aros_flavour="emulation"
8770 solaris*)
8771 aros_target_arch="solaris"
8772 case "$target_cpu" in
8773 *i?86*)
8774 aros_target_cpu="i386"
8775 aros_object_format="elf_i386"
8776 aros_flavour="emulation"
8777 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8778 aros_default_wbdepth=8
8779 gcc_target_cpu="i386"
8781 *sparc*)
8782 aros_target_cpu="sparc"
8783 aros_object_format="elf_sparc"
8784 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8785 gcc_target_cpu="sparc"
8788 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8789 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8790 { (exit 1); exit 1; }; }
8792 esac
8793 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8794 aros_flavour="emulation"
8797 morphos*)
8798 aros_target_arch="morphos"
8799 aros_shared_default="no"
8800 aros_target_cpu="ppc"
8801 aros_object_format="elf_ppc"
8802 aros_flavour="nativecompat"
8803 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8804 gcc_target_cpu="ppc"
8807 sam440)
8808 aros_target_arch="sam440"
8809 aros_shared_default="no"
8810 aros_target_cpu="ppc"
8811 aros_object_format="elf32ppc"
8812 aros_flavour="ppcnative"
8813 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8814 aros_kernel_ldflags=""
8815 aros_default_wbwidth=1024
8816 aros_default_wbheight=768
8817 aros_default_wbdepth=24
8818 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8819 gcc_target_cpu="powerpc"
8822 efika)
8823 aros_target_arch="efika"
8824 aros_shared_default="no"
8825 aros_target_cpu="arm"
8826 aros_object_format="armelf_linux_eabi"
8827 aros_flavour="standalone"
8828 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8829 aros_kernel_ldflags=""
8830 aros_default_wbwidth=1024
8831 aros_default_wbheight=600
8832 aros_arch_libs="-laeabi"
8833 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8834 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8837 chrp)
8838 aros_target_arch="chrp"
8839 aros_shared_default="no"
8840 aros_target_cpu="ppc"
8841 aros_object_format="elf32ppc"
8842 aros_flavour="ppcnative"
8843 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8844 aros_kernel_ldflags=""
8845 aros_default_wbwidth=640
8846 aros_default_wbheight=480
8847 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8848 gcc_target_cpu="powerpc"
8849 case "$aros_target_variant" in
8850 efika)
8851 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8853 esac
8856 amiga*)
8857 aros_target_arch="amiga"
8858 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8859 aros_shared_default="no"
8861 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8863 case "$target_cpu" in
8864 *m68k*)
8865 aros_target_cpu="m68k"
8866 aros_object_format="m68kelf"
8867 aros_flavour="nativecompat"
8868 gcc_target_cpu="mc68000"
8870 *ppc*)
8871 aros_cpu="ppc"
8872 aros_flavour="native"
8873 gcc_target_cpu="ppc"
8876 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8877 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8878 { (exit 1); exit 1; }; }
8880 esac
8883 mingw*)
8884 aros_target_arch="mingw32"
8885 aros_shared_default="no"
8886 aros_flavour="emulation"
8887 aros_shared_cflags=""
8888 need_dlopen="no"
8889 rescomp="windres"
8890 case "$target_cpu" in
8891 *i?86*)
8892 aros_target_cpu="i386"
8893 aros_object_format="elf_i386"
8894 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8895 aros_default_wbdepth=8
8896 gcc_target_cpu="i386"
8897 aros_target_cc="i386-aros-gcc"
8898 aros_target_cxx="i386-aros-g++"
8899 aros_target_ld="i386-aros-ld"
8900 aros_target_as="i386-aros-as"
8901 aros_target_ar="i386-aros-ar"
8902 aros_target_ranlib="i386-aros-ranlib"
8903 aros_target_nm="i386-aros-nm"
8904 aros_target_strip="i386-aros-strip"
8905 aros_target_objcopy="i386-aros-objcopy"
8906 aros_target_objdump="i386-aros-objdump"
8907 target_tool_prefix="i386-mingw32-"
8909 *x86_64*)
8910 aros_target_cpu="x86_64"
8911 aros_object_format="elf_x86_64"
8912 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8913 aros_default_wbdepth=8
8914 gcc_target_cpu="x86_64"
8915 aros_target_cc="x86_64-aros-gcc"
8916 aros_target_cxx="x86_64-aros-g++"
8917 aros_target_ld="x86_64-aros-ld"
8918 aros_target_as="x86_64-aros-as"
8919 aros_target_ar="x86_64-aros-ar"
8920 aros_target_ranlib="x86_64-aros-ranlib"
8921 aros_target_nm="x86_64-aros-nm"
8922 aros_target_strip="x86_64-aros-strip"
8923 aros_target_objcopy="x86_64-aros-objcopy"
8924 aros_target_objdump="x86_64-aros-objdump"
8925 target_tool_prefix="x86_64-w64-mingw32-"
8927 *arm*)
8928 aros_target_cpu="arm"
8929 aros_object_format="armelf_linux_eabi"
8930 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8931 aros_default_wbdepth=8
8932 gcc_target_cpu="arm"
8933 aros_target_cc="arm-elf-gcc"
8934 aros_target_ld="arm-elf-ld"
8935 aros_target_as="arm-elf-as"
8936 aros_target_ar="arm-elf-ar"
8937 aros_target_ranlib="arm-elf-ranlib"
8938 aros_target_nm="arm-elf-nm"
8939 aros_target_strip="arm-elf-strip"
8940 aros_target_objcopy="arm-elf-objcopy"
8941 aros_target_objdump="arm-elf-objdump"
8942 target_tool_prefix="arm-mingw32ce-"
8943 aros_default_wbwidth=160
8944 aros_default_wbheight=160
8947 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8948 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8949 { (exit 1); exit 1; }; }
8951 esac
8952 if test $host_os = "cygwin"; then
8953 aros_kernel_cflags="-mno-cygwin"
8956 pp*)
8957 aros_target_arch="pp"
8958 aros_shared_default="no"
8959 case "$target_cpu" in
8960 *m68k*)
8961 aros_target_cpu="m68k"
8962 aros_object_format="m68kelf"
8963 aros_flavour="palmnative"
8964 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8965 aros_default_wbwidth=160
8966 aros_default_wbheight=160
8967 aros_default_wbdepth=1
8968 aros_target_ar_flags="cru"
8969 aros_compiler_libs="-lgcc1"
8970 aros_shared_default=no
8971 aros_shared_cflags="-fpic"
8972 aros_shared_aflags=""
8973 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8974 aros_kernel_ldflags="-Wl,-rpath,./lib"
8975 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8976 aros_debug_aflags=""
8977 aros_debug_ldflags="$aros_symbols_debug"
8978 aros_mungwall_debug="0"
8979 aros_modules_debug="0"
8980 gcc_target_cpu="mc68000"
8981 ignore_undefined_symbols="-ius"
8984 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8985 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8986 { (exit 1); exit 1; }; }
8988 esac
8991 mac*)
8992 aros_target_arch="mac"
8993 aros_shared_default="no"
8994 case "$target_cpu" in
8995 *m68k*)
8996 aros_target_cpu="m68k"
8997 aros_object_format="m68kelf"
8998 aros_flavour="mac68knative"
8999 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9000 aros_default_wbwidth=512
9001 aros_default_wbheight=384
9002 aros_default_wbdepth=8
9003 aros_target_ar_flags="cru"
9004 aros_compiler_libs="-lgcc1"
9005 aros_shared_default=no
9006 aros_shared_cflags="-fpic"
9007 aros_shared_aflags=""
9008 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9009 aros_kernel_ldflags="-Wl,-rpath,./lib"
9010 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9011 aros_debug_aflags=""
9012 aros_debug_ldflags="$aros_symbols_debug"
9013 aros_mungwall_debug="0"
9014 aros_modules_debug="0"
9015 gcc_target_cpu="mc68000"
9016 ignore_undefined_symbols="-ius"
9019 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9020 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9021 { (exit 1); exit 1; }; }
9023 esac
9027 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9028 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9029 { (exit 1); exit 1; }; }
9031 esac
9033 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9034 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
9036 # Check whether --with-portssources was given.
9037 if test "${with_portssources+set}" = set; then
9038 withval=$with_portssources; with_portssrcdir=$withval
9039 else
9040 with_portssrcdir="default"
9043 if test "$with_portssrcdir" = "default"; then
9044 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9045 else
9046 AROS_PORTSSRCDIR="$with_portssrcdir"
9048 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9049 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9051 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9052 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9054 # Check whether --with-bootloader was given.
9055 if test "${with_bootloader+set}" = set; then
9056 withval=$with_bootloader; target_bootloader=$withval
9057 else
9058 target_bootloader=$target_bootloader
9061 if test "$target_bootloader" = "none"; then
9062 aros_target_bootloader=""
9063 else
9064 aros_target_bootloader="$target_bootloader"
9066 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9067 echo "${ECHO_T}$target_bootloader" >&6; }
9069 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9070 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9072 # Check whether --with-iconset was given.
9073 if test "${with_iconset+set}" = set; then
9074 withval=$with_iconset; target_iconset=$withval
9075 else
9076 target_iconset="default"
9079 if test "$target_iconset" = "default"; then
9080 aros_target_iconset="Gorilla"
9081 target_iconset="default (Gorilla)"
9082 else
9083 aros_target_iconset="$target_iconset"
9085 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9086 echo "${ECHO_T}$target_iconset" >&6; }
9088 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9089 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9091 # Check whether --with-theme was given.
9092 if test "${with_theme+set}" = set; then
9093 withval=$with_theme; target_guitheme=$withval
9094 else
9095 target_guitheme="default"
9098 if test "$target_guitheme" = "default"; then
9099 aros_target_guitheme="Ice"
9100 else
9101 aros_target_guitheme="$target_guitheme"
9103 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9104 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9106 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9107 # for target code)
9108 cross_compiling=no
9109 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9110 cross_compiling=yes
9112 if test "$aros_host_cpu" == "x86_64" ; then
9113 if test "$aros_target_cpu" == "i386" ; then
9114 if test "$aros_target_arch" != "mingw32"; then
9115 cross_compiling=no
9120 # Set prefix for target compiler etc. if we're cross-compiling
9121 # (should possibly be earlier but needs to be after AC_PROG_CC)
9122 if test "$cross_compiling" = "yes" ; then
9123 if test "$target_tool_prefix" = ""; then
9124 target_tool_prefix=${target_cpu}-elf-
9126 CC=${target_tool_prefix}gcc
9127 if test "$target_tool_version" != "default"; then
9128 CC="$CC-$target_tool_version"
9130 # Extract the first word of "$CC", so it can be a program name with args.
9131 set dummy $CC; ac_word=$2
9132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9134 if test "${ac_cv_path_CC+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137 case $CC in
9138 [\\/]* | ?:[\\/]*)
9139 ac_cv_path_CC="$CC" # Let the user override the test with a path.
9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143 for as_dir in $PATH
9145 IFS=$as_save_IFS
9146 test -z "$as_dir" && as_dir=.
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9149 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
9150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9151 break 2
9153 done
9154 done
9155 IFS=$as_save_IFS
9158 esac
9160 CC=$ac_cv_path_CC
9161 if test -n "$CC"; then
9162 { echo "$as_me:$LINENO: result: $CC" >&5
9163 echo "${ECHO_T}$CC" >&6; }
9164 else
9165 { echo "$as_me:$LINENO: result: no" >&5
9166 echo "${ECHO_T}no" >&6; }
9170 if test "$CC" = ""; then
9171 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9172 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9173 { (exit 1); exit 1; }; }
9176 CC="$CC $target_tool_flags"
9178 #-----------------------------------------------------------------------------
9180 # Disable pointer-signedness warnings if the compiler recognises the option
9182 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9183 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9184 save_cflags="$CFLAGS"
9185 CFLAGS="$CFLAGS -Wno-pointer-sign"
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9194 main ()
9198 return 0;
9200 _ACEOF
9201 rm -f conftest.$ac_objext
9202 if { (ac_try="$ac_compile"
9203 case "(($ac_try" in
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9206 esac
9207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9208 (eval "$ac_compile") 2>conftest.er1
9209 ac_status=$?
9210 grep -v '^ *+' conftest.er1 >conftest.err
9211 rm -f conftest.er1
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } && {
9215 test -z "$ac_c_werror_flag" ||
9216 test ! -s conftest.err
9217 } && test -s conftest.$ac_objext; then
9218 use_no_sign_warning="yes"
9219 else
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 use_no_sign_warning="no"
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9228 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9229 if test "x-$use_no_sign_warning" = "x-yes" ; then
9230 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9232 CFLAGS="$save_cflags"
9234 #-----------------------------------------------------------------------------
9236 # Find all the tools we need to compile. This could be cross-compiling
9237 # though! If that is the case we use the GNU form of the target and
9238 # simply add this to the front of the binary name. This is rather simple,
9239 # but it should work under most circumstances.
9241 # The default tools are to use the same as the host, but only if the
9242 # host and target CPU are the same. With GCC this is normally enough.
9245 aros_cc_pre=""
9246 aros_shared_ld="$aros_host_ld"
9248 aros_target_mkdep="$aros_host_mkdep"
9249 aros_target_incl_def="$aros_host_incl"
9251 aros_kernel_cc="$CC"
9253 # The default tools executables to be linked to.
9254 if test "$aros_target_cc" != ""; then
9255 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9256 set dummy $aros_target_cc; ac_word=$2
9257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9259 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262 case $aros_target_cc in
9263 [\\/]* | ?:[\\/]*)
9264 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 for as_dir in $PATH
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9274 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9278 done
9279 done
9280 IFS=$as_save_IFS
9283 esac
9285 aros_target_cc=$ac_cv_path_aros_target_cc
9286 if test -n "$aros_target_cc"; then
9287 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9288 echo "${ECHO_T}$aros_target_cc" >&6; }
9289 else
9290 { echo "$as_me:$LINENO: result: no" >&5
9291 echo "${ECHO_T}no" >&6; }
9295 if test "$aros_target_cc" = ""; then
9296 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9297 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9298 { (exit 1); exit 1; }; }
9301 if test "$aros_target_ld" != ""; then
9302 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9303 set dummy $aros_target_ld; ac_word=$2
9304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9306 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309 case $aros_target_ld in
9310 [\\/]* | ?:[\\/]*)
9311 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 for as_dir in $PATH
9317 IFS=$as_save_IFS
9318 test -z "$as_dir" && as_dir=.
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9321 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9323 break 2
9325 done
9326 done
9327 IFS=$as_save_IFS
9330 esac
9332 aros_target_ld=$ac_cv_path_aros_target_ld
9333 if test -n "$aros_target_ld"; then
9334 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9335 echo "${ECHO_T}$aros_target_ld" >&6; }
9336 else
9337 { echo "$as_me:$LINENO: result: no" >&5
9338 echo "${ECHO_T}no" >&6; }
9342 if test "$aros_target_ld" = ""; then
9343 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9344 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9345 { (exit 1); exit 1; }; }
9349 if test "$crosstools" != "yes"; then
9351 if test "$aros_target_as" = ""; then
9352 if test "$cross_compiling" = "yes" ; then
9353 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9354 set dummy ${target_tool_prefix}as; ac_word=$2
9355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9357 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 case $aros_target_as_ln in
9361 [\\/]* | ?:[\\/]*)
9362 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in $PATH
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9372 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9376 done
9377 done
9378 IFS=$as_save_IFS
9381 esac
9383 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9384 if test -n "$aros_target_as_ln"; then
9385 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9386 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9387 else
9388 { echo "$as_me:$LINENO: result: no" >&5
9389 echo "${ECHO_T}no" >&6; }
9393 else
9394 if test "$GCC" = "yes"; then
9395 aros_gcc_as=`$CC -print-prog-name=as`
9396 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9397 set dummy `basename $aros_gcc_as`; ac_word=$2
9398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9400 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403 case $aros_target_as_ln in
9404 [\\/]* | ?:[\\/]*)
9405 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in `dirname $aros_gcc_as`
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9415 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9419 done
9420 done
9421 IFS=$as_save_IFS
9424 esac
9426 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9427 if test -n "$aros_target_as_ln"; then
9428 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9429 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9430 else
9431 { echo "$as_me:$LINENO: result: no" >&5
9432 echo "${ECHO_T}no" >&6; }
9437 if test "$aros_target_as_ln" = ""; then
9438 # Extract the first word of "as", so it can be a program name with args.
9439 set dummy as; ac_word=$2
9440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9442 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445 case $aros_target_as_ln in
9446 [\\/]* | ?:[\\/]*)
9447 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451 for as_dir in $PATH
9453 IFS=$as_save_IFS
9454 test -z "$as_dir" && as_dir=.
9455 for ac_exec_ext in '' $ac_executable_extensions; do
9456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9457 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9459 break 2
9461 done
9462 done
9463 IFS=$as_save_IFS
9466 esac
9468 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9469 if test -n "$aros_target_as_ln"; then
9470 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9471 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9472 else
9473 { echo "$as_me:$LINENO: result: no" >&5
9474 echo "${ECHO_T}no" >&6; }
9480 else
9481 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9482 set dummy $aros_target_as; ac_word=$2
9483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9485 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488 case $aros_target_as_ln in
9489 [\\/]* | ?:[\\/]*)
9490 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494 for as_dir in $PATH
9496 IFS=$as_save_IFS
9497 test -z "$as_dir" && as_dir=.
9498 for ac_exec_ext in '' $ac_executable_extensions; do
9499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9500 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 break 2
9504 done
9505 done
9506 IFS=$as_save_IFS
9509 esac
9511 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9512 if test -n "$aros_target_as_ln"; then
9513 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9514 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9515 else
9516 { echo "$as_me:$LINENO: result: no" >&5
9517 echo "${ECHO_T}no" >&6; }
9523 if test "$aros_target_as_ln" = ""; then
9524 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9525 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9526 { (exit 1); exit 1; }; }
9529 if test "$aros_kernel_ld" = ""; then
9530 if test "$cross_compiling" = "yes" ; then
9531 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9532 set dummy ${target_tool_prefix}ld; ac_word=$2
9533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9535 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538 case $aros_kernel_ld in
9539 [\\/]* | ?:[\\/]*)
9540 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9550 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 break 2
9554 done
9555 done
9556 IFS=$as_save_IFS
9559 esac
9561 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9562 if test -n "$aros_kernel_ld"; then
9563 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9564 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9565 else
9566 { echo "$as_me:$LINENO: result: no" >&5
9567 echo "${ECHO_T}no" >&6; }
9571 else
9572 if test "$GCC" = "yes"; then
9573 aros_gcc_ld=`$CC -print-prog-name=ld`
9574 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9575 set dummy `basename $aros_gcc_ld`; ac_word=$2
9576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9578 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 case $aros_kernel_ld in
9582 [\\/]* | ?:[\\/]*)
9583 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in `dirname $aros_gcc_ld`
9589 IFS=$as_save_IFS
9590 test -z "$as_dir" && as_dir=.
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9593 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 break 2
9597 done
9598 done
9599 IFS=$as_save_IFS
9602 esac
9604 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9605 if test -n "$aros_kernel_ld"; then
9606 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9607 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9608 else
9609 { echo "$as_me:$LINENO: result: no" >&5
9610 echo "${ECHO_T}no" >&6; }
9615 if test "$aros_kernel_ld" = ""; then
9616 # Extract the first word of "ld", so it can be a program name with args.
9617 set dummy ld; ac_word=$2
9618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9620 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623 case $aros_kernel_ld in
9624 [\\/]* | ?:[\\/]*)
9625 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 for as_dir in $PATH
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9635 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9639 done
9640 done
9641 IFS=$as_save_IFS
9644 esac
9646 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9647 if test -n "$aros_kernel_ld"; then
9648 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9649 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9650 else
9651 { echo "$as_me:$LINENO: result: no" >&5
9652 echo "${ECHO_T}no" >&6; }
9658 else
9659 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9660 set dummy $aros_kernel_ld; ac_word=$2
9661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9663 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 case $aros_kernel_ld in
9667 [\\/]* | ?:[\\/]*)
9668 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9678 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9682 done
9683 done
9684 IFS=$as_save_IFS
9687 esac
9689 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9690 if test -n "$aros_kernel_ld"; then
9691 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9692 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9693 else
9694 { echo "$as_me:$LINENO: result: no" >&5
9695 echo "${ECHO_T}no" >&6; }
9701 if test "$aros_kernel_ld" = ""; then
9702 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9703 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9704 { (exit 1); exit 1; }; }
9707 if test "$aros_target_ar" = ""; then
9708 if test "$cross_compiling" = "yes" ; then
9709 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9710 set dummy ${target_tool_prefix}ar; ac_word=$2
9711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9713 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716 case $aros_target_ar_ln in
9717 [\\/]* | ?:[\\/]*)
9718 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $PATH
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9728 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 break 2
9732 done
9733 done
9734 IFS=$as_save_IFS
9737 esac
9739 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9740 if test -n "$aros_target_ar_ln"; then
9741 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9742 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9743 else
9744 { echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6; }
9749 else
9750 if test "$GCC" = "yes"; then
9751 aros_gcc_ar=`$CC -print-prog-name=ar`
9752 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9753 set dummy `basename $aros_gcc_ar`; ac_word=$2
9754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9756 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759 case $aros_target_ar_ln in
9760 [\\/]* | ?:[\\/]*)
9761 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 for as_dir in `dirname $aros_gcc_ar`
9767 IFS=$as_save_IFS
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9771 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9773 break 2
9775 done
9776 done
9777 IFS=$as_save_IFS
9780 esac
9782 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9783 if test -n "$aros_target_ar_ln"; then
9784 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9785 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9786 else
9787 { echo "$as_me:$LINENO: result: no" >&5
9788 echo "${ECHO_T}no" >&6; }
9793 if test "$aros_target_ar_ln" = ""; then
9794 # Extract the first word of "ar", so it can be a program name with args.
9795 set dummy ar; ac_word=$2
9796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9798 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 else
9801 case $aros_target_ar_ln in
9802 [\\/]* | ?:[\\/]*)
9803 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 for as_dir in $PATH
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9813 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9817 done
9818 done
9819 IFS=$as_save_IFS
9822 esac
9824 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9825 if test -n "$aros_target_ar_ln"; then
9826 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9827 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9828 else
9829 { echo "$as_me:$LINENO: result: no" >&5
9830 echo "${ECHO_T}no" >&6; }
9836 else
9837 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9838 set dummy $aros_target_ar; ac_word=$2
9839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9841 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844 case $aros_target_ar_ln in
9845 [\\/]* | ?:[\\/]*)
9846 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 for as_dir in $PATH
9852 IFS=$as_save_IFS
9853 test -z "$as_dir" && as_dir=.
9854 for ac_exec_ext in '' $ac_executable_extensions; do
9855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9856 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9858 break 2
9860 done
9861 done
9862 IFS=$as_save_IFS
9865 esac
9867 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9868 if test -n "$aros_target_ar_ln"; then
9869 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9870 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9871 else
9872 { echo "$as_me:$LINENO: result: no" >&5
9873 echo "${ECHO_T}no" >&6; }
9879 if test "$aros_target_ar_ln" = ""; then
9880 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9881 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9882 { (exit 1); exit 1; }; }
9885 if test "$aros_target_nm" = ""; then
9886 if test "$cross_compiling" = "yes" ; then
9887 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9888 set dummy ${target_tool_prefix}nm; ac_word=$2
9889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9891 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894 case $aros_target_nm_ln in
9895 [\\/]* | ?:[\\/]*)
9896 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 for as_dir in $PATH
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9906 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 break 2
9910 done
9911 done
9912 IFS=$as_save_IFS
9915 esac
9917 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9918 if test -n "$aros_target_nm_ln"; then
9919 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9920 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9921 else
9922 { echo "$as_me:$LINENO: result: no" >&5
9923 echo "${ECHO_T}no" >&6; }
9927 else
9928 if test "$GCC" = "yes"; then
9929 aros_gcc_nm=`$CC -print-prog-name=nm`
9930 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9931 set dummy `basename $aros_gcc_nm`; ac_word=$2
9932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9934 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937 case $aros_target_nm_ln in
9938 [\\/]* | ?:[\\/]*)
9939 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in `dirname $aros_gcc_nm`
9945 IFS=$as_save_IFS
9946 test -z "$as_dir" && as_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9949 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 break 2
9953 done
9954 done
9955 IFS=$as_save_IFS
9958 esac
9960 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9961 if test -n "$aros_target_nm_ln"; then
9962 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9963 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9964 else
9965 { echo "$as_me:$LINENO: result: no" >&5
9966 echo "${ECHO_T}no" >&6; }
9971 if test "$aros_target_nm_ln" = ""; then
9972 # Extract the first word of "nm", so it can be a program name with args.
9973 set dummy nm; ac_word=$2
9974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9976 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 case $aros_target_nm_ln in
9980 [\\/]* | ?:[\\/]*)
9981 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9995 done
9996 done
9997 IFS=$as_save_IFS
10000 esac
10002 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10003 if test -n "$aros_target_nm_ln"; then
10004 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10005 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10006 else
10007 { echo "$as_me:$LINENO: result: no" >&5
10008 echo "${ECHO_T}no" >&6; }
10014 else
10015 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10016 set dummy $aros_target_nm; ac_word=$2
10017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10019 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022 case $aros_target_nm_ln in
10023 [\\/]* | ?:[\\/]*)
10024 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10038 done
10039 done
10040 IFS=$as_save_IFS
10043 esac
10045 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10046 if test -n "$aros_target_nm_ln"; then
10047 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10048 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10049 else
10050 { echo "$as_me:$LINENO: result: no" >&5
10051 echo "${ECHO_T}no" >&6; }
10057 if test "$aros_target_nm_ln" = ""; then
10058 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10059 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10060 { (exit 1); exit 1; }; }
10063 if test "$aros_target_objcopy" = ""; then
10064 if test "$cross_compiling" = "yes" ; then
10065 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10066 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10069 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 case $aros_target_objcopy_ln in
10073 [\\/]* | ?:[\\/]*)
10074 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10084 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10088 done
10089 done
10090 IFS=$as_save_IFS
10093 esac
10095 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10096 if test -n "$aros_target_objcopy_ln"; then
10097 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10098 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10099 else
10100 { echo "$as_me:$LINENO: result: no" >&5
10101 echo "${ECHO_T}no" >&6; }
10105 else
10106 if test "$GCC" = "yes"; then
10107 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10108 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10109 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10112 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 case $aros_target_objcopy_ln in
10116 [\\/]* | ?:[\\/]*)
10117 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in `dirname $aros_gcc_objcopy`
10123 IFS=$as_save_IFS
10124 test -z "$as_dir" && as_dir=.
10125 for ac_exec_ext in '' $ac_executable_extensions; do
10126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10127 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10129 break 2
10131 done
10132 done
10133 IFS=$as_save_IFS
10136 esac
10138 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10139 if test -n "$aros_target_objcopy_ln"; then
10140 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10141 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10142 else
10143 { echo "$as_me:$LINENO: result: no" >&5
10144 echo "${ECHO_T}no" >&6; }
10149 if test "$aros_target_objcopy_ln" = ""; then
10150 # Extract the first word of "objcopy", so it can be a program name with args.
10151 set dummy objcopy; ac_word=$2
10152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10154 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 case $aros_target_objcopy_ln in
10158 [\\/]* | ?:[\\/]*)
10159 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163 for as_dir in $PATH
10165 IFS=$as_save_IFS
10166 test -z "$as_dir" && as_dir=.
10167 for ac_exec_ext in '' $ac_executable_extensions; do
10168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10169 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10171 break 2
10173 done
10174 done
10175 IFS=$as_save_IFS
10178 esac
10180 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10181 if test -n "$aros_target_objcopy_ln"; then
10182 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10183 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10184 else
10185 { echo "$as_me:$LINENO: result: no" >&5
10186 echo "${ECHO_T}no" >&6; }
10192 else
10193 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10194 set dummy $aros_target_objcopy; ac_word=$2
10195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10197 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200 case $aros_target_objcopy_ln in
10201 [\\/]* | ?:[\\/]*)
10202 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206 for as_dir in $PATH
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10212 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 break 2
10216 done
10217 done
10218 IFS=$as_save_IFS
10221 esac
10223 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10224 if test -n "$aros_target_objcopy_ln"; then
10225 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10226 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10227 else
10228 { echo "$as_me:$LINENO: result: no" >&5
10229 echo "${ECHO_T}no" >&6; }
10235 if test "$aros_target_objcopy_ln" = ""; then
10236 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10237 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10238 { (exit 1); exit 1; }; }
10241 if test "$aros_target_objdump" = ""; then
10242 if test "$cross_compiling" = "yes" ; then
10243 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10244 set dummy ${target_tool_prefix}objdump; ac_word=$2
10245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10247 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250 case $aros_target_objdump_ln in
10251 [\\/]* | ?:[\\/]*)
10252 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10258 IFS=$as_save_IFS
10259 test -z "$as_dir" && as_dir=.
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10262 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 break 2
10266 done
10267 done
10268 IFS=$as_save_IFS
10271 esac
10273 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10274 if test -n "$aros_target_objdump_ln"; then
10275 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10276 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10277 else
10278 { echo "$as_me:$LINENO: result: no" >&5
10279 echo "${ECHO_T}no" >&6; }
10283 else
10284 if test "$GCC" = "yes"; then
10285 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10286 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10287 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10290 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293 case $aros_target_objdump_ln in
10294 [\\/]* | ?:[\\/]*)
10295 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in `dirname $aros_gcc_objdump`
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10305 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 break 2
10309 done
10310 done
10311 IFS=$as_save_IFS
10314 esac
10316 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10317 if test -n "$aros_target_objdump_ln"; then
10318 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10319 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10320 else
10321 { echo "$as_me:$LINENO: result: no" >&5
10322 echo "${ECHO_T}no" >&6; }
10327 if test "$aros_target_objdump_ln" = ""; then
10328 # Extract the first word of "objdump", so it can be a program name with args.
10329 set dummy objdump; ac_word=$2
10330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10332 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335 case $aros_target_objdump_ln in
10336 [\\/]* | ?:[\\/]*)
10337 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 break 2
10351 done
10352 done
10353 IFS=$as_save_IFS
10356 esac
10358 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10359 if test -n "$aros_target_objdump_ln"; then
10360 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10361 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10362 else
10363 { echo "$as_me:$LINENO: result: no" >&5
10364 echo "${ECHO_T}no" >&6; }
10370 else
10371 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10372 set dummy $aros_target_objdump; ac_word=$2
10373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10375 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378 case $aros_target_objdump_ln in
10379 [\\/]* | ?:[\\/]*)
10380 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384 for as_dir in $PATH
10386 IFS=$as_save_IFS
10387 test -z "$as_dir" && as_dir=.
10388 for ac_exec_ext in '' $ac_executable_extensions; do
10389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10390 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 break 2
10394 done
10395 done
10396 IFS=$as_save_IFS
10399 esac
10401 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10402 if test -n "$aros_target_objdump_ln"; then
10403 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10404 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10405 else
10406 { echo "$as_me:$LINENO: result: no" >&5
10407 echo "${ECHO_T}no" >&6; }
10413 if test "$aros_target_objdump_ln" = ""; then
10414 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10415 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10416 { (exit 1); exit 1; }; }
10419 if test "$aros_target_ranlib" = ""; then
10420 if test "$cross_compiling" = "yes" ; then
10421 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10422 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10425 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428 case $aros_target_ranlib_ln in
10429 [\\/]* | ?:[\\/]*)
10430 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10436 IFS=$as_save_IFS
10437 test -z "$as_dir" && as_dir=.
10438 for ac_exec_ext in '' $ac_executable_extensions; do
10439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10440 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 break 2
10444 done
10445 done
10446 IFS=$as_save_IFS
10449 esac
10451 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10452 if test -n "$aros_target_ranlib_ln"; then
10453 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10454 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10455 else
10456 { echo "$as_me:$LINENO: result: no" >&5
10457 echo "${ECHO_T}no" >&6; }
10461 else
10462 if test "$GCC" = "yes"; then
10463 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10464 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10465 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10468 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471 case $aros_target_ranlib_ln in
10472 [\\/]* | ?:[\\/]*)
10473 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in `dirname $aros_gcc_ranlib`
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10483 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10487 done
10488 done
10489 IFS=$as_save_IFS
10492 esac
10494 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10495 if test -n "$aros_target_ranlib_ln"; then
10496 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10497 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10498 else
10499 { echo "$as_me:$LINENO: result: no" >&5
10500 echo "${ECHO_T}no" >&6; }
10505 if test "$aros_target_ranlib_ln" = ""; then
10506 # Extract the first word of "ranlib", so it can be a program name with args.
10507 set dummy ranlib; ac_word=$2
10508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10510 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513 case $aros_target_ranlib_ln in
10514 [\\/]* | ?:[\\/]*)
10515 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519 for as_dir in $PATH
10521 IFS=$as_save_IFS
10522 test -z "$as_dir" && as_dir=.
10523 for ac_exec_ext in '' $ac_executable_extensions; do
10524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10525 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10527 break 2
10529 done
10530 done
10531 IFS=$as_save_IFS
10534 esac
10536 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10537 if test -n "$aros_target_ranlib_ln"; then
10538 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10539 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10540 else
10541 { echo "$as_me:$LINENO: result: no" >&5
10542 echo "${ECHO_T}no" >&6; }
10548 else
10549 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10550 set dummy $aros_target_ranlib; ac_word=$2
10551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10553 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 case $aros_target_ranlib_ln in
10557 [\\/]* | ?:[\\/]*)
10558 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10568 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10570 break 2
10572 done
10573 done
10574 IFS=$as_save_IFS
10577 esac
10579 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10580 if test -n "$aros_target_ranlib_ln"; then
10581 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10582 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10583 else
10584 { echo "$as_me:$LINENO: result: no" >&5
10585 echo "${ECHO_T}no" >&6; }
10591 if test "$aros_target_ranlib_ln" = ""; then
10592 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10593 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10594 { (exit 1); exit 1; }; }
10597 if test "$aros_target_strip" = ""; then
10598 if test "$cross_compiling" = "yes" ; then
10599 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10600 set dummy ${target_tool_prefix}strip; ac_word=$2
10601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10603 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606 case $aros_target_strip_ln in
10607 [\\/]* | ?:[\\/]*)
10608 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612 for as_dir in $PATH
10614 IFS=$as_save_IFS
10615 test -z "$as_dir" && as_dir=.
10616 for ac_exec_ext in '' $ac_executable_extensions; do
10617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10618 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10620 break 2
10622 done
10623 done
10624 IFS=$as_save_IFS
10627 esac
10629 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10630 if test -n "$aros_target_strip_ln"; then
10631 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10632 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10633 else
10634 { echo "$as_me:$LINENO: result: no" >&5
10635 echo "${ECHO_T}no" >&6; }
10639 else
10640 if test "$GCC" = "yes"; then
10641 aros_gcc_strip=`$CC -print-prog-name=strip`
10642 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10643 set dummy `basename $aros_gcc_strip`; ac_word=$2
10644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10646 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 case $aros_target_strip_ln in
10650 [\\/]* | ?:[\\/]*)
10651 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10655 for as_dir in `dirname $aros_gcc_strip`
10657 IFS=$as_save_IFS
10658 test -z "$as_dir" && as_dir=.
10659 for ac_exec_ext in '' $ac_executable_extensions; do
10660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10661 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10663 break 2
10665 done
10666 done
10667 IFS=$as_save_IFS
10670 esac
10672 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10673 if test -n "$aros_target_strip_ln"; then
10674 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10675 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10676 else
10677 { echo "$as_me:$LINENO: result: no" >&5
10678 echo "${ECHO_T}no" >&6; }
10683 if test "$aros_target_strip_ln" = ""; then
10684 # Extract the first word of "strip", so it can be a program name with args.
10685 set dummy strip; ac_word=$2
10686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10688 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691 case $aros_target_strip_ln in
10692 [\\/]* | ?:[\\/]*)
10693 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697 for as_dir in $PATH
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10703 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 break 2
10707 done
10708 done
10709 IFS=$as_save_IFS
10712 esac
10714 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10715 if test -n "$aros_target_strip_ln"; then
10716 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10717 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10718 else
10719 { echo "$as_me:$LINENO: result: no" >&5
10720 echo "${ECHO_T}no" >&6; }
10726 else
10727 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10728 set dummy $aros_target_strip; ac_word=$2
10729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10731 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 case $aros_target_strip_ln in
10735 [\\/]* | ?:[\\/]*)
10736 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740 for as_dir in $PATH
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10746 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10750 done
10751 done
10752 IFS=$as_save_IFS
10755 esac
10757 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10758 if test -n "$aros_target_strip_ln"; then
10759 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10760 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10761 else
10762 { echo "$as_me:$LINENO: result: no" >&5
10763 echo "${ECHO_T}no" >&6; }
10769 if test "$aros_target_strip_ln" = ""; then
10770 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10771 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10772 { (exit 1); exit 1; }; }
10774 # Temporarily disabled in order to let Windows-hosted port to build.
10775 # if test "$aros_target_cxx" != ""; then
10776 # AC_PATH_PROG(aros_target_cxx,$aros_target_cxx)
10777 # AROS_REQUIRED(c++,$aros_target_cxx)
10778 # fi
10779 else
10780 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10781 aros_target_cxx=""
10784 if test "$rescomp" != ""; then
10785 if test "$cross_compiling" = "yes" ; then
10786 rescomp=${target_tool_prefix}${rescomp}
10788 # Extract the first word of "$rescomp", so it can be a program name with args.
10789 set dummy $rescomp; ac_word=$2
10790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10792 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795 case $aros_kernel_rescomp in
10796 [\\/]* | ?:[\\/]*)
10797 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10811 done
10812 done
10813 IFS=$as_save_IFS
10816 esac
10818 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10819 if test -n "$aros_kernel_rescomp"; then
10820 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10821 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10822 else
10823 { echo "$as_me:$LINENO: result: no" >&5
10824 echo "${ECHO_T}no" >&6; }
10828 if test "$aros_kernel_rescomp" = ""; then
10829 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10830 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10831 { (exit 1); exit 1; }; }
10835 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10836 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10837 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10838 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10839 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10840 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10841 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10843 # aros_cc_pre is a variable that is added to the front of the compiler name
10844 # in the generated aros-gcc shell script. We need this to enable the cache
10845 # to work across cleaned builds. Also, support DISTCC using the correct
10846 # environment variable.
10849 if test "x${DISTCC}" != "x" ; then
10850 if test "x${CCACHE}" != "x" ; then
10851 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10852 else
10853 aros_cc_pre="${DISTCC} "
10855 else
10856 if test "x${CCACHE}" != "x" ; then
10857 aros_cc_pre="${CCACHE} "
10861 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10863 aros_target_nostdinc_cflags=-nostdinc
10865 aros_target_nostartup_ldflags=-nostartfiles
10867 aros_target_nix_ldflags=-nix
10869 aros_target_detach_ldflags=-detach
10871 aros_target_nostdlib_ldflags=-nostdlib
10874 # Target tools
10875 if test "$aros_target_cc" = ""; then
10876 orig_target_cc=$aros_kernel_cc
10877 else
10878 orig_target_cc=$aros_target_cc
10880 if test "$aros_target_ld" = ""; then
10881 orig_target_ld=$aros_kernel_ld
10882 else
10883 orig_target_ld=$aros_target_ld
10885 if test "$GCC" = "yes"; then
10886 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10888 aros_target_cc="${prefix}-gcc"
10889 aros_target_as="${prefix}-as"
10890 aros_target_ld="${prefix}-ld"
10891 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10892 aros_target_objcopy=${prefix}-objcopy
10893 aros_target_objdump=${prefix}-objdump
10894 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10895 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10896 aros_kernel_nm="${prefix}-nm"
10897 aros_target_strip=${prefix}-strip
10899 # Find the system include path. We can suggest that an alternative is
10900 # used if we don't get it correct. The default is to use /usr/include.
10901 # Which is set in the aros_target_incl_def variable.
10903 # Check whether --enable-includes was given.
10904 if test "${enable_includes+set}" = set; then
10905 enableval=$enable_includes; aros_target_incl=$enable_includes
10906 else
10907 aros_target_incl=$aros_target_incl_def
10911 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10912 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10913 if test "$aros_target_cc_includes" = "" ; then
10914 #try to guess where the directory is
10915 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10916 if ! test -d $aros_target_cc_includes; then
10917 #the directory doesn't exist, we need to do some more work
10918 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10920 #these are the headers we're looling for
10921 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10922 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10923 zutil.h"
10925 dirs=
10926 for h in $headers; do
10927 #which other headers each of the above headers needs?
10928 deps=$(echo "#include <$h>" | \
10929 $aros_host_cc -E -M - 2>/dev/null | \
10930 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10932 #copy all the needed headers to a directory beneath gendir
10933 for d in $deps; do
10934 h=$(basename $d)
10935 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10936 sed -n "s,^.*/include\(/.*\),\1,p")
10937 ! test -d $dir && mkdir -p $dir
10938 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10939 done
10940 done
10943 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10944 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10947 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10948 # On GCC >= 4.0 -iquote should be used
10951 save_cc="$CC"
10952 save_cflags="$CFLAGS"
10953 CFLAGS="-iquote."
10954 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10955 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h. */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10964 main ()
10968 return 0;
10970 _ACEOF
10971 rm -f conftest.$ac_objext
10972 if { (ac_try="$ac_compile"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976 esac
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_compile") 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } && {
10985 test -z "$ac_c_werror_flag" ||
10986 test ! -s conftest.err
10987 } && test -s conftest.$ac_objext; then
10988 has_iquote="yes"
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 has_iquote="no"
10996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10997 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10998 echo "${ECHO_T}$has_iquote" >&6; }
10999 if test "x-$has_iquote" = "x-yes" ; then
11000 host_cflags_iquote=-iquote
11001 host_cflags_iquote_end=
11002 else
11003 host_cflags_iquote=-I
11004 host_cflags_iquote_end=-I-
11006 kernel_cflags_iquote=$host_cflags_iquote
11007 kernel_cflags_iquote_end=$host_cflags_iquote_end
11008 if test "x-$cross_compiling" = "x-yes"; then
11009 CC="$aros_kernel_cc"
11010 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11011 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
11012 cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h. */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11020 main ()
11024 return 0;
11026 _ACEOF
11027 rm -f conftest.$ac_objext
11028 if { (ac_try="$ac_compile"
11029 case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032 esac
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_compile") 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } && {
11041 test -z "$ac_c_werror_flag" ||
11042 test ! -s conftest.err
11043 } && test -s conftest.$ac_objext; then
11044 use_no_stack_protector="yes"
11045 else
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 use_no_stack_protector="no"
11052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11053 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11054 echo "${ECHO_T}$use_no_stack_protector" >&6; }
11055 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11056 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11057 cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h. */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11065 main ()
11069 return 0;
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_compile") 2>conftest.er1
11080 ac_status=$?
11081 grep -v '^ *+' conftest.er1 >conftest.err
11082 rm -f conftest.er1
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } && {
11086 test -z "$ac_c_werror_flag" ||
11087 test ! -s conftest.err
11088 } && test -s conftest.$ac_objext; then
11089 has_iquote="yes"
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 has_iquote="no"
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11099 echo "${ECHO_T}$has_iquote" >&6; }
11100 if test "x-$has_iquote" = "x-yes" ; then
11101 kernel_cflags_iquote=-iquote
11102 kernel_cflags_iquote_end=
11103 else
11104 kernel_cflags_iquote=-I
11105 kernel_cflags_iquote_end=-I-
11108 aros_cflags_iquote=$kernel_cflags_iquote
11109 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11110 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11111 CC="$orig_target_cc"
11112 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11113 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11114 cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h. */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11122 main ()
11126 return 0;
11128 _ACEOF
11129 rm -f conftest.$ac_objext
11130 if { (ac_try="$ac_compile"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_compile") 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest.$ac_objext; then
11146 has_iquote="yes"
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 has_iquote="no"
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11156 echo "${ECHO_T}$has_iquote" >&6; }
11157 if test "x-$has_iquote" = "x-yes" ; then
11158 aros_cflags_iquote=-iquote
11159 aros_cflags_iquote_end=
11160 else
11161 aros_cflags_iquote=-I
11162 aros_cflags_iquote_end=-I-
11165 if test "x-$use_no_stack_protector" = "x-yes" ; then
11166 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11169 #-----------------------------------------------------------------------------
11171 # Check if we can explicitly choose older version of symbol hashing
11173 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11174 CC="$aros_kernel_cc"
11175 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11176 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11177 cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h. */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11185 main ()
11189 return 0;
11191 _ACEOF
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (ac_try="$ac_link"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_link") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest$ac_exeext &&
11209 $as_test_x conftest$ac_exeext; then
11210 use_hash_style="yes"
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 use_hash_style="no"
11218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11219 conftest$ac_exeext conftest.$ac_ext
11220 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11221 echo "${ECHO_T}$use_hash_style" >&6; }
11222 if test "x-$use_hash_style" = "x-yes" ; then
11223 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11225 CC="$save_cc"
11226 CFLAGS="$save_cflags"
11236 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11237 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11239 # Check whether --with-resolution was given.
11240 if test "${with_resolution+set}" = set; then
11241 withval=$with_resolution; resolution=$withval
11242 else
11243 resolution=none
11246 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11247 if test "$resolution" = "yes" ; then
11248 resolution="none"
11250 if test "$resolution" = "no" ; then
11251 resolution="none"
11253 if test "$resolution" != "none" ; then
11254 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11255 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11256 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11258 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11259 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11260 aros_cv_default_wbwidth=$aros_default_wbwidth
11261 aros_cv_default_wbheight=$aros_default_wbheight
11262 aros_cv_default_wbdepth=$aros_default_wbdepth
11264 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11265 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11267 # Check whether --with-serial-debug was given.
11268 if test "${with_serial_debug+set}" = set; then
11269 withval=$with_serial_debug; serial_debug=$withval
11270 else
11271 serial_debug=none
11274 if test "$aros_serial_debug" = 0 ; then
11275 serial_debug_forced=""
11276 if test "$serial_debug" = "yes" ; then
11277 serial_debug="2"
11279 if test "$serial_debug" = "no" ; then
11280 serial_debug="none"
11282 else
11283 serial_debug_forced="(forced)"
11284 serial_debug=$aros_serial_debug
11286 if test "$serial_debug" != "none" ; then
11287 aros_serial_debug=$serial_debug
11288 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11289 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11290 else
11291 { echo "$as_me:$LINENO: result: no" >&5
11292 echo "${ECHO_T}no" >&6; }
11295 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11296 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11297 # Check whether --enable-palm_debug_hack was given.
11298 if test "${enable_palm_debug_hack+set}" = set; then
11299 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11300 else
11301 palm_debug_hack="no"
11304 if test "$palm_debug_hack" = "yes" ; then
11305 aros_palm_debug_hack="1"
11307 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11308 echo "${ECHO_T}$palm_debug_hack" >&6; }
11311 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11312 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11313 # Check whether --enable-nesting_supervisor was given.
11314 if test "${enable_nesting_supervisor+set}" = set; then
11315 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11316 else
11317 nesting_supervisor="no"
11320 if test "$nesting_supervisor" = "yes" ; then
11321 aros_nesting_supervisor="1"
11323 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11324 echo "${ECHO_T}$nesting_supervisor" >&6; }
11327 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11329 if test "x-$need_dlopen" != "x-no" ; then
11330 { echo "$as_me:$LINENO: checking for dlopen" >&5
11331 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11332 if test "${ac_cv_func_dlopen+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335 cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h. */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11343 #define dlopen innocuous_dlopen
11345 /* System header to define __stub macros and hopefully few prototypes,
11346 which can conflict with char dlopen (); below.
11347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11348 <limits.h> exists even on freestanding compilers. */
11350 #ifdef __STDC__
11351 # include <limits.h>
11352 #else
11353 # include <assert.h>
11354 #endif
11356 #undef dlopen
11358 /* Override any GCC internal prototype to avoid an error.
11359 Use char because int might match the return type of a GCC
11360 builtin and then its argument prototype would still apply. */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 char dlopen ();
11365 /* The GNU C library defines this for functions which it implements
11366 to always fail with ENOSYS. Some functions are actually named
11367 something starting with __ and the normal name is an alias. */
11368 #if defined __stub_dlopen || defined __stub___dlopen
11369 choke me
11370 #endif
11373 main ()
11375 return dlopen ();
11377 return 0;
11379 _ACEOF
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (ac_try="$ac_link"
11382 case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11385 esac
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_link") 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } && {
11394 test -z "$ac_c_werror_flag" ||
11395 test ! -s conftest.err
11396 } && test -s conftest$ac_exeext &&
11397 $as_test_x conftest$ac_exeext; then
11398 ac_cv_func_dlopen=yes
11399 else
11400 echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11403 ac_cv_func_dlopen=no
11406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11407 conftest$ac_exeext conftest.$ac_ext
11409 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11410 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11411 if test $ac_cv_func_dlopen = yes; then
11412 have_dl="yes"
11413 else
11414 have_dl="no"
11417 if test "x-$have_dl" = "x-no" ; then
11418 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11419 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11420 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423 ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-ldl $LIBS"
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h. */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char dlopen ();
11440 main ()
11442 return dlopen ();
11444 return 0;
11446 _ACEOF
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (ac_try="$ac_link"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_link") 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && {
11461 test -z "$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 } && test -s conftest$ac_exeext &&
11464 $as_test_x conftest$ac_exeext; then
11465 ac_cv_lib_dl_dlopen=yes
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_lib_dl_dlopen=no
11473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11474 conftest$ac_exeext conftest.$ac_ext
11475 LIBS=$ac_check_lib_save_LIBS
11477 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11479 if test $ac_cv_lib_dl_dlopen = yes; then
11480 have_dl="yes"
11481 aros_host_ldflags="$aros_host_ldflags -ldl"
11482 else
11483 have_dl="no"
11487 if test "x-$have_dl" = "x-no" ; then
11488 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11489 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11490 { (exit 1); exit 1; }; }
11495 # Check whether --enable-x11_hidd was given.
11496 if test "${enable_x11_hidd+set}" = set; then
11497 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11498 else
11499 x11_hidd="auto"
11502 case "x-$x11_hidd" in
11503 x-yes|x-no|x-auto) ;;
11504 *) x11_hidd="auto" ;;
11505 esac
11507 ENABLE_X11=0
11509 if test "x-$x11_hidd" != "x-no" ; then
11511 { echo "$as_me:$LINENO: checking for X" >&5
11512 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11515 # Check whether --with-x was given.
11516 if test "${with_x+set}" = set; then
11517 withval=$with_x;
11520 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11521 if test "x$with_x" = xno; then
11522 # The user explicitly disabled X.
11523 have_x=disabled
11524 else
11525 case $x_includes,$x_libraries in #(
11526 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11527 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11528 { (exit 1); exit 1; }; };; #(
11529 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532 # One or both of the vars are not set, and there is no cached value.
11533 ac_x_includes=no ac_x_libraries=no
11534 rm -f -r conftest.dir
11535 if mkdir conftest.dir; then
11536 cd conftest.dir
11537 cat >Imakefile <<'_ACEOF'
11538 incroot:
11539 @echo incroot='${INCROOT}'
11540 usrlibdir:
11541 @echo usrlibdir='${USRLIBDIR}'
11542 libdir:
11543 @echo libdir='${LIBDIR}'
11544 _ACEOF
11545 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11547 for ac_var in incroot usrlibdir libdir; do
11548 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11549 done
11550 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11551 for ac_extension in a so sl dylib la dll; do
11552 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11553 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11554 ac_im_usrlibdir=$ac_im_libdir; break
11556 done
11557 # Screen out bogus values from the imake configuration. They are
11558 # bogus both because they are the default anyway, and because
11559 # using them would break gcc on systems where it needs fixed includes.
11560 case $ac_im_incroot in
11561 /usr/include) ac_x_includes= ;;
11562 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11563 esac
11564 case $ac_im_usrlibdir in
11565 /usr/lib | /lib) ;;
11566 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11567 esac
11569 cd ..
11570 rm -f -r conftest.dir
11573 # Standard set of common directories for X headers.
11574 # Check X11 before X11Rn because it is often a symlink to the current release.
11575 ac_x_header_dirs='
11576 /usr/X11/include
11577 /usr/X11R6/include
11578 /usr/X11R5/include
11579 /usr/X11R4/include
11581 /usr/include/X11
11582 /usr/include/X11R6
11583 /usr/include/X11R5
11584 /usr/include/X11R4
11586 /usr/local/X11/include
11587 /usr/local/X11R6/include
11588 /usr/local/X11R5/include
11589 /usr/local/X11R4/include
11591 /usr/local/include/X11
11592 /usr/local/include/X11R6
11593 /usr/local/include/X11R5
11594 /usr/local/include/X11R4
11596 /usr/X386/include
11597 /usr/x386/include
11598 /usr/XFree86/include/X11
11600 /usr/include
11601 /usr/local/include
11602 /usr/unsupported/include
11603 /usr/athena/include
11604 /usr/local/x11r5/include
11605 /usr/lpp/Xamples/include
11607 /usr/openwin/include
11608 /usr/openwin/share/include'
11610 if test "$ac_x_includes" = no; then
11611 # Guess where to find include files, by looking for Xlib.h.
11612 # First, try using that file with no special directory specified.
11613 cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h. */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 #include <X11/Xlib.h>
11620 _ACEOF
11621 if { (ac_try="$ac_cpp conftest.$ac_ext"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } >/dev/null && {
11634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11635 test ! -s conftest.err
11636 }; then
11637 # We can compile using X headers with no special include directory.
11638 ac_x_includes=
11639 else
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 for ac_dir in $ac_x_header_dirs; do
11644 if test -r "$ac_dir/X11/Xlib.h"; then
11645 ac_x_includes=$ac_dir
11646 break
11648 done
11651 rm -f conftest.err conftest.$ac_ext
11652 fi # $ac_x_includes = no
11654 if test "$ac_x_libraries" = no; then
11655 # Check for the libraries.
11656 # See if we find them without any special options.
11657 # Don't add to $LIBS permanently.
11658 ac_save_LIBS=$LIBS
11659 LIBS="-lX11 $LIBS"
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 #include <X11/Xlib.h>
11668 main ()
11670 XrmInitialize ()
11672 return 0;
11674 _ACEOF
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (ac_try="$ac_link"
11677 case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_link") 2>conftest.er1
11683 ac_status=$?
11684 grep -v '^ *+' conftest.er1 >conftest.err
11685 rm -f conftest.er1
11686 cat conftest.err >&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } && {
11689 test -z "$ac_c_werror_flag" ||
11690 test ! -s conftest.err
11691 } && test -s conftest$ac_exeext &&
11692 $as_test_x conftest$ac_exeext; then
11693 LIBS=$ac_save_LIBS
11694 # We can link X programs with no special library path.
11695 ac_x_libraries=
11696 else
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 LIBS=$ac_save_LIBS
11701 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11703 # Don't even attempt the hair of trying to link an X program!
11704 for ac_extension in a so sl dylib la dll; do
11705 if test -r "$ac_dir/libX11.$ac_extension"; then
11706 ac_x_libraries=$ac_dir
11707 break 2
11709 done
11710 done
11713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11714 conftest$ac_exeext conftest.$ac_ext
11715 fi # $ac_x_libraries = no
11717 case $ac_x_includes,$ac_x_libraries in #(
11718 no,* | *,no | *\'*)
11719 # Didn't find X, or a directory has "'" in its name.
11720 ac_cv_have_x="have_x=no";; #(
11722 # Record where we found X for the cache.
11723 ac_cv_have_x="have_x=yes\
11724 ac_x_includes='$ac_x_includes'\
11725 ac_x_libraries='$ac_x_libraries'"
11726 esac
11728 ;; #(
11729 *) have_x=yes;;
11730 esac
11731 eval "$ac_cv_have_x"
11732 fi # $with_x != no
11734 if test "$have_x" != yes; then
11735 { echo "$as_me:$LINENO: result: $have_x" >&5
11736 echo "${ECHO_T}$have_x" >&6; }
11737 no_x=yes
11738 else
11739 # If each of the values was on the command line, it overrides each guess.
11740 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11741 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11742 # Update the cache value to reflect the command line values.
11743 ac_cv_have_x="have_x=yes\
11744 ac_x_includes='$x_includes'\
11745 ac_x_libraries='$x_libraries'"
11746 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11747 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11751 x_cflags=
11752 for path in $x_libraries
11754 x_cflags="$x_cflags -L$path"
11755 done
11757 for path in $x_includes
11759 x_cflags="$x_cflags -I$path"
11760 done
11762 if test "x-$no_x" = "x-yes" ; then
11764 if test "x-$x11_hidd" != "x-auto" ; then
11765 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11766 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11767 { (exit 1); exit 1; }; }
11770 else
11771 x11_hidd_target=kernel-x11gfx-kobj
11772 ENABLE_X11=1
11774 # Check whether --enable-x11_shm was given.
11775 if test "${enable_x11_shm+set}" = set; then
11776 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11777 else
11778 x11_hidd_shm="auto"
11781 case "x-$x11_hidd_shm" in
11782 x-yes|x-no|x-auto) ;;
11783 *) x11_hidd_shm="auto" ;;
11784 esac
11786 have_xshm=no
11788 if test "x-$x11_hidd_shm" != "x-no" ; then
11791 for ac_header in sys/ipc.h
11793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 ac_res=`eval echo '${'$as_ac_Header'}'`
11801 { echo "$as_me:$LINENO: result: $ac_res" >&5
11802 echo "${ECHO_T}$ac_res" >&6; }
11803 else
11804 # Is the header compilable?
11805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h. */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 $ac_includes_default
11814 #include <$ac_header>
11815 _ACEOF
11816 rm -f conftest.$ac_objext
11817 if { (ac_try="$ac_compile"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_compile") 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } && {
11830 test -z "$ac_c_werror_flag" ||
11831 test ! -s conftest.err
11832 } && test -s conftest.$ac_objext; then
11833 ac_header_compiler=yes
11834 else
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 ac_header_compiler=no
11841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11843 echo "${ECHO_T}$ac_header_compiler" >&6; }
11845 # Is the header present?
11846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11848 cat >conftest.$ac_ext <<_ACEOF
11849 /* confdefs.h. */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 #include <$ac_header>
11855 _ACEOF
11856 if { (ac_try="$ac_cpp conftest.$ac_ext"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } >/dev/null && {
11869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11870 test ! -s conftest.err
11871 }; then
11872 ac_header_preproc=yes
11873 else
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_header_preproc=no
11880 rm -f conftest.err conftest.$ac_ext
11881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11882 echo "${ECHO_T}$ac_header_preproc" >&6; }
11884 # So? What about this header?
11885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11886 yes:no: )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11891 ac_header_preproc=yes
11893 no:yes:* )
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11908 esac
11909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914 eval "$as_ac_Header=\$ac_header_preproc"
11916 ac_res=`eval echo '${'$as_ac_Header'}'`
11917 { echo "$as_me:$LINENO: result: $ac_res" >&5
11918 echo "${ECHO_T}$ac_res" >&6; }
11921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11922 cat >>confdefs.h <<_ACEOF
11923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11924 _ACEOF
11928 done
11931 for ac_header in sys/shm.h
11933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 ac_res=`eval echo '${'$as_ac_Header'}'`
11941 { echo "$as_me:$LINENO: result: $ac_res" >&5
11942 echo "${ECHO_T}$ac_res" >&6; }
11943 else
11944 # Is the header compilable?
11945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11947 cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h. */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 $ac_includes_default
11954 #include <$ac_header>
11955 _ACEOF
11956 rm -f conftest.$ac_objext
11957 if { (ac_try="$ac_compile"
11958 case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_compile") 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && {
11970 test -z "$ac_c_werror_flag" ||
11971 test ! -s conftest.err
11972 } && test -s conftest.$ac_objext; then
11973 ac_header_compiler=yes
11974 else
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_header_compiler=no
11981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11983 echo "${ECHO_T}$ac_header_compiler" >&6; }
11985 # Is the header present?
11986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h. */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 #include <$ac_header>
11995 _ACEOF
11996 if { (ac_try="$ac_cpp conftest.$ac_ext"
11997 case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12000 esac
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } >/dev/null && {
12009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12010 test ! -s conftest.err
12011 }; then
12012 ac_header_preproc=yes
12013 else
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ac_header_preproc=no
12020 rm -f conftest.err conftest.$ac_ext
12021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12022 echo "${ECHO_T}$ac_header_preproc" >&6; }
12024 # So? What about this header?
12025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12026 yes:no: )
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12031 ac_header_preproc=yes
12033 no:yes:* )
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12048 esac
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 eval "$as_ac_Header=\$ac_header_preproc"
12056 ac_res=`eval echo '${'$as_ac_Header'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12062 cat >>confdefs.h <<_ACEOF
12063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12064 _ACEOF
12068 done
12071 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12073 save_cflags="$CFLAGS"
12074 CFLAGS="$CFLAGS $x_cflags"
12075 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12076 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
12077 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080 ac_check_lib_save_LIBS=$LIBS
12081 LIBS="-lXext $LIBS"
12082 cat >conftest.$ac_ext <<_ACEOF
12083 /* confdefs.h. */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12092 #ifdef __cplusplus
12093 extern "C"
12094 #endif
12095 char XShmQueryExtension ();
12097 main ()
12099 return XShmQueryExtension ();
12101 return 0;
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_link") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest$ac_exeext &&
12121 $as_test_x conftest$ac_exeext; then
12122 ac_cv_lib_Xext_XShmQueryExtension=yes
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ac_cv_lib_Xext_XShmQueryExtension=no
12130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12134 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12135 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12136 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12137 have_xshm=yes
12140 CFLAGS="$save_cflags"
12144 if test "x-$have_xshm" = "x-yes" ; then
12145 DO_XSHM_SUPPORT="1"
12146 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12147 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12148 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12149 { (exit 1); exit 1; }; }
12150 else
12151 DO_XSHM_SUPPORT="0"
12155 # Check whether --enable-x11_vidmode was given.
12156 if test "${enable_x11_vidmode+set}" = set; then
12157 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12158 else
12159 x11_hidd_vidmode="auto"
12162 case "x-$x11_hidd_vidmode" in
12163 x-yes|x-no|x-auto) ;;
12164 *) x11_hidd_vidmode="auto" ;;
12165 esac
12167 have_vidmode=no
12169 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12171 save_cflags="$CFLAGS"
12172 CFLAGS="$CFLAGS $x_cflags"
12173 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12174 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12175 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 ac_check_lib_save_LIBS=$LIBS
12179 LIBS="-lXxf86vm $LIBS"
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char XF86VidModeQueryExtension ();
12195 main ()
12197 return XF86VidModeQueryExtension ();
12199 return 0;
12201 _ACEOF
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (ac_try="$ac_link"
12204 case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_link") 2>conftest.er1
12210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } && {
12216 test -z "$ac_c_werror_flag" ||
12217 test ! -s conftest.err
12218 } && test -s conftest$ac_exeext &&
12219 $as_test_x conftest$ac_exeext; then
12220 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12221 else
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12232 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12233 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12234 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12235 have_vidmode=yes
12238 CFLAGS="$save_cflags"
12241 if test "x-$have_vidmode" = "x-yes" ; then
12242 DO_VIDMODE_SUPPORT="1"
12243 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12244 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12245 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12246 { (exit 1); exit 1; }; }
12247 else
12248 DO_VIDMODE_SUPPORT="0"
12252 aros_host_x11_includes=$x_includes
12253 aros_host_x11_libdirs=$x_libraries
12257 # Check whether --enable-sdl_hidd was given.
12258 if test "${enable_sdl_hidd+set}" = set; then
12259 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12260 else
12261 sdl_hidd="auto"
12264 case "x-$sdl_hidd" in
12265 x-yes|x-no|x-auto) ;;
12266 *) sdl_hidd="auto" ;;
12267 esac
12269 if test "x-$sdl_hidd" != "x-no" ; then
12272 # Check whether --with-sdl-prefix was given.
12273 if test "${with_sdl_prefix+set}" = set; then
12274 withval=$with_sdl_prefix; sdl_prefix="$withval"
12275 else
12276 sdl_prefix=""
12280 # Check whether --with-sdl-exec-prefix was given.
12281 if test "${with_sdl_exec_prefix+set}" = set; then
12282 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12283 else
12284 sdl_exec_prefix=""
12287 # Check whether --enable-sdltest was given.
12288 if test "${enable_sdltest+set}" = set; then
12289 enableval=$enable_sdltest;
12290 else
12291 enable_sdltest=yes
12295 if test x$sdl_exec_prefix != x ; then
12296 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12297 if test x${SDL_CONFIG+set} != xset ; then
12298 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12301 if test x$sdl_prefix != x ; then
12302 sdl_args="$sdl_args --prefix=$sdl_prefix"
12303 if test x${SDL_CONFIG+set} != xset ; then
12304 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12308 if test "x$prefix" != xNONE; then
12309 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12311 # Extract the first word of "sdl-config", so it can be a program name with args.
12312 set dummy sdl-config; ac_word=$2
12313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12315 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318 case $SDL_CONFIG in
12319 [\\/]* | ?:[\\/]*)
12320 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12330 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12334 done
12335 done
12336 IFS=$as_save_IFS
12338 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12340 esac
12342 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12343 if test -n "$SDL_CONFIG"; then
12344 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12345 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12346 else
12347 { echo "$as_me:$LINENO: result: no" >&5
12348 echo "${ECHO_T}no" >&6; }
12352 min_sdl_version=1.2.10
12353 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12354 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12355 no_sdl=""
12356 if test "$SDL_CONFIG" = "no" ; then
12357 no_sdl=yes
12358 else
12359 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12360 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12362 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12363 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12364 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12365 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12366 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12367 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12368 if test "x$enable_sdltest" = "xyes" ; then
12369 ac_save_CFLAGS="$CFLAGS"
12370 ac_save_CXXFLAGS="$CXXFLAGS"
12371 ac_save_LIBS="$LIBS"
12372 CFLAGS="$CFLAGS $SDL_CFLAGS"
12373 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12374 LIBS="$LIBS $SDL_LIBS"
12375 rm -f conf.sdltest
12376 if test "$cross_compiling" = yes; then
12377 echo $ac_n "cross compiling; assumed OK... $ac_c"
12378 else
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12386 #include <stdio.h>
12387 #include <stdlib.h>
12388 #include <string.h>
12389 #include "SDL.h"
12391 char*
12392 my_strdup (char *str)
12394 char *new_str;
12396 if (str)
12398 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12399 strcpy (new_str, str);
12401 else
12402 new_str = NULL;
12404 return new_str;
12407 int main (int argc, char *argv[])
12409 int major, minor, micro;
12410 char *tmp_version;
12412 /* This hangs on some systems (?)
12413 system ("touch conf.sdltest");
12415 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12417 /* HP/UX 9 (%@#!) writes to sscanf strings */
12418 tmp_version = my_strdup("$min_sdl_version");
12419 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12420 printf("%s, bad version string\n", "$min_sdl_version");
12421 exit(1);
12424 if (($sdl_major_version > major) ||
12425 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12426 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12428 return 0;
12430 else
12432 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12433 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12434 printf("*** best to upgrade to the required version.\n");
12435 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12436 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12437 printf("*** config.cache before re-running configure\n");
12438 return 1;
12443 _ACEOF
12444 rm -f conftest$ac_exeext
12445 if { (ac_try="$ac_link"
12446 case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12449 esac
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_link") 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12455 { (case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_try") 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12465 else
12466 echo "$as_me: program exited with status $ac_status" >&5
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ( exit $ac_status )
12471 no_sdl=yes
12473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12477 CFLAGS="$ac_save_CFLAGS"
12478 CXXFLAGS="$ac_save_CXXFLAGS"
12479 LIBS="$ac_save_LIBS"
12482 if test "x$no_sdl" = x ; then
12483 { echo "$as_me:$LINENO: result: yes" >&5
12484 echo "${ECHO_T}yes" >&6; }
12485 have_sdl="yes"
12486 else
12487 { echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6; }
12489 if test "$SDL_CONFIG" = "no" ; then
12490 echo "*** The sdl-config script installed by SDL could not be found"
12491 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12492 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12493 echo "*** full path to sdl-config."
12494 else
12495 if test -f conf.sdltest ; then
12497 else
12498 echo "*** Could not run SDL test program, checking why..."
12499 CFLAGS="$CFLAGS $SDL_CFLAGS"
12500 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12501 LIBS="$LIBS $SDL_LIBS"
12502 cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h. */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12509 #include <stdio.h>
12510 #include "SDL.h"
12512 int main(int argc, char *argv[])
12513 { return 0; }
12514 #undef main
12515 #define main K_and_R_C_main
12518 main ()
12520 return 0;
12522 return 0;
12524 _ACEOF
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (ac_try="$ac_link"
12527 case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_link") 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } && {
12539 test -z "$ac_c_werror_flag" ||
12540 test ! -s conftest.err
12541 } && test -s conftest$ac_exeext &&
12542 $as_test_x conftest$ac_exeext; then
12543 echo "*** The test program compiled, but did not run. This usually means"
12544 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12545 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12546 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12547 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12548 echo "*** is required on your system"
12549 echo "***"
12550 echo "*** If you have an old version installed, it is best to remove it, although"
12551 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12552 else
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 echo "*** The test program failed to compile or link. See the file config.log for the"
12557 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12558 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12559 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12563 conftest$ac_exeext conftest.$ac_ext
12564 CFLAGS="$ac_save_CFLAGS"
12565 CXXFLAGS="$ac_save_CXXFLAGS"
12566 LIBS="$ac_save_LIBS"
12569 SDL_CFLAGS=""
12570 SDL_LIBS=""
12571 have_sdl="no"
12575 rm -f conf.sdltest
12578 if test "x-$have_sdl" != "x-yes" ; then
12580 if test "x-$sdl_hidd" != "x-auto" ; then
12581 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12582 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12583 { (exit 1); exit 1; }; }
12586 else
12587 sdl_hidd_target=kernel-hidd-sdl
12588 aros_host_sdl_cflags=SDL_CFLAGS
12589 aros_host_sdl_libs=SDL_LIBS
12596 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12597 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12598 # Check whether --enable-dbus was given.
12599 if test "${enable_dbus+set}" = set; then
12600 enableval=$enable_dbus; dbus="yes"
12601 else
12602 dbus="no"
12605 if test "$dbus" = "yes" ; then
12606 ENABLE_DBUS=1
12607 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12608 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12609 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12610 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12611 else
12612 ENABLE_DBUS=0
12614 { echo "$as_me:$LINENO: result: $dbus" >&5
12615 echo "${ECHO_T}$dbus" >&6; }
12619 # Generic
12629 # Host related
12652 # Target Related
12701 # Graphics Related
12716 # Native version related
12719 # Palm native version related
12722 # Unix/Hosted version related
12725 # Apple iOS related
12730 # DBUS related
12737 #X11 related
12740 # Debug related
12746 # Collect-aros stuff: "-ius" to ignore undefined symbols
12749 # C compiler related
12752 case "$aros_flavour" in
12753 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12754 aros_flavour="emulation" ;;
12755 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12756 aros_flavour="emulation" ;;
12757 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12758 aros_flavour="standalone";;
12759 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12760 aros_flavour="native" ;;
12761 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12762 aros_flavour="native" ;;
12763 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12764 aros_flavour="linklib" ;;
12765 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12766 aros_flavour="palmnative" ;;
12767 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12768 aros_flavour="mac68knative" ;;
12769 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12770 aros_flavour="ppcnative" ;;
12771 esac
12773 if test ! -d ${aros_inc_dir} ; then
12774 ${MKDIR} ${aros_inc_dir}
12776 if test ! -d ${aros_geninc_dir} ; then
12777 ${MKDIR} ${aros_geninc_dir}
12779 if test ! -d ${aros_hostcfg_dir} ; then
12780 ${MKDIR} ${aros_hostcfg_dir}
12782 if test ! -d ${aros_targetcfg_dir} ; then
12783 ${MKDIR} ${aros_targetcfg_dir}
12785 if test ! -d ${aros_tools_dir} ; then
12786 ${MKDIR} ${aros_tools_dir}
12788 if test ! -d ${aros_scripts_dir} ; then
12789 ${MKDIR} ${aros_scripts_dir}
12792 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12795 ac_config_commands="$ac_config_commands compiler_executable"
12797 ac_config_commands="$ac_config_commands genshared_executable"
12799 ac_config_commands="$ac_config_commands genmf_executable"
12802 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"
12805 cat >confcache <<\_ACEOF
12806 # This file is a shell script that caches the results of configure
12807 # tests run on this system so they can be shared between configure
12808 # scripts and configure runs, see configure's option --config-cache.
12809 # It is not useful on other systems. If it contains results you don't
12810 # want to keep, you may remove or edit it.
12812 # config.status only pays attention to the cache file if you give it
12813 # the --recheck option to rerun configure.
12815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12817 # following values.
12819 _ACEOF
12821 # The following way of writing the cache mishandles newlines in values,
12822 # but we know of no workaround that is simple, portable, and efficient.
12823 # So, we kill variables containing newlines.
12824 # Ultrix sh set writes to stderr and can't be redirected directly,
12825 # and sets the high bit in the cache file unless we assign to the vars.
12827 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12828 eval ac_val=\$$ac_var
12829 case $ac_val in #(
12830 *${as_nl}*)
12831 case $ac_var in #(
12832 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12833 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12834 esac
12835 case $ac_var in #(
12836 _ | IFS | as_nl) ;; #(
12837 *) $as_unset $ac_var ;;
12838 esac ;;
12839 esac
12840 done
12842 (set) 2>&1 |
12843 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12844 *${as_nl}ac_space=\ *)
12845 # `set' does not quote correctly, so add quotes (double-quote
12846 # substitution turns \\\\ into \\, and sed turns \\ into \).
12847 sed -n \
12848 "s/'/'\\\\''/g;
12849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12850 ;; #(
12852 # `set' quotes correctly as required by POSIX, so do not add quotes.
12853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12855 esac |
12856 sort
12858 sed '
12859 /^ac_cv_env_/b end
12860 t clear
12861 :clear
12862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12863 t end
12864 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12865 :end' >>confcache
12866 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12867 if test -w "$cache_file"; then
12868 test "x$cache_file" != "x/dev/null" &&
12869 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12870 echo "$as_me: updating cache $cache_file" >&6;}
12871 cat confcache >$cache_file
12872 else
12873 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12874 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12877 rm -f confcache
12879 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12880 # Let make expand exec_prefix.
12881 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12883 DEFS=-DHAVE_CONFIG_H
12885 ac_libobjs=
12886 ac_ltlibobjs=
12887 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12888 # 1. Remove the extension, and $U if already installed.
12889 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12890 ac_i=`echo "$ac_i" | sed "$ac_script"`
12891 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12892 # will be set to the directory where LIBOBJS objects are built.
12893 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12894 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12895 done
12896 LIBOBJS=$ac_libobjs
12898 LTLIBOBJS=$ac_ltlibobjs
12902 : ${CONFIG_STATUS=./config.status}
12903 ac_clean_files_save=$ac_clean_files
12904 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12905 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12906 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12907 cat >$CONFIG_STATUS <<_ACEOF
12908 #! $SHELL
12909 # Generated by $as_me.
12910 # Run this file to recreate the current configuration.
12911 # Compiler output produced by configure, useful for debugging
12912 # configure, is in config.log if it exists.
12914 debug=false
12915 ac_cs_recheck=false
12916 ac_cs_silent=false
12917 SHELL=\${CONFIG_SHELL-$SHELL}
12918 _ACEOF
12920 cat >>$CONFIG_STATUS <<\_ACEOF
12921 ## --------------------- ##
12922 ## M4sh Initialization. ##
12923 ## --------------------- ##
12925 # Be more Bourne compatible
12926 DUALCASE=1; export DUALCASE # for MKS sh
12927 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12928 emulate sh
12929 NULLCMD=:
12930 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12931 # is contrary to our usage. Disable this feature.
12932 alias -g '${1+"$@"}'='"$@"'
12933 setopt NO_GLOB_SUBST
12934 else
12935 case `(set -o) 2>/dev/null` in
12936 *posix*) set -o posix ;;
12937 esac
12944 # PATH needs CR
12945 # Avoid depending upon Character Ranges.
12946 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12947 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12948 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12949 as_cr_digits='0123456789'
12950 as_cr_alnum=$as_cr_Letters$as_cr_digits
12952 # The user is always right.
12953 if test "${PATH_SEPARATOR+set}" != set; then
12954 echo "#! /bin/sh" >conf$$.sh
12955 echo "exit 0" >>conf$$.sh
12956 chmod +x conf$$.sh
12957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12958 PATH_SEPARATOR=';'
12959 else
12960 PATH_SEPARATOR=:
12962 rm -f conf$$.sh
12965 # Support unset when possible.
12966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12967 as_unset=unset
12968 else
12969 as_unset=false
12973 # IFS
12974 # We need space, tab and new line, in precisely that order. Quoting is
12975 # there to prevent editors from complaining about space-tab.
12976 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12977 # splitting by setting IFS to empty value.)
12978 as_nl='
12980 IFS=" "" $as_nl"
12982 # Find who we are. Look in the path if we contain no directory separator.
12983 case $0 in
12984 *[\\/]* ) as_myself=$0 ;;
12985 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986 for as_dir in $PATH
12988 IFS=$as_save_IFS
12989 test -z "$as_dir" && as_dir=.
12990 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12991 done
12992 IFS=$as_save_IFS
12995 esac
12996 # We did not find ourselves, most probably we were run as `sh COMMAND'
12997 # in which case we are not to be found in the path.
12998 if test "x$as_myself" = x; then
12999 as_myself=$0
13001 if test ! -f "$as_myself"; then
13002 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13003 { (exit 1); exit 1; }
13006 # Work around bugs in pre-3.0 UWIN ksh.
13007 for as_var in ENV MAIL MAILPATH
13008 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13009 done
13010 PS1='$ '
13011 PS2='> '
13012 PS4='+ '
13014 # NLS nuisances.
13015 for as_var in \
13016 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13017 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13018 LC_TELEPHONE LC_TIME
13020 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13021 eval $as_var=C; export $as_var
13022 else
13023 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13025 done
13027 # Required to use basename.
13028 if expr a : '\(a\)' >/dev/null 2>&1 &&
13029 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13030 as_expr=expr
13031 else
13032 as_expr=false
13035 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13036 as_basename=basename
13037 else
13038 as_basename=false
13042 # Name of the executable.
13043 as_me=`$as_basename -- "$0" ||
13044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13045 X"$0" : 'X\(//\)$' \| \
13046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13047 echo X/"$0" |
13048 sed '/^.*\/\([^/][^/]*\)\/*$/{
13049 s//\1/
13052 /^X\/\(\/\/\)$/{
13053 s//\1/
13056 /^X\/\(\/\).*/{
13057 s//\1/
13060 s/.*/./; q'`
13062 # CDPATH.
13063 $as_unset CDPATH
13067 as_lineno_1=$LINENO
13068 as_lineno_2=$LINENO
13069 test "x$as_lineno_1" != "x$as_lineno_2" &&
13070 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13072 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13073 # uniformly replaced by the line number. The first 'sed' inserts a
13074 # line-number line after each line using $LINENO; the second 'sed'
13075 # does the real work. The second script uses 'N' to pair each
13076 # line-number line with the line containing $LINENO, and appends
13077 # trailing '-' during substitution so that $LINENO is not a special
13078 # case at line end.
13079 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13080 # scripts with optimization help from Paolo Bonzini. Blame Lee
13081 # E. McMahon (1931-1989) for sed's syntax. :-)
13082 sed -n '
13084 /[$]LINENO/=
13085 ' <$as_myself |
13086 sed '
13087 s/[$]LINENO.*/&-/
13088 t lineno
13090 :lineno
13092 :loop
13093 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13094 t loop
13095 s/-\n.*//
13096 ' >$as_me.lineno &&
13097 chmod +x "$as_me.lineno" ||
13098 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13099 { (exit 1); exit 1; }; }
13101 # Don't try to exec as it changes $[0], causing all sort of problems
13102 # (the dirname of $[0] is not the place where we might find the
13103 # original and so on. Autoconf is especially sensitive to this).
13104 . "./$as_me.lineno"
13105 # Exit status is that of the last command.
13106 exit
13110 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13111 as_dirname=dirname
13112 else
13113 as_dirname=false
13116 ECHO_C= ECHO_N= ECHO_T=
13117 case `echo -n x` in
13118 -n*)
13119 case `echo 'x\c'` in
13120 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13121 *) ECHO_C='\c';;
13122 esac;;
13124 ECHO_N='-n';;
13125 esac
13127 if expr a : '\(a\)' >/dev/null 2>&1 &&
13128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13129 as_expr=expr
13130 else
13131 as_expr=false
13134 rm -f conf$$ conf$$.exe conf$$.file
13135 if test -d conf$$.dir; then
13136 rm -f conf$$.dir/conf$$.file
13137 else
13138 rm -f conf$$.dir
13139 mkdir conf$$.dir
13141 echo >conf$$.file
13142 if ln -s conf$$.file conf$$ 2>/dev/null; then
13143 as_ln_s='ln -s'
13144 # ... but there are two gotchas:
13145 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13146 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13147 # In both cases, we have to default to `cp -p'.
13148 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13149 as_ln_s='cp -p'
13150 elif ln conf$$.file conf$$ 2>/dev/null; then
13151 as_ln_s=ln
13152 else
13153 as_ln_s='cp -p'
13155 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13156 rmdir conf$$.dir 2>/dev/null
13158 if mkdir -p . 2>/dev/null; then
13159 as_mkdir_p=:
13160 else
13161 test -d ./-p && rmdir ./-p
13162 as_mkdir_p=false
13165 if test -x / >/dev/null 2>&1; then
13166 as_test_x='test -x'
13167 else
13168 if ls -dL / >/dev/null 2>&1; then
13169 as_ls_L_option=L
13170 else
13171 as_ls_L_option=
13173 as_test_x='
13174 eval sh -c '\''
13175 if test -d "$1"; then
13176 test -d "$1/.";
13177 else
13178 case $1 in
13179 -*)set "./$1";;
13180 esac;
13181 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13182 ???[sx]*):;;*)false;;esac;fi
13183 '\'' sh
13186 as_executable_p=$as_test_x
13188 # Sed expression to map a string onto a valid CPP name.
13189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13191 # Sed expression to map a string onto a valid variable name.
13192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13195 exec 6>&1
13197 # Save the log message, to keep $[0] and so on meaningful, and to
13198 # report actual input values of CONFIG_FILES etc. instead of their
13199 # values after options handling.
13200 ac_log="
13201 This file was extended by $as_me, which was
13202 generated by GNU Autoconf 2.61. Invocation command line was
13204 CONFIG_FILES = $CONFIG_FILES
13205 CONFIG_HEADERS = $CONFIG_HEADERS
13206 CONFIG_LINKS = $CONFIG_LINKS
13207 CONFIG_COMMANDS = $CONFIG_COMMANDS
13208 $ $0 $@
13210 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13213 _ACEOF
13215 cat >>$CONFIG_STATUS <<_ACEOF
13216 # Files that config.status was made for.
13217 config_files="$ac_config_files"
13218 config_headers="$ac_config_headers"
13219 config_commands="$ac_config_commands"
13221 _ACEOF
13223 cat >>$CONFIG_STATUS <<\_ACEOF
13224 ac_cs_usage="\
13225 \`$as_me' instantiates files from templates according to the
13226 current configuration.
13228 Usage: $0 [OPTIONS] [FILE]...
13230 -h, --help print this help, then exit
13231 -V, --version print version number and configuration settings, then exit
13232 -q, --quiet do not print progress messages
13233 -d, --debug don't remove temporary files
13234 --recheck update $as_me by reconfiguring in the same conditions
13235 --file=FILE[:TEMPLATE]
13236 instantiate the configuration file FILE
13237 --header=FILE[:TEMPLATE]
13238 instantiate the configuration header FILE
13240 Configuration files:
13241 $config_files
13243 Configuration headers:
13244 $config_headers
13246 Configuration commands:
13247 $config_commands
13249 Report bugs to <bug-autoconf@gnu.org>."
13251 _ACEOF
13252 cat >>$CONFIG_STATUS <<_ACEOF
13253 ac_cs_version="\\
13254 config.status
13255 configured by $0, generated by GNU Autoconf 2.61,
13256 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13258 Copyright (C) 2006 Free Software Foundation, Inc.
13259 This config.status script is free software; the Free Software Foundation
13260 gives unlimited permission to copy, distribute and modify it."
13262 ac_pwd='$ac_pwd'
13263 srcdir='$srcdir'
13264 _ACEOF
13266 cat >>$CONFIG_STATUS <<\_ACEOF
13267 # If no file are specified by the user, then we need to provide default
13268 # value. By we need to know if files were specified by the user.
13269 ac_need_defaults=:
13270 while test $# != 0
13272 case $1 in
13273 --*=*)
13274 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13276 ac_shift=:
13279 ac_option=$1
13280 ac_optarg=$2
13281 ac_shift=shift
13283 esac
13285 case $ac_option in
13286 # Handling of the options.
13287 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13288 ac_cs_recheck=: ;;
13289 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13290 echo "$ac_cs_version"; exit ;;
13291 --debug | --debu | --deb | --de | --d | -d )
13292 debug=: ;;
13293 --file | --fil | --fi | --f )
13294 $ac_shift
13295 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13296 ac_need_defaults=false;;
13297 --header | --heade | --head | --hea )
13298 $ac_shift
13299 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13300 ac_need_defaults=false;;
13301 --he | --h)
13302 # Conflict between --help and --header
13303 { echo "$as_me: error: ambiguous option: $1
13304 Try \`$0 --help' for more information." >&2
13305 { (exit 1); exit 1; }; };;
13306 --help | --hel | -h )
13307 echo "$ac_cs_usage"; exit ;;
13308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13310 ac_cs_silent=: ;;
13312 # This is an error.
13313 -*) { echo "$as_me: error: unrecognized option: $1
13314 Try \`$0 --help' for more information." >&2
13315 { (exit 1); exit 1; }; } ;;
13317 *) ac_config_targets="$ac_config_targets $1"
13318 ac_need_defaults=false ;;
13320 esac
13321 shift
13322 done
13324 ac_configure_extra_args=
13326 if $ac_cs_silent; then
13327 exec 6>/dev/null
13328 ac_configure_extra_args="$ac_configure_extra_args --silent"
13331 _ACEOF
13332 cat >>$CONFIG_STATUS <<_ACEOF
13333 if \$ac_cs_recheck; then
13334 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13335 CONFIG_SHELL=$SHELL
13336 export CONFIG_SHELL
13337 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13340 _ACEOF
13341 cat >>$CONFIG_STATUS <<\_ACEOF
13342 exec 5>>config.log
13344 echo
13345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13346 ## Running $as_me. ##
13347 _ASBOX
13348 echo "$ac_log"
13349 } >&5
13351 _ACEOF
13352 cat >>$CONFIG_STATUS <<_ACEOF
13354 # INIT-COMMANDS
13357 aros_host_exe_suffix=${aros_host_exe_suffix}
13358 aros_tools_dir=${aros_tools_dir}
13359 aros_target_cpu=${aros_target_cpu}
13360 aros_target_arch=${aros_target_arch}
13361 aros_target_suffix=${aros_target_suffix}
13362 aros_target_nm_ln=${aros_target_nm_ln}
13363 aros_target_as_ln=${aros_target_as_ln}
13364 aros_target_ar_ln=${aros_target_ar_ln}
13365 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13366 aros_target_objdump_ln=${aros_target_objdump_ln}
13367 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13368 aros_target_strip_ln=${aros_target_strip_ln}
13371 aros_scripts_dir=${aros_scripts_dir}
13373 aros_tools_dir=${aros_tools_dir}
13376 _ACEOF
13378 cat >>$CONFIG_STATUS <<\_ACEOF
13380 # Handling of arguments.
13381 for ac_config_target in $ac_config_targets
13383 case $ac_config_target in
13384 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13385 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13386 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13387 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13388 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13389 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13390 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13391 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13392 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13393 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13394 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13395 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13396 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13397 "${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" ;;
13398 "${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" ;;
13399 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13400 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13401 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13403 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13404 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13405 { (exit 1); exit 1; }; };;
13406 esac
13407 done
13410 # If the user did not use the arguments to specify the items to instantiate,
13411 # then the envvar interface is used. Set only those that are not.
13412 # We use the long form for the default assignment because of an extremely
13413 # bizarre bug on SunOS 4.1.3.
13414 if $ac_need_defaults; then
13415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13416 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13420 # Have a temporary directory for convenience. Make it in the build tree
13421 # simply because there is no reason against having it here, and in addition,
13422 # creating and moving files from /tmp can sometimes cause problems.
13423 # Hook for its removal unless debugging.
13424 # Note that there is a small window in which the directory will not be cleaned:
13425 # after its creation but before its name has been assigned to `$tmp'.
13426 $debug ||
13428 tmp=
13429 trap 'exit_status=$?
13430 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13432 trap '{ (exit 1); exit 1; }' 1 2 13 15
13434 # Create a (secure) tmp directory for tmp files.
13437 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13438 test -n "$tmp" && test -d "$tmp"
13439 } ||
13441 tmp=./conf$$-$RANDOM
13442 (umask 077 && mkdir "$tmp")
13443 } ||
13445 echo "$me: cannot create a temporary directory in ." >&2
13446 { (exit 1); exit 1; }
13450 # Set up the sed scripts for CONFIG_FILES section.
13453 # No need to generate the scripts if there are no CONFIG_FILES.
13454 # This happens for instance when ./config.status config.h
13455 if test -n "$CONFIG_FILES"; then
13457 _ACEOF
13461 ac_delim='%!_!# '
13462 for ac_last_try in false false false false false :; do
13463 cat >conf$$subs.sed <<_ACEOF
13464 SHELL!$SHELL$ac_delim
13465 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13466 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13467 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13468 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13469 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13470 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13471 exec_prefix!$exec_prefix$ac_delim
13472 prefix!$prefix$ac_delim
13473 program_transform_name!$program_transform_name$ac_delim
13474 bindir!$bindir$ac_delim
13475 sbindir!$sbindir$ac_delim
13476 libexecdir!$libexecdir$ac_delim
13477 datarootdir!$datarootdir$ac_delim
13478 datadir!$datadir$ac_delim
13479 sysconfdir!$sysconfdir$ac_delim
13480 sharedstatedir!$sharedstatedir$ac_delim
13481 localstatedir!$localstatedir$ac_delim
13482 includedir!$includedir$ac_delim
13483 oldincludedir!$oldincludedir$ac_delim
13484 docdir!$docdir$ac_delim
13485 infodir!$infodir$ac_delim
13486 htmldir!$htmldir$ac_delim
13487 dvidir!$dvidir$ac_delim
13488 pdfdir!$pdfdir$ac_delim
13489 psdir!$psdir$ac_delim
13490 libdir!$libdir$ac_delim
13491 localedir!$localedir$ac_delim
13492 mandir!$mandir$ac_delim
13493 DEFS!$DEFS$ac_delim
13494 ECHO_C!$ECHO_C$ac_delim
13495 ECHO_N!$ECHO_N$ac_delim
13496 ECHO_T!$ECHO_T$ac_delim
13497 LIBS!$LIBS$ac_delim
13498 build_alias!$build_alias$ac_delim
13499 host_alias!$host_alias$ac_delim
13500 target_alias!$target_alias$ac_delim
13501 build!$build$ac_delim
13502 build_cpu!$build_cpu$ac_delim
13503 build_vendor!$build_vendor$ac_delim
13504 build_os!$build_os$ac_delim
13505 host!$host$ac_delim
13506 host_cpu!$host_cpu$ac_delim
13507 host_vendor!$host_vendor$ac_delim
13508 host_os!$host_os$ac_delim
13509 CC!$CC$ac_delim
13510 CFLAGS!$CFLAGS$ac_delim
13511 LDFLAGS!$LDFLAGS$ac_delim
13512 CPPFLAGS!$CPPFLAGS$ac_delim
13513 ac_ct_CC!$ac_ct_CC$ac_delim
13514 EXEEXT!$EXEEXT$ac_delim
13515 OBJEXT!$OBJEXT$ac_delim
13516 CPP!$CPP$ac_delim
13517 AWK!$AWK$ac_delim
13518 MMAKE!$MMAKE$ac_delim
13519 aros_host_ld!$aros_host_ld$ac_delim
13520 aros_host_aclocal!$aros_host_aclocal$ac_delim
13521 aros_host_autoconf!$aros_host_autoconf$ac_delim
13522 aros_host_autoheader!$aros_host_autoheader$ac_delim
13523 aros_host_automake!$aros_host_automake$ac_delim
13524 aros_host_ar!$aros_host_ar$ac_delim
13525 aros_host_ranlib!$aros_host_ranlib$ac_delim
13526 aros_host_strip!$aros_host_strip$ac_delim
13527 RM!$RM$ac_delim
13528 CP!$CP$ac_delim
13529 MV!$MV$ac_delim
13530 ECHO!$ECHO$ac_delim
13531 MKDIR!$MKDIR$ac_delim
13532 TOUCH!$TOUCH$ac_delim
13533 SORT!$SORT$ac_delim
13534 UNIQ!$UNIQ$ac_delim
13535 NOP!$NOP$ac_delim
13536 CAT!$CAT$ac_delim
13537 BISON!$BISON$ac_delim
13538 FLEX!$FLEX$ac_delim
13539 PNGTOPNM!$PNGTOPNM$ac_delim
13540 PPMTOILBM!$PPMTOILBM$ac_delim
13541 SED!$SED$ac_delim
13542 CHMOD!$CHMOD$ac_delim
13543 PYTHON!$PYTHON$ac_delim
13544 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13545 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13546 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13547 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13548 pythondir!$pythondir$ac_delim
13549 pkgpythondir!$pkgpythondir$ac_delim
13550 pyexecdir!$pyexecdir$ac_delim
13551 pkgpyexecdir!$pkgpyexecdir$ac_delim
13552 FOR!$FOR$ac_delim
13553 IF!$IF$ac_delim
13554 TEST!$TEST$ac_delim
13555 CMP!$CMP$ac_delim
13556 GREP!$GREP$ac_delim
13557 EGREP!$EGREP$ac_delim
13558 LIBOBJS!$LIBOBJS$ac_delim
13559 DISTCC!$DISTCC$ac_delim
13560 CCACHE!$CCACHE$ac_delim
13561 _ACEOF
13563 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13564 break
13565 elif $ac_last_try; then
13566 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13568 { (exit 1); exit 1; }; }
13569 else
13570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13572 done
13574 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13575 if test -n "$ac_eof"; then
13576 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13577 ac_eof=`expr $ac_eof + 1`
13580 cat >>$CONFIG_STATUS <<_ACEOF
13581 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13583 _ACEOF
13584 sed '
13585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13586 s/^/s,@/; s/!/@,|#_!!_#|/
13589 s/'"$ac_delim"'$/,g/; t
13590 s/$/\\/; p
13591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13592 ' >>$CONFIG_STATUS <conf$$subs.sed
13593 rm -f conf$$subs.sed
13594 cat >>$CONFIG_STATUS <<_ACEOF
13595 CEOF$ac_eof
13596 _ACEOF
13599 ac_delim='%!_!# '
13600 for ac_last_try in false false false false false :; do
13601 cat >conf$$subs.sed <<_ACEOF
13602 aros_target_cc!$aros_target_cc$ac_delim
13603 aros_target_ld!$aros_target_ld$ac_delim
13604 aros_target_as_ln!$aros_target_as_ln$ac_delim
13605 aros_kernel_ld!$aros_kernel_ld$ac_delim
13606 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13607 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13608 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13609 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13610 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13611 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13612 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13613 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13614 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13615 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13616 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13617 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13618 host_cflags_iquote!$host_cflags_iquote$ac_delim
13619 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13620 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13621 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13622 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13623 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13624 XMKMF!$XMKMF$ac_delim
13625 SDL_CONFIG!$SDL_CONFIG$ac_delim
13626 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13627 SDL_LIBS!$SDL_LIBS$ac_delim
13628 aros_arch!$aros_arch$ac_delim
13629 aros_cpu!$aros_cpu$ac_delim
13630 aros_flavour!$aros_flavour$ac_delim
13631 aros_flavour_uc!$aros_flavour_uc$ac_delim
13632 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13633 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13634 SRCDIR!$SRCDIR$ac_delim
13635 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13636 aros_cc_pre!$aros_cc_pre$ac_delim
13637 aros_host_arch!$aros_host_arch$ac_delim
13638 aros_host_cpu!$aros_host_cpu$ac_delim
13639 aros_host_cc!$aros_host_cc$ac_delim
13640 aros_host_make!$aros_host_make$ac_delim
13641 aros_host_cflags!$aros_host_cflags$ac_delim
13642 aros_host_ldflags!$aros_host_ldflags$ac_delim
13643 aros_host_debug!$aros_host_debug$ac_delim
13644 aros_host_mkdep!$aros_host_mkdep$ac_delim
13645 aros_host_mkargs!$aros_host_mkargs$ac_delim
13646 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13647 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13648 aros_tools_dir!$aros_tools_dir$ac_delim
13649 aros_target_guitheme!$aros_target_guitheme$ac_delim
13650 aros_target_iconset!$aros_target_iconset$ac_delim
13651 aros_target_bootloader!$aros_target_bootloader$ac_delim
13652 aros_target_arch!$aros_target_arch$ac_delim
13653 aros_target_cpu!$aros_target_cpu$ac_delim
13654 aros_target_variant!$aros_target_variant$ac_delim
13655 aros_target_suffix!$aros_target_suffix$ac_delim
13656 aros_target_incl!$aros_target_incl$ac_delim
13657 aros_target_ar!$aros_target_ar$ac_delim
13658 aros_target_ranlib!$aros_target_ranlib$ac_delim
13659 aros_kernel_nm!$aros_kernel_nm$ac_delim
13660 orig_target_cc!$orig_target_cc$ac_delim
13661 aros_target_cxx!$aros_target_cxx$ac_delim
13662 aros_kernel_cc!$aros_kernel_cc$ac_delim
13663 aros_target_as!$aros_target_as$ac_delim
13664 orig_target_ld!$orig_target_ld$ac_delim
13665 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13666 aros_target_cc_path!$aros_target_cc_path$ac_delim
13667 aros_target_objdump!$aros_target_objdump$ac_delim
13668 aros_target_objcopy!$aros_target_objcopy$ac_delim
13669 aros_target_strip!$aros_target_strip$ac_delim
13670 aros_target_nm!$aros_target_nm$ac_delim
13671 aros_shared_default!$aros_shared_default$ac_delim
13672 aros_shared_ld!$aros_shared_ld$ac_delim
13673 aros_object_format!$aros_object_format$ac_delim
13674 aros_compiler_libs!$aros_compiler_libs$ac_delim
13675 aros_arch_libs!$aros_arch_libs$ac_delim
13676 aros_config_cflags!$aros_config_cflags$ac_delim
13677 aros_config_aflags!$aros_config_aflags$ac_delim
13678 aros_config_ldflags!$aros_config_ldflags$ac_delim
13679 aros_shared_cflags!$aros_shared_cflags$ac_delim
13680 aros_shared_aflags!$aros_shared_aflags$ac_delim
13681 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13682 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13683 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
13684 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13685 aros_debug_cflags!$aros_debug_cflags$ac_delim
13686 aros_debug_aflags!$aros_debug_aflags$ac_delim
13687 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13688 aros_target_genmap!$aros_target_genmap$ac_delim
13689 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13690 x11_hidd_target!$x11_hidd_target$ac_delim
13691 sdl_hidd_target!$sdl_hidd_target$ac_delim
13692 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13693 aros_default_wbheight!$aros_default_wbheight$ac_delim
13694 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13695 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13696 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13697 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13698 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13699 _ACEOF
13701 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13702 break
13703 elif $ac_last_try; then
13704 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13705 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13706 { (exit 1); exit 1; }; }
13707 else
13708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13710 done
13712 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13713 if test -n "$ac_eof"; then
13714 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13715 ac_eof=`expr $ac_eof + 1`
13718 cat >>$CONFIG_STATUS <<_ACEOF
13719 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13721 _ACEOF
13722 sed '
13723 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13724 s/^/s,@/; s/!/@,|#_!!_#|/
13727 s/'"$ac_delim"'$/,g/; t
13728 s/$/\\/; p
13729 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13730 ' >>$CONFIG_STATUS <conf$$subs.sed
13731 rm -f conf$$subs.sed
13732 cat >>$CONFIG_STATUS <<_ACEOF
13733 CEOF$ac_eof
13734 _ACEOF
13737 ac_delim='%!_!# '
13738 for ac_last_try in false false false false false :; do
13739 cat >conf$$subs.sed <<_ACEOF
13740 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13741 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13742 aros_serial_debug!$aros_serial_debug$ac_delim
13743 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13744 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13745 aros_ios_platform!$aros_ios_platform$ac_delim
13746 aros_ios_version!$aros_ios_version$ac_delim
13747 aros_ios_sdk!$aros_ios_sdk$ac_delim
13748 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13749 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13750 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13751 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13752 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13753 ENABLE_X11!$ENABLE_X11$ac_delim
13754 aros_debug!$aros_debug$ac_delim
13755 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13756 aros_stack_debug!$aros_stack_debug$ac_delim
13757 aros_modules_debug!$aros_modules_debug$ac_delim
13758 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13759 gcc_target_cpu!$gcc_target_cpu$ac_delim
13760 LTLIBOBJS!$LTLIBOBJS$ac_delim
13761 _ACEOF
13763 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
13764 break
13765 elif $ac_last_try; then
13766 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13767 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13768 { (exit 1); exit 1; }; }
13769 else
13770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13772 done
13774 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13775 if test -n "$ac_eof"; then
13776 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13777 ac_eof=`expr $ac_eof + 1`
13780 cat >>$CONFIG_STATUS <<_ACEOF
13781 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13783 _ACEOF
13784 sed '
13785 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13786 s/^/s,@/; s/!/@,|#_!!_#|/
13789 s/'"$ac_delim"'$/,g/; t
13790 s/$/\\/; p
13791 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13792 ' >>$CONFIG_STATUS <conf$$subs.sed
13793 rm -f conf$$subs.sed
13794 cat >>$CONFIG_STATUS <<_ACEOF
13795 :end
13796 s/|#_!!_#|//g
13797 CEOF$ac_eof
13798 _ACEOF
13801 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13802 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13803 # trailing colons and then remove the whole line if VPATH becomes empty
13804 # (actually we leave an empty line to preserve line numbers).
13805 if test "x$srcdir" = x.; then
13806 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13807 s/:*\$(srcdir):*/:/
13808 s/:*\${srcdir}:*/:/
13809 s/:*@srcdir@:*/:/
13810 s/^\([^=]*=[ ]*\):*/\1/
13811 s/:*$//
13812 s/^[^=]*=[ ]*$//
13816 cat >>$CONFIG_STATUS <<\_ACEOF
13817 fi # test -n "$CONFIG_FILES"
13820 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13822 case $ac_tag in
13823 :[FHLC]) ac_mode=$ac_tag; continue;;
13824 esac
13825 case $ac_mode$ac_tag in
13826 :[FHL]*:*);;
13827 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13828 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13829 { (exit 1); exit 1; }; };;
13830 :[FH]-) ac_tag=-:-;;
13831 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13832 esac
13833 ac_save_IFS=$IFS
13834 IFS=:
13835 set x $ac_tag
13836 IFS=$ac_save_IFS
13837 shift
13838 ac_file=$1
13839 shift
13841 case $ac_mode in
13842 :L) ac_source=$1;;
13843 :[FH])
13844 ac_file_inputs=
13845 for ac_f
13847 case $ac_f in
13848 -) ac_f="$tmp/stdin";;
13849 *) # Look for the file first in the build tree, then in the source tree
13850 # (if the path is not absolute). The absolute path cannot be DOS-style,
13851 # because $ac_f cannot contain `:'.
13852 test -f "$ac_f" ||
13853 case $ac_f in
13854 [\\/$]*) false;;
13855 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13856 esac ||
13857 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13858 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13859 { (exit 1); exit 1; }; };;
13860 esac
13861 ac_file_inputs="$ac_file_inputs $ac_f"
13862 done
13864 # Let's still pretend it is `configure' which instantiates (i.e., don't
13865 # use $as_me), people would be surprised to read:
13866 # /* config.h. Generated by config.status. */
13867 configure_input="Generated from "`IFS=:
13868 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13869 if test x"$ac_file" != x-; then
13870 configure_input="$ac_file. $configure_input"
13871 { echo "$as_me:$LINENO: creating $ac_file" >&5
13872 echo "$as_me: creating $ac_file" >&6;}
13875 case $ac_tag in
13876 *:-:* | *:-) cat >"$tmp/stdin";;
13877 esac
13879 esac
13881 ac_dir=`$as_dirname -- "$ac_file" ||
13882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13883 X"$ac_file" : 'X\(//\)[^/]' \| \
13884 X"$ac_file" : 'X\(//\)$' \| \
13885 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13886 echo X"$ac_file" |
13887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13888 s//\1/
13891 /^X\(\/\/\)[^/].*/{
13892 s//\1/
13895 /^X\(\/\/\)$/{
13896 s//\1/
13899 /^X\(\/\).*/{
13900 s//\1/
13903 s/.*/./; q'`
13904 { as_dir="$ac_dir"
13905 case $as_dir in #(
13906 -*) as_dir=./$as_dir;;
13907 esac
13908 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13909 as_dirs=
13910 while :; do
13911 case $as_dir in #(
13912 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13913 *) as_qdir=$as_dir;;
13914 esac
13915 as_dirs="'$as_qdir' $as_dirs"
13916 as_dir=`$as_dirname -- "$as_dir" ||
13917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13918 X"$as_dir" : 'X\(//\)[^/]' \| \
13919 X"$as_dir" : 'X\(//\)$' \| \
13920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13921 echo X"$as_dir" |
13922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13923 s//\1/
13926 /^X\(\/\/\)[^/].*/{
13927 s//\1/
13930 /^X\(\/\/\)$/{
13931 s//\1/
13934 /^X\(\/\).*/{
13935 s//\1/
13938 s/.*/./; q'`
13939 test -d "$as_dir" && break
13940 done
13941 test -z "$as_dirs" || eval "mkdir $as_dirs"
13942 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13943 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13944 { (exit 1); exit 1; }; }; }
13945 ac_builddir=.
13947 case "$ac_dir" in
13948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13951 # A ".." for each directory in $ac_dir_suffix.
13952 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13953 case $ac_top_builddir_sub in
13954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13956 esac ;;
13957 esac
13958 ac_abs_top_builddir=$ac_pwd
13959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13960 # for backward compatibility:
13961 ac_top_builddir=$ac_top_build_prefix
13963 case $srcdir in
13964 .) # We are building in place.
13965 ac_srcdir=.
13966 ac_top_srcdir=$ac_top_builddir_sub
13967 ac_abs_top_srcdir=$ac_pwd ;;
13968 [\\/]* | ?:[\\/]* ) # Absolute name.
13969 ac_srcdir=$srcdir$ac_dir_suffix;
13970 ac_top_srcdir=$srcdir
13971 ac_abs_top_srcdir=$srcdir ;;
13972 *) # Relative name.
13973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13974 ac_top_srcdir=$ac_top_build_prefix$srcdir
13975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13976 esac
13977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13980 case $ac_mode in
13983 # CONFIG_FILE
13986 _ACEOF
13988 cat >>$CONFIG_STATUS <<\_ACEOF
13989 # If the template does not know about datarootdir, expand it.
13990 # FIXME: This hack should be removed a few years after 2.60.
13991 ac_datarootdir_hack=; ac_datarootdir_seen=
13993 case `sed -n '/datarootdir/ {
13997 /@datadir@/p
13998 /@docdir@/p
13999 /@infodir@/p
14000 /@localedir@/p
14001 /@mandir@/p
14002 ' $ac_file_inputs` in
14003 *datarootdir*) ac_datarootdir_seen=yes;;
14004 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14005 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14006 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14007 _ACEOF
14008 cat >>$CONFIG_STATUS <<_ACEOF
14009 ac_datarootdir_hack='
14010 s&@datadir@&$datadir&g
14011 s&@docdir@&$docdir&g
14012 s&@infodir@&$infodir&g
14013 s&@localedir@&$localedir&g
14014 s&@mandir@&$mandir&g
14015 s&\\\${datarootdir}&$datarootdir&g' ;;
14016 esac
14017 _ACEOF
14019 # Neutralize VPATH when `$srcdir' = `.'.
14020 # Shell code in configure.ac might set extrasub.
14021 # FIXME: do we really want to maintain this feature?
14022 cat >>$CONFIG_STATUS <<_ACEOF
14023 sed "$ac_vpsub
14024 $extrasub
14025 _ACEOF
14026 cat >>$CONFIG_STATUS <<\_ACEOF
14028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14029 s&@configure_input@&$configure_input&;t t
14030 s&@top_builddir@&$ac_top_builddir_sub&;t t
14031 s&@srcdir@&$ac_srcdir&;t t
14032 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14033 s&@top_srcdir@&$ac_top_srcdir&;t t
14034 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14035 s&@builddir@&$ac_builddir&;t t
14036 s&@abs_builddir@&$ac_abs_builddir&;t t
14037 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14038 $ac_datarootdir_hack
14039 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
14041 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14042 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14043 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14044 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14045 which seems to be undefined. Please make sure it is defined." >&5
14046 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14047 which seems to be undefined. Please make sure it is defined." >&2;}
14049 rm -f "$tmp/stdin"
14050 case $ac_file in
14051 -) cat "$tmp/out"; rm -f "$tmp/out";;
14052 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14053 esac
14057 # CONFIG_HEADER
14059 _ACEOF
14061 # Transform confdefs.h into a sed script `conftest.defines', that
14062 # substitutes the proper values into config.h.in to produce config.h.
14063 rm -f conftest.defines conftest.tail
14064 # First, append a space to every undef/define line, to ease matching.
14065 echo 's/$/ /' >conftest.defines
14066 # Then, protect against being on the right side of a sed subst, or in
14067 # an unquoted here document, in config.status. If some macros were
14068 # called several times there might be several #defines for the same
14069 # symbol, which is useless. But do not sort them, since the last
14070 # AC_DEFINE must be honored.
14071 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14072 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14073 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14074 # PARAMS is the parameter list in the macro definition--in most cases, it's
14075 # just an empty string.
14076 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14077 ac_dB='\\)[ (].*,\\1define\\2'
14078 ac_dC=' '
14079 ac_dD=' ,'
14081 uniq confdefs.h |
14082 sed -n '
14083 t rset
14084 :rset
14085 s/^[ ]*#[ ]*define[ ][ ]*//
14086 t ok
14089 s/[\\&,]/\\&/g
14090 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14091 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14092 ' >>conftest.defines
14094 # Remove the space that was appended to ease matching.
14095 # Then replace #undef with comments. This is necessary, for
14096 # example, in the case of _POSIX_SOURCE, which is predefined and required
14097 # on some systems where configure will not decide to define it.
14098 # (The regexp can be short, since the line contains either #define or #undef.)
14099 echo 's/ $//
14100 s,^[ #]*u.*,/* & */,' >>conftest.defines
14102 # Break up conftest.defines:
14103 ac_max_sed_lines=50
14105 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14106 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14107 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14108 # et cetera.
14109 ac_in='$ac_file_inputs'
14110 ac_out='"$tmp/out1"'
14111 ac_nxt='"$tmp/out2"'
14113 while :
14115 # Write a here document:
14116 cat >>$CONFIG_STATUS <<_ACEOF
14117 # First, check the format of the line:
14118 cat >"\$tmp/defines.sed" <<\\CEOF
14119 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14120 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14122 :def
14123 _ACEOF
14124 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14125 echo 'CEOF
14126 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14127 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14128 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14129 grep . conftest.tail >/dev/null || break
14130 rm -f conftest.defines
14131 mv conftest.tail conftest.defines
14132 done
14133 rm -f conftest.defines conftest.tail
14135 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14136 cat >>$CONFIG_STATUS <<\_ACEOF
14137 if test x"$ac_file" != x-; then
14138 echo "/* $configure_input */" >"$tmp/config.h"
14139 cat "$ac_result" >>"$tmp/config.h"
14140 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14141 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14142 echo "$as_me: $ac_file is unchanged" >&6;}
14143 else
14144 rm -f $ac_file
14145 mv "$tmp/config.h" $ac_file
14147 else
14148 echo "/* $configure_input */"
14149 cat "$ac_result"
14151 rm -f "$tmp/out12"
14154 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14155 echo "$as_me: executing $ac_file commands" >&6;}
14157 esac
14160 case $ac_file$ac_mode in
14161 "compiler_executable":C)
14162 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14163 mkdir -p $prefix
14164 prefix="${prefix}/${aros_target_cpu}-aros"
14165 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14167 echo ${prefix}
14168 echo ${prefix2}
14169 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14171 ln -sf ${prefix2}-gcc ${prefix}-gcc
14172 ln -sf ${prefix2}-ld ${prefix}-ld
14174 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14175 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14176 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14177 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14178 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14179 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14180 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14182 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14183 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14184 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14185 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14186 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14187 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14188 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14190 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14191 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14193 esac
14194 done # for ac_tag
14197 { (exit 0); exit 0; }
14198 _ACEOF
14199 chmod +x $CONFIG_STATUS
14200 ac_clean_files=$ac_clean_files_save
14203 # configure is writing to config.log, and then calls config.status.
14204 # config.status does its own redirection, appending to config.log.
14205 # Unfortunately, on DOS this fails, as config.log is still kept open
14206 # by configure, so config.status won't be able to write to it; its
14207 # output is simply discarded. So we exec the FD to /dev/null,
14208 # effectively closing config.log, so it can be properly (re)opened and
14209 # appended to by config.status. When coming back to configure, we
14210 # need to make the FD available again.
14211 if test "$no_create" != yes; then
14212 ac_cs_success=:
14213 ac_config_status_args=
14214 test "$silent" = yes &&
14215 ac_config_status_args="$ac_config_status_args --quiet"
14216 exec 5>/dev/null
14217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14218 exec 5>>config.log
14219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14220 # would make configure fail if this is the last instruction.
14221 $ac_cs_success || { (exit 1); exit 1; }
14226 #XXX compatability...
14227 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14229 if test -n "$aros_shared_cflags" ; then
14230 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14231 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg