rom/aros/mmakefile.src: linklibs-core -> core-linklibs
[AROS.git] / configure
blob0c199c59ca9c65c410d6a5b100836ba92c211ba6
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 PATCH
696 PYTHON
697 PYTHON_VERSION
698 PYTHON_PREFIX
699 PYTHON_EXEC_PREFIX
700 PYTHON_PLATFORM
701 pythondir
702 pkgpythondir
703 pyexecdir
704 pkgpyexecdir
707 TEST
709 GREP
710 EGREP
711 LIBOBJS
712 DISTCC
713 CCACHE
714 android_tool
716 aros_kernel_rescomp
717 aros_kernel_ld
718 aros_kernel_ar
719 aros_kernel_ranlib
720 aros_target_as_ln
721 aros_target_ar_ln
722 aros_target_nm_ln
723 aros_target_objcopy_ln
724 aros_target_objdump_ln
725 aros_target_ranlib_ln
726 aros_target_strip_ln
727 aros_target_cxx
728 aros_target_cc
729 aros_target_ld
730 aros_target_nostdinc_cflags
731 aros_target_nostartup_ldflags
732 aros_target_nix_ldflags
733 aros_target_detach_ldflags
734 aros_target_nostdlib_ldflags
735 host_cflags_iquote
736 host_cflags_iquote_end
737 kernel_cflags_iquote
738 kernel_cflags_iquote_end
739 aros_cflags_iquote
740 aros_cflags_iquote_end
741 XMKMF
742 SDL_CONFIG
743 SDL_CFLAGS
744 SDL_LIBS
745 aros_arch
746 aros_cpu
747 aros_flavour
748 aros_flavour_uc
749 AROS_BUILDDIR
750 AROS_BUILDDIR_UNIX
751 SRCDIR
752 AROS_CROSSTOOLSDIR
753 AROS_PORTSSRCDIR
754 aros_amigaos_compliance
755 aros_cc_pre
756 aros_host_arch
757 aros_host_cpu
758 aros_host_cc
759 aros_host_make
760 aros_host_cflags
761 gnu89_inline
762 aros_host_ldflags
763 aros_host_debug
764 aros_host_mkdep
765 aros_host_mkargs
766 aros_host_exe_suffix
767 aros_host_lib_suffix
768 aros_tools_dir
769 aros_target_guitheme
770 aros_target_iconset
771 aros_target_bootloader
772 aros_target_arch
773 aros_target_family
774 aros_target_cpu
775 aros_target_variant
776 aros_target_suffix
777 aros_target_incl
778 aros_target_ar
779 aros_target_ranlib
780 aros_plain_nm
781 aros_plain_ar
782 orig_target_cc
783 aros_kernel_cc
784 aros_target_as
785 orig_target_ld
786 aros_target_cc_includes
787 aros_target_cc_path
788 aros_target_objdump
789 aros_target_objcopy
790 aros_target_strip
791 aros_target_nm
792 aros_shared_default
793 aros_shared_ld
794 aros_object_format
795 aros_compiler_libs
796 aros_arch_libs
797 aros_config_cflags
798 aros_config_aflags
799 aros_config_ldflags
800 aros_shared_cflags
801 aros_shared_aflags
802 aros_shared_ldflags
803 aros_kernel_cflags
804 aros_kernel_includes
805 aros_kernel_objcflags
806 aros_kernel_ldflags
807 aros_target_cflags
808 aros_debug_cflags
809 aros_debug_aflags
810 aros_debug_ldflags
811 aros_target_genmap
812 aros_target_strip_flags
813 crosstools_target
814 crosstools_cxx_target
815 x11_hidd_target
816 sdl_hidd_target
817 pci_hidd_target
818 oss_library_target
819 aros_default_wbwidth
820 aros_default_wbheight
821 aros_default_wbdepth
822 DO_XSHM_SUPPORT
823 DO_VIDMODE_SUPPORT
824 aros_host_x11_includes
825 aros_host_x11_libdirs
826 aros_host_sdl_cflags
827 aros_host_sdl_libs
828 aros_serial_debug
829 aros_palm_debug_hack
830 aros_usb30_code
831 aros_nesting_supervisor
832 aros_enable_mmu
833 aros_ios_platform
834 aros_ios_version
835 aros_ios_sdk
836 aros_android_level
837 ENABLE_DBUS
838 DBUS_CFLAGS
839 DBUS_LIBFLAGS
840 KERNEL_DBUS_KOBJ
841 KERNEL_DBUS_INCLUDES
842 ENABLE_X11
843 aros_debug
844 aros_mungwall_debug
845 aros_stack_debug
846 aros_modules_debug
847 ignore_undefined_symbols
848 gcc_target_cpu
849 LTLIBOBJS'
850 ac_subst_files=''
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
860 XMKMF'
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
909 ac_prev=
910 ac_dashdash=
911 for ac_option
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
920 case $ac_option in
921 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *) ac_optarg=yes ;;
923 esac
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
929 ac_dashdash=yes ;;
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
948 --config-cache | -C)
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
982 -enable-* | --enable-*)
983 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
986 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
987 { (exit 1); exit 1; }; }
988 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
989 eval enable_$ac_feature=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid package name: $ac_package" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1186 eval with_$ac_package=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=no ;;
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1215 -*) { echo "$as_me: error: unrecognized option: $ac_option
1216 Try \`$0 --help' for more information." >&2
1217 { (exit 1); exit 1; }; }
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1225 { (exit 1); exit 1; }; }
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1230 # FIXME: should be removed in autoconf 3.0.
1231 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1237 esac
1238 done
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 { echo "$as_me: error: missing argument to $ac_option" >&2
1243 { (exit 1); exit 1; }; }
1246 # Be sure to have absolute directory names.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1258 { (exit 1); exit 1; }; }
1259 done
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used." >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 { echo "$as_me: error: Working directory cannot be determined" >&2
1289 { (exit 1); exit 1; }; }
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 { echo "$as_me: error: pwd does not report name of working directory" >&2
1292 { (exit 1); exit 1; }; }
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$0" ||
1300 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$0" : 'X\(//\)[^/]' \| \
1302 X"$0" : 'X\(//\)$' \| \
1303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1304 echo X"$0" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1313 /^X\(\/\/\)$/{
1314 s//\1/
1317 /^X\(\/\).*/{
1318 s//\1/
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1326 else
1327 ac_srcdir_defaulted=no
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1332 { (exit 1); exit 1; }; }
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1337 { (exit 1); exit 1; }; }
1338 pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 srcdir=.
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1362 cat <<_ACEOF
1363 \`configure' configures this package to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1372 Configuration:
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 [PREFIX]
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1418 cat <<\_ACEOF
1420 X features:
1421 --x-includes=DIR X include files are in DIR
1422 --x-libraries=DIR X library files are in DIR
1424 System types:
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 _ACEOF
1430 if test -n "$ac_init_help"; then
1432 cat <<\_ACEOF
1434 Optional Features:
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-build-type=TYPE
1438 Select the build type. Available types are:
1439 personal, nightly, snapshot, milestone, release. Do
1440 NOT use this option unless you know what you are
1441 doing! (default=personal)
1442 --enable-debug=list Enable different types of debug. Commas or
1443 whitespaces can be used to separate the items in the
1444 list. Available types of debug are: all, none,
1445 messages, stack, mungwall, modules, symbols. If no
1446 list is provided then "all" is assumed.
1447 (default=none)
1448 --enable-crosstools Build cross-compiler toolchains if necessary
1449 (default=no).
1450 --enable-distcc Use distcc as a front end to the compiler
1451 (default=no).
1452 --enable-ccache Use ccache as a front end to the compiler
1453 (default=no).
1454 --enable-target-variant=NAME
1455 Enable a specific target variant(default=none)
1456 --enable-amigaos-compliance=VERSION
1457 Enforce userspace AmigaOS compliance to a specific
1458 KickStart version (default=none).
1459 --enable-includes=dir Alternative system include directory
1460 --enable-palm-debug-hack
1461 Enable palm debug output hack in palm native
1462 (default=no)
1463 --enable-usb30-code Enable usb3.0 code (default=no)
1464 --enable-nesting-supervisor
1465 Enable nesting supervisor support in unix
1466 (default=no)
1467 --disable-mmu Disable MMU support (default=enabled)
1468 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1469 --enable-x11-shm use X11 shared memory (default=auto)
1470 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1471 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1472 --disable-sdltest Do not try to compile and run a test SDL program
1473 --enable-dbus Enable DBUS support via dbus.library (default=no)
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-gcc-version=VERSION
1479 Use host gcc-VERSION for building AROS
1480 --with-optimization=FLAGS
1481 Use optimization flags FLAGS (default=-O2).
1482 --with-paranoia=FLAGS CC flags to enable paranoia
1483 --with-xcode=PATH Specify XCode path for iOS targets
1484 (default=/Developer).
1485 --with-ios-version=VERSION
1486 Specify minimum supported iOS version (default=3.0).
1487 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1488 --with-sdk=PATH Specify Android SDK path
1489 (default=$default_android_sdk).
1490 --with-ndk=PATH Specify Android NDK path (default=none).
1491 --with-sdk-version=LEVEL
1492 Use Android SDK for API LEVEL (default=8).
1493 --with-ndk-version=LEVEL
1494 Use Android NDK for API LEVEL (default=9).
1495 --with-crosstools=DIR Where to install or search for cross tools binaries
1496 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1497 --with-portssources=DIR Where to download sourcecode for external ports
1498 --with-bootloader=NAME Use a specific bootloader
1499 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1500 --with-theme=NAME Use a specific GUI Theme
1501 --with-resolution=XRESxYRESxDEPTH
1502 Default resolution of the initial WorkbenchScreen
1503 --with-serial-debug Enable serial debug output in native (default=no)
1504 --with-x use the X Window System
1505 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1506 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CPP C preprocessor
1517 XMKMF Path to xmkmf, Makefile generator for X Window System
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1522 _ACEOF
1523 ac_status=$?
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" || continue
1530 ac_builddir=.
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1548 case $srcdir in
1549 .) # We are building in place.
1550 ac_srcdir=.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1557 *) # Relative name.
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1572 else
1573 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 fi || ac_status=$?
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1576 done
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581 cat <<\_ACEOF
1582 configure
1583 generated by GNU Autoconf 2.61
1585 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1596 It was created by $as_me, which was
1597 generated by GNU Autoconf 2.61. Invocation command line was
1599 $ $0 $@
1601 _ACEOF
1602 exec 5>>config.log
1604 cat <<_ASUNAME
1605 ## --------- ##
1606 ## Platform. ##
1607 ## --------- ##
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1626 _ASUNAME
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 echo "PATH: $as_dir"
1634 done
1635 IFS=$as_save_IFS
1637 } >&5
1639 cat >&5 <<_ACEOF
1642 ## ----------- ##
1643 ## Core tests. ##
1644 ## ----------- ##
1646 _ACEOF
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1654 ac_configure_args=
1655 ac_configure_args0=
1656 ac_configure_args1=
1657 ac_must_keep_next=false
1658 for ac_pass in 1 2
1660 for ac_arg
1662 case $ac_arg in
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1666 continue ;;
1667 *\'*)
1668 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669 esac
1670 case $ac_pass in
1671 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true; then
1675 ac_must_keep_next=false # Got value, back to normal.
1676 else
1677 case $ac_arg in
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 esac
1686 -* ) ac_must_keep_next=true ;;
1687 esac
1689 ac_configure_args="$ac_configure_args '$ac_arg'"
1691 esac
1692 done
1693 done
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1705 echo
1707 cat <<\_ASBOX
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1711 _ASBOX
1712 echo
1713 # The following way of writing the cache mishandles newlines in values,
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1717 case $ac_val in #(
1718 *${as_nl}*)
1719 case $ac_var in #(
1720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722 esac
1723 case $ac_var in #(
1724 _ | IFS | as_nl) ;; #(
1725 *) $as_unset $ac_var ;;
1726 esac ;;
1727 esac
1728 done
1729 (set) 2>&1 |
1730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
1732 sed -n \
1733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 ;; #(
1737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 esac |
1740 sort
1742 echo
1744 cat <<\_ASBOX
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1748 _ASBOX
1749 echo
1750 for ac_var in $ac_subst_vars
1752 eval ac_val=\$$ac_var
1753 case $ac_val in
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 esac
1756 echo "$ac_var='\''$ac_val'\''"
1757 done | sort
1758 echo
1760 if test -n "$ac_subst_files"; then
1761 cat <<\_ASBOX
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1765 _ASBOX
1766 echo
1767 for ac_var in $ac_subst_files
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1778 if test -s confdefs.h; then
1779 cat <<\_ASBOX
1780 ## ----------- ##
1781 ## confdefs.h. ##
1782 ## ----------- ##
1783 _ASBOX
1784 echo
1785 cat confdefs.h
1786 echo
1788 test "$ac_signal" != 0 &&
1789 echo "$as_me: caught signal $ac_signal"
1790 echo "$as_me: exit $exit_status"
1791 } >&5
1792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794 exit $exit_status
1796 for ac_signal in 1 2 13 15; do
1797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798 done
1799 ac_signal=0
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1804 # Predefined preprocessor variables.
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 _ACEOF
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813 _ACEOF
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818 _ACEOF
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828 _ACEOF
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer explicitly selected file to automatically selected ones.
1833 if test -n "$CONFIG_SITE"; then
1834 set x "$CONFIG_SITE"
1835 elif test "x$prefix" != xNONE; then
1836 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1837 else
1838 set x "$ac_default_prefix/share/config.site" \
1839 "$ac_default_prefix/etc/config.site"
1841 shift
1842 for ac_site_file
1844 if test -r "$ac_site_file"; then
1845 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 echo "$as_me: loading site script $ac_site_file" >&6;}
1847 sed 's/^/| /' "$ac_site_file" >&5
1848 . "$ac_site_file"
1850 done
1852 if test -r "$cache_file"; then
1853 # Some versions of bash will fail to source /dev/null (special
1854 # files actually), so we avoid doing that.
1855 if test -f "$cache_file"; then
1856 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 echo "$as_me: loading cache $cache_file" >&6;}
1858 case $cache_file in
1859 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860 *) . "./$cache_file";;
1861 esac
1863 else
1864 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 echo "$as_me: creating cache $cache_file" >&6;}
1866 >$cache_file
1869 # Check that the precious variables saved in the cache have kept the same
1870 # value.
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1878 set,)
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1882 ,set)
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1886 ,);;
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1892 echo "$as_me: former value: $ac_old_val" >&2;}
1893 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1894 echo "$as_me: current value: $ac_new_val" >&2;}
1895 ac_cache_corrupted=:
1896 fi;;
1897 esac
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1900 case $ac_new_val in
1901 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 *) ac_arg=$ac_var=$ac_new_val ;;
1903 esac
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907 esac
1909 done
1910 if $ac_cache_corrupted; then
1911 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915 { (exit 1); exit 1; }; }
1934 ac_ext=c
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 ac_aux_dir=
1943 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1944 if test -f "$ac_dir/install-sh"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 break
1948 elif test -f "$ac_dir/install.sh"; then
1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 break
1952 elif test -f "$ac_dir/shtool"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 break
1957 done
1958 if test -z "$ac_aux_dir"; then
1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1960 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1961 { (exit 1); exit 1; }; }
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974 # Check what host we are running on.
1975 # If a target is not suggested, we use this one.
1976 # Note that what we call a target, Autoconf calls a host.
1977 # Make sure we can run config.sub.
1978 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1979 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1980 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1981 { (exit 1); exit 1; }; }
1983 { echo "$as_me:$LINENO: checking build system type" >&5
1984 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1985 if test "${ac_cv_build+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 ac_build_alias=$build_alias
1989 test "x$ac_build_alias" = x &&
1990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1991 test "x$ac_build_alias" = x &&
1992 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1993 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1994 { (exit 1); exit 1; }; }
1995 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1996 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1997 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1998 { (exit 1); exit 1; }; }
2001 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2002 echo "${ECHO_T}$ac_cv_build" >&6; }
2003 case $ac_cv_build in
2004 *-*-*) ;;
2005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2006 echo "$as_me: error: invalid value of canonical build" >&2;}
2007 { (exit 1); exit 1; }; };;
2008 esac
2009 build=$ac_cv_build
2010 ac_save_IFS=$IFS; IFS='-'
2011 set x $ac_cv_build
2012 shift
2013 build_cpu=$1
2014 build_vendor=$2
2015 shift; shift
2016 # Remember, the first character of IFS is used to create $*,
2017 # except with old shells:
2018 build_os=$*
2019 IFS=$ac_save_IFS
2020 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2023 { echo "$as_me:$LINENO: checking host system type" >&5
2024 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_host+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test "x$host_alias" = x; then
2029 ac_cv_host=$ac_cv_build
2030 else
2031 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2032 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2033 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2034 { (exit 1); exit 1; }; }
2038 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2039 echo "${ECHO_T}$ac_cv_host" >&6; }
2040 case $ac_cv_host in
2041 *-*-*) ;;
2042 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2043 echo "$as_me: error: invalid value of canonical host" >&2;}
2044 { (exit 1); exit 1; }; };;
2045 esac
2046 host=$ac_cv_host
2047 ac_save_IFS=$IFS; IFS='-'
2048 set x $ac_cv_host
2049 shift
2050 host_cpu=$1
2051 host_vendor=$2
2052 shift; shift
2053 # Remember, the first character of IFS is used to create $*,
2054 # except with old shells:
2055 host_os=$*
2056 IFS=$ac_save_IFS
2057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2061 # The AROS target is slightly different to the normal GNU style
2062 # format. We don't have the middle part, and we reverse the order
2063 # of the $(CPU) and $(OS) bits.
2065 # Don't strip the version of the target yet, it might be
2066 # useful on some systems.
2068 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2069 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2071 if test "$target" = "NONE" ; then
2072 target=$host_os-$host_cpu
2073 else
2074 if test "$target" = "" ; then
2075 target=$host_os-$host_cpu
2078 { echo "$as_me:$LINENO: result: $target" >&5
2079 echo "${ECHO_T}$target" >&6; }
2081 if test "$host_os" = "mingw32" ; then
2082 PWDCMD="pwd -W"
2085 #don't know where else to put this...
2086 { echo "$as_me:$LINENO: checking building AROS in" >&5
2087 echo $ECHO_N "checking building AROS in... $ECHO_C" >&6; }
2088 AROS_BUILDDIR=`${PWDCMD-pwd}`
2089 AROS_BUILDDIR_UNIX=${PWD}
2090 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2091 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2093 { echo "$as_me:$LINENO: checking AROS source in" >&5
2094 echo $ECHO_N "checking AROS source in... $ECHO_C" >&6; }
2095 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2096 SRCDIR=${srcpwd}
2097 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2098 echo "${ECHO_T}$SRCDIR" >&6; }
2100 # Parse the target field into something useful.
2102 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2103 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2106 aros_default_wbwidth=800
2107 aros_default_wbheight=600
2108 aros_default_wbdepth=4
2111 # The first step is to find the host binaries.
2112 # Check for a compiler.
2113 ac_ext=c
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 if test -n "$ac_tool_prefix"; then
2119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2123 if test "${ac_cv_prog_CC+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 if test -n "$CC"; then
2127 ac_cv_prog_CC="$CC" # Let the user override the test.
2128 else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 break 2
2140 done
2141 done
2142 IFS=$as_save_IFS
2146 CC=$ac_cv_prog_CC
2147 if test -n "$CC"; then
2148 { echo "$as_me:$LINENO: result: $CC" >&5
2149 echo "${ECHO_T}$CC" >&6; }
2150 else
2151 { echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6; }
2157 if test -z "$ac_cv_prog_CC"; then
2158 ac_ct_CC=$CC
2159 # Extract the first word of "gcc", so it can be a program name with args.
2160 set dummy gcc; ac_word=$2
2161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 if test -n "$ac_ct_CC"; then
2167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2176 ac_cv_prog_ac_ct_CC="gcc"
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 break 2
2180 done
2181 done
2182 IFS=$as_save_IFS
2186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2187 if test -n "$ac_ct_CC"; then
2188 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2189 echo "${ECHO_T}$ac_ct_CC" >&6; }
2190 else
2191 { echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6; }
2195 if test "x$ac_ct_CC" = x; then
2196 CC=""
2197 else
2198 case $cross_compiling:$ac_tool_warned in
2199 yes:)
2200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2201 whose name does not start with the host triplet. If you think this
2202 configuration is useful to you, please write to autoconf@gnu.org." >&5
2203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2204 whose name does not start with the host triplet. If you think this
2205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2206 ac_tool_warned=yes ;;
2207 esac
2208 CC=$ac_ct_CC
2210 else
2211 CC="$ac_cv_prog_CC"
2214 if test -z "$CC"; then
2215 if test -n "$ac_tool_prefix"; then
2216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2217 set dummy ${ac_tool_prefix}cc; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 ac_cv_prog_CC="${ac_tool_prefix}cc"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 break 2
2237 done
2238 done
2239 IFS=$as_save_IFS
2243 CC=$ac_cv_prog_CC
2244 if test -n "$CC"; then
2245 { echo "$as_me:$LINENO: result: $CC" >&5
2246 echo "${ECHO_T}$CC" >&6; }
2247 else
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2255 if test -z "$CC"; then
2256 # Extract the first word of "cc", so it can be a program name with args.
2257 set dummy cc; ac_word=$2
2258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2260 if test "${ac_cv_prog_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 if test -n "$CC"; then
2264 ac_cv_prog_CC="$CC" # Let the user override the test.
2265 else
2266 ac_prog_rejected=no
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2275 ac_prog_rejected=yes
2276 continue
2278 ac_cv_prog_CC="cc"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2282 done
2283 done
2284 IFS=$as_save_IFS
2286 if test $ac_prog_rejected = yes; then
2287 # We found a bogon in the path, so make sure we never use it.
2288 set dummy $ac_cv_prog_CC
2289 shift
2290 if test $# != 0; then
2291 # We chose a different compiler from the bogus one.
2292 # However, it has the same basename, so the bogon will be chosen
2293 # first if we set CC to just the basename; use the full file name.
2294 shift
2295 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2300 CC=$ac_cv_prog_CC
2301 if test -n "$CC"; then
2302 { echo "$as_me:$LINENO: result: $CC" >&5
2303 echo "${ECHO_T}$CC" >&6; }
2304 else
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2311 if test -z "$CC"; then
2312 if test -n "$ac_tool_prefix"; then
2313 for ac_prog in cl.exe
2315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2336 done
2337 done
2338 IFS=$as_save_IFS
2342 CC=$ac_cv_prog_CC
2343 if test -n "$CC"; then
2344 { echo "$as_me:$LINENO: result: $CC" >&5
2345 echo "${ECHO_T}$CC" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2352 test -n "$CC" && break
2353 done
2355 if test -z "$CC"; then
2356 ac_ct_CC=$CC
2357 for ac_prog in cl.exe
2359 # Extract the first word of "$ac_prog", so it can be a program name with args.
2360 set dummy $ac_prog; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 if test -n "$ac_ct_CC"; then
2367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_ac_ct_CC="$ac_prog"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2380 done
2381 done
2382 IFS=$as_save_IFS
2386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2387 if test -n "$ac_ct_CC"; then
2388 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2389 echo "${ECHO_T}$ac_ct_CC" >&6; }
2390 else
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2396 test -n "$ac_ct_CC" && break
2397 done
2399 if test "x$ac_ct_CC" = x; then
2400 CC=""
2401 else
2402 case $cross_compiling:$ac_tool_warned in
2403 yes:)
2404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&5
2407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet. If you think this
2409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2410 ac_tool_warned=yes ;;
2411 esac
2412 CC=$ac_ct_CC
2419 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: no acceptable C compiler found in \$PATH
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2425 # Provide some information about the compiler.
2426 echo "$as_me:$LINENO: checking for C compiler version" >&5
2427 ac_compiler=`set X $ac_compile; echo $2`
2428 { (ac_try="$ac_compiler --version >&5"
2429 case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432 esac
2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_compiler --version >&5") 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2438 { (ac_try="$ac_compiler -v >&5"
2439 case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2442 esac
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 (eval "$ac_compiler -v >&5") 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }
2448 { (ac_try="$ac_compiler -V >&5"
2449 case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compiler -V >&5") 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }
2459 cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h. */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2467 main ()
2471 return 0;
2473 _ACEOF
2474 ac_clean_files_save=$ac_clean_files
2475 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2476 # Try to create an executable without -o first, disregard a.out.
2477 # It will help us diagnose broken compilers, and finding out an intuition
2478 # of exeext.
2479 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2480 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2481 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2483 # List of possible output files, starting from the most likely.
2484 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2485 # only as a last resort. b.out is created by i960 compilers.
2486 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2488 # The IRIX 6 linker writes into existing files which may not be
2489 # executable, retaining their permissions. Remove them first so a
2490 # subsequent execution test works.
2491 ac_rmfiles=
2492 for ac_file in $ac_files
2494 case $ac_file in
2495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2496 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2497 esac
2498 done
2499 rm -f $ac_rmfiles
2501 if { (ac_try="$ac_link_default"
2502 case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_link_default") 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; then
2511 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2512 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2513 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2514 # so that the user can short-circuit this test for compilers unknown to
2515 # Autoconf.
2516 for ac_file in $ac_files ''
2518 test -f "$ac_file" || continue
2519 case $ac_file in
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2522 [ab].out )
2523 # We found the default executable, but exeext='' is most
2524 # certainly right.
2525 break;;
2526 *.* )
2527 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2528 then :; else
2529 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2531 # We set ac_cv_exeext here because the later test for it is not
2532 # safe: cross compilers may not add the suffix if given an `-o'
2533 # argument, so we may need to know it at that point already.
2534 # Even if this section looks crufty: it has the advantage of
2535 # actually working.
2536 break;;
2538 break;;
2539 esac
2540 done
2541 test "$ac_cv_exeext" = no && ac_cv_exeext=
2543 else
2544 ac_file=''
2547 { echo "$as_me:$LINENO: result: $ac_file" >&5
2548 echo "${ECHO_T}$ac_file" >&6; }
2549 if test -z "$ac_file"; then
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2554 See \`config.log' for more details." >&5
2555 echo "$as_me: error: C compiler cannot create executables
2556 See \`config.log' for more details." >&2;}
2557 { (exit 77); exit 77; }; }
2560 ac_exeext=$ac_cv_exeext
2562 # Check that the compiler produces executables we can run. If not, either
2563 # the compiler is broken, or we cross compile.
2564 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2565 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2566 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2567 # If not cross compiling, check that we can run a simple program.
2568 if test "$cross_compiling" != yes; then
2569 if { ac_try='./$ac_file'
2570 { (case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_try") 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 cross_compiling=no
2580 else
2581 if test "$cross_compiling" = maybe; then
2582 cross_compiling=yes
2583 else
2584 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2585 If you meant to cross compile, use \`--host'.
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: cannot run C compiled programs.
2588 If you meant to cross compile, use \`--host'.
2589 See \`config.log' for more details." >&2;}
2590 { (exit 1); exit 1; }; }
2594 { echo "$as_me:$LINENO: result: yes" >&5
2595 echo "${ECHO_T}yes" >&6; }
2597 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2598 ac_clean_files=$ac_clean_files_save
2599 # Check that the compiler produces executables we can run. If not, either
2600 # the compiler is broken, or we cross compile.
2601 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2602 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2603 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2604 echo "${ECHO_T}$cross_compiling" >&6; }
2606 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2607 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2608 if { (ac_try="$ac_link"
2609 case "(($ac_try" in
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2612 esac
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614 (eval "$ac_link") 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; then
2618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2620 # work properly (i.e., refer to `conftest.exe'), while it won't with
2621 # `rm'.
2622 for ac_file in conftest.exe conftest conftest.*; do
2623 test -f "$ac_file" || continue
2624 case $ac_file in
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2627 break;;
2628 * ) break;;
2629 esac
2630 done
2631 else
2632 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2633 See \`config.log' for more details." >&5
2634 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&2;}
2636 { (exit 1); exit 1; }; }
2639 rm -f conftest$ac_cv_exeext
2640 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2641 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2643 rm -f conftest.$ac_ext
2644 EXEEXT=$ac_cv_exeext
2645 ac_exeext=$EXEEXT
2646 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2647 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2648 if test "${ac_cv_objext+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651 cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h. */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2659 main ()
2663 return 0;
2665 _ACEOF
2666 rm -f conftest.o conftest.obj
2667 if { (ac_try="$ac_compile"
2668 case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671 esac
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compile") 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; then
2677 for ac_file in conftest.o conftest.obj conftest.*; do
2678 test -f "$ac_file" || continue;
2679 case $ac_file in
2680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2682 break;;
2683 esac
2684 done
2685 else
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2689 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2692 See \`config.log' for more details." >&2;}
2693 { (exit 1); exit 1; }; }
2696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2698 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2699 echo "${ECHO_T}$ac_cv_objext" >&6; }
2700 OBJEXT=$ac_cv_objext
2701 ac_objext=$OBJEXT
2702 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2703 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2704 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h. */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2715 main ()
2717 #ifndef __GNUC__
2718 choke me
2719 #endif
2722 return 0;
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (ac_try="$ac_compile"
2727 case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compile") 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } && {
2739 test -z "$ac_c_werror_flag" ||
2740 test ! -s conftest.err
2741 } && test -s conftest.$ac_objext; then
2742 ac_compiler_gnu=yes
2743 else
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2747 ac_compiler_gnu=no
2750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2754 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2755 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2756 GCC=`test $ac_compiler_gnu = yes && echo yes`
2757 ac_test_CFLAGS=${CFLAGS+set}
2758 ac_save_CFLAGS=$CFLAGS
2759 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2761 if test "${ac_cv_prog_cc_g+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 ac_save_c_werror_flag=$ac_c_werror_flag
2765 ac_c_werror_flag=yes
2766 ac_cv_prog_cc_g=no
2767 CFLAGS="-g"
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2776 main ()
2780 return 0;
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (ac_try="$ac_compile"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_compile") 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } && {
2797 test -z "$ac_c_werror_flag" ||
2798 test ! -s conftest.err
2799 } && test -s conftest.$ac_objext; then
2800 ac_cv_prog_cc_g=yes
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 CFLAGS=""
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2814 main ()
2818 return 0;
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (ac_try="$ac_compile"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_compile") 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } && {
2835 test -z "$ac_c_werror_flag" ||
2836 test ! -s conftest.err
2837 } && test -s conftest.$ac_objext; then
2839 else
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 ac_c_werror_flag=$ac_save_c_werror_flag
2844 CFLAGS="-g"
2845 cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h. */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2853 main ()
2857 return 0;
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (ac_try="$ac_compile"
2862 case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_compile") 2>conftest.er1
2868 ac_status=$?
2869 grep -v '^ *+' conftest.er1 >conftest.err
2870 rm -f conftest.er1
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } && {
2874 test -z "$ac_c_werror_flag" ||
2875 test ! -s conftest.err
2876 } && test -s conftest.$ac_objext; then
2877 ac_cv_prog_cc_g=yes
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 ac_c_werror_flag=$ac_save_c_werror_flag
2894 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2895 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2896 if test "$ac_test_CFLAGS" = set; then
2897 CFLAGS=$ac_save_CFLAGS
2898 elif test $ac_cv_prog_cc_g = yes; then
2899 if test "$GCC" = yes; then
2900 CFLAGS="-g -O2"
2901 else
2902 CFLAGS="-g"
2904 else
2905 if test "$GCC" = yes; then
2906 CFLAGS="-O2"
2907 else
2908 CFLAGS=
2911 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2912 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_cc_c89+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 ac_cv_prog_cc_c89=no
2917 ac_save_CC=$CC
2918 cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h. */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2924 #include <stdarg.h>
2925 #include <stdio.h>
2926 #include <sys/types.h>
2927 #include <sys/stat.h>
2928 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2929 struct buf { int x; };
2930 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2931 static char *e (p, i)
2932 char **p;
2933 int i;
2935 return p[i];
2937 static char *f (char * (*g) (char **, int), char **p, ...)
2939 char *s;
2940 va_list v;
2941 va_start (v,p);
2942 s = g (p, va_arg (v,int));
2943 va_end (v);
2944 return s;
2947 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2948 function prototypes and stuff, but not '\xHH' hex character constants.
2949 These don't provoke an error unfortunately, instead are silently treated
2950 as 'x'. The following induces an error, until -std is added to get
2951 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2952 array size at least. It's necessary to write '\x00'==0 to get something
2953 that's true only with -std. */
2954 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2956 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2957 inside strings and character constants. */
2958 #define FOO(x) 'x'
2959 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2961 int test (int i, double x);
2962 struct s1 {int (*f) (int a);};
2963 struct s2 {int (*f) (double a);};
2964 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2965 int argc;
2966 char **argv;
2968 main ()
2970 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2972 return 0;
2974 _ACEOF
2975 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2976 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2978 CC="$ac_save_CC $ac_arg"
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } && {
2993 test -z "$ac_c_werror_flag" ||
2994 test ! -s conftest.err
2995 } && test -s conftest.$ac_objext; then
2996 ac_cv_prog_cc_c89=$ac_arg
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3004 rm -f core conftest.err conftest.$ac_objext
3005 test "x$ac_cv_prog_cc_c89" != "xno" && break
3006 done
3007 rm -f conftest.$ac_ext
3008 CC=$ac_save_CC
3011 # AC_CACHE_VAL
3012 case "x$ac_cv_prog_cc_c89" in
3014 { echo "$as_me:$LINENO: result: none needed" >&5
3015 echo "${ECHO_T}none needed" >&6; } ;;
3016 xno)
3017 { echo "$as_me:$LINENO: result: unsupported" >&5
3018 echo "${ECHO_T}unsupported" >&6; } ;;
3020 CC="$CC $ac_cv_prog_cc_c89"
3021 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3022 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3023 esac
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 case $ac_cv_prog_cc_stdc in
3033 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3034 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3035 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3036 if test "${ac_cv_prog_cc_c99+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 ac_cv_prog_cc_c99=no
3040 ac_save_CC=$CC
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h. */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3047 #include <stdarg.h>
3048 #include <stdbool.h>
3049 #include <stdlib.h>
3050 #include <wchar.h>
3051 #include <stdio.h>
3053 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3054 #define debug(...) fprintf (stderr, __VA_ARGS__)
3055 #define showlist(...) puts (#__VA_ARGS__)
3056 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3057 static void
3058 test_varargs_macros (void)
3060 int x = 1234;
3061 int y = 5678;
3062 debug ("Flag");
3063 debug ("X = %d\n", x);
3064 showlist (The first, second, and third items.);
3065 report (x>y, "x is %d but y is %d", x, y);
3068 // Check long long types.
3069 #define BIG64 18446744073709551615ull
3070 #define BIG32 4294967295ul
3071 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3072 #if !BIG_OK
3073 your preprocessor is broken;
3074 #endif
3075 #if BIG_OK
3076 #else
3077 your preprocessor is broken;
3078 #endif
3079 static long long int bignum = -9223372036854775807LL;
3080 static unsigned long long int ubignum = BIG64;
3082 struct incomplete_array
3084 int datasize;
3085 double data[];
3088 struct named_init {
3089 int number;
3090 const wchar_t *name;
3091 double average;
3094 typedef const char *ccp;
3096 static inline int
3097 test_restrict (ccp restrict text)
3099 // See if C++-style comments work.
3100 // Iterate through items via the restricted pointer.
3101 // Also check for declarations in for loops.
3102 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3103 continue;
3104 return 0;
3107 // Check varargs and va_copy.
3108 static void
3109 test_varargs (const char *format, ...)
3111 va_list args;
3112 va_start (args, format);
3113 va_list args_copy;
3114 va_copy (args_copy, args);
3116 const char *str;
3117 int number;
3118 float fnumber;
3120 while (*format)
3122 switch (*format++)
3124 case 's': // string
3125 str = va_arg (args_copy, const char *);
3126 break;
3127 case 'd': // int
3128 number = va_arg (args_copy, int);
3129 break;
3130 case 'f': // float
3131 fnumber = va_arg (args_copy, double);
3132 break;
3133 default:
3134 break;
3137 va_end (args_copy);
3138 va_end (args);
3142 main ()
3145 // Check bool.
3146 _Bool success = false;
3148 // Check restrict.
3149 if (test_restrict ("String literal") == 0)
3150 success = true;
3151 char *restrict newvar = "Another string";
3153 // Check varargs.
3154 test_varargs ("s, d' f .", "string", 65, 34.234);
3155 test_varargs_macros ();
3157 // Check flexible array members.
3158 struct incomplete_array *ia =
3159 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3160 ia->datasize = 10;
3161 for (int i = 0; i < ia->datasize; ++i)
3162 ia->data[i] = i * 1.234;
3164 // Check named initializers.
3165 struct named_init ni = {
3166 .number = 34,
3167 .name = L"Test wide string",
3168 .average = 543.34343,
3171 ni.number = 58;
3173 int dynamic_array[ni.number];
3174 dynamic_array[ni.number - 1] = 543;
3176 // work around unused variable warnings
3177 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3178 || dynamic_array[ni.number - 1] != 543);
3181 return 0;
3183 _ACEOF
3184 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3186 CC="$ac_save_CC $ac_arg"
3187 rm -f conftest.$ac_objext
3188 if { (ac_try="$ac_compile"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_compile") 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } && {
3201 test -z "$ac_c_werror_flag" ||
3202 test ! -s conftest.err
3203 } && test -s conftest.$ac_objext; then
3204 ac_cv_prog_cc_c99=$ac_arg
3205 else
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3212 rm -f core conftest.err conftest.$ac_objext
3213 test "x$ac_cv_prog_cc_c99" != "xno" && break
3214 done
3215 rm -f conftest.$ac_ext
3216 CC=$ac_save_CC
3219 # AC_CACHE_VAL
3220 case "x$ac_cv_prog_cc_c99" in
3222 { echo "$as_me:$LINENO: result: none needed" >&5
3223 echo "${ECHO_T}none needed" >&6; } ;;
3224 xno)
3225 { echo "$as_me:$LINENO: result: unsupported" >&5
3226 echo "${ECHO_T}unsupported" >&6; } ;;
3228 CC="$CC $ac_cv_prog_cc_c99"
3229 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3230 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3231 esac
3232 if test "x$ac_cv_prog_cc_c99" != xno; then
3233 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3234 else
3235 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3236 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3237 if test "${ac_cv_prog_cc_c89+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 ac_cv_prog_cc_c89=no
3241 ac_save_CC=$CC
3242 cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h. */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3248 #include <stdarg.h>
3249 #include <stdio.h>
3250 #include <sys/types.h>
3251 #include <sys/stat.h>
3252 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3253 struct buf { int x; };
3254 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3255 static char *e (p, i)
3256 char **p;
3257 int i;
3259 return p[i];
3261 static char *f (char * (*g) (char **, int), char **p, ...)
3263 char *s;
3264 va_list v;
3265 va_start (v,p);
3266 s = g (p, va_arg (v,int));
3267 va_end (v);
3268 return s;
3271 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3272 function prototypes and stuff, but not '\xHH' hex character constants.
3273 These don't provoke an error unfortunately, instead are silently treated
3274 as 'x'. The following induces an error, until -std is added to get
3275 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3276 array size at least. It's necessary to write '\x00'==0 to get something
3277 that's true only with -std. */
3278 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3280 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3281 inside strings and character constants. */
3282 #define FOO(x) 'x'
3283 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3285 int test (int i, double x);
3286 struct s1 {int (*f) (int a);};
3287 struct s2 {int (*f) (double a);};
3288 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3289 int argc;
3290 char **argv;
3292 main ()
3294 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3296 return 0;
3298 _ACEOF
3299 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3300 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3302 CC="$ac_save_CC $ac_arg"
3303 rm -f conftest.$ac_objext
3304 if { (ac_try="$ac_compile"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_compile") 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } && {
3317 test -z "$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 } && test -s conftest.$ac_objext; then
3320 ac_cv_prog_cc_c89=$ac_arg
3321 else
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f core conftest.err conftest.$ac_objext
3329 test "x$ac_cv_prog_cc_c89" != "xno" && break
3330 done
3331 rm -f conftest.$ac_ext
3332 CC=$ac_save_CC
3335 # AC_CACHE_VAL
3336 case "x$ac_cv_prog_cc_c89" in
3338 { echo "$as_me:$LINENO: result: none needed" >&5
3339 echo "${ECHO_T}none needed" >&6; } ;;
3340 xno)
3341 { echo "$as_me:$LINENO: result: unsupported" >&5
3342 echo "${ECHO_T}unsupported" >&6; } ;;
3344 CC="$CC $ac_cv_prog_cc_c89"
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3347 esac
3348 if test "x$ac_cv_prog_cc_c89" != xno; then
3349 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3350 else
3351 ac_cv_prog_cc_stdc=no
3358 esac
3359 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3360 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 case $ac_cv_prog_cc_stdc in
3366 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3367 echo "${ECHO_T}unsupported" >&6; } ;;
3368 '') { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3370 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3371 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3372 esac
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3381 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3382 # On Suns, sometimes $CPP names a directory.
3383 if test -n "$CPP" && test -d "$CPP"; then
3384 CPP=
3386 if test -z "$CPP"; then
3387 if test "${ac_cv_prog_CPP+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390 # Double quotes because CPP needs to be expanded
3391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3393 ac_preproc_ok=false
3394 for ac_c_preproc_warn_flag in '' yes
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #ifdef __STDC__
3409 # include <limits.h>
3410 #else
3411 # include <assert.h>
3412 #endif
3413 Syntax error
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null && {
3428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429 test ! -s conftest.err
3430 }; then
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 # Broken: fails on valid input.
3437 continue
3440 rm -f conftest.err conftest.$ac_ext
3442 # OK, works on sane cases. Now check whether nonexistent headers
3443 # can be detected and how.
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <ac_nonexistent.h>
3451 _ACEOF
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3459 ac_status=$?
3460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } >/dev/null && {
3465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3466 test ! -s conftest.err
3467 }; then
3468 # Broken: success on invalid input.
3469 continue
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 # Passes both tests.
3475 ac_preproc_ok=:
3476 break
3479 rm -f conftest.err conftest.$ac_ext
3481 done
3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 rm -f conftest.err conftest.$ac_ext
3484 if $ac_preproc_ok; then
3485 break
3488 done
3489 ac_cv_prog_CPP=$CPP
3492 CPP=$ac_cv_prog_CPP
3493 else
3494 ac_cv_prog_CPP=$CPP
3496 { echo "$as_me:$LINENO: result: $CPP" >&5
3497 echo "${ECHO_T}$CPP" >&6; }
3498 ac_preproc_ok=false
3499 for ac_c_preproc_warn_flag in '' yes
3501 # Use a header file that comes with gcc, so configuring glibc
3502 # with a fresh cross-compiler works.
3503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504 # <limits.h> exists even on freestanding compilers.
3505 # On the NeXT, cc -E runs the code through the compiler's parser,
3506 # not just through cpp. "Syntax error" is here to catch this case.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #ifdef __STDC__
3514 # include <limits.h>
3515 #else
3516 # include <assert.h>
3517 #endif
3518 Syntax error
3519 _ACEOF
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null && {
3533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 }; then
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 # Broken: fails on valid input.
3542 continue
3545 rm -f conftest.err conftest.$ac_ext
3547 # OK, works on sane cases. Now check whether nonexistent headers
3548 # can be detected and how.
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #include <ac_nonexistent.h>
3556 _ACEOF
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null && {
3570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 }; then
3573 # Broken: success on invalid input.
3574 continue
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Passes both tests.
3580 ac_preproc_ok=:
3581 break
3584 rm -f conftest.err conftest.$ac_ext
3586 done
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.$ac_ext
3589 if $ac_preproc_ok; then
3591 else
3592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&5
3594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3595 See \`config.log' for more details." >&2;}
3596 { (exit 1); exit 1; }; }
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 # Check for a compatible awk
3607 for ac_prog in gawk nawk
3609 # Extract the first word of "$ac_prog", so it can be a program name with args.
3610 set dummy $ac_prog; ac_word=$2
3611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3613 if test "${ac_cv_prog_AWK+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 if test -n "$AWK"; then
3617 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3618 else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626 ac_cv_prog_AWK="$ac_prog"
3627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 break 2
3630 done
3631 done
3632 IFS=$as_save_IFS
3636 AWK=$ac_cv_prog_AWK
3637 if test -n "$AWK"; then
3638 { echo "$as_me:$LINENO: result: $AWK" >&5
3639 echo "${ECHO_T}$AWK" >&6; }
3640 else
3641 { echo "$as_me:$LINENO: result: no" >&5
3642 echo "${ECHO_T}no" >&6; }
3646 test -n "$AWK" && break
3647 done
3649 if test "$AWK" = ""; then
3650 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3651 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3652 { (exit 1); exit 1; }; }
3654 # Extract the first word of "mmake", so it can be a program name with args.
3655 set dummy mmake; ac_word=$2
3656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_MMAKE+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661 if test -n "$MMAKE"; then
3662 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3663 else
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3671 ac_cv_prog_MMAKE="mmake "
3672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 break 2
3675 done
3676 done
3677 IFS=$as_save_IFS
3681 MMAKE=$ac_cv_prog_MMAKE
3682 if test -n "$MMAKE"; then
3683 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3684 echo "${ECHO_T}$MMAKE" >&6; }
3685 else
3686 { echo "$as_me:$LINENO: result: no" >&5
3687 echo "${ECHO_T}no" >&6; }
3692 # Perform some default variable assignments. Note all of these will be
3693 # Regenerated from the script, so there is no need to cache them.
3695 aros_host_cc="$CC"
3696 if test "$GCC" = "yes"; then
3697 aros_gcc_ld=`$CC -print-prog-name=ld`
3698 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3699 set dummy `basename $aros_gcc_ld`; ac_word=$2
3700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3702 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 case $aros_host_ld in
3706 [\\/]* | ?:[\\/]*)
3707 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in `dirname $aros_gcc_ld`
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3723 IFS=$as_save_IFS
3726 esac
3728 aros_host_ld=$ac_cv_path_aros_host_ld
3729 if test -n "$aros_host_ld"; then
3730 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3731 echo "${ECHO_T}$aros_host_ld" >&6; }
3732 else
3733 { echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; }
3739 if test "$aros_host_ld" = ""; then
3740 # Extract the first word of "ld", so it can be a program name with args.
3741 set dummy ld; ac_word=$2
3742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3744 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 case $aros_host_ld in
3748 [\\/]* | ?:[\\/]*)
3749 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3763 done
3764 done
3765 IFS=$as_save_IFS
3768 esac
3770 aros_host_ld=$ac_cv_path_aros_host_ld
3771 if test -n "$aros_host_ld"; then
3772 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3773 echo "${ECHO_T}$aros_host_ld" >&6; }
3774 else
3775 { echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6; }
3781 if test "$aros_host_ld" = ""; then
3782 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3783 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3784 { (exit 1); exit 1; }; }
3786 aros_host_make="make"
3787 aros_host_cflags=$CFLAGS
3788 aros_host_ldflags=$LDFLAGS
3789 aros_host_debug="-g -O0"
3790 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3791 aros_host_mkargs="--no-print-directory"
3792 aros_host_incl="/usr/include"
3793 aros_host_exe_suffix="$EXEEXT"
3794 aros_host_lib_suffix=""
3796 # Ignore all compliance, AROS ROMs = 0
3797 # KickStart v1.0 = 30
3798 # KickStart v1.3 = 34
3799 # KickStart v2.0 = 37
3800 # KickStart v3.0 = 39
3801 # KickStart v3.1 = 40
3802 # AmigaOS v3.5 = 44
3803 aros_amigaos_compliance=0
3805 for ac_prog in aclocal aclocal19 aclocal-1.9
3807 # Extract the first word of "$ac_prog", so it can be a program name with args.
3808 set dummy $ac_prog; ac_word=$2
3809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3811 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 if test -n "$aros_host_aclocal"; then
3815 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3824 ac_cv_prog_aros_host_aclocal="$ac_prog"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3828 done
3829 done
3830 IFS=$as_save_IFS
3834 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3835 if test -n "$aros_host_aclocal"; then
3836 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3837 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3838 else
3839 { echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6; }
3844 test -n "$aros_host_aclocal" && break
3845 done
3847 for ac_prog in autoconf autoconf259 autoconf253
3849 # Extract the first word of "$ac_prog", so it can be a program name with args.
3850 set dummy $ac_prog; ac_word=$2
3851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3853 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 if test -n "$aros_host_autoconf"; then
3857 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_aros_host_autoconf="$ac_prog"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3870 done
3871 done
3872 IFS=$as_save_IFS
3876 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3877 if test -n "$aros_host_autoconf"; then
3878 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3879 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3880 else
3881 { echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6; }
3886 test -n "$aros_host_autoconf" && break
3887 done
3889 for ac_prog in autoheader autoheader259 autoheader253
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3895 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 if test -n "$aros_host_autoheader"; then
3899 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_aros_host_autoheader="$ac_prog"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3912 done
3913 done
3914 IFS=$as_save_IFS
3918 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3919 if test -n "$aros_host_autoheader"; then
3920 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3921 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3922 else
3923 { echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6; }
3928 test -n "$aros_host_autoheader" && break
3929 done
3931 for ac_prog in automake automake19 automake-1.9
3933 # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3937 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 if test -n "$aros_host_automake"; then
3941 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950 ac_cv_prog_aros_host_automake="$ac_prog"
3951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3954 done
3955 done
3956 IFS=$as_save_IFS
3960 aros_host_automake=$ac_cv_prog_aros_host_automake
3961 if test -n "$aros_host_automake"; then
3962 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3963 echo "${ECHO_T}$aros_host_automake" >&6; }
3964 else
3965 { echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6; }
3970 test -n "$aros_host_automake" && break
3971 done
3974 if test "$aros_host_aclocal" = ""; then
3975 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3976 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3977 { (exit 1); exit 1; }; }
3979 if test "$aros_host_automake" = ""; then
3980 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3981 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3982 { (exit 1); exit 1; }; }
3985 case "$aros_host_cc" in
3986 *gcc*)
3987 aros_host_cc_pipe="-pipe"
3989 icc)
3990 aros_host_cc_pipe=""
3993 aros_host_cc_pipe=""
3995 esac
3997 aros_kernel_cc_includes=""
3998 aros_target_cc_includes=""
4000 # ----------------------------------------------------------------------------------------
4001 # Host-specific defaults
4003 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4004 # instead of a wrapper script.
4005 # Useful for non-ELF hosts (like Windows and Darwin).
4006 # Can also be overriden in target section below
4007 use_aros_gcc="no"
4009 # This is the main host configuration section. It is where the host
4010 # can change the values of any variables it needs to change. We do
4011 # not look at anything that compiles to the target yet, we'll get
4012 # to that later.
4014 case "$host_os" in
4015 aros*)
4016 aros_host_arch="aros"
4017 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4018 case "$host_cpu" in
4019 *i?86*)
4020 aros_host_cpu="i386"
4022 *x86_64*)
4023 aros_host_cpu="x86_64"
4025 *powerpc*)
4026 aros_host_cpu="ppc"
4029 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4030 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4031 aros_host_cpu="$host_cpu"
4033 esac
4036 linux*)
4037 aros_host_arch="linux"
4038 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4039 android_build_os="linux-x86"
4040 android_tool="android"
4041 default_android_sdk="/opt/android-sdk-linux_x86"
4042 case "$host_cpu" in
4043 *i?86*)
4044 aros_host_cpu="i386"
4046 *x86_64*)
4047 aros_host_cpu="x86_64"
4049 *m68k*)
4050 aros_host_cpu="m68k"
4052 *powerpc*)
4053 aros_host_cpu="ppc"
4055 *arm*)
4056 aros_host_cpu="arm"
4059 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4060 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4061 aros_host_cpu="$host_cpu"
4063 esac
4066 freebsd*)
4067 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4068 aros_host_make="gmake"
4069 aros_host_arch="freebsd"
4070 aros_host_cpu="i386"
4072 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4074 case $host_os in
4075 freebsd[234]*)
4076 aros_object_format="elf_i386"
4080 aros_object_format="elf_i386_fbsd"
4082 esac
4086 darwin*)
4087 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4088 aros_host_arch="darwin"
4089 use_aros_gcc="yes"
4090 android_build_os="darwin-x86"
4091 android_tool="android"
4092 default_android_sdk="/android-sdk-mac_x86"
4093 case "$host_cpu" in
4094 *i?86*)
4095 aros_host_cpu="i386"
4097 *x86_64*)
4098 aros_host_cpu="x86_64"
4100 *powerpc*)
4101 aros_host_cpu="ppc"
4104 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4105 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4106 aros_host_cpu="$host_cpu"
4108 esac
4110 aros_host_ldflags="$aros_host_ldflags -liconv"
4114 dragonfly*)
4115 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4116 aros_host_make="gmake"
4117 aros_host_arch="dragonfly"
4118 case $host_cpu in
4119 *i?86*)
4120 aros_host_cpu="i386"
4122 *amd64*)
4123 aros_host_cpu="x86_64"
4126 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4127 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4128 aros_host_cpu="$host_cpu"
4130 esac
4133 netbsd*)
4134 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4135 aros_host_make="gmake"
4136 aros_host_arch="netbsd"
4137 case "$host_cpu" in
4138 *i?86*)
4139 aros_host_cpu="i386"
4141 *m68k*)
4142 aros_host_cpu="m68k"
4145 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4146 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4147 aros_host_cpu="$host_cpu"
4149 esac
4150 aros_host_lib_suffix=".0.0"
4153 openbsd*)
4154 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4155 aros_host_make="gmake"
4156 aros_host_arch="openbsd"
4157 case "$host_cpu" in
4158 *i?86*)
4159 aros_host_cpu="i386"
4162 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4163 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4164 aros_host_cpu="$host_cpu"
4166 esac
4169 solaris*)
4170 aros_host_arch="solaris"
4171 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4172 case "$host_cpu" in
4173 *i?86*)
4174 aros_host_cpu="i386"
4176 *sparc*)
4177 aros_host_cpu="sparc"
4180 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4181 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4182 aros_host_cpu="$host_cpu"
4184 esac
4187 morphos*)
4188 aros_host_arch="morphos"
4189 aros_host_cpu="ppc"
4192 amiga*)
4193 aros_host_arch="amiga"
4194 SORT="/gg/bin/sort"
4195 TEST="/gg/bin/test"
4196 UNIQ="/gg/bin/uniq"
4197 FOR="for"
4198 TOUCH="/gg/bin/touch"
4199 case "$host_cpu" in
4200 *m68k*)
4201 aros_host_cpu="m68k"
4203 *powerpc*)
4204 aros_host_cpu="ppc"
4207 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4208 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4209 aros_host_cpu="$host_cpu"
4211 esac
4214 cygwin*)
4215 aros_host_arch="cygwin"
4216 use_aros_gcc="yes"
4217 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4218 android_build_os="windows"
4219 android_tool="android.bat"
4220 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4222 case "$host_cpu" in
4223 *i?86*)
4224 aros_host_cpu="i386"
4227 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4228 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4229 aros_host_cpu="$host_cpu"
4231 esac
4234 mingw32*)
4235 aros_host_arch="mingw32"
4236 use_aros_gcc="yes"
4237 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4238 android_build_os="windows"
4239 android_tool="android.bat"
4240 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4242 case "$host_cpu" in
4243 *i?86*)
4244 aros_host_cpu="i386"
4247 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4248 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4249 aros_host_cpu="$host_cpu"
4251 esac
4254 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4255 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4256 { (exit 1); exit 1; }; }
4258 esac
4260 # Extract the first word of "ar", so it can be a program name with args.
4261 set dummy ar; ac_word=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 if test -n "$aros_host_ar"; then
4268 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_aros_host_ar="ar cr"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4283 IFS=$as_save_IFS
4287 aros_host_ar=$ac_cv_prog_aros_host_ar
4288 if test -n "$aros_host_ar"; then
4289 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4290 echo "${ECHO_T}$aros_host_ar" >&6; }
4291 else
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4297 if test "$aros_host_ar" = ""; then
4298 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4299 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4300 { (exit 1); exit 1; }; }
4302 # Extract the first word of "ranlib", so it can be a program name with args.
4303 set dummy ranlib; ac_word=$2
4304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4306 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309 if test -n "$aros_host_ranlib"; then
4310 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_aros_host_ranlib="ranlib "
4320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4323 done
4324 done
4325 IFS=$as_save_IFS
4329 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4330 if test -n "$aros_host_ranlib"; then
4331 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4332 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4333 else
4334 { echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; }
4339 if test "$aros_host_ranlib" = ""; then
4340 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4341 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4342 { (exit 1); exit 1; }; }
4344 # Extract the first word of "strip", so it can be a program name with args.
4345 set dummy strip; ac_word=$2
4346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4348 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 if test -n "$aros_host_strip"; then
4352 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4353 else
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_prog_aros_host_strip="strip "
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4365 done
4366 done
4367 IFS=$as_save_IFS
4371 aros_host_strip=$ac_cv_prog_aros_host_strip
4372 if test -n "$aros_host_strip"; then
4373 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4374 echo "${ECHO_T}$aros_host_strip" >&6; }
4375 else
4376 { echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6; }
4381 if test "$aros_host_strip" = ""; then
4382 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4383 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4384 { (exit 1); exit 1; }; }
4387 # Extract the first word of "rm", so it can be a program name with args.
4388 set dummy rm; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_RM+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 if test -n "$RM"; then
4395 ac_cv_prog_RM="$RM" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_RM="rm -rf"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4408 done
4409 done
4410 IFS=$as_save_IFS
4414 RM=$ac_cv_prog_RM
4415 if test -n "$RM"; then
4416 { echo "$as_me:$LINENO: result: $RM" >&5
4417 echo "${ECHO_T}$RM" >&6; }
4418 else
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4424 if test "$RM" = ""; then
4425 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4426 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4427 { (exit 1); exit 1; }; }
4429 # Extract the first word of "cp", so it can be a program name with args.
4430 set dummy cp; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_prog_CP+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 if test -n "$CP"; then
4437 ac_cv_prog_CP="$CP" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_CP="cp "
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4450 done
4451 done
4452 IFS=$as_save_IFS
4456 CP=$ac_cv_prog_CP
4457 if test -n "$CP"; then
4458 { echo "$as_me:$LINENO: result: $CP" >&5
4459 echo "${ECHO_T}$CP" >&6; }
4460 else
4461 { echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6; }
4466 if test "$CP" = ""; then
4467 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4468 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4469 { (exit 1); exit 1; }; }
4471 # Extract the first word of "mv", so it can be a program name with args.
4472 set dummy mv; ac_word=$2
4473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475 if test "${ac_cv_prog_MV+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 if test -n "$MV"; then
4479 ac_cv_prog_MV="$MV" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_MV="mv "
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4492 done
4493 done
4494 IFS=$as_save_IFS
4498 MV=$ac_cv_prog_MV
4499 if test -n "$MV"; then
4500 { echo "$as_me:$LINENO: result: $MV" >&5
4501 echo "${ECHO_T}$MV" >&6; }
4502 else
4503 { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4508 if test "$MV" = ""; then
4509 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4510 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4511 { (exit 1); exit 1; }; }
4513 # Extract the first word of "echo", so it can be a program name with args.
4514 set dummy echo; ac_word=$2
4515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4517 if test "${ac_cv_prog_ECHO+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 if test -n "$ECHO"; then
4521 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_ECHO="echo "
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4536 IFS=$as_save_IFS
4540 ECHO=$ac_cv_prog_ECHO
4541 if test -n "$ECHO"; then
4542 { echo "$as_me:$LINENO: result: $ECHO" >&5
4543 echo "${ECHO_T}$ECHO" >&6; }
4544 else
4545 { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4550 if test "$ECHO" = ""; then
4551 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4552 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4553 { (exit 1); exit 1; }; }
4555 # Extract the first word of "mkdir", so it can be a program name with args.
4556 set dummy mkdir; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_prog_MKDIR+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 if test -n "$MKDIR"; then
4563 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_MKDIR="mkdir -p"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 MKDIR=$ac_cv_prog_MKDIR
4583 if test -n "$MKDIR"; then
4584 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4585 echo "${ECHO_T}$MKDIR" >&6; }
4586 else
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4592 if test "$MKDIR" = ""; then
4593 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4594 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4595 { (exit 1); exit 1; }; }
4597 # Extract the first word of "touch", so it can be a program name with args.
4598 set dummy touch; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_TOUCH+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 if test -n "$TOUCH"; then
4605 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_TOUCH="touch "
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4624 TOUCH=$ac_cv_prog_TOUCH
4625 if test -n "$TOUCH"; then
4626 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4627 echo "${ECHO_T}$TOUCH" >&6; }
4628 else
4629 { echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6; }
4634 if test "$TOUCH" = ""; then
4635 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4636 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4637 { (exit 1); exit 1; }; }
4639 # Extract the first word of "sort", so it can be a program name with args.
4640 set dummy sort; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_SORT+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646 if test -n "$SORT"; then
4647 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_SORT="sort "
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 SORT=$ac_cv_prog_SORT
4667 if test -n "$SORT"; then
4668 { echo "$as_me:$LINENO: result: $SORT" >&5
4669 echo "${ECHO_T}$SORT" >&6; }
4670 else
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4676 if test "$SORT" = ""; then
4677 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4678 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4679 { (exit 1); exit 1; }; }
4681 # Extract the first word of "uniq", so it can be a program name with args.
4682 set dummy uniq; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_prog_UNIQ+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 if test -n "$UNIQ"; then
4689 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_UNIQ="uniq "
4699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4702 done
4703 done
4704 IFS=$as_save_IFS
4708 UNIQ=$ac_cv_prog_UNIQ
4709 if test -n "$UNIQ"; then
4710 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4711 echo "${ECHO_T}$UNIQ" >&6; }
4712 else
4713 { echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6; }
4718 if test "$UNIQ" = ""; then
4719 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4720 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4721 { (exit 1); exit 1; }; }
4723 # Extract the first word of "true", so it can be a program name with args.
4724 set dummy true; ac_word=$2
4725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727 if test "${ac_cv_prog_NOP+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730 if test -n "$NOP"; then
4731 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 ac_cv_prog_NOP="true "
4741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
4744 done
4745 done
4746 IFS=$as_save_IFS
4750 NOP=$ac_cv_prog_NOP
4751 if test -n "$NOP"; then
4752 { echo "$as_me:$LINENO: result: $NOP" >&5
4753 echo "${ECHO_T}$NOP" >&6; }
4754 else
4755 { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4760 if test "$NOP" = ""; then
4761 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4762 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4763 { (exit 1); exit 1; }; }
4765 # Extract the first word of "cat", so it can be a program name with args.
4766 set dummy cat; ac_word=$2
4767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769 if test "${ac_cv_prog_CAT+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 if test -n "$CAT"; then
4773 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_CAT="cat "
4783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4786 done
4787 done
4788 IFS=$as_save_IFS
4792 CAT=$ac_cv_prog_CAT
4793 if test -n "$CAT"; then
4794 { echo "$as_me:$LINENO: result: $CAT" >&5
4795 echo "${ECHO_T}$CAT" >&6; }
4796 else
4797 { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4802 if test "$CAT" = ""; then
4803 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4804 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4805 { (exit 1); exit 1; }; }
4807 # Extract the first word of "bison", so it can be a program name with args.
4808 set dummy bison; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_prog_BISON+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 if test -n "$BISON"; then
4815 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_BISON="bison "
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4834 BISON=$ac_cv_prog_BISON
4835 if test -n "$BISON"; then
4836 { echo "$as_me:$LINENO: result: $BISON" >&5
4837 echo "${ECHO_T}$BISON" >&6; }
4838 else
4839 { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4844 if test "$BISON" = ""; then
4845 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4846 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4847 { (exit 1); exit 1; }; }
4849 # Extract the first word of "flex", so it can be a program name with args.
4850 set dummy flex; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_prog_FLEX+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 if test -n "$FLEX"; then
4857 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_FLEX="flex "
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 FLEX=$ac_cv_prog_FLEX
4877 if test -n "$FLEX"; then
4878 { echo "$as_me:$LINENO: result: $FLEX" >&5
4879 echo "${ECHO_T}$FLEX" >&6; }
4880 else
4881 { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4886 if test "$FLEX" = ""; then
4887 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4888 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4889 { (exit 1); exit 1; }; }
4891 # Extract the first word of "pngtopnm", so it can be a program name with args.
4892 set dummy pngtopnm; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898 if test -n "$PNGTOPNM"; then
4899 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_PNGTOPNM="pngtopnm "
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4912 done
4913 done
4914 IFS=$as_save_IFS
4918 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4919 if test -n "$PNGTOPNM"; then
4920 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4921 echo "${ECHO_T}$PNGTOPNM" >&6; }
4922 else
4923 { echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6; }
4928 if test "$PNGTOPNM" = ""; then
4929 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4930 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4931 { (exit 1); exit 1; }; }
4933 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4934 set dummy ppmtoilbm; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 if test -n "$PPMTOILBM"; then
4941 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4960 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4961 if test -n "$PPMTOILBM"; then
4962 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4963 echo "${ECHO_T}$PPMTOILBM" >&6; }
4964 else
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4970 if test "$PPMTOILBM" = ""; then
4971 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4972 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4973 { (exit 1); exit 1; }; }
4975 # Extract the first word of "sed", so it can be a program name with args.
4976 set dummy sed; ac_word=$2
4977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4979 if test "${ac_cv_prog_SED+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982 if test -n "$SED"; then
4983 ac_cv_prog_SED="$SED" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_prog_SED="sed "
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5002 SED=$ac_cv_prog_SED
5003 if test -n "$SED"; then
5004 { echo "$as_me:$LINENO: result: $SED" >&5
5005 echo "${ECHO_T}$SED" >&6; }
5006 else
5007 { echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6; }
5012 if test "$SED" = ""; then
5013 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
5014 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
5015 { (exit 1); exit 1; }; }
5017 # Extract the first word of "chmod", so it can be a program name with args.
5018 set dummy chmod; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_prog_CHMOD+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 if test -n "$CHMOD"; then
5025 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_CHMOD="chmod "
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5038 done
5039 done
5040 IFS=$as_save_IFS
5044 CHMOD=$ac_cv_prog_CHMOD
5045 if test -n "$CHMOD"; then
5046 { echo "$as_me:$LINENO: result: $CHMOD" >&5
5047 echo "${ECHO_T}$CHMOD" >&6; }
5048 else
5049 { echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6; }
5054 if test "$CHMOD" = ""; then
5055 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
5056 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
5057 { (exit 1); exit 1; }; }
5059 # Extract the first word of "patch", so it can be a program name with args.
5060 set dummy patch; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_prog_PATCH+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 if test -n "$PATCH"; then
5067 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_PATCH="patch "
5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5080 done
5081 done
5082 IFS=$as_save_IFS
5086 PATCH=$ac_cv_prog_PATCH
5087 if test -n "$PATCH"; then
5088 { echo "$as_me:$LINENO: result: $PATCH" >&5
5089 echo "${ECHO_T}$PATCH" >&6; }
5090 else
5091 { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5096 if test "$PATCH" = ""; then
5097 { { echo "$as_me:$LINENO: error: patch is required to build AROS. Please install and run configure again." >&5
5098 echo "$as_me: error: patch is required to build AROS. Please install and run configure again." >&2;}
5099 { (exit 1); exit 1; }; }
5106 if test -n "$PYTHON"; then
5107 # If the user set $PYTHON, use it and don't search something else.
5108 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5109 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5110 prog="import sys, string
5111 # split strings by '.' and convert to numeric. Append some zeros
5112 # because we need at least 4 digits for the hex conversion.
5113 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5114 minverhex = 0
5115 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5116 sys.exit(sys.hexversion < minverhex)"
5117 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5118 ($PYTHON -c "$prog") >&5 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; then
5122 { echo "$as_me:$LINENO: result: yes" >&5
5123 echo "${ECHO_T}yes" >&6; }
5124 else
5125 { { echo "$as_me:$LINENO: error: too old" >&5
5126 echo "$as_me: error: too old" >&2;}
5127 { (exit 1); exit 1; }; }
5130 am_display_PYTHON=$PYTHON
5131 else
5132 # Otherwise, try each interpreter until we find one that satisfies
5133 # VERSION.
5134 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5135 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5136 if test "${am_cv_pathless_PYTHON+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5140 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
5141 test "$am_cv_pathless_PYTHON" = none && break
5142 prog="import sys, string
5143 # split strings by '.' and convert to numeric. Append some zeros
5144 # because we need at least 4 digits for the hex conversion.
5145 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5146 minverhex = 0
5147 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5148 sys.exit(sys.hexversion < minverhex)"
5149 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5150 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; then
5154 break
5157 done
5159 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5160 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5161 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5162 if test "$am_cv_pathless_PYTHON" = none; then
5163 PYTHON=:
5164 else
5165 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5166 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_PYTHON+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 case $PYTHON in
5173 [\\/]* | ?:[\\/]*)
5174 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5188 done
5189 done
5190 IFS=$as_save_IFS
5193 esac
5195 PYTHON=$ac_cv_path_PYTHON
5196 if test -n "$PYTHON"; then
5197 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5198 echo "${ECHO_T}$PYTHON" >&6; }
5199 else
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5206 am_display_PYTHON=$am_cv_pathless_PYTHON
5210 if test "$PYTHON" = :; then
5211 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5212 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5213 { (exit 1); exit 1; }; }
5214 else
5217 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5218 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5219 if test "${am_cv_python_version+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5224 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5225 echo "${ECHO_T}$am_cv_python_version" >&6; }
5226 PYTHON_VERSION=$am_cv_python_version
5230 PYTHON_PREFIX='${prefix}'
5232 PYTHON_EXEC_PREFIX='${exec_prefix}'
5236 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5237 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5238 if test "${am_cv_python_platform+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5243 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5244 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5245 PYTHON_PLATFORM=$am_cv_python_platform
5250 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5251 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5252 if test "${am_cv_python_pythondir+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5256 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5258 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5259 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5260 pythondir=$am_cv_python_pythondir
5264 pkgpythondir=\${pythondir}/$PACKAGE
5267 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5268 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5269 if test "${am_cv_python_pyexecdir+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5273 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5275 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5276 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5277 pyexecdir=$am_cv_python_pyexecdir
5281 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5289 FOR=for
5291 IF=if
5293 TEST=test
5295 CMP=cmp
5299 # Check for some includes for the X11 HIDD and the kernel
5302 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5303 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5304 if test "${ac_cv_path_GREP+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 # Extract the first word of "grep ggrep" to use in msg output
5308 if test -z "$GREP"; then
5309 set dummy grep ggrep; ac_prog_name=$2
5310 if test "${ac_cv_path_GREP+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 ac_path_GREP_found=false
5314 # Loop through the user's path and test for each of PROGNAME-LIST
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_prog in grep ggrep; do
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5323 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5324 # Check for GNU ac_path_GREP and select it if it is found.
5325 # Check for GNU $ac_path_GREP
5326 case `"$ac_path_GREP" --version 2>&1` in
5327 *GNU*)
5328 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5330 ac_count=0
5331 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5332 while :
5334 cat "conftest.in" "conftest.in" >"conftest.tmp"
5335 mv "conftest.tmp" "conftest.in"
5336 cp "conftest.in" "conftest.nl"
5337 echo 'GREP' >> "conftest.nl"
5338 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5340 ac_count=`expr $ac_count + 1`
5341 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5342 # Best one so far, save it but keep looking for a better one
5343 ac_cv_path_GREP="$ac_path_GREP"
5344 ac_path_GREP_max=$ac_count
5346 # 10*(2^10) chars as input seems more than enough
5347 test $ac_count -gt 10 && break
5348 done
5349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5350 esac
5353 $ac_path_GREP_found && break 3
5354 done
5355 done
5357 done
5358 IFS=$as_save_IFS
5363 GREP="$ac_cv_path_GREP"
5364 if test -z "$GREP"; then
5365 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5366 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5367 { (exit 1); exit 1; }; }
5370 else
5371 ac_cv_path_GREP=$GREP
5376 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5377 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5378 GREP="$ac_cv_path_GREP"
5381 { echo "$as_me:$LINENO: checking for egrep" >&5
5382 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5383 if test "${ac_cv_path_EGREP+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5387 then ac_cv_path_EGREP="$GREP -E"
5388 else
5389 # Extract the first word of "egrep" to use in msg output
5390 if test -z "$EGREP"; then
5391 set dummy egrep; ac_prog_name=$2
5392 if test "${ac_cv_path_EGREP+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395 ac_path_EGREP_found=false
5396 # Loop through the user's path and test for each of PROGNAME-LIST
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_prog in egrep; do
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5405 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5406 # Check for GNU ac_path_EGREP and select it if it is found.
5407 # Check for GNU $ac_path_EGREP
5408 case `"$ac_path_EGREP" --version 2>&1` in
5409 *GNU*)
5410 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5412 ac_count=0
5413 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5414 while :
5416 cat "conftest.in" "conftest.in" >"conftest.tmp"
5417 mv "conftest.tmp" "conftest.in"
5418 cp "conftest.in" "conftest.nl"
5419 echo 'EGREP' >> "conftest.nl"
5420 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5422 ac_count=`expr $ac_count + 1`
5423 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5424 # Best one so far, save it but keep looking for a better one
5425 ac_cv_path_EGREP="$ac_path_EGREP"
5426 ac_path_EGREP_max=$ac_count
5428 # 10*(2^10) chars as input seems more than enough
5429 test $ac_count -gt 10 && break
5430 done
5431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5432 esac
5435 $ac_path_EGREP_found && break 3
5436 done
5437 done
5439 done
5440 IFS=$as_save_IFS
5445 EGREP="$ac_cv_path_EGREP"
5446 if test -z "$EGREP"; then
5447 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5448 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5449 { (exit 1); exit 1; }; }
5452 else
5453 ac_cv_path_EGREP=$EGREP
5459 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5460 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5461 EGREP="$ac_cv_path_EGREP"
5464 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5465 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5466 if test "${ac_cv_header_stdc+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <stdlib.h>
5476 #include <stdarg.h>
5477 #include <string.h>
5478 #include <float.h>
5481 main ()
5485 return 0;
5487 _ACEOF
5488 rm -f conftest.$ac_objext
5489 if { (ac_try="$ac_compile"
5490 case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && {
5502 test -z "$ac_c_werror_flag" ||
5503 test ! -s conftest.err
5504 } && test -s conftest.$ac_objext; then
5505 ac_cv_header_stdc=yes
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_cv_header_stdc=no
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 if test $ac_cv_header_stdc = yes; then
5516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #include <string.h>
5525 _ACEOF
5526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5527 $EGREP "memchr" >/dev/null 2>&1; then
5529 else
5530 ac_cv_header_stdc=no
5532 rm -f conftest*
5536 if test $ac_cv_header_stdc = yes; then
5537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 #include <stdlib.h>
5546 _ACEOF
5547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5548 $EGREP "free" >/dev/null 2>&1; then
5550 else
5551 ac_cv_header_stdc=no
5553 rm -f conftest*
5557 if test $ac_cv_header_stdc = yes; then
5558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5559 if test "$cross_compiling" = yes; then
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <ctype.h>
5569 #include <stdlib.h>
5570 #if ((' ' & 0x0FF) == 0x020)
5571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5573 #else
5574 # define ISLOWER(c) \
5575 (('a' <= (c) && (c) <= 'i') \
5576 || ('j' <= (c) && (c) <= 'r') \
5577 || ('s' <= (c) && (c) <= 'z'))
5578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5579 #endif
5581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5583 main ()
5585 int i;
5586 for (i = 0; i < 256; i++)
5587 if (XOR (islower (i), ISLOWER (i))
5588 || toupper (i) != TOUPPER (i))
5589 return 2;
5590 return 0;
5592 _ACEOF
5593 rm -f conftest$ac_exeext
5594 if { (ac_try="$ac_link"
5595 case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_link") 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5604 { (case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_try") 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5614 else
5615 echo "$as_me: program exited with status $ac_status" >&5
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 ( exit $ac_status )
5620 ac_cv_header_stdc=no
5622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5628 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5629 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5630 if test $ac_cv_header_stdc = yes; then
5632 cat >>confdefs.h <<\_ACEOF
5633 #define STDC_HEADERS 1
5634 _ACEOF
5638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5648 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5649 inttypes.h stdint.h unistd.h
5651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 cat >conftest.$ac_ext <<_ACEOF
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 $ac_includes_default
5665 #include <$ac_header>
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.$ac_objext; then
5684 eval "$as_ac_Header=yes"
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 eval "$as_ac_Header=no"
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 ac_res=`eval echo '${'$as_ac_Header'}'`
5695 { echo "$as_me:$LINENO: result: $ac_res" >&5
5696 echo "${ECHO_T}$ac_res" >&6; }
5697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5698 cat >>confdefs.h <<_ACEOF
5699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5700 _ACEOF
5704 done
5716 for ac_header in sys/ipc.h sys/shm.h \
5717 sys/mmap.h sys/mman.h sysexits.h \
5718 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 ac_res=`eval echo '${'$as_ac_Header'}'`
5729 { echo "$as_me:$LINENO: result: $ac_res" >&5
5730 echo "${ECHO_T}$ac_res" >&6; }
5731 else
5732 # Is the header compilable?
5733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h. */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5742 #include <$ac_header>
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (ac_try="$ac_compile"
5746 case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compile") 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest.$ac_objext; then
5761 ac_header_compiler=yes
5762 else
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5766 ac_header_compiler=no
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5771 echo "${ECHO_T}$ac_header_compiler" >&6; }
5773 # Is the header present?
5774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #include <$ac_header>
5783 _ACEOF
5784 if { (ac_try="$ac_cpp conftest.$ac_ext"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } >/dev/null && {
5797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 }; then
5800 ac_header_preproc=yes
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_header_preproc=no
5808 rm -f conftest.err conftest.$ac_ext
5809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5810 echo "${ECHO_T}$ac_header_preproc" >&6; }
5812 # So? What about this header?
5813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5814 yes:no: )
5815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5819 ac_header_preproc=yes
5821 no:yes:* )
5822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5836 esac
5837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842 eval "$as_ac_Header=\$ac_header_preproc"
5844 ac_res=`eval echo '${'$as_ac_Header'}'`
5845 { echo "$as_me:$LINENO: result: $ac_res" >&5
5846 echo "${ECHO_T}$ac_res" >&6; }
5849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5850 cat >>confdefs.h <<_ACEOF
5851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5852 _ACEOF
5856 done
5860 for ac_header in sys/mount.h
5862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 #include <sys/param.h>
5876 #include <$ac_header>
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_compile") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest.$ac_objext; then
5895 eval "$as_ac_Header=yes"
5896 else
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 eval "$as_ac_Header=no"
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 ac_res=`eval echo '${'$as_ac_Header'}'`
5906 { echo "$as_me:$LINENO: result: $ac_res" >&5
5907 echo "${ECHO_T}$ac_res" >&6; }
5908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5909 cat >>confdefs.h <<_ACEOF
5910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5911 _ACEOF
5915 done
5923 ac_header_dirent=no
5924 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5925 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5926 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5927 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h. */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 #include <sys/types.h>
5938 #include <$ac_hdr>
5941 main ()
5943 if ((DIR *) 0)
5944 return 0;
5946 return 0;
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5951 case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_compile") 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && {
5963 test -z "$ac_c_werror_flag" ||
5964 test ! -s conftest.err
5965 } && test -s conftest.$ac_objext; then
5966 eval "$as_ac_Header=yes"
5967 else
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 eval "$as_ac_Header=no"
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_res=`eval echo '${'$as_ac_Header'}'`
5977 { echo "$as_me:$LINENO: result: $ac_res" >&5
5978 echo "${ECHO_T}$ac_res" >&6; }
5979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5980 cat >>confdefs.h <<_ACEOF
5981 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5982 _ACEOF
5984 ac_header_dirent=$ac_hdr; break
5987 done
5988 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5989 if test $ac_header_dirent = dirent.h; then
5990 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5991 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5992 if test "${ac_cv_search_opendir+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 ac_func_search_save_LIBS=$LIBS
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6003 /* Override any GCC internal prototype to avoid an error.
6004 Use char because int might match the return type of a GCC
6005 builtin and then its argument prototype would still apply. */
6006 #ifdef __cplusplus
6007 extern "C"
6008 #endif
6009 char opendir ();
6011 main ()
6013 return opendir ();
6015 return 0;
6017 _ACEOF
6018 for ac_lib in '' dir; do
6019 if test -z "$ac_lib"; then
6020 ac_res="none required"
6021 else
6022 ac_res=-l$ac_lib
6023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6025 rm -f conftest.$ac_objext conftest$ac_exeext
6026 if { (ac_try="$ac_link"
6027 case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030 esac
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_link") 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && {
6039 test -z "$ac_c_werror_flag" ||
6040 test ! -s conftest.err
6041 } && test -s conftest$ac_exeext &&
6042 $as_test_x conftest$ac_exeext; then
6043 ac_cv_search_opendir=$ac_res
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6052 conftest$ac_exeext
6053 if test "${ac_cv_search_opendir+set}" = set; then
6054 break
6056 done
6057 if test "${ac_cv_search_opendir+set}" = set; then
6059 else
6060 ac_cv_search_opendir=no
6062 rm conftest.$ac_ext
6063 LIBS=$ac_func_search_save_LIBS
6065 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6066 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6067 ac_res=$ac_cv_search_opendir
6068 if test "$ac_res" != no; then
6069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6073 else
6074 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6076 if test "${ac_cv_search_opendir+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 ac_func_search_save_LIBS=$LIBS
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6087 /* Override any GCC internal prototype to avoid an error.
6088 Use char because int might match the return type of a GCC
6089 builtin and then its argument prototype would still apply. */
6090 #ifdef __cplusplus
6091 extern "C"
6092 #endif
6093 char opendir ();
6095 main ()
6097 return opendir ();
6099 return 0;
6101 _ACEOF
6102 for ac_lib in '' x; do
6103 if test -z "$ac_lib"; then
6104 ac_res="none required"
6105 else
6106 ac_res=-l$ac_lib
6107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6109 rm -f conftest.$ac_objext conftest$ac_exeext
6110 if { (ac_try="$ac_link"
6111 case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_link") 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest$ac_exeext &&
6126 $as_test_x conftest$ac_exeext; then
6127 ac_cv_search_opendir=$ac_res
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6136 conftest$ac_exeext
6137 if test "${ac_cv_search_opendir+set}" = set; then
6138 break
6140 done
6141 if test "${ac_cv_search_opendir+set}" = set; then
6143 else
6144 ac_cv_search_opendir=no
6146 rm conftest.$ac_ext
6147 LIBS=$ac_func_search_save_LIBS
6149 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6150 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6151 ac_res=$ac_cv_search_opendir
6152 if test "$ac_res" != no; then
6153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6159 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6160 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6161 if test "${ac_cv_header_stat_broken+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <sys/types.h>
6171 #include <sys/stat.h>
6173 #if defined S_ISBLK && defined S_IFDIR
6174 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6175 #endif
6177 #if defined S_ISBLK && defined S_IFCHR
6178 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6179 #endif
6181 #if defined S_ISLNK && defined S_IFREG
6182 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6183 #endif
6185 #if defined S_ISSOCK && defined S_IFREG
6186 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6187 #endif
6189 _ACEOF
6190 rm -f conftest.$ac_objext
6191 if { (ac_try="$ac_compile"
6192 case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_compile") 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && {
6204 test -z "$ac_c_werror_flag" ||
6205 test ! -s conftest.err
6206 } && test -s conftest.$ac_objext; then
6207 ac_cv_header_stat_broken=no
6208 else
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6212 ac_cv_header_stat_broken=yes
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6218 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6219 if test $ac_cv_header_stat_broken = yes; then
6221 cat >>confdefs.h <<\_ACEOF
6222 #define STAT_MACROS_BROKEN 1
6223 _ACEOF
6227 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6229 if test "${ac_cv_header_stdc+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 #include <stdlib.h>
6239 #include <stdarg.h>
6240 #include <string.h>
6241 #include <float.h>
6244 main ()
6248 return 0;
6250 _ACEOF
6251 rm -f conftest.$ac_objext
6252 if { (ac_try="$ac_compile"
6253 case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256 esac
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_compile") 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_c_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest.$ac_objext; then
6268 ac_cv_header_stdc=yes
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_cv_header_stdc=no
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 if test $ac_cv_header_stdc = yes; then
6279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6280 cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h. */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 #include <string.h>
6288 _ACEOF
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "memchr" >/dev/null 2>&1; then
6292 else
6293 ac_cv_header_stdc=no
6295 rm -f conftest*
6299 if test $ac_cv_header_stdc = yes; then
6300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 #include <stdlib.h>
6309 _ACEOF
6310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6311 $EGREP "free" >/dev/null 2>&1; then
6313 else
6314 ac_cv_header_stdc=no
6316 rm -f conftest*
6320 if test $ac_cv_header_stdc = yes; then
6321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6322 if test "$cross_compiling" = yes; then
6324 else
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 #include <ctype.h>
6332 #include <stdlib.h>
6333 #if ((' ' & 0x0FF) == 0x020)
6334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6336 #else
6337 # define ISLOWER(c) \
6338 (('a' <= (c) && (c) <= 'i') \
6339 || ('j' <= (c) && (c) <= 'r') \
6340 || ('s' <= (c) && (c) <= 'z'))
6341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6342 #endif
6344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6346 main ()
6348 int i;
6349 for (i = 0; i < 256; i++)
6350 if (XOR (islower (i), ISLOWER (i))
6351 || toupper (i) != TOUPPER (i))
6352 return 2;
6353 return 0;
6355 _ACEOF
6356 rm -f conftest$ac_exeext
6357 if { (ac_try="$ac_link"
6358 case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361 esac
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_link") 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6367 { (case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370 esac
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_try") 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6377 else
6378 echo "$as_me: program exited with status $ac_status" >&5
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 ( exit $ac_status )
6383 ac_cv_header_stdc=no
6385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6391 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6392 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6393 if test $ac_cv_header_stdc = yes; then
6395 cat >>confdefs.h <<\_ACEOF
6396 #define STDC_HEADERS 1
6397 _ACEOF
6401 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6402 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6403 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #include <sys/types.h>
6413 #include <sys/wait.h>
6414 #ifndef WEXITSTATUS
6415 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6416 #endif
6417 #ifndef WIFEXITED
6418 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6419 #endif
6422 main ()
6424 int s;
6425 wait (&s);
6426 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6428 return 0;
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (ac_try="$ac_compile"
6433 case "(($ac_try" in
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436 esac
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_compile") 2>conftest.er1
6439 ac_status=$?
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } && {
6445 test -z "$ac_c_werror_flag" ||
6446 test ! -s conftest.err
6447 } && test -s conftest.$ac_objext; then
6448 ac_cv_header_sys_wait_h=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_cv_header_sys_wait_h=no
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6459 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6460 if test $ac_cv_header_sys_wait_h = yes; then
6462 cat >>confdefs.h <<\_ACEOF
6463 #define HAVE_SYS_WAIT_H 1
6464 _ACEOF
6468 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6469 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6470 if test "${ac_cv_header_time+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 #include <sys/types.h>
6480 #include <sys/time.h>
6481 #include <time.h>
6484 main ()
6486 if ((struct tm *) 0)
6487 return 0;
6489 return 0;
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (ac_try="$ac_compile"
6494 case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_compile") 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
6508 } && test -s conftest.$ac_objext; then
6509 ac_cv_header_time=yes
6510 else
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 ac_cv_header_time=no
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6520 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6521 if test $ac_cv_header_time = yes; then
6523 cat >>confdefs.h <<\_ACEOF
6524 #define TIME_WITH_SYS_TIME 1
6525 _ACEOF
6529 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6530 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6531 if test "${ac_cv_member_struct_stat_st_blksize+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_blksize)
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_blksize=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_blksize)
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_blksize=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_blksize=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_blksize" >&5
6621 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6622 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6624 cat >>confdefs.h <<_ACEOF
6625 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6626 _ACEOF
6629 cat >>confdefs.h <<\_ACEOF
6630 #define HAVE_ST_BLKSIZE 1
6631 _ACEOF
6636 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6637 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6638 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6649 main ()
6651 static struct stat ac_aggr;
6652 if (ac_aggr.st_blocks)
6653 return 0;
6655 return 0;
6657 _ACEOF
6658 rm -f conftest.$ac_objext
6659 if { (ac_try="$ac_compile"
6660 case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_compile") 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } && {
6672 test -z "$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6674 } && test -s conftest.$ac_objext; then
6675 ac_cv_member_struct_stat_st_blocks=yes
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 $ac_includes_default
6688 main ()
6690 static struct stat ac_aggr;
6691 if (sizeof ac_aggr.st_blocks)
6692 return 0;
6694 return 0;
6696 _ACEOF
6697 rm -f conftest.$ac_objext
6698 if { (ac_try="$ac_compile"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 ac_cv_member_struct_stat_st_blocks=yes
6715 else
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 ac_cv_member_struct_stat_st_blocks=no
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6728 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6729 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6731 cat >>confdefs.h <<_ACEOF
6732 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6733 _ACEOF
6736 cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_ST_BLOCKS 1
6738 _ACEOF
6740 else
6741 case " $LIBOBJS " in
6742 *" fileblocks.$ac_objext "* ) ;;
6743 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6745 esac
6750 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6751 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6752 if test "${ac_cv_member_struct_stat_st_rdev+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 $ac_includes_default
6763 main ()
6765 static struct stat ac_aggr;
6766 if (ac_aggr.st_rdev)
6767 return 0;
6769 return 0;
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (ac_try="$ac_compile"
6774 case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777 esac
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_compile") 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest.$ac_objext; then
6789 ac_cv_member_struct_stat_st_rdev=yes
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h. */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 $ac_includes_default
6802 main ()
6804 static struct stat ac_aggr;
6805 if (sizeof ac_aggr.st_rdev)
6806 return 0;
6808 return 0;
6810 _ACEOF
6811 rm -f conftest.$ac_objext
6812 if { (ac_try="$ac_compile"
6813 case "(($ac_try" in
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6816 esac
6817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_compile") 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } && {
6825 test -z "$ac_c_werror_flag" ||
6826 test ! -s conftest.err
6827 } && test -s conftest.$ac_objext; then
6828 ac_cv_member_struct_stat_st_rdev=yes
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_cv_member_struct_stat_st_rdev=no
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6842 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6843 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6845 cat >>confdefs.h <<_ACEOF
6846 #define HAVE_STRUCT_STAT_ST_RDEV 1
6847 _ACEOF
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_ST_RDEV 1
6852 _ACEOF
6857 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6858 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6859 if test "${ac_cv_struct_tm+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 #include <sys/types.h>
6869 #include <time.h>
6872 main ()
6874 struct tm tm;
6875 int *p = &tm.tm_sec;
6876 return !p;
6878 return 0;
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_struct_tm=time.h
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_struct_tm=sys/time.h
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6909 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6910 if test $ac_cv_struct_tm = sys/time.h; then
6912 cat >>confdefs.h <<\_ACEOF
6913 #define TM_IN_SYS_TIME 1
6914 _ACEOF
6918 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6919 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6920 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 #include <sys/types.h>
6930 #include <$ac_cv_struct_tm>
6934 main ()
6936 static struct tm ac_aggr;
6937 if (ac_aggr.tm_zone)
6938 return 0;
6940 return 0;
6942 _ACEOF
6943 rm -f conftest.$ac_objext
6944 if { (ac_try="$ac_compile"
6945 case "(($ac_try" in
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_compile") 2>conftest.er1
6951 ac_status=$?
6952 grep -v '^ *+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest.$ac_objext; then
6960 ac_cv_member_struct_tm_tm_zone=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <sys/types.h>
6972 #include <$ac_cv_struct_tm>
6976 main ()
6978 static struct tm ac_aggr;
6979 if (sizeof ac_aggr.tm_zone)
6980 return 0;
6982 return 0;
6984 _ACEOF
6985 rm -f conftest.$ac_objext
6986 if { (ac_try="$ac_compile"
6987 case "(($ac_try" in
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6990 esac
6991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992 (eval "$ac_compile") 2>conftest.er1
6993 ac_status=$?
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } && {
6999 test -z "$ac_c_werror_flag" ||
7000 test ! -s conftest.err
7001 } && test -s conftest.$ac_objext; then
7002 ac_cv_member_struct_tm_tm_zone=yes
7003 else
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_cv_member_struct_tm_tm_zone=no
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7016 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7017 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7019 cat >>confdefs.h <<_ACEOF
7020 #define HAVE_STRUCT_TM_TM_ZONE 1
7021 _ACEOF
7026 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7028 cat >>confdefs.h <<\_ACEOF
7029 #define HAVE_TM_ZONE 1
7030 _ACEOF
7032 else
7033 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7034 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7035 if test "${ac_cv_have_decl_tzname+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 #include <time.h>
7047 main ()
7049 #ifndef tzname
7050 (void) tzname;
7051 #endif
7054 return 0;
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_cv_have_decl_tzname=yes
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_have_decl_tzname=no
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7085 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7086 if test $ac_cv_have_decl_tzname = yes; then
7088 cat >>confdefs.h <<_ACEOF
7089 #define HAVE_DECL_TZNAME 1
7090 _ACEOF
7093 else
7094 cat >>confdefs.h <<_ACEOF
7095 #define HAVE_DECL_TZNAME 0
7096 _ACEOF
7102 { echo "$as_me:$LINENO: checking for tzname" >&5
7103 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7104 if test "${ac_cv_var_tzname+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <time.h>
7114 #if !HAVE_DECL_TZNAME
7115 extern char *tzname[];
7116 #endif
7119 main ()
7121 return tzname[0][0];
7123 return 0;
7125 _ACEOF
7126 rm -f conftest.$ac_objext conftest$ac_exeext
7127 if { (ac_try="$ac_link"
7128 case "(($ac_try" in
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7131 esac
7132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7133 (eval "$ac_link") 2>conftest.er1
7134 ac_status=$?
7135 grep -v '^ *+' conftest.er1 >conftest.err
7136 rm -f conftest.er1
7137 cat conftest.err >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest$ac_exeext &&
7143 $as_test_x conftest$ac_exeext; then
7144 ac_cv_var_tzname=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 ac_cv_var_tzname=no
7152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7153 conftest$ac_exeext conftest.$ac_ext
7155 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7156 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7157 if test $ac_cv_var_tzname = yes; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_TZNAME 1
7161 _ACEOF
7166 { echo "$as_me:$LINENO: checking for off_t" >&5
7167 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7168 if test "${ac_cv_type_off_t+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 $ac_includes_default
7178 typedef off_t ac__type_new_;
7180 main ()
7182 if ((ac__type_new_ *) 0)
7183 return 0;
7184 if (sizeof (ac__type_new_))
7185 return 0;
7187 return 0;
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7192 case "(($ac_try" in
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7195 esac
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7207 ac_cv_type_off_t=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 ac_cv_type_off_t=no
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7218 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7219 if test $ac_cv_type_off_t = yes; then
7221 else
7223 cat >>confdefs.h <<_ACEOF
7224 #define off_t long int
7225 _ACEOF
7229 { echo "$as_me:$LINENO: checking for pid_t" >&5
7230 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7231 if test "${ac_cv_type_pid_t+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7241 typedef pid_t ac__type_new_;
7243 main ()
7245 if ((ac__type_new_ *) 0)
7246 return 0;
7247 if (sizeof (ac__type_new_))
7248 return 0;
7250 return 0;
7252 _ACEOF
7253 rm -f conftest.$ac_objext
7254 if { (ac_try="$ac_compile"
7255 case "(($ac_try" in
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7258 esac
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_compile") 2>conftest.er1
7261 ac_status=$?
7262 grep -v '^ *+' conftest.er1 >conftest.err
7263 rm -f conftest.er1
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } && {
7267 test -z "$ac_c_werror_flag" ||
7268 test ! -s conftest.err
7269 } && test -s conftest.$ac_objext; then
7270 ac_cv_type_pid_t=yes
7271 else
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7275 ac_cv_type_pid_t=no
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7281 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7282 if test $ac_cv_type_pid_t = yes; then
7284 else
7286 cat >>confdefs.h <<_ACEOF
7287 #define pid_t int
7288 _ACEOF
7292 { echo "$as_me:$LINENO: checking for size_t" >&5
7293 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7294 if test "${ac_cv_type_size_t+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h. */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 $ac_includes_default
7304 typedef size_t ac__type_new_;
7306 main ()
7308 if ((ac__type_new_ *) 0)
7309 return 0;
7310 if (sizeof (ac__type_new_))
7311 return 0;
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
7333 ac_cv_type_size_t=yes
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_type_size_t=no
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7344 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7345 if test $ac_cv_type_size_t = yes; then
7347 else
7349 cat >>confdefs.h <<_ACEOF
7350 #define size_t unsigned int
7351 _ACEOF
7355 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7356 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7357 if test "${ac_cv_type_uid_t+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360 cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h. */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 #include <sys/types.h>
7368 _ACEOF
7369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7370 $EGREP "uid_t" >/dev/null 2>&1; then
7371 ac_cv_type_uid_t=yes
7372 else
7373 ac_cv_type_uid_t=no
7375 rm -f conftest*
7378 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7379 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7380 if test $ac_cv_type_uid_t = no; then
7382 cat >>confdefs.h <<\_ACEOF
7383 #define uid_t int
7384 _ACEOF
7387 cat >>confdefs.h <<\_ACEOF
7388 #define gid_t int
7389 _ACEOF
7394 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7395 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7396 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399 cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h. */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 $ac_includes_default
7407 main ()
7409 static struct tm ac_aggr;
7410 if (ac_aggr.tm_gmtoff)
7411 return 0;
7413 return 0;
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7418 case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421 esac
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7424 ac_status=$?
7425 grep -v '^ *+' conftest.er1 >conftest.err
7426 rm -f conftest.er1
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && {
7430 test -z "$ac_c_werror_flag" ||
7431 test ! -s conftest.err
7432 } && test -s conftest.$ac_objext; then
7433 ac_cv_member_struct_tm_tm_gmtoff=yes
7434 else
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 $ac_includes_default
7446 main ()
7448 static struct tm ac_aggr;
7449 if (sizeof ac_aggr.tm_gmtoff)
7450 return 0;
7452 return 0;
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7457 case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_compile") 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest.$ac_objext; then
7472 ac_cv_member_struct_tm_tm_gmtoff=yes
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_cv_member_struct_tm_tm_gmtoff=no
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7486 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7487 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7489 cat >>confdefs.h <<_ACEOF
7490 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7491 _ACEOF
7497 # Look for some functions
7512 for ac_func in getpagesize kqueue statfs statvfs \
7513 clone kse_create rfork_thread thr_create sa_register \
7514 getcontext makecontext setcontext sigaltstack swapcontext
7516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7530 #define $ac_func innocuous_$ac_func
7532 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char $ac_func (); below.
7534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7535 <limits.h> exists even on freestanding compilers. */
7537 #ifdef __STDC__
7538 # include <limits.h>
7539 #else
7540 # include <assert.h>
7541 #endif
7543 #undef $ac_func
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 char $ac_func ();
7552 /* The GNU C library defines this for functions which it implements
7553 to always fail with ENOSYS. Some functions are actually named
7554 something starting with __ and the normal name is an alias. */
7555 #if defined __stub_$ac_func || defined __stub___$ac_func
7556 choke me
7557 #endif
7560 main ()
7562 return $ac_func ();
7564 return 0;
7566 _ACEOF
7567 rm -f conftest.$ac_objext conftest$ac_exeext
7568 if { (ac_try="$ac_link"
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_link") 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); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest$ac_exeext &&
7584 $as_test_x conftest$ac_exeext; then
7585 eval "$as_ac_var=yes"
7586 else
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 eval "$as_ac_var=no"
7593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7594 conftest$ac_exeext conftest.$ac_ext
7596 ac_res=`eval echo '${'$as_ac_var'}'`
7597 { echo "$as_me:$LINENO: result: $ac_res" >&5
7598 echo "${ECHO_T}$ac_res" >&6; }
7599 if test `eval echo '${'$as_ac_var'}'` = yes; then
7600 cat >>confdefs.h <<_ACEOF
7601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7602 _ACEOF
7605 done
7610 for ac_header in stdlib.h unistd.h
7612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 ac_res=`eval echo '${'$as_ac_Header'}'`
7620 { echo "$as_me:$LINENO: result: $ac_res" >&5
7621 echo "${ECHO_T}$ac_res" >&6; }
7622 else
7623 # Is the header compilable?
7624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 $ac_includes_default
7633 #include <$ac_header>
7634 _ACEOF
7635 rm -f conftest.$ac_objext
7636 if { (ac_try="$ac_compile"
7637 case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7640 esac
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642 (eval "$ac_compile") 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_c_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest.$ac_objext; then
7652 ac_header_compiler=yes
7653 else
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 ac_header_compiler=no
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7662 echo "${ECHO_T}$ac_header_compiler" >&6; }
7664 # Is the header present?
7665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 #include <$ac_header>
7674 _ACEOF
7675 if { (ac_try="$ac_cpp conftest.$ac_ext"
7676 case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679 esac
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } >/dev/null && {
7688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7689 test ! -s conftest.err
7690 }; then
7691 ac_header_preproc=yes
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 ac_header_preproc=no
7699 rm -f conftest.err conftest.$ac_ext
7700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7701 echo "${ECHO_T}$ac_header_preproc" >&6; }
7703 # So? What about this header?
7704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7705 yes:no: )
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7710 ac_header_preproc=yes
7712 no:yes:* )
7713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7727 esac
7728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733 eval "$as_ac_Header=\$ac_header_preproc"
7735 ac_res=`eval echo '${'$as_ac_Header'}'`
7736 { echo "$as_me:$LINENO: result: $ac_res" >&5
7737 echo "${ECHO_T}$ac_res" >&6; }
7740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7741 cat >>confdefs.h <<_ACEOF
7742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743 _ACEOF
7747 done
7750 for ac_func in getpagesize
7752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h. */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7766 #define $ac_func innocuous_$ac_func
7768 /* System header to define __stub macros and hopefully few prototypes,
7769 which can conflict with char $ac_func (); below.
7770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7771 <limits.h> exists even on freestanding compilers. */
7773 #ifdef __STDC__
7774 # include <limits.h>
7775 #else
7776 # include <assert.h>
7777 #endif
7779 #undef $ac_func
7781 /* Override any GCC internal prototype to avoid an error.
7782 Use char because int might match the return type of a GCC
7783 builtin and then its argument prototype would still apply. */
7784 #ifdef __cplusplus
7785 extern "C"
7786 #endif
7787 char $ac_func ();
7788 /* The GNU C library defines this for functions which it implements
7789 to always fail with ENOSYS. Some functions are actually named
7790 something starting with __ and the normal name is an alias. */
7791 #if defined __stub_$ac_func || defined __stub___$ac_func
7792 choke me
7793 #endif
7796 main ()
7798 return $ac_func ();
7800 return 0;
7802 _ACEOF
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (ac_try="$ac_link"
7805 case "(($ac_try" in
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7808 esac
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_link") 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest$ac_exeext &&
7820 $as_test_x conftest$ac_exeext; then
7821 eval "$as_ac_var=yes"
7822 else
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 eval "$as_ac_var=no"
7829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7830 conftest$ac_exeext conftest.$ac_ext
7832 ac_res=`eval echo '${'$as_ac_var'}'`
7833 { echo "$as_me:$LINENO: result: $ac_res" >&5
7834 echo "${ECHO_T}$ac_res" >&6; }
7835 if test `eval echo '${'$as_ac_var'}'` = yes; then
7836 cat >>confdefs.h <<_ACEOF
7837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7838 _ACEOF
7841 done
7843 { echo "$as_me:$LINENO: checking for working mmap" >&5
7844 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7845 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848 if test "$cross_compiling" = yes; then
7849 ac_cv_func_mmap_fixed_mapped=no
7850 else
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 $ac_includes_default
7858 /* malloc might have been renamed as rpl_malloc. */
7859 #undef malloc
7861 /* Thanks to Mike Haertel and Jim Avera for this test.
7862 Here is a matrix of mmap possibilities:
7863 mmap private not fixed
7864 mmap private fixed at somewhere currently unmapped
7865 mmap private fixed at somewhere already mapped
7866 mmap shared not fixed
7867 mmap shared fixed at somewhere currently unmapped
7868 mmap shared fixed at somewhere already mapped
7869 For private mappings, we should verify that changes cannot be read()
7870 back from the file, nor mmap's back from the file at a different
7871 address. (There have been systems where private was not correctly
7872 implemented like the infamous i386 svr4.0, and systems where the
7873 VM page cache was not coherent with the file system buffer cache
7874 like early versions of FreeBSD and possibly contemporary NetBSD.)
7875 For shared mappings, we should conversely verify that changes get
7876 propagated back to all the places they're supposed to be.
7878 Grep wants private fixed already mapped.
7879 The main things grep needs to know about mmap are:
7880 * does it exist and is it safe to write into the mmap'd area
7881 * how to use it (BSD variants) */
7883 #include <fcntl.h>
7884 #include <sys/mman.h>
7886 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7887 char *malloc ();
7888 #endif
7890 /* This mess was copied from the GNU getpagesize.h. */
7891 #ifndef HAVE_GETPAGESIZE
7892 /* Assume that all systems that can run configure have sys/param.h. */
7893 # ifndef HAVE_SYS_PARAM_H
7894 # define HAVE_SYS_PARAM_H 1
7895 # endif
7897 # ifdef _SC_PAGESIZE
7898 # define getpagesize() sysconf(_SC_PAGESIZE)
7899 # else /* no _SC_PAGESIZE */
7900 # ifdef HAVE_SYS_PARAM_H
7901 # include <sys/param.h>
7902 # ifdef EXEC_PAGESIZE
7903 # define getpagesize() EXEC_PAGESIZE
7904 # else /* no EXEC_PAGESIZE */
7905 # ifdef NBPG
7906 # define getpagesize() NBPG * CLSIZE
7907 # ifndef CLSIZE
7908 # define CLSIZE 1
7909 # endif /* no CLSIZE */
7910 # else /* no NBPG */
7911 # ifdef NBPC
7912 # define getpagesize() NBPC
7913 # else /* no NBPC */
7914 # ifdef PAGESIZE
7915 # define getpagesize() PAGESIZE
7916 # endif /* PAGESIZE */
7917 # endif /* no NBPC */
7918 # endif /* no NBPG */
7919 # endif /* no EXEC_PAGESIZE */
7920 # else /* no HAVE_SYS_PARAM_H */
7921 # define getpagesize() 8192 /* punt totally */
7922 # endif /* no HAVE_SYS_PARAM_H */
7923 # endif /* no _SC_PAGESIZE */
7925 #endif /* no HAVE_GETPAGESIZE */
7928 main ()
7930 char *data, *data2, *data3;
7931 int i, pagesize;
7932 int fd;
7934 pagesize = getpagesize ();
7936 /* First, make a file with some known garbage in it. */
7937 data = (char *) malloc (pagesize);
7938 if (!data)
7939 return 1;
7940 for (i = 0; i < pagesize; ++i)
7941 *(data + i) = rand ();
7942 umask (0);
7943 fd = creat ("conftest.mmap", 0600);
7944 if (fd < 0)
7945 return 1;
7946 if (write (fd, data, pagesize) != pagesize)
7947 return 1;
7948 close (fd);
7950 /* Next, try to mmap the file at a fixed address which already has
7951 something else allocated at it. If we can, also make sure that
7952 we see the same garbage. */
7953 fd = open ("conftest.mmap", O_RDWR);
7954 if (fd < 0)
7955 return 1;
7956 data2 = (char *) malloc (2 * pagesize);
7957 if (!data2)
7958 return 1;
7959 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7960 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7962 return 1;
7963 for (i = 0; i < pagesize; ++i)
7964 if (*(data + i) != *(data2 + i))
7965 return 1;
7967 /* Finally, make sure that changes to the mapped area do not
7968 percolate back to the file as seen by read(). (This is a bug on
7969 some variants of i386 svr4.0.) */
7970 for (i = 0; i < pagesize; ++i)
7971 *(data2 + i) = *(data2 + i) + 1;
7972 data3 = (char *) malloc (pagesize);
7973 if (!data3)
7974 return 1;
7975 if (read (fd, data3, pagesize) != pagesize)
7976 return 1;
7977 for (i = 0; i < pagesize; ++i)
7978 if (*(data + i) != *(data3 + i))
7979 return 1;
7980 close (fd);
7981 return 0;
7983 _ACEOF
7984 rm -f conftest$ac_exeext
7985 if { (ac_try="$ac_link"
7986 case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_link") 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7995 { (case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7998 esac
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_try") 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_func_mmap_fixed_mapped=yes
8005 else
8006 echo "$as_me: program exited with status $ac_status" >&5
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 ( exit $ac_status )
8011 ac_cv_func_mmap_fixed_mapped=no
8013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8018 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8019 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8020 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8022 cat >>confdefs.h <<\_ACEOF
8023 #define HAVE_MMAP 1
8024 _ACEOF
8027 rm -f conftest.mmap
8032 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
8033 aros_config_aflags="-Wall -x assembler-with-cpp -c"
8034 aros_config_ldflags=""
8036 aros_shared_default=yes
8038 aros_shared_cflags="-fPIC"
8039 aros_shared_aflags=""
8040 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8041 aros_kernel_ldflags="-Wl,-rpath,./lib"
8043 aros_kernel_ar_flags="cr"
8044 aros_target_ar_flags="cr"
8045 aros_target_nm_flags="-C -ul"
8046 aros_target_strip_flags="--strip-unneeded -R.comment"
8048 aros_compiler_libs=
8049 aros_arch_libs=
8051 aros_target_genmap="-Wl,-Map -Xlinker"
8053 # Native flavour stuff
8054 aros_serial_debug="0"
8056 # Palm native flavour stuff
8057 aros_palm_debug_hack="0"
8059 # Unix flavour stuff
8060 aros_nesting_supervisor="0"
8062 # Collect-aros stuff: "-ius" to ignore undefined symbols
8063 ignore_undefined_symbols=""
8065 # Check for X11 by default
8066 need_x11="auto"
8068 #-----------------------------------------------------------------------------
8071 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
8072 # it switched on by default, and we use the host compiler, so it compiles AROS
8073 # code with this enabled resulting in link failures as we don't have support
8074 # for it.
8076 # We use two methods to disable it. For the host compiler (used to compile
8077 # some hosted modules), we test to see if the compiler supports stack
8078 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
8079 # work on all platforms.
8081 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
8082 # (this is done unconditionally, as it should have no effect on compilers
8083 # without the stack protection feature). This may be specific to the way that
8084 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
8085 # strong enough to disable it in a generic way though, so we'll live with it
8086 # until another vendor ships GCC with it enabled in a different way, and deal
8087 # with it then.
8090 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
8091 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
8092 save_cflags="$CFLAGS"
8093 CFLAGS="$CFLAGS -fno-stack-protector"
8094 cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h. */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8102 main ()
8106 return 0;
8108 _ACEOF
8109 rm -f conftest.$ac_objext
8110 if { (ac_try="$ac_compile"
8111 case "(($ac_try" in
8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113 *) ac_try_echo=$ac_try;;
8114 esac
8115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116 (eval "$ac_compile") 2>conftest.er1
8117 ac_status=$?
8118 grep -v '^ *+' conftest.er1 >conftest.err
8119 rm -f conftest.er1
8120 cat conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } && {
8123 test -z "$ac_c_werror_flag" ||
8124 test ! -s conftest.err
8125 } && test -s conftest.$ac_objext; then
8126 use_no_stack_protector="yes"
8127 else
8128 echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8131 use_no_stack_protector="no"
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8136 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8137 if test "x-$use_no_stack_protector" = "x-yes" ; then
8138 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8140 CFLAGS="$save_cflags"
8142 #-----------------------------------------------------------------------------
8144 # Disable pointer-signedness warnings if the compiler recognises the option
8145 # (this only works for the host compiler at the moment)
8147 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8148 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8149 save_cflags="$CFLAGS"
8150 CFLAGS="$CFLAGS -Wno-pointer-sign"
8151 cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h. */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8159 main ()
8163 return 0;
8165 _ACEOF
8166 rm -f conftest.$ac_objext
8167 if { (ac_try="$ac_compile"
8168 case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && {
8180 test -z "$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 } && test -s conftest.$ac_objext; then
8183 use_no_sign_warning="yes"
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 use_no_sign_warning="no"
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8193 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8194 if test "x-$use_no_sign_warning" = "x-yes" ; then
8195 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8197 CFLAGS="$save_cflags"
8199 #-----------------------------------------------------------------------------
8201 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
8203 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fgnu89-inline" >&5
8204 echo $ECHO_N "checking whether ${CC} accepts -fgnu89-inline... $ECHO_C" >&6; }
8205 save_cflags="$CFLAGS"
8206 CFLAGS="$CFLAGS -fgnu89-inline"
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h. */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8215 main ()
8219 return 0;
8221 _ACEOF
8222 rm -f conftest.$ac_objext
8223 if { (ac_try="$ac_compile"
8224 case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_compile") 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then
8239 use_gnu89_inline="yes"
8240 else
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 use_gnu89_inline="no"
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 { echo "$as_me:$LINENO: result: $use_gnu89_inline" >&5
8249 echo "${ECHO_T}$use_gnu89_inline" >&6; }
8250 if test "x-$use_gnu89_inline" = "x-yes" ; then
8251 gnu89_inline="-fgnu89-inline"
8253 CFLAGS="$save_cflags"
8255 #-----------------------------------------------------------------------------
8257 { echo "$as_me:$LINENO: checking for type of build" >&5
8258 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8259 # Check whether --enable-build_type was given.
8260 if test "${enable_build_type+set}" = set; then
8261 enableval=$enable_build_type; build_type=$enableval
8262 else
8263 build_type="personal"
8267 if test "$build_type" = "nightly"; then
8268 build_type_string="NIGHTLY"
8269 elif test "$build_type" = "snapshot"; then
8270 build_type_string="SNAPSHOT"
8271 elif test "$build_type" = "milestone"; then
8272 build_type_string="MILESTONE"
8273 elif test "$build_type" = "release"; then
8274 build_type_string="RELEASE"
8275 else
8276 build_type_string="PERSONAL"
8277 build_type="personal"
8280 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8282 { echo "$as_me:$LINENO: result: $build_type" >&5
8283 echo "${ECHO_T}$build_type" >&6; }
8285 #-----------------------------------------------------------------------------
8286 all_debug_types="messages stack modules mungwall symbols"
8288 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8289 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8290 # Check whether --enable-debug was given.
8291 if test "${enable_debug+set}" = set; then
8292 enableval=$enable_debug; debug="$enableval"
8293 else
8294 debug=""
8298 if test "$debug" = "" -o "$debug" = "no"; then
8299 debug="none"
8300 elif test "$debug" = "yes"; then
8301 debug="all"
8304 if test "$debug" = "all" ; then
8305 debug="messages stack modules symbols"
8306 for d in $all_debug_types; do
8307 export aros_${d}_debug="1"
8308 done
8309 else
8310 for d in $all_debug_types; do
8311 export aros_${d}_debug="0"
8312 done
8315 if test "$debug" != "none"; then
8316 debug=`echo $debug | sed s/,/\ /g`
8317 for d in $debug; do
8318 found="0"
8319 for d2 in $all_debug_types; do
8320 if test "$d2" = "$d"; then
8321 found="1"
8322 break
8324 done
8325 if test "$found" = "0"; then
8326 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8327 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8328 { (exit 1); exit 1; }; }
8330 export aros_${d}_debug="1"
8331 done
8332 aros_debug="yes"
8334 { echo "$as_me:$LINENO: result: $debug" >&5
8335 echo "${ECHO_T}$debug" >&6; }
8337 if test "$aros_messages_debug" = "1"; then
8338 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8339 else
8340 aros_messages_debug=""
8342 if test "$aros_symbols_debug" = "1"; then
8343 aros_symbols_debug="-g"
8344 else
8345 aros_symbols_debug=""
8348 # These are the flags to pass when compiling debugged programs
8349 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8350 aros_debug_aflags=""
8351 aros_debug_ldflags="$aros_symbols_debug"
8353 #-----------------------------------------------------------------------------
8354 # Checking if we should build crosstools..
8355 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8356 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8357 # Check whether --enable-crosstools was given.
8358 if test "${enable_crosstools+set}" = set; then
8359 enableval=$enable_crosstools; crosstools="$enableval"
8360 else
8361 crosstools="no"
8364 { echo "$as_me:$LINENO: result: $crosstools" >&5
8365 echo "${ECHO_T}$crosstools" >&6; }
8367 #-----------------------------------------------------------------------------
8368 # Checking for distcc and ccache.
8370 # Always apply the transforms in this particular order. Basically you should
8371 # always run 'ccache distcc compiler' in that order for the best performance.
8373 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8374 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8375 # Check whether --enable-distcc was given.
8376 if test "${enable_distcc+set}" = set; then
8377 enableval=$enable_distcc; distcc="$enableval"
8378 else
8379 distcc="no"
8382 if test "$distcc" != "" -a "$distcc" != "no"; then
8383 # AC_CHECK_PROG will print out the result in this case
8384 # Extract the first word of "distcc", so it can be a program name with args.
8385 set dummy distcc; ac_word=$2
8386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8388 if test "${ac_cv_path_DISTCC+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391 case $DISTCC in
8392 [\\/]* | ?:[\\/]*)
8393 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8407 done
8408 done
8409 IFS=$as_save_IFS
8411 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8413 esac
8415 DISTCC=$ac_cv_path_DISTCC
8416 if test -n "$DISTCC"; then
8417 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8418 echo "${ECHO_T}$DISTCC" >&6; }
8419 else
8420 { echo "$as_me:$LINENO: result: no" >&5
8421 echo "${ECHO_T}no" >&6; }
8425 else
8426 { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8430 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8431 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8432 # Check whether --enable-ccache was given.
8433 if test "${enable_ccache+set}" = set; then
8434 enableval=$enable_ccache; ccache="$enableval"
8435 else
8436 ccache="no"
8439 if test "$ccache" != "" -a "$ccache" != "no"; then
8440 # AC_CHECK_PROG will print out the result in this case
8441 # Extract the first word of "ccache", so it can be a program name with args.
8442 set dummy ccache; ac_word=$2
8443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8445 if test "${ac_cv_prog_CCACHE+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 if test -n "$CCACHE"; then
8449 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8454 IFS=$as_save_IFS
8455 test -z "$as_dir" && as_dir=.
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8458 ac_cv_prog_CCACHE="ccache"
8459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8460 break 2
8462 done
8463 done
8464 IFS=$as_save_IFS
8468 CCACHE=$ac_cv_prog_CCACHE
8469 if test -n "$CCACHE"; then
8470 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8471 echo "${ECHO_T}$CCACHE" >&6; }
8472 else
8473 { echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6; }
8478 else
8479 { echo "$as_me:$LINENO: result: no" >&5
8480 echo "${ECHO_T}no" >&6; }
8483 #-----------------------------------------------------------------------------
8484 { echo "$as_me:$LINENO: checking what specific host gcc version to use" >&5
8485 echo $ECHO_N "checking what specific host gcc version to use... $ECHO_C" >&6; }
8487 # Check whether --with-gcc-version was given.
8488 if test "${with_gcc_version+set}" = set; then
8489 withval=$with_gcc_version; target_tool_version="$withval"
8490 else
8491 target_tool_version="default"
8494 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8495 echo "${ECHO_T}$target_tool_version" >&6; }
8497 #-----------------------------------------------------------------------------
8498 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8499 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8501 # Check whether --with-optimization was given.
8502 if test "${with_optimization+set}" = set; then
8503 withval=$with_optimization; optimization="$withval"
8504 else
8505 optimization="unknown"
8508 if test "$optimization" = "unknown"; then
8509 if test "$debug" != "none"; then
8510 optimization="-O0"
8511 else
8512 optimization="-O2"
8515 aros_config_cflags="$aros_config_cflags $optimization"
8516 { echo "$as_me:$LINENO: result: $optimization" >&5
8517 echo "${ECHO_T}$optimization" >&6; }
8519 #-----------------------------------------------------------------------------
8520 { echo "$as_me:$LINENO: checking what paranoia flags to use" >&5
8521 echo $ECHO_N "checking what paranoia flags to use... $ECHO_C" >&6; }
8523 # Check whether --with-paranoia was given.
8524 if test "${with_paranoia+set}" = set; then
8525 withval=$with_paranoia; paranoia_flags="$withval"
8526 else
8527 paranoia_flags="default"
8530 if test "$paranoia_flags" = "default"; then
8531 paranoia_flags=""
8532 else if test "$paranoia_flags" = "yes"; then
8533 paranoia_flags="-Wall -Werror"
8534 fi fi
8535 { echo "$as_me:$LINENO: result: $paranoia_flags" >&5
8536 echo "${ECHO_T}$paranoia_flags" >&6; }
8537 aros_config_cflags="$aros_config_cflags $paranoia_flags"
8539 #-----------------------------------------------------------------------------
8540 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8541 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8542 # Check whether --enable-target_variant was given.
8543 if test "${enable_target_variant+set}" = set; then
8544 enableval=$enable_target_variant; target_variant=$enableval
8545 else
8546 target_variant=""
8549 if test "$target_variant" = ""; then
8550 aros_target_variant=""
8551 aros_target_suffix=""
8552 enableval="none"
8553 else
8554 aros_target_variant="$target_variant"
8555 aros_target_suffix="-$target_variant"
8557 { echo "$as_me:$LINENO: result: $enableval" >&5
8558 echo "${ECHO_T}$enableval" >&6; }
8560 #-----------------------------------------------------------------------------
8561 # Target-specific defaults. You can override then on a per-target basis.
8563 # Bootloader name. Currently used by PC target.
8564 target_bootloader="none"
8566 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
8567 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
8568 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
8569 if test "$crosstools" != "yes"; then
8570 target_tool_prefix=${target_cpu}-elf-
8571 else
8572 target_tool_prefix=${target_cpu}-aros-
8575 #-----------------------------------------------------------------------------
8576 # Additional options for some specific targets
8578 case "$aros_target_variant" in
8579 ios)
8580 { echo "$as_me:$LINENO: checking XCode path" >&5
8581 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8583 # Check whether --with-xcode was given.
8584 if test "${with_xcode+set}" = set; then
8585 withval=$with_xcode; aros_xcode_path="$withval"
8586 else
8587 aros_xcode_path="/Developer"
8590 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8591 echo "${ECHO_T}$aros_xcode_path" >&6; }
8593 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8594 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8596 # Check whether --with-ios-version was given.
8597 if test "${with_ios_version+set}" = set; then
8598 withval=$with_ios_version; aros_ios_version="$withval"
8599 else
8600 aros_ios_version="3.0"
8603 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8604 echo "${ECHO_T}$aros_ios_version" >&6; }
8606 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8607 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8609 # Check whether --with-ios-sdk was given.
8610 if test "${with_ios_sdk+set}" = set; then
8611 withval=$with_ios_sdk; aros_ios_sdk="$withval"
8612 else
8613 aros_ios_sdk="4.1"
8616 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8617 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8621 "android")
8622 { echo "$as_me:$LINENO: checking Android SDK path" >&5
8623 echo $ECHO_N "checking Android SDK path... $ECHO_C" >&6; }
8625 # Check whether --with-sdk was given.
8626 if test "${with_sdk+set}" = set; then
8627 withval=$with_sdk; aros_android_sdk="$withval"
8628 else
8629 aros_android_sdk=$default_android_sdk
8632 { echo "$as_me:$LINENO: result: $aros_android_sdk" >&5
8633 echo "${ECHO_T}$aros_android_sdk" >&6; }
8635 { echo "$as_me:$LINENO: checking Android NDK path" >&5
8636 echo $ECHO_N "checking Android NDK path... $ECHO_C" >&6; }
8638 # Check whether --with-ndk was given.
8639 if test "${with_ndk+set}" = set; then
8640 withval=$with_ndk; aros_android_ndk="$withval"
8641 else
8642 aros_android_ndk="none"
8645 { echo "$as_me:$LINENO: result: $aros_android_ndk" >&5
8646 echo "${ECHO_T}$aros_android_ndk" >&6; }
8648 { echo "$as_me:$LINENO: checking what Android SDK version to use" >&5
8649 echo $ECHO_N "checking what Android SDK version to use... $ECHO_C" >&6; }
8651 # Check whether --with-sdk-version was given.
8652 if test "${with_sdk_version+set}" = set; then
8653 withval=$with_sdk_version; aros_sdk_version="$withval"
8654 else
8655 aros_sdk_version="8"
8658 { echo "$as_me:$LINENO: result: $aros_sdk_version" >&5
8659 echo "${ECHO_T}$aros_sdk_version" >&6; }
8661 if test "$aros_android_ndk" != "none"; then
8662 { echo "$as_me:$LINENO: checking what Android NDK version to use" >&5
8663 echo $ECHO_N "checking what Android NDK version to use... $ECHO_C" >&6; }
8665 # Check whether --with-ndk-version was given.
8666 if test "${with_ndk_version+set}" = set; then
8667 withval=$with_ndk_version; aros_ndk_version="$withval"
8668 else
8669 aros_ndk_version="9"
8672 { echo "$as_me:$LINENO: result: $aros_ndk_version" >&5
8673 echo "${ECHO_T}$aros_ndk_version" >&6; }
8676 export PATH="$aros_android_sdk/tools:$PATH"
8677 # Extract the first word of "$android_tool", so it can be a program name with args.
8678 set dummy $android_tool; ac_word=$2
8679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8681 if test "${ac_cv_path_android_tool+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684 case $android_tool in
8685 [\\/]* | ?:[\\/]*)
8686 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8692 IFS=$as_save_IFS
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 break 2
8700 done
8701 done
8702 IFS=$as_save_IFS
8705 esac
8707 android_tool=$ac_cv_path_android_tool
8708 if test -n "$android_tool"; then
8709 { echo "$as_me:$LINENO: result: $android_tool" >&5
8710 echo "${ECHO_T}$android_tool" >&6; }
8711 else
8712 { echo "$as_me:$LINENO: result: no" >&5
8713 echo "${ECHO_T}no" >&6; }
8717 if test "$android_tool" = ""; then
8718 { { echo "$as_me:$LINENO: error: android is required to build AROS. Please install and run configure again." >&5
8719 echo "$as_me: error: android is required to build AROS. Please install and run configure again." >&2;}
8720 { (exit 1); exit 1; }; }
8723 # Extract the first word of "ant", so it can be a program name with args.
8724 set dummy ant; ac_word=$2
8725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8727 if test "${ac_cv_path_ant+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730 case $ant in
8731 [\\/]* | ?:[\\/]*)
8732 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8746 done
8747 done
8748 IFS=$as_save_IFS
8751 esac
8753 ant=$ac_cv_path_ant
8754 if test -n "$ant"; then
8755 { echo "$as_me:$LINENO: result: $ant" >&5
8756 echo "${ECHO_T}$ant" >&6; }
8757 else
8758 { echo "$as_me:$LINENO: result: no" >&5
8759 echo "${ECHO_T}no" >&6; }
8763 if test "$ant" = ""; then
8764 { echo "$as_me:$LINENO: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8765 echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8768 if test "$host_os" = "mingw32"; then
8769 android_tool="cmd //c $android_tool"
8773 esac
8775 #-----------------------------------------------------------------------------
8776 # This is the target configuration switch.
8777 case "$target_os" in
8778 linux*)
8779 aros_target_arch="linux"
8780 aros_target_family="unix"
8781 case "$target_cpu" in
8782 *m68k*)
8783 aros_target_cpu="m68k"
8784 aros_object_format="m68kelf"
8785 aros_flavour="emulcompat"
8786 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8787 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8788 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8789 gcc_target_cpu="mc68000"
8791 *i?86*)
8792 aros_target_cpu="i386"
8793 aros_object_format="elf_i386"
8794 aros_flavour="emulation"
8795 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8796 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8797 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8798 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8799 aros_config_ldflags="-m32 -march=i486"
8800 aros_kernel_ldflags="-melf_i386"
8801 aros_default_wbdepth=8
8802 gcc_target_cpu="i386"
8803 pci_hidd_target="hidd-pci-linux"
8804 android_tool_dir_prefix="x86"
8805 android_tool_prefix="i686-android-linux"
8806 android_ndk_arch="x86"
8808 *x86_64*)
8809 aros_target_cpu="x86_64"
8810 aros_object_format="elf_x86_64"
8811 aros_flavour="emulation"
8812 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8813 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
8814 aros_default_wbdepth=8
8815 pci_hidd_target="hidd-pci-linux"
8817 *powerpc*)
8818 aros_target_cpu="ppc"
8819 aros_object_format="elf32ppc"
8820 aros_flavour="emulation"
8821 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8822 aros_default_wbdepth=8
8823 gcc_target_cpu="ppc"
8825 # TODO
8826 # Same as powerpc, but I need this for the nightly build to work again.
8827 # Actually, the nightly should be made working with powerpc target.
8828 # That just was too much work for the moment, another week or two.
8829 *ppc*)
8830 aros_target_cpu="ppc"
8831 aros_object_format="elf32ppc"
8832 aros_flavour="emulation"
8833 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8834 aros_default_wbdepth=8
8835 gcc_target_cpu="ppc"
8837 *arm*)
8838 aros_target_cpu="arm"
8839 aros_object_format="armelf_linux_eabi"
8840 aros_flavour="emulation"
8841 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8842 gcc_target_cpu="arm"
8843 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing -fno-omit-frame-pointer"
8844 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8845 aros_arch_libs="-laeabi"
8846 android_tool_dir_prefix="arm-linux-androideabi"
8847 android_tool_prefix="arm-linux-androideabi"
8848 android_ndk_arch="arm"
8851 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8852 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8853 { (exit 1); exit 1; }; }
8855 esac
8856 case "$aros_target_variant" in
8857 android)
8859 if test "$android_ndk_arch" = ""; then
8860 { { echo "$as_me:$LINENO: error: \"Unsupported CPU for Android -- $target_cpu\"" >&5
8861 echo "$as_me: error: \"Unsupported CPU for Android -- $target_cpu\"" >&2;}
8862 { (exit 1); exit 1; }; }
8865 aros_android_level=android-$aros_sdk_version
8866 aros_default_wbwidth=320
8867 aros_default_wbheight=480
8868 if test "$aros_android_ndk" = "none"; then
8869 aros_kernel_cflags="-mandroid"
8870 aros_kernel_ldflags="-mandroid"
8871 CFLAGS="-mandroid"
8872 else
8873 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
8874 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8875 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8876 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8877 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8878 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8880 need_x11=no
8881 x11_hidd_target=kernel-hidd-androidgfx-kobj
8882 target_tool_prefix="$android_tool_prefix-"
8884 esac
8888 aros_target_arch="pc"
8889 aros_shared_default="no"
8890 target_bootloader="grub2"
8891 case "$target_cpu" in
8892 *i?86*)
8893 aros_target_cpu="i386"
8896 if test "$aros_object_format" = "" ; then
8897 aros_object_format="elf_i386"
8899 aros_flavour="standalone"
8900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8901 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8902 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8903 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8904 aros_config_ldflags="-m32 -march=i486"
8905 aros_kernel_ldflags="-melf_i386"
8906 aros_default_wbwidth=640
8907 aros_default_wbheight=480
8908 gcc_target_cpu="i386"
8910 *x86_64*)
8911 aros_target_cpu="x86_64"
8912 aros_serial_debug=1
8913 if test "$aros_object_format" = "" ; then
8914 aros_object_format="elf_x86_64"
8916 aros_flavour="standalone"
8917 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8918 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8919 aros_kernel_ldflags=""
8920 aros_default_wbwidth=640
8921 aros_default_wbheight=480
8924 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8925 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8926 { (exit 1); exit 1; }; }
8928 esac
8931 prep)
8932 aros_target_arch="prep"
8933 aros_shared_default="no"
8934 aros_target_cpu="ppc"
8935 aros_object_format="elf32ppc"
8936 aros_flavour="ppcnative"
8937 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8938 aros_kernel_ldflags=""
8939 aros_default_wbwidth=640
8940 aros_default_wbheight=480
8941 gcc_target_cpu="ppc"
8944 freebsd*)
8945 aros_target_arch="freebsd"
8946 aros_target_family="unix"
8947 aros_target_cpu="i386"
8948 aros_flavour="emulation"
8949 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8950 gcc_target_cpu="i386"
8952 aros_target_strip_flags="-x"
8955 darwin*)
8956 aros_target_arch="darwin"
8957 aros_target_family="unix"
8958 aros_flavour="emulation"
8959 case "$target_cpu" in
8960 *i?86*)
8961 aros_ios_platform="iPhoneSimulator"
8962 aros_target_cpu="i386"
8963 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8964 aros_kernel_ldflags=""
8965 aros_macosx_version="10.4"
8966 aros_default_wbdepth=8
8967 gcc_target_cpu="i386"
8968 aros_object_format="elf_i386"
8969 aros_kernel_ar_flags="-cr"
8970 aros_target_strip_flags="-x"
8971 target_tool_prefix="i686-apple-darwin10-"
8972 target_tool_flags="-m32"
8974 *x86_64*)
8975 aros_target_cpu="x86_64"
8976 aros_object_format="elf_x86_64"
8977 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8978 aros_macosx_version="10.6"
8979 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8980 aros_kernel_cflags="-m64"
8981 aros_kernel_ldflags="-m64"
8982 aros_target_cflags="-mcmodel=large"
8983 aros_default_wbdepth=8
8984 aros_kernel_ar="ar"
8985 aros_kernel_ar_flags="-cr"
8986 aros_kernel_ld="ld"
8987 aros_kernel_ranlib="ranlib"
8988 target_tool_prefix="i686-apple-darwin10-"
8990 *ppc*)
8991 aros_target_cpu="ppc"
8992 aros_object_format="elf32ppc"
8993 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8994 aros_kernel_ldflags=""
8995 aros_macosx_version="10.0"
8996 aros_default_wbdepth=8
8997 gcc_target_cpu="ppc"
8998 aros_kernel_ar="ar"
8999 aros_kernel_ar_flags="-cr"
9000 aros_kernel_ld="ld -arch ppc"
9001 aros_kernel_ranlib="ranlib -arch ppc"
9002 target_tool_prefix="powerpc-apple-darwin10-"
9004 *arm*)
9005 aros_ios_platform="iPhoneOS"
9006 aros_target_cpu="arm"
9007 aros_object_format="armelf_linux_eabi"
9008 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9009 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
9010 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
9011 aros_arch_libs="-laeabi"
9012 aros_default_wbdepth=8
9013 gcc_target_cpu="arm"
9014 aros_kernel_ar="ar"
9015 aros_kernel_ar_flags="-cr"
9016 aros_kernel_ld="ld -arch arm"
9017 aros_kernel_ranlib="ranlib -arch arm"
9018 target_tool_prefix="arm-apple-darwin10-"
9019 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
9022 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
9023 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
9024 { (exit 1); exit 1; }; }
9026 esac
9027 case "$aros_target_variant" in
9028 ios)
9029 aros_default_wbwidth=320
9030 aros_default_wbheight=480
9031 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
9032 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
9033 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
9034 need_x11=no
9035 # This is here because it may depend on iOS or SDK version
9036 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
9037 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
9038 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
9041 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
9042 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
9044 esac
9047 dragonfly*)
9048 aros_target_arch="dragonfly"
9049 aros_target_family="unix"
9050 aros_flavour="emulation"
9051 case "$target_cpu" in
9052 *i?86*)
9053 aros_target_cpu="i386"
9054 aros_object_format="elf_i386"
9055 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
9057 *x86_64*)
9058 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
9059 aros_target_cpu="x86_64"
9060 aros_object_format="elf_x86_64"
9061 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
9064 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
9065 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
9066 { (exit 1); exit 1; }; }
9068 esac
9071 netbsd*)
9072 aros_target_arch="netbsd"
9073 aros_target_family="unix"
9074 case "$target_cpu" in
9075 *m68k*)
9076 aros_target_cpu="m68k"
9077 aros_object_format="m68kelf"
9078 aros_flavour="emulcompat"
9079 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
9080 gcc_target_cpu="mc68000"
9082 *i?86*)
9083 aros_target_cpu="i386"
9084 aros_object_format="elf_i386"
9085 aros_flavour="emulation"
9086 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
9087 aros_default_wbdepth=8
9088 gcc_target_cpu="i386"
9091 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
9092 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
9093 { (exit 1); exit 1; }; }
9095 esac
9096 aros_target_genmap="-Wl,-M -Xlinker >"
9097 aros_flavour="emulation"
9098 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9101 openbsd*)
9102 aros_target_arch="openbsd"
9103 aros_target_family="unix"
9104 case "$target_cpu" in
9105 *i?86*)
9106 aros_target_cpu="i386"
9107 aros_object_format="elf_i386"
9108 aros_flavour="emulation"
9109 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
9110 gcc_target_cpu="i386"
9113 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
9114 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
9115 { (exit 1); exit 1; }; }
9117 esac
9118 aros_target_genmap="-Wl,-M -Xlinker >"
9119 aros_target_nm_flags="-u"
9120 aros_flavour="emulation"
9123 solaris*)
9124 aros_target_arch="solaris"
9125 aros_target_family="unix"
9126 case "$target_cpu" in
9127 *i?86*)
9128 aros_target_cpu="i386"
9129 aros_object_format="elf_i386"
9130 aros_flavour="emulation"
9131 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
9132 aros_default_wbdepth=8
9133 gcc_target_cpu="i386"
9135 *sparc*)
9136 aros_target_cpu="sparc"
9137 aros_object_format="elf_sparc"
9138 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
9139 gcc_target_cpu="sparc"
9142 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
9143 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
9144 { (exit 1); exit 1; }; }
9146 esac
9147 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
9148 aros_flavour="emulation"
9151 morphos*)
9152 aros_target_arch="morphos"
9153 aros_shared_default="no"
9154 aros_target_cpu="ppc"
9155 aros_object_format="elf_ppc"
9156 aros_flavour="nativecompat"
9157 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9158 gcc_target_cpu="ppc"
9161 sam440)
9162 aros_target_arch="sam440"
9163 aros_shared_default="no"
9164 aros_target_cpu="ppc"
9165 aros_object_format="elf32ppc"
9166 aros_flavour="ppcnative"
9167 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9168 aros_kernel_ldflags=""
9169 aros_default_wbwidth=1024
9170 aros_default_wbheight=768
9171 aros_default_wbdepth=24
9172 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
9173 gcc_target_cpu="powerpc"
9176 efika)
9177 aros_target_arch="efika"
9178 aros_shared_default="no"
9179 aros_target_cpu="arm"
9180 aros_object_format="armelf_linux_eabi"
9181 aros_flavour="standalone"
9182 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9183 aros_kernel_ldflags=""
9184 aros_default_wbwidth=1024
9185 aros_default_wbheight=600
9186 aros_arch_libs="-laeabi"
9187 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
9188 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
9191 chrp)
9192 aros_target_arch="chrp"
9193 aros_shared_default="no"
9194 aros_target_cpu="ppc"
9195 aros_object_format="elf32ppc"
9196 aros_flavour="ppcnative"
9197 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9198 aros_kernel_ldflags=""
9199 aros_default_wbwidth=640
9200 aros_default_wbheight=480
9201 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
9202 gcc_target_cpu="powerpc"
9203 case "$aros_target_variant" in
9204 efika)
9205 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
9207 esac
9210 amiga*)
9211 aros_target_arch="amiga"
9212 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9213 aros_shared_default="no"
9215 case "$target_cpu" in
9216 *m68k*)
9217 # Check whether --enable-amigaos_compliance was given.
9218 if test "${enable_amigaos_compliance+set}" = set; then
9219 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9222 aros_enable_mmu=no
9223 aros_target_cpu="m68k"
9224 aros_object_format="m68kelf"
9225 aros_flavour="standcompat"
9226 gcc_target_cpu="m68000"
9227 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
9228 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
9229 target_tool_prefix="m68k-elf-"
9230 # Needed to get the correct multilib
9231 aros_config_ldflags="-${gcc_target_cpu}"
9232 aros_shared_ldflags="-${gcc_target_cpu}"
9233 aros_kernel_ldflags="-${gcc_target_cpu}"
9234 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
9235 aros_target_strip_flags="-R.comment --strip-debug"
9236 aros_default_wbwidth=640
9237 aros_default_wbheight=256
9238 aros_default_wbdepth=2
9240 *ppc*)
9241 aros_cpu="ppc"
9242 aros_flavour="native"
9243 gcc_target_cpu="ppc"
9246 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
9247 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
9248 { (exit 1); exit 1; }; }
9250 esac
9253 mingw*)
9254 aros_target_arch="mingw32"
9255 aros_shared_default="no"
9256 aros_flavour="emulation"
9257 aros_shared_cflags=""
9258 need_dlopen="no"
9259 rescomp="windres"
9260 case "$target_cpu" in
9261 *i?86*)
9262 aros_target_cpu="i386"
9263 aros_object_format="elf_i386"
9264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9265 aros_default_wbdepth=8
9266 gcc_target_cpu="i386"
9268 aros_target_as="i386-aros-as"
9269 aros_target_ar="i386-aros-ar"
9270 aros_target_ranlib="i386-aros-ranlib"
9271 aros_target_nm="i386-aros-nm"
9272 aros_target_strip="i386-aros-strip"
9273 aros_target_objcopy="i386-aros-objcopy"
9274 aros_target_objdump="i386-aros-objdump"
9276 target_tool_prefix="i386-mingw32-"
9278 *x86_64*)
9279 aros_target_cpu="x86_64"
9280 aros_object_format="elf_x86_64"
9281 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9282 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
9283 aros_default_wbdepth=8
9284 target_tool_prefix="x86_64-w64-mingw32-"
9286 *arm*)
9287 aros_target_cpu="arm"
9288 aros_object_format="armelf_linux_eabi"
9289 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9290 aros_arch_libs="-laeabi"
9291 aros_default_wbdepth=8
9292 gcc_target_cpu="arm"
9293 target_tool_prefix="arm-mingw32ce-"
9294 aros_default_wbwidth=160
9295 aros_default_wbheight=160
9298 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
9299 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
9300 { (exit 1); exit 1; }; }
9302 esac
9303 if test $host_os = "cygwin"; then
9304 aros_kernel_cflags="-mno-cygwin"
9307 pp*)
9308 aros_target_arch="pp"
9309 aros_shared_default="no"
9310 case "$target_cpu" in
9311 *m68k*)
9312 aros_target_cpu="m68k"
9313 aros_object_format="m68kelf"
9314 aros_flavour="palmnative"
9315 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9316 aros_default_wbwidth=160
9317 aros_default_wbheight=160
9318 aros_default_wbdepth=1
9319 aros_target_ar_flags="cru"
9320 aros_compiler_libs="-lgcc1"
9321 aros_shared_default=no
9322 aros_shared_cflags="-fpic"
9323 aros_shared_aflags=""
9324 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9325 aros_kernel_ldflags="-Wl,-rpath,./lib"
9326 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9327 aros_debug_aflags=""
9328 aros_debug_ldflags="$aros_symbols_debug"
9329 aros_mungwall_debug="0"
9330 aros_modules_debug="0"
9331 gcc_target_cpu="mc68000"
9332 ignore_undefined_symbols="-ius"
9335 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9336 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9337 { (exit 1); exit 1; }; }
9339 esac
9342 mac*)
9343 aros_target_arch="mac"
9344 aros_shared_default="no"
9345 case "$target_cpu" in
9346 *m68k*)
9347 aros_target_cpu="m68k"
9348 aros_object_format="m68kelf"
9349 aros_flavour="mac68knative"
9350 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9351 aros_default_wbwidth=512
9352 aros_default_wbheight=384
9353 aros_default_wbdepth=8
9354 aros_target_ar_flags="cru"
9355 aros_compiler_libs="-lgcc1"
9356 aros_shared_default=no
9357 aros_shared_cflags="-fpic"
9358 aros_shared_aflags=""
9359 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9360 aros_kernel_ldflags="-Wl,-rpath,./lib"
9361 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
9362 aros_debug_aflags=""
9363 aros_debug_ldflags="$aros_symbols_debug"
9364 aros_mungwall_debug="0"
9365 aros_modules_debug="0"
9366 gcc_target_cpu="mc68000"
9367 ignore_undefined_symbols="-ius"
9370 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9371 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9372 { (exit 1); exit 1; }; }
9374 esac
9378 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9379 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9380 { (exit 1); exit 1; }; }
9382 esac
9384 # Some formats need custom ELF specs.
9385 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
9386 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9387 elf_specs_in=config/${aros_object_format}-specs.in
9388 else
9389 elf_specs_in=config/elf-specs.in
9392 #-----------------------------------------------------------------------------
9393 { echo "$as_me:$LINENO: checking where to install or search for cross tools binaries" >&5
9394 echo $ECHO_N "checking where to install or search for cross tools binaries... $ECHO_C" >&6; }
9396 # Check whether --with-crosstools was given.
9397 if test "${with_crosstools+set}" = set; then
9398 withval=$with_crosstools; with_crosstools=$withval
9399 else
9400 with_crosstools="default"
9403 if test "$with_crosstools" = "default"; then
9404 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9405 else
9406 AROS_CROSSTOOLSDIR="$with_crosstools"
9408 { echo "$as_me:$LINENO: result: $AROS_CROSSTOOLSDIR" >&5
9409 echo "${ECHO_T}$AROS_CROSSTOOLSDIR" >&6; }
9411 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
9414 use_aros_gcc=yes
9415 PATH=$AROS_CROSSTOOLSDIR:$PATH
9418 { echo "$as_me:$LINENO: checking what specific AROS gcc version to use" >&5
9419 echo $ECHO_N "checking what specific AROS gcc version to use... $ECHO_C" >&6; }
9421 # Check whether --with-aros-gcc was given.
9422 if test "${with_aros_gcc+set}" = set; then
9423 withval=$with_aros_gcc; aros_gcc_version="$withval"
9424 else
9425 aros_gcc_version="$use_aros_gcc"
9428 case "$aros_gcc_version" in
9429 yes)
9430 aros_gcc_version="default"
9433 aros_gcc_version="none"
9435 esac
9436 { echo "$as_me:$LINENO: result: $aros_gcc_version" >&5
9437 echo "${ECHO_T}$aros_gcc_version" >&6; }
9439 if test "$aros_gcc_version" != "none"; then
9442 if test "$aros_gcc_version" != "default"; then
9443 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
9444 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
9445 else
9446 aros_target_cc="$aros_target_cpu-aros-gcc"
9447 aros_target_cxx="$aros_target_cpu-aros-g++"
9450 aros_target_ld="$aros_target_cpu-aros-ld"
9451 aros_target_as="$aros_target_cpu-aros-as"
9452 aros_target_ar="$aros_target_cpu-aros-ar"
9453 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
9454 aros_target_nm="$aros_target_cpu-aros-nm"
9455 aros_target_strip="$aros_target_cpu-aros-strip"
9456 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
9457 aros_target_objdump="$aros_target_cpu-aros-objdump"
9460 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9461 # Since we override specs, we may need to put these defines there
9462 if test "$gcc_target_cpu" != ""; then
9463 gcc_target_cpu="-D__${gcc_target_cpu}__"
9466 { echo "$as_me:$LINENO: checking where to download sourcecode for external ports" >&5
9467 echo $ECHO_N "checking where to download sourcecode for external ports... $ECHO_C" >&6; }
9469 # Check whether --with-portssources was given.
9470 if test "${with_portssources+set}" = set; then
9471 withval=$with_portssources; with_portssrcdir=$withval
9472 else
9473 with_portssrcdir="default"
9476 if test "$with_portssrcdir" = "default"; then
9477 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9478 else
9479 AROS_PORTSSRCDIR="$with_portssrcdir"
9481 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9482 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9484 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9485 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9487 # Check whether --with-bootloader was given.
9488 if test "${with_bootloader+set}" = set; then
9489 withval=$with_bootloader; target_bootloader=$withval
9490 else
9491 target_bootloader=$target_bootloader
9494 if test "$target_bootloader" = "none"; then
9495 aros_target_bootloader=""
9496 else
9497 aros_target_bootloader="$target_bootloader"
9499 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9500 echo "${ECHO_T}$target_bootloader" >&6; }
9502 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9503 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9505 # Check whether --with-iconset was given.
9506 if test "${with_iconset+set}" = set; then
9507 withval=$with_iconset; target_iconset=$withval
9508 else
9509 target_iconset="default"
9512 if test "$target_iconset" = "default"; then
9513 aros_target_iconset="Gorilla"
9514 target_iconset="default (Gorilla)"
9515 else
9516 aros_target_iconset="$target_iconset"
9518 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9519 echo "${ECHO_T}$target_iconset" >&6; }
9521 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9522 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9524 # Check whether --with-theme was given.
9525 if test "${with_theme+set}" = set; then
9526 withval=$with_theme; target_guitheme=$withval
9527 else
9528 target_guitheme="default"
9531 if test "$target_guitheme" = "default"; then
9532 aros_target_guitheme="Ice"
9533 else
9534 aros_target_guitheme="$target_guitheme"
9536 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9537 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9539 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9540 # for target code)
9541 cross_compiling=no
9542 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9543 cross_compiling=yes
9546 if test "$aros_host_cpu" == "x86_64" ; then
9547 if test "$aros_target_cpu" == "i386" ; then
9548 if test "$aros_target_arch" != "mingw32"; then
9549 cross_compiling=no
9554 if test "$aros_host_arch" == "darwin" ; then
9555 if test "$aros_target_arch" != "darwin" ; then
9556 cross_compiling=yes
9560 if test "$aros_host_arch" == "mingw32" ; then
9561 if test "$aros_target_arch" != "mingw32" ; then
9562 cross_compiling=yes
9566 # I want to have this information in configure output, although it might be
9567 # misleading, e.g. for darwin hosted you cannot compile target code without a
9568 # cross compiler, but here it says no.
9570 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
9571 # Target code is a little bit different thing.
9572 # sonic
9573 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
9575 # Set prefix for target compiler etc. if we're cross-compiling
9576 # (should possibly be earlier but needs to be after AC_PROG_CC)
9577 if test "$cross_compiling" = "yes" ; then
9579 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
9580 if test "$aros_gcc_version" != "none"; then
9583 target_tool_prefix=${target_cpu}-aros-
9584 target_tool_version=$aros_gcc_version
9585 use_kernel_cc_wrapper=yes
9587 aros_target_cc=
9588 aros_target_ld=
9589 aros_target_as=
9590 aros_target_ar=
9591 aros_target_ranlib=
9592 aros_target_nm=
9593 aros_target_strip=
9594 aros_target_objcopy=
9595 aros_target_objdump=
9599 CC=${target_tool_prefix}gcc
9600 CPP=${target_tool_prefix}cpp
9601 if test "$target_tool_version" != "default"; then
9602 CC="$CC-$target_tool_version"
9603 CPP="$CC-$target_tool_version"
9605 if test "$crosstools" != "yes" ; then
9606 # Extract the first word of "$CC", so it can be a program name with args.
9607 set dummy $CC; ac_word=$2
9608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9610 if test "${ac_cv_path_CC+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613 case $CC in
9614 [\\/]* | ?:[\\/]*)
9615 ac_cv_path_CC="$CC" # Let the user override the test with a path.
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
9626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 break 2
9629 done
9630 done
9631 IFS=$as_save_IFS
9634 esac
9636 CC=$ac_cv_path_CC
9637 if test -n "$CC"; then
9638 { echo "$as_me:$LINENO: result: $CC" >&5
9639 echo "${ECHO_T}$CC" >&6; }
9640 else
9641 { echo "$as_me:$LINENO: result: no" >&5
9642 echo "${ECHO_T}no" >&6; }
9646 if test "$CC" = ""; then
9647 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9648 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9649 { (exit 1); exit 1; }; }
9651 else
9652 CC=$AROS_CROSSTOOLSDIR/$CC
9655 CC="$CC $target_tool_flags"
9657 #-----------------------------------------------------------------------------
9659 # Disable pointer-signedness warnings if the compiler recognises the option
9661 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9662 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9663 save_cflags="$CFLAGS"
9664 if test "$crosstools" != "yes" ; then
9665 CFLAGS="$CFLAGS -Wno-pointer-sign"
9666 cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h. */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9674 main ()
9678 return 0;
9680 _ACEOF
9681 rm -f conftest.$ac_objext
9682 if { (ac_try="$ac_compile"
9683 case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_compile") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest.$ac_objext; then
9698 use_no_sign_warning="yes"
9699 else
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 use_no_sign_warning="no"
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 else
9708 # we do know it is supported for the smallest version of gcc we are going to build
9709 # we assume it's also supported by later versions
9710 use_no_sign_warning=yes
9712 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9713 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9714 if test "x-$use_no_sign_warning" = "x-yes" ; then
9715 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9717 CFLAGS="$save_cflags"
9719 #-----------------------------------------------------------------------------
9721 # Find all the tools we need to compile. This could be cross-compiling
9722 # though! If that is the case we use the GNU form of the target and
9723 # simply add this to the front of the binary name. This is rather simple,
9724 # but it should work under most circumstances.
9726 # The default tools are to use the same as the host, but only if the
9727 # host and target CPU are the same. With GCC this is normally enough.
9730 aros_cc_pre=""
9731 aros_shared_ld="$aros_host_ld"
9733 aros_target_mkdep="$aros_host_mkdep"
9734 aros_target_incl_def="$aros_host_incl"
9736 aros_kernel_cc="$CC"
9738 # The default tools executables to be linked to.
9739 if test "$rescomp" != ""; then
9740 if test "$cross_compiling" = "yes" ; then
9741 rescomp=${target_tool_prefix}${rescomp}
9743 # Extract the first word of "$rescomp", so it can be a program name with args.
9744 set dummy $rescomp; ac_word=$2
9745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9747 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750 case $aros_kernel_rescomp in
9751 [\\/]* | ?:[\\/]*)
9752 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
9755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756 for as_dir in $PATH
9758 IFS=$as_save_IFS
9759 test -z "$as_dir" && as_dir=.
9760 for ac_exec_ext in '' $ac_executable_extensions; do
9761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9762 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
9763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9764 break 2
9766 done
9767 done
9768 IFS=$as_save_IFS
9771 esac
9773 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
9774 if test -n "$aros_kernel_rescomp"; then
9775 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
9776 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
9777 else
9778 { echo "$as_me:$LINENO: result: no" >&5
9779 echo "${ECHO_T}no" >&6; }
9783 if test "$aros_kernel_rescomp" = ""; then
9784 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
9785 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
9786 { (exit 1); exit 1; }; }
9790 if test "$crosstools" != "yes"; then
9792 if test "$aros_kernel_ld" = ""; then
9793 if test "$cross_compiling" = "yes" ; then
9794 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9795 set dummy ${target_tool_prefix}ld; 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_kernel_ld+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 else
9801 case $aros_kernel_ld in
9802 [\\/]* | ?:[\\/]*)
9803 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_kernel_ld="$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_kernel_ld=$ac_cv_path_aros_kernel_ld
9825 if test -n "$aros_kernel_ld"; then
9826 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9827 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9828 else
9829 { echo "$as_me:$LINENO: result: no" >&5
9830 echo "${ECHO_T}no" >&6; }
9834 else
9835 if test "$GCC" = "yes"; then
9836 aros_gcc_ld=`$CC -print-prog-name=ld`
9837 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9838 set dummy `basename $aros_gcc_ld`; 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_kernel_ld+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844 case $aros_kernel_ld in
9845 [\\/]* | ?:[\\/]*)
9846 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 for as_dir in `dirname $aros_gcc_ld`
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_kernel_ld="$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_kernel_ld=$ac_cv_path_aros_kernel_ld
9868 if test -n "$aros_kernel_ld"; then
9869 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9870 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9871 else
9872 { echo "$as_me:$LINENO: result: no" >&5
9873 echo "${ECHO_T}no" >&6; }
9878 if test "$aros_kernel_ld" = ""; then
9879 # Extract the first word of "ld", so it can be a program name with args.
9880 set dummy ld; ac_word=$2
9881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9883 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 case $aros_kernel_ld in
9887 [\\/]* | ?:[\\/]*)
9888 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 for as_dir in $PATH
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9898 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 break 2
9902 done
9903 done
9904 IFS=$as_save_IFS
9907 esac
9909 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9910 if test -n "$aros_kernel_ld"; then
9911 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9912 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9913 else
9914 { echo "$as_me:$LINENO: result: no" >&5
9915 echo "${ECHO_T}no" >&6; }
9921 else
9922 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9923 set dummy $aros_kernel_ld; ac_word=$2
9924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9926 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929 case $aros_kernel_ld in
9930 [\\/]* | ?:[\\/]*)
9931 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 for as_dir in $PATH
9937 IFS=$as_save_IFS
9938 test -z "$as_dir" && as_dir=.
9939 for ac_exec_ext in '' $ac_executable_extensions; do
9940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9941 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 break 2
9945 done
9946 done
9947 IFS=$as_save_IFS
9950 esac
9952 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9953 if test -n "$aros_kernel_ld"; then
9954 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9955 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9956 else
9957 { echo "$as_me:$LINENO: result: no" >&5
9958 echo "${ECHO_T}no" >&6; }
9964 if test "$aros_kernel_ld" = ""; then
9965 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9966 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9967 { (exit 1); exit 1; }; }
9970 if test "$aros_kernel_ar" = ""; then
9971 if test "$cross_compiling" = "yes" ; then
9972 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9973 set dummy ${target_tool_prefix}ar; 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_kernel_ar+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 case $aros_kernel_ar in
9980 [\\/]* | ?:[\\/]*)
9981 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # 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_kernel_ar="$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_kernel_ar=$ac_cv_path_aros_kernel_ar
10003 if test -n "$aros_kernel_ar"; then
10004 { echo "$as_me:$LINENO: result: $aros_kernel_ar" >&5
10005 echo "${ECHO_T}$aros_kernel_ar" >&6; }
10006 else
10007 { echo "$as_me:$LINENO: result: no" >&5
10008 echo "${ECHO_T}no" >&6; }
10012 else
10013 if test "$GCC" = "yes"; then
10014 aros_gcc_ar=`$CC -print-prog-name=ar`
10015 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10016 set dummy `basename $aros_gcc_ar`; 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_kernel_ar+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022 case $aros_kernel_ar in
10023 [\\/]* | ?:[\\/]*)
10024 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in `dirname $aros_gcc_ar`
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_kernel_ar="$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_kernel_ar=$ac_cv_path_aros_kernel_ar
10046 if test -n "$aros_kernel_ar"; then
10047 { echo "$as_me:$LINENO: result: $aros_kernel_ar" >&5
10048 echo "${ECHO_T}$aros_kernel_ar" >&6; }
10049 else
10050 { echo "$as_me:$LINENO: result: no" >&5
10051 echo "${ECHO_T}no" >&6; }
10056 if test "$aros_kernel_ar" = ""; then
10057 # Extract the first word of "ar", so it can be a program name with args.
10058 set dummy ar; ac_word=$2
10059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10061 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064 case $aros_kernel_ar in
10065 [\\/]* | ?:[\\/]*)
10066 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 break 2
10080 done
10081 done
10082 IFS=$as_save_IFS
10085 esac
10087 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10088 if test -n "$aros_kernel_ar"; then
10089 { echo "$as_me:$LINENO: result: $aros_kernel_ar" >&5
10090 echo "${ECHO_T}$aros_kernel_ar" >&6; }
10091 else
10092 { echo "$as_me:$LINENO: result: no" >&5
10093 echo "${ECHO_T}no" >&6; }
10099 else
10100 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10101 set dummy $aros_kernel_ar; ac_word=$2
10102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10104 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107 case $aros_kernel_ar in
10108 [\\/]* | ?:[\\/]*)
10109 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10123 done
10124 done
10125 IFS=$as_save_IFS
10128 esac
10130 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10131 if test -n "$aros_kernel_ar"; then
10132 { echo "$as_me:$LINENO: result: $aros_kernel_ar" >&5
10133 echo "${ECHO_T}$aros_kernel_ar" >&6; }
10134 else
10135 { echo "$as_me:$LINENO: result: no" >&5
10136 echo "${ECHO_T}no" >&6; }
10142 if test "$aros_kernel_ar" = ""; then
10143 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
10144 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
10145 { (exit 1); exit 1; }; }
10148 if test "$aros_kernel_ranlib" = ""; then
10149 if test "$cross_compiling" = "yes" ; then
10150 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10151 set dummy ${target_tool_prefix}ranlib; 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_kernel_ranlib+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 case $aros_kernel_ranlib in
10158 [\\/]* | ?:[\\/]*)
10159 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # 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_kernel_ranlib="$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_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10181 if test -n "$aros_kernel_ranlib"; then
10182 { echo "$as_me:$LINENO: result: $aros_kernel_ranlib" >&5
10183 echo "${ECHO_T}$aros_kernel_ranlib" >&6; }
10184 else
10185 { echo "$as_me:$LINENO: result: no" >&5
10186 echo "${ECHO_T}no" >&6; }
10190 else
10191 if test "$GCC" = "yes"; then
10192 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10193 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10194 set dummy `basename $aros_gcc_ranlib`; 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_kernel_ranlib+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200 case $aros_kernel_ranlib in
10201 [\\/]* | ?:[\\/]*)
10202 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206 for as_dir in `dirname $aros_gcc_ranlib`
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_kernel_ranlib="$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_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10224 if test -n "$aros_kernel_ranlib"; then
10225 { echo "$as_me:$LINENO: result: $aros_kernel_ranlib" >&5
10226 echo "${ECHO_T}$aros_kernel_ranlib" >&6; }
10227 else
10228 { echo "$as_me:$LINENO: result: no" >&5
10229 echo "${ECHO_T}no" >&6; }
10234 if test "$aros_kernel_ranlib" = ""; then
10235 # Extract the first word of "ranlib", so it can be a program name with args.
10236 set dummy ranlib; ac_word=$2
10237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10239 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242 case $aros_kernel_ranlib in
10243 [\\/]* | ?:[\\/]*)
10244 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10258 done
10259 done
10260 IFS=$as_save_IFS
10263 esac
10265 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10266 if test -n "$aros_kernel_ranlib"; then
10267 { echo "$as_me:$LINENO: result: $aros_kernel_ranlib" >&5
10268 echo "${ECHO_T}$aros_kernel_ranlib" >&6; }
10269 else
10270 { echo "$as_me:$LINENO: result: no" >&5
10271 echo "${ECHO_T}no" >&6; }
10277 else
10278 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10279 set dummy $aros_kernel_ranlib; ac_word=$2
10280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10282 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285 case $aros_kernel_ranlib in
10286 [\\/]* | ?:[\\/]*)
10287 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291 for as_dir in $PATH
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10297 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10299 break 2
10301 done
10302 done
10303 IFS=$as_save_IFS
10306 esac
10308 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10309 if test -n "$aros_kernel_ranlib"; then
10310 { echo "$as_me:$LINENO: result: $aros_kernel_ranlib" >&5
10311 echo "${ECHO_T}$aros_kernel_ranlib" >&6; }
10312 else
10313 { echo "$as_me:$LINENO: result: no" >&5
10314 echo "${ECHO_T}no" >&6; }
10320 if test "$aros_kernel_ranlib" = ""; then
10321 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
10322 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
10323 { (exit 1); exit 1; }; }
10326 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
10327 target_tool_prefix=${target_cpu}-elf-
10328 if test "$aros_target_cc" == ""; then
10329 aros_target_cc="${target_tool_prefix}gcc"
10331 if test "$aros_target_ld" == ""; then
10332 aros_target_ld="${target_tool_prefix}ld"
10336 if test "$aros_target_as" = ""; then
10337 if test "$cross_compiling" = "yes" ; then
10338 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
10339 set dummy ${target_tool_prefix}as; ac_word=$2
10340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10342 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 case $aros_target_as_ln in
10346 [\\/]* | ?:[\\/]*)
10347 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10357 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
10358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 break 2
10361 done
10362 done
10363 IFS=$as_save_IFS
10366 esac
10368 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
10369 if test -n "$aros_target_as_ln"; then
10370 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
10371 echo "${ECHO_T}$aros_target_as_ln" >&6; }
10372 else
10373 { echo "$as_me:$LINENO: result: no" >&5
10374 echo "${ECHO_T}no" >&6; }
10378 else
10379 if test "$GCC" = "yes"; then
10380 aros_gcc_as=`$CC -print-prog-name=as`
10381 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10382 set dummy `basename $aros_gcc_as`; ac_word=$2
10383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10385 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 case $aros_target_as_ln in
10389 [\\/]* | ?:[\\/]*)
10390 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
10393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in `dirname $aros_gcc_as`
10396 IFS=$as_save_IFS
10397 test -z "$as_dir" && as_dir=.
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10400 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
10401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 break 2
10404 done
10405 done
10406 IFS=$as_save_IFS
10409 esac
10411 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
10412 if test -n "$aros_target_as_ln"; then
10413 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
10414 echo "${ECHO_T}$aros_target_as_ln" >&6; }
10415 else
10416 { echo "$as_me:$LINENO: result: no" >&5
10417 echo "${ECHO_T}no" >&6; }
10422 if test "$aros_target_as_ln" = ""; then
10423 # Extract the first word of "as", so it can be a program name with args.
10424 set dummy as; ac_word=$2
10425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10427 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430 case $aros_target_as_ln in
10431 [\\/]* | ?:[\\/]*)
10432 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10442 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
10443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10446 done
10447 done
10448 IFS=$as_save_IFS
10451 esac
10453 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
10454 if test -n "$aros_target_as_ln"; then
10455 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
10456 echo "${ECHO_T}$aros_target_as_ln" >&6; }
10457 else
10458 { echo "$as_me:$LINENO: result: no" >&5
10459 echo "${ECHO_T}no" >&6; }
10465 else
10466 # Extract the first word of "$aros_target_as", so it can be a program name with args.
10467 set dummy $aros_target_as; ac_word=$2
10468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10470 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 case $aros_target_as_ln in
10474 [\\/]* | ?:[\\/]*)
10475 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
10486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 break 2
10489 done
10490 done
10491 IFS=$as_save_IFS
10494 esac
10496 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
10497 if test -n "$aros_target_as_ln"; then
10498 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
10499 echo "${ECHO_T}$aros_target_as_ln" >&6; }
10500 else
10501 { echo "$as_me:$LINENO: result: no" >&5
10502 echo "${ECHO_T}no" >&6; }
10508 if test "$aros_target_as_ln" = ""; then
10509 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
10510 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
10511 { (exit 1); exit 1; }; }
10514 if test "$aros_target_ar" = ""; then
10515 if test "$cross_compiling" = "yes" ; then
10516 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10517 set dummy ${target_tool_prefix}ar; ac_word=$2
10518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10520 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523 case $aros_target_ar_ln in
10524 [\\/]* | ?:[\\/]*)
10525 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10535 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10539 done
10540 done
10541 IFS=$as_save_IFS
10544 esac
10546 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10547 if test -n "$aros_target_ar_ln"; then
10548 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10549 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10550 else
10551 { echo "$as_me:$LINENO: result: no" >&5
10552 echo "${ECHO_T}no" >&6; }
10556 else
10557 if test "$GCC" = "yes"; then
10558 aros_gcc_ar=`$CC -print-prog-name=ar`
10559 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10560 set dummy `basename $aros_gcc_ar`; ac_word=$2
10561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10563 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566 case $aros_target_ar_ln in
10567 [\\/]* | ?:[\\/]*)
10568 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in `dirname $aros_gcc_ar`
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10582 done
10583 done
10584 IFS=$as_save_IFS
10587 esac
10589 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10590 if test -n "$aros_target_ar_ln"; then
10591 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10592 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10593 else
10594 { echo "$as_me:$LINENO: result: no" >&5
10595 echo "${ECHO_T}no" >&6; }
10600 if test "$aros_target_ar_ln" = ""; then
10601 # Extract the first word of "ar", so it can be a program name with args.
10602 set dummy ar; ac_word=$2
10603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10605 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608 case $aros_target_ar_ln in
10609 [\\/]* | ?:[\\/]*)
10610 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10620 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10624 done
10625 done
10626 IFS=$as_save_IFS
10629 esac
10631 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10632 if test -n "$aros_target_ar_ln"; then
10633 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10634 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10635 else
10636 { echo "$as_me:$LINENO: result: no" >&5
10637 echo "${ECHO_T}no" >&6; }
10643 else
10644 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
10645 set dummy $aros_target_ar; ac_word=$2
10646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10648 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651 case $aros_target_ar_ln in
10652 [\\/]* | ?:[\\/]*)
10653 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10663 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10665 break 2
10667 done
10668 done
10669 IFS=$as_save_IFS
10672 esac
10674 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10675 if test -n "$aros_target_ar_ln"; then
10676 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10677 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10678 else
10679 { echo "$as_me:$LINENO: result: no" >&5
10680 echo "${ECHO_T}no" >&6; }
10686 if test "$aros_target_ar_ln" = ""; then
10687 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
10688 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
10689 { (exit 1); exit 1; }; }
10692 if test "$aros_target_nm" = ""; then
10693 if test "$cross_compiling" = "yes" ; then
10694 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
10695 set dummy ${target_tool_prefix}nm; ac_word=$2
10696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10698 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701 case $aros_target_nm_ln in
10702 [\\/]* | ?:[\\/]*)
10703 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707 for as_dir in $PATH
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10717 done
10718 done
10719 IFS=$as_save_IFS
10722 esac
10724 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10725 if test -n "$aros_target_nm_ln"; then
10726 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10727 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10728 else
10729 { echo "$as_me:$LINENO: result: no" >&5
10730 echo "${ECHO_T}no" >&6; }
10734 else
10735 if test "$GCC" = "yes"; then
10736 aros_gcc_nm=`$CC -print-prog-name=nm`
10737 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10738 set dummy `basename $aros_gcc_nm`; ac_word=$2
10739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10741 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 case $aros_target_nm_ln in
10745 [\\/]* | ?:[\\/]*)
10746 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750 for as_dir in `dirname $aros_gcc_nm`
10752 IFS=$as_save_IFS
10753 test -z "$as_dir" && as_dir=.
10754 for ac_exec_ext in '' $ac_executable_extensions; do
10755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10756 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10758 break 2
10760 done
10761 done
10762 IFS=$as_save_IFS
10765 esac
10767 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10768 if test -n "$aros_target_nm_ln"; then
10769 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10770 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10771 else
10772 { echo "$as_me:$LINENO: result: no" >&5
10773 echo "${ECHO_T}no" >&6; }
10778 if test "$aros_target_nm_ln" = ""; then
10779 # Extract the first word of "nm", so it can be a program name with args.
10780 set dummy nm; ac_word=$2
10781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10783 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 else
10786 case $aros_target_nm_ln in
10787 [\\/]* | ?:[\\/]*)
10788 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10802 done
10803 done
10804 IFS=$as_save_IFS
10807 esac
10809 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10810 if test -n "$aros_target_nm_ln"; then
10811 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10812 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10813 else
10814 { echo "$as_me:$LINENO: result: no" >&5
10815 echo "${ECHO_T}no" >&6; }
10821 else
10822 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10823 set dummy $aros_target_nm; ac_word=$2
10824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10826 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829 case $aros_target_nm_ln in
10830 [\\/]* | ?:[\\/]*)
10831 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835 for as_dir in $PATH
10837 IFS=$as_save_IFS
10838 test -z "$as_dir" && as_dir=.
10839 for ac_exec_ext in '' $ac_executable_extensions; do
10840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10841 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10843 break 2
10845 done
10846 done
10847 IFS=$as_save_IFS
10850 esac
10852 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10853 if test -n "$aros_target_nm_ln"; then
10854 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10855 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10856 else
10857 { echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6; }
10864 if test "$aros_target_nm_ln" = ""; then
10865 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10866 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10867 { (exit 1); exit 1; }; }
10870 if test "$aros_target_objcopy" = ""; then
10871 if test "$cross_compiling" = "yes" ; then
10872 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10873 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10876 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 else
10879 case $aros_target_objcopy_ln in
10880 [\\/]* | ?:[\\/]*)
10881 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10891 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10895 done
10896 done
10897 IFS=$as_save_IFS
10900 esac
10902 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10903 if test -n "$aros_target_objcopy_ln"; then
10904 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10905 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10906 else
10907 { echo "$as_me:$LINENO: result: no" >&5
10908 echo "${ECHO_T}no" >&6; }
10912 else
10913 if test "$GCC" = "yes"; then
10914 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10915 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10916 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10919 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922 case $aros_target_objcopy_ln in
10923 [\\/]* | ?:[\\/]*)
10924 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in `dirname $aros_gcc_objcopy`
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10943 esac
10945 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10946 if test -n "$aros_target_objcopy_ln"; then
10947 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10948 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10949 else
10950 { echo "$as_me:$LINENO: result: no" >&5
10951 echo "${ECHO_T}no" >&6; }
10956 if test "$aros_target_objcopy_ln" = ""; then
10957 # Extract the first word of "objcopy", so it can be a program name with args.
10958 set dummy objcopy; ac_word=$2
10959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10961 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 case $aros_target_objcopy_ln in
10965 [\\/]* | ?:[\\/]*)
10966 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10976 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10980 done
10981 done
10982 IFS=$as_save_IFS
10985 esac
10987 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10988 if test -n "$aros_target_objcopy_ln"; then
10989 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10990 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10991 else
10992 { echo "$as_me:$LINENO: result: no" >&5
10993 echo "${ECHO_T}no" >&6; }
10999 else
11000 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
11001 set dummy $aros_target_objcopy; ac_word=$2
11002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11004 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 case $aros_target_objcopy_ln in
11008 [\\/]* | ?:[\\/]*)
11009 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11015 IFS=$as_save_IFS
11016 test -z "$as_dir" && as_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11019 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
11020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 break 2
11023 done
11024 done
11025 IFS=$as_save_IFS
11028 esac
11030 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
11031 if test -n "$aros_target_objcopy_ln"; then
11032 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
11033 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
11034 else
11035 { echo "$as_me:$LINENO: result: no" >&5
11036 echo "${ECHO_T}no" >&6; }
11042 if test "$aros_target_objcopy_ln" = ""; then
11043 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
11044 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
11045 { (exit 1); exit 1; }; }
11048 if test "$aros_target_objdump" = ""; then
11049 if test "$cross_compiling" = "yes" ; then
11050 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
11051 set dummy ${target_tool_prefix}objdump; ac_word=$2
11052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11054 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057 case $aros_target_objdump_ln in
11058 [\\/]* | ?:[\\/]*)
11059 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11069 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
11070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11073 done
11074 done
11075 IFS=$as_save_IFS
11078 esac
11080 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
11081 if test -n "$aros_target_objdump_ln"; then
11082 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
11083 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
11084 else
11085 { echo "$as_me:$LINENO: result: no" >&5
11086 echo "${ECHO_T}no" >&6; }
11090 else
11091 if test "$GCC" = "yes"; then
11092 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11093 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11094 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11097 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100 case $aros_target_objdump_ln in
11101 [\\/]* | ?:[\\/]*)
11102 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in `dirname $aros_gcc_objdump`
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
11113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11116 done
11117 done
11118 IFS=$as_save_IFS
11121 esac
11123 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
11124 if test -n "$aros_target_objdump_ln"; then
11125 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
11126 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
11127 else
11128 { echo "$as_me:$LINENO: result: no" >&5
11129 echo "${ECHO_T}no" >&6; }
11134 if test "$aros_target_objdump_ln" = ""; then
11135 # Extract the first word of "objdump", so it can be a program name with args.
11136 set dummy objdump; ac_word=$2
11137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11139 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142 case $aros_target_objdump_ln in
11143 [\\/]* | ?:[\\/]*)
11144 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148 for as_dir in $PATH
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11154 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
11155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11158 done
11159 done
11160 IFS=$as_save_IFS
11163 esac
11165 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
11166 if test -n "$aros_target_objdump_ln"; then
11167 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
11168 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
11169 else
11170 { echo "$as_me:$LINENO: result: no" >&5
11171 echo "${ECHO_T}no" >&6; }
11177 else
11178 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
11179 set dummy $aros_target_objdump; ac_word=$2
11180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11182 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 else
11185 case $aros_target_objdump_ln in
11186 [\\/]* | ?:[\\/]*)
11187 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
11198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11201 done
11202 done
11203 IFS=$as_save_IFS
11206 esac
11208 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
11209 if test -n "$aros_target_objdump_ln"; then
11210 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
11211 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
11212 else
11213 { echo "$as_me:$LINENO: result: no" >&5
11214 echo "${ECHO_T}no" >&6; }
11220 if test "$aros_target_objdump_ln" = ""; then
11221 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
11222 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
11223 { (exit 1); exit 1; }; }
11226 if test "$aros_target_ranlib" = ""; then
11227 if test "$cross_compiling" = "yes" ; then
11228 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
11229 set dummy ${target_tool_prefix}ranlib; ac_word=$2
11230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11232 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235 case $aros_target_ranlib_ln in
11236 [\\/]* | ?:[\\/]*)
11237 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11247 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
11248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11249 break 2
11251 done
11252 done
11253 IFS=$as_save_IFS
11256 esac
11258 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
11259 if test -n "$aros_target_ranlib_ln"; then
11260 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
11261 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
11262 else
11263 { echo "$as_me:$LINENO: result: no" >&5
11264 echo "${ECHO_T}no" >&6; }
11268 else
11269 if test "$GCC" = "yes"; then
11270 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
11271 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11272 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11275 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 case $aros_target_ranlib_ln in
11279 [\\/]* | ?:[\\/]*)
11280 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in `dirname $aros_gcc_ranlib`
11286 IFS=$as_save_IFS
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11290 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
11291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 break 2
11294 done
11295 done
11296 IFS=$as_save_IFS
11299 esac
11301 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
11302 if test -n "$aros_target_ranlib_ln"; then
11303 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
11304 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
11305 else
11306 { echo "$as_me:$LINENO: result: no" >&5
11307 echo "${ECHO_T}no" >&6; }
11312 if test "$aros_target_ranlib_ln" = ""; then
11313 # Extract the first word of "ranlib", so it can be a program name with args.
11314 set dummy ranlib; ac_word=$2
11315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11317 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320 case $aros_target_ranlib_ln in
11321 [\\/]* | ?:[\\/]*)
11322 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11332 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
11333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 break 2
11336 done
11337 done
11338 IFS=$as_save_IFS
11341 esac
11343 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
11344 if test -n "$aros_target_ranlib_ln"; then
11345 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
11346 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
11347 else
11348 { echo "$as_me:$LINENO: result: no" >&5
11349 echo "${ECHO_T}no" >&6; }
11355 else
11356 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
11357 set dummy $aros_target_ranlib; ac_word=$2
11358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11360 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363 case $aros_target_ranlib_ln in
11364 [\\/]* | ?:[\\/]*)
11365 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11375 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
11376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 break 2
11379 done
11380 done
11381 IFS=$as_save_IFS
11384 esac
11386 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
11387 if test -n "$aros_target_ranlib_ln"; then
11388 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
11389 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
11390 else
11391 { echo "$as_me:$LINENO: result: no" >&5
11392 echo "${ECHO_T}no" >&6; }
11398 if test "$aros_target_ranlib_ln" = ""; then
11399 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
11400 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
11401 { (exit 1); exit 1; }; }
11404 if test "$aros_target_strip" = ""; then
11405 if test "$cross_compiling" = "yes" ; then
11406 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
11407 set dummy ${target_tool_prefix}strip; ac_word=$2
11408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11410 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 case $aros_target_strip_ln in
11414 [\\/]* | ?:[\\/]*)
11415 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419 for as_dir in $PATH
11421 IFS=$as_save_IFS
11422 test -z "$as_dir" && as_dir=.
11423 for ac_exec_ext in '' $ac_executable_extensions; do
11424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11425 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11427 break 2
11429 done
11430 done
11431 IFS=$as_save_IFS
11434 esac
11436 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11437 if test -n "$aros_target_strip_ln"; then
11438 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11439 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
11440 else
11441 { echo "$as_me:$LINENO: result: no" >&5
11442 echo "${ECHO_T}no" >&6; }
11446 else
11447 if test "$GCC" = "yes"; then
11448 aros_gcc_strip=`$CC -print-prog-name=strip`
11449 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11450 set dummy `basename $aros_gcc_strip`; ac_word=$2
11451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11453 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456 case $aros_target_strip_ln in
11457 [\\/]* | ?:[\\/]*)
11458 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in `dirname $aros_gcc_strip`
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11472 done
11473 done
11474 IFS=$as_save_IFS
11477 esac
11479 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11480 if test -n "$aros_target_strip_ln"; then
11481 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11482 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
11483 else
11484 { echo "$as_me:$LINENO: result: no" >&5
11485 echo "${ECHO_T}no" >&6; }
11490 if test "$aros_target_strip_ln" = ""; then
11491 # Extract the first word of "strip", so it can be a program name with args.
11492 set dummy strip; ac_word=$2
11493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11495 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498 case $aros_target_strip_ln in
11499 [\\/]* | ?:[\\/]*)
11500 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11514 done
11515 done
11516 IFS=$as_save_IFS
11519 esac
11521 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11522 if test -n "$aros_target_strip_ln"; then
11523 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11524 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
11525 else
11526 { echo "$as_me:$LINENO: result: no" >&5
11527 echo "${ECHO_T}no" >&6; }
11533 else
11534 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
11535 set dummy $aros_target_strip; ac_word=$2
11536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11538 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541 case $aros_target_strip_ln in
11542 [\\/]* | ?:[\\/]*)
11543 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11553 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11555 break 2
11557 done
11558 done
11559 IFS=$as_save_IFS
11562 esac
11564 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11565 if test -n "$aros_target_strip_ln"; then
11566 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11567 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
11568 else
11569 { echo "$as_me:$LINENO: result: no" >&5
11570 echo "${ECHO_T}no" >&6; }
11576 if test "$aros_target_strip_ln" = ""; then
11577 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
11578 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
11579 { (exit 1); exit 1; }; }
11581 if test "$aros_target_cxx" != ""; then
11582 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
11583 set dummy $aros_target_cxx; ac_word=$2
11584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11586 if test "${ac_cv_path_aros_target_cxx+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589 case $aros_target_cxx in
11590 [\\/]* | ?:[\\/]*)
11591 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11605 done
11606 done
11607 IFS=$as_save_IFS
11610 esac
11612 aros_target_cxx=$ac_cv_path_aros_target_cxx
11613 if test -n "$aros_target_cxx"; then
11614 { echo "$as_me:$LINENO: result: $aros_target_cxx" >&5
11615 echo "${ECHO_T}$aros_target_cxx" >&6; }
11616 else
11617 { echo "$as_me:$LINENO: result: no" >&5
11618 echo "${ECHO_T}no" >&6; }
11622 if test "$aros_target_cxx" = ""; then
11623 { { echo "$as_me:$LINENO: error: c++ is required to build AROS. Please install and run configure again." >&5
11624 echo "$as_me: error: c++ is required to build AROS. Please install and run configure again." >&2;}
11625 { (exit 1); exit 1; }; }
11628 else
11629 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
11630 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
11631 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
11632 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
11633 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
11634 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
11635 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
11636 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
11637 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
11639 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
11641 if test "$aros_kernel_ld" = ""; then
11642 if test "$cross_compiling" = "yes" ; then
11643 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
11644 set dummy ${target_tool_prefix}ld; ac_word=$2
11645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11647 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650 case $aros_kernel_ld in
11651 [\\/]* | ?:[\\/]*)
11652 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11662 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
11663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 break 2
11666 done
11667 done
11668 IFS=$as_save_IFS
11671 esac
11673 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
11674 if test -n "$aros_kernel_ld"; then
11675 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
11676 echo "${ECHO_T}$aros_kernel_ld" >&6; }
11677 else
11678 { echo "$as_me:$LINENO: result: no" >&5
11679 echo "${ECHO_T}no" >&6; }
11683 else
11684 if test "$GCC" = "yes"; then
11685 aros_gcc_ld=`$CC -print-prog-name=ld`
11686 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
11687 set dummy `basename $aros_gcc_ld`; ac_word=$2
11688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11690 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693 case $aros_kernel_ld in
11694 [\\/]* | ?:[\\/]*)
11695 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in `dirname $aros_gcc_ld`
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11705 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
11706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11709 done
11710 done
11711 IFS=$as_save_IFS
11714 esac
11716 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
11717 if test -n "$aros_kernel_ld"; then
11718 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
11719 echo "${ECHO_T}$aros_kernel_ld" >&6; }
11720 else
11721 { echo "$as_me:$LINENO: result: no" >&5
11722 echo "${ECHO_T}no" >&6; }
11727 if test "$aros_kernel_ld" = ""; then
11728 # Extract the first word of "ld", so it can be a program name with args.
11729 set dummy ld; ac_word=$2
11730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11732 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 case $aros_kernel_ld in
11736 [\\/]* | ?:[\\/]*)
11737 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
11748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11751 done
11752 done
11753 IFS=$as_save_IFS
11756 esac
11758 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
11759 if test -n "$aros_kernel_ld"; then
11760 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
11761 echo "${ECHO_T}$aros_kernel_ld" >&6; }
11762 else
11763 { echo "$as_me:$LINENO: result: no" >&5
11764 echo "${ECHO_T}no" >&6; }
11770 else
11771 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
11772 set dummy $aros_kernel_ld; ac_word=$2
11773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11775 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778 case $aros_kernel_ld in
11779 [\\/]* | ?:[\\/]*)
11780 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11790 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
11791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11794 done
11795 done
11796 IFS=$as_save_IFS
11799 esac
11801 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
11802 if test -n "$aros_kernel_ld"; then
11803 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
11804 echo "${ECHO_T}$aros_kernel_ld" >&6; }
11805 else
11806 { echo "$as_me:$LINENO: result: no" >&5
11807 echo "${ECHO_T}no" >&6; }
11813 if test "$aros_kernel_ld" = ""; then
11814 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
11815 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
11816 { (exit 1); exit 1; }; }
11819 if test "$aros_kernel_ar" = ""; then
11820 if test "$cross_compiling" = "yes" ; then
11821 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11822 set dummy ${target_tool_prefix}ar; ac_word=$2
11823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11825 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828 case $aros_kernel_ar in
11829 [\\/]* | ?:[\\/]*)
11830 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 break 2
11844 done
11845 done
11846 IFS=$as_save_IFS
11849 esac
11851 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11852 if test -n "$aros_kernel_ar"; then
11853 { echo "$as_me:$LINENO: result: $aros_kernel_ar" >&5
11854 echo "${ECHO_T}$aros_kernel_ar" >&6; }
11855 else
11856 { echo "$as_me:$LINENO: result: no" >&5
11857 echo "${ECHO_T}no" >&6; }
11861 else
11862 if test "$GCC" = "yes"; then
11863 aros_gcc_ar=`$CC -print-prog-name=ar`
11864 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11865 set dummy `basename $aros_gcc_ar`; ac_word=$2
11866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11868 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871 case $aros_kernel_ar in
11872 [\\/]* | ?:[\\/]*)
11873 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877 for as_dir in `dirname $aros_gcc_ar`
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11883 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11887 done
11888 done
11889 IFS=$as_save_IFS
11892 esac
11894 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11895 if test -n "$aros_kernel_ar"; then
11896 { echo "$as_me:$LINENO: result: $aros_kernel_ar" >&5
11897 echo "${ECHO_T}$aros_kernel_ar" >&6; }
11898 else
11899 { echo "$as_me:$LINENO: result: no" >&5
11900 echo "${ECHO_T}no" >&6; }
11905 if test "$aros_kernel_ar" = ""; then
11906 # Extract the first word of "ar", so it can be a program name with args.
11907 set dummy ar; ac_word=$2
11908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11910 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913 case $aros_kernel_ar in
11914 [\\/]* | ?:[\\/]*)
11915 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11921 IFS=$as_save_IFS
11922 test -z "$as_dir" && as_dir=.
11923 for ac_exec_ext in '' $ac_executable_extensions; do
11924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11925 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11927 break 2
11929 done
11930 done
11931 IFS=$as_save_IFS
11934 esac
11936 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11937 if test -n "$aros_kernel_ar"; then
11938 { echo "$as_me:$LINENO: result: $aros_kernel_ar" >&5
11939 echo "${ECHO_T}$aros_kernel_ar" >&6; }
11940 else
11941 { echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6; }
11948 else
11949 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11950 set dummy $aros_kernel_ar; ac_word=$2
11951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11953 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956 case $aros_kernel_ar in
11957 [\\/]* | ?:[\\/]*)
11958 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11964 IFS=$as_save_IFS
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11968 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 break 2
11972 done
11973 done
11974 IFS=$as_save_IFS
11977 esac
11979 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11980 if test -n "$aros_kernel_ar"; then
11981 { echo "$as_me:$LINENO: result: $aros_kernel_ar" >&5
11982 echo "${ECHO_T}$aros_kernel_ar" >&6; }
11983 else
11984 { echo "$as_me:$LINENO: result: no" >&5
11985 echo "${ECHO_T}no" >&6; }
11991 if test "$aros_kernel_ar" = ""; then
11992 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
11993 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
11994 { (exit 1); exit 1; }; }
11997 if test "$aros_kernel_ranlib" = ""; then
11998 if test "$cross_compiling" = "yes" ; then
11999 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
12000 set dummy ${target_tool_prefix}ranlib; ac_word=$2
12001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12003 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 else
12006 case $aros_kernel_ranlib in
12007 [\\/]* | ?:[\\/]*)
12008 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12018 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
12019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12022 done
12023 done
12024 IFS=$as_save_IFS
12027 esac
12029 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
12030 if test -n "$aros_kernel_ranlib"; then
12031 { echo "$as_me:$LINENO: result: $aros_kernel_ranlib" >&5
12032 echo "${ECHO_T}$aros_kernel_ranlib" >&6; }
12033 else
12034 { echo "$as_me:$LINENO: result: no" >&5
12035 echo "${ECHO_T}no" >&6; }
12039 else
12040 if test "$GCC" = "yes"; then
12041 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
12042 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
12043 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
12044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12046 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049 case $aros_kernel_ranlib in
12050 [\\/]* | ?:[\\/]*)
12051 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in `dirname $aros_gcc_ranlib`
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
12062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12065 done
12066 done
12067 IFS=$as_save_IFS
12070 esac
12072 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
12073 if test -n "$aros_kernel_ranlib"; then
12074 { echo "$as_me:$LINENO: result: $aros_kernel_ranlib" >&5
12075 echo "${ECHO_T}$aros_kernel_ranlib" >&6; }
12076 else
12077 { echo "$as_me:$LINENO: result: no" >&5
12078 echo "${ECHO_T}no" >&6; }
12083 if test "$aros_kernel_ranlib" = ""; then
12084 # Extract the first word of "ranlib", so it can be a program name with args.
12085 set dummy ranlib; ac_word=$2
12086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12088 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091 case $aros_kernel_ranlib in
12092 [\\/]* | ?:[\\/]*)
12093 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
12096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097 for as_dir in $PATH
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
12101 for ac_exec_ext in '' $ac_executable_extensions; do
12102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12103 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
12104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12105 break 2
12107 done
12108 done
12109 IFS=$as_save_IFS
12112 esac
12114 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
12115 if test -n "$aros_kernel_ranlib"; then
12116 { echo "$as_me:$LINENO: result: $aros_kernel_ranlib" >&5
12117 echo "${ECHO_T}$aros_kernel_ranlib" >&6; }
12118 else
12119 { echo "$as_me:$LINENO: result: no" >&5
12120 echo "${ECHO_T}no" >&6; }
12126 else
12127 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
12128 set dummy $aros_kernel_ranlib; ac_word=$2
12129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12131 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134 case $aros_kernel_ranlib in
12135 [\\/]* | ?:[\\/]*)
12136 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12146 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
12147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 break 2
12150 done
12151 done
12152 IFS=$as_save_IFS
12155 esac
12157 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
12158 if test -n "$aros_kernel_ranlib"; then
12159 { echo "$as_me:$LINENO: result: $aros_kernel_ranlib" >&5
12160 echo "${ECHO_T}$aros_kernel_ranlib" >&6; }
12161 else
12162 { echo "$as_me:$LINENO: result: no" >&5
12163 echo "${ECHO_T}no" >&6; }
12169 if test "$aros_kernel_ranlib" = ""; then
12170 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
12171 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
12172 { (exit 1); exit 1; }; }
12174 else
12175 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
12176 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
12177 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
12180 crosstools_target=tools-crosstools
12183 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12185 orig_target_cc=$aros_kernel_cc
12186 orig_target_ld=$aros_kernel_ld
12188 if test "$crosstools" != "yes"; then
12189 if test "$aros_target_cc" != ""; then
12190 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
12191 set dummy $aros_target_cc; ac_word=$2
12192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12194 if test "${ac_cv_path_aros_target_cc+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197 case $aros_target_cc in
12198 [\\/]* | ?:[\\/]*)
12199 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12209 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
12210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 break 2
12213 done
12214 done
12215 IFS=$as_save_IFS
12218 esac
12220 aros_target_cc=$ac_cv_path_aros_target_cc
12221 if test -n "$aros_target_cc"; then
12222 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
12223 echo "${ECHO_T}$aros_target_cc" >&6; }
12224 else
12225 { echo "$as_me:$LINENO: result: no" >&5
12226 echo "${ECHO_T}no" >&6; }
12230 if test "$aros_target_cc" = ""; then
12231 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
12232 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
12233 { (exit 1); exit 1; }; }
12235 orig_target_cc=$aros_target_cc
12237 if test "$aros_target_ld" != ""; then
12238 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
12239 set dummy $aros_target_ld; ac_word=$2
12240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12242 if test "${ac_cv_path_aros_target_ld+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 case $aros_target_ld in
12246 [\\/]* | ?:[\\/]*)
12247 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
12258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12261 done
12262 done
12263 IFS=$as_save_IFS
12266 esac
12268 aros_target_ld=$ac_cv_path_aros_target_ld
12269 if test -n "$aros_target_ld"; then
12270 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
12271 echo "${ECHO_T}$aros_target_ld" >&6; }
12272 else
12273 { echo "$as_me:$LINENO: result: no" >&5
12274 echo "${ECHO_T}no" >&6; }
12278 if test "$aros_target_ld" = ""; then
12279 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
12280 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
12281 { (exit 1); exit 1; }; }
12283 orig_target_ld=$aros_target_ld
12285 else
12286 orig_target_cc=$aros_target_cc
12287 orig_target_ld=$aros_target_ld
12290 # Build crosstools if we have no C++ - temporary thing
12291 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
12292 crosstools_cxx_target=tools-crosstools
12295 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12296 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12297 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12298 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12299 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12300 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12301 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12303 # aros_cc_pre is a variable that is added to the front of the compiler name
12304 # in the generated aros-gcc shell script. We need this to enable the cache
12305 # to work across cleaned builds. Also, support DISTCC using the correct
12306 # environment variable.
12309 if test "x${DISTCC}" != "x" ; then
12310 if test "x${CCACHE}" != "x" ; then
12311 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12312 else
12313 aros_cc_pre="${DISTCC} "
12315 else
12316 if test "x${CCACHE}" != "x" ; then
12317 aros_cc_pre="${CCACHE} "
12321 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
12323 aros_target_nostdinc_cflags=-nostdinc
12325 aros_target_nostartup_ldflags=-nostartfiles
12327 aros_target_nix_ldflags=-nix
12329 aros_target_detach_ldflags=-detach
12331 aros_target_nostdlib_ldflags=-nostdlib
12334 # Target tools
12335 if test "$crosstools" != "yes"; then
12336 if test "$GCC" = "yes"; then
12337 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12339 else
12340 # We do not know which gcc version we are going to build and what we need to know
12341 # here is different for different versions so this will be set later during the
12342 # build of crosstools.
12343 aros_target_cc_path=@aros_target_cc_path@
12345 aros_target_cc="${prefix}-gcc"
12346 aros_target_as="${prefix}-as"
12347 aros_target_ld="${prefix}-ld"
12348 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
12349 aros_target_objcopy=${prefix}-objcopy
12350 aros_target_objdump=${prefix}-objdump
12351 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
12352 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
12353 aros_target_strip=${prefix}-strip
12354 aros_plain_nm="${prefix}-nm"
12355 aros_plain_ar="${prefix}-ar"
12357 # Find the system include path. We can suggest that an alternative is
12358 # used if we don't get it correct. The default is to use /usr/include.
12359 # Which is set in the aros_target_incl_def variable.
12361 # Check whether --enable-includes was given.
12362 if test "${enable_includes+set}" = set; then
12363 enableval=$enable_includes; aros_target_incl=$enable_includes
12364 else
12365 aros_target_incl=$aros_target_incl_def
12369 if test "$aros_kernel_includes" = ""; then
12370 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12371 # FIXME: for cross-compiling this should point to another location
12372 aros_kernel_includes="-isystem $aros_target_incl"
12376 if test "$aros_kernel_includes" != "" ; then
12377 { echo "$as_me:$LINENO: checking for the kernel compiler's include path" >&5
12378 echo $ECHO_N "checking for the kernel compiler's include path... $ECHO_C" >&6; }
12379 if test "$aros_kernel_cc_includes" = "" ; then
12380 # Try to guess where the directory is.
12381 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12382 if test -d $aros_kernel_cc_includes; then
12383 # Check if there is also an include-fixed directory and add it
12384 # to kernel compiler's include path as it may contain some of
12385 # the headers we need.
12386 if test -d "$aros_kernel_cc_includes"-fixed; then
12387 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12389 else
12390 # The directory doesn't exist, we need to do some more work.
12391 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12393 # These are the headers we're looking for.
12394 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12395 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12396 zutil.h"
12398 dirs=
12399 for h in $headers; do
12400 # Which other headers are needed by each of the above?
12401 deps=$(echo "#include <$h>" | \
12402 $aros_kernel_cc -E -M - 2>/dev/null | \
12403 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12405 # Copy all the needed headers to a directory beneath gendir.
12406 for d in $deps; do
12407 h=$(basename $d)
12408 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12409 sed -n "s,^.*/include\(/.*\),\1,p")
12410 ! test -d $dir && mkdir -p $dir
12411 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12412 done
12413 done
12416 { echo "$as_me:$LINENO: result: $aros_kernel_cc_includes" >&5
12417 echo "${ECHO_T}$aros_kernel_cc_includes" >&6; }
12418 # Adding -nostdinc to kernel includes as they are always used together.
12419 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12422 if test "$crosstools" != "yes"; then
12423 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
12424 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
12425 if test "$aros_target_cc_includes" = "" ; then
12426 #try to guess where the directory is
12427 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12428 if ! test -d $aros_target_cc_includes; then
12429 #the directory doesn't exist, we need to do some more work
12430 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12432 #these are the headers we're looking for
12433 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12434 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12435 zutil.h"
12437 dirs=
12438 for h in $headers; do
12439 #which other headers each of the above headers needs?
12440 deps=$(echo "#include <$h>" | \
12441 $orig_target_cc -E -M - 2>/dev/null | \
12442 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12444 #copy all the needed headers to a directory beneath gendir
12445 for d in $deps; do
12446 h=$(basename $d)
12447 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12448 sed -n "s,^.*/include\(/.*\),\1,p")
12449 ! test -d $dir && mkdir -p $dir
12450 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12451 done
12452 done
12455 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
12456 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
12457 else
12458 # We do not know which gcc version we are going to build and what we need to know
12459 # here is different for different versions so this will be set later during the
12460 # build of crosstools.
12461 aros_target_cc_includes=@aros_target_cc_includes@
12465 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12466 # On GCC >= 4.0 -iquote should be used
12469 save_cc="$CC"
12470 save_cflags="$CFLAGS"
12471 CFLAGS="-iquote."
12472 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
12473 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
12474 if test "x-$crosstools" != "x-yes"; then
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h. */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12483 main ()
12487 return 0;
12489 _ACEOF
12490 rm -f conftest.$ac_objext
12491 if { (ac_try="$ac_compile"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495 esac
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_compile") 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } && {
12504 test -z "$ac_c_werror_flag" ||
12505 test ! -s conftest.err
12506 } && test -s conftest.$ac_objext; then
12507 has_iquote="yes"
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 has_iquote="no"
12515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 else
12517 # we do know it is supported for the smallest version of gcc we are going to build
12518 # we assume it's also supported by later versions
12519 has_iquote=yes
12521 { echo "$as_me:$LINENO: result: $has_iquote" >&5
12522 echo "${ECHO_T}$has_iquote" >&6; }
12523 if test "x-$has_iquote" = "x-yes" ; then
12524 host_cflags_iquote=-iquote
12525 host_cflags_iquote_end=
12526 else
12527 host_cflags_iquote=-I
12528 host_cflags_iquote_end=-I-
12530 kernel_cflags_iquote=$host_cflags_iquote
12531 kernel_cflags_iquote_end=$host_cflags_iquote_end
12532 if test "x-$cross_compiling" = "x-yes"; then
12533 CC="$aros_kernel_cc"
12534 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
12535 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
12536 if test "x-$crosstools" != "x-yes"; then
12537 cat >conftest.$ac_ext <<_ACEOF
12538 /* confdefs.h. */
12539 _ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12545 main ()
12549 return 0;
12551 _ACEOF
12552 rm -f conftest.$ac_objext
12553 if { (ac_try="$ac_compile"
12554 case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12557 esac
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_compile") 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } && {
12566 test -z "$ac_c_werror_flag" ||
12567 test ! -s conftest.err
12568 } && test -s conftest.$ac_objext; then
12569 use_no_stack_protector="yes"
12570 else
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 use_no_stack_protector="no"
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 else
12579 # we do know it is supported for the smallest version of gcc we are going to build
12580 # we assume it's also supported by later versions
12581 use_no_stack_protector=yes
12583 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
12584 echo "${ECHO_T}$use_no_stack_protector" >&6; }
12585 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
12586 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
12587 if test "x-$crosstools" != "x-yes"; then
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12596 main ()
12600 return 0;
12602 _ACEOF
12603 rm -f conftest.$ac_objext
12604 if { (ac_try="$ac_compile"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_compile") 2>conftest.er1
12611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && {
12617 test -z "$ac_c_werror_flag" ||
12618 test ! -s conftest.err
12619 } && test -s conftest.$ac_objext; then
12620 has_iquote="yes"
12621 else
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 has_iquote="no"
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629 else
12630 # we do know it is supported for the smallest version of gcc we are going to build
12631 # we assume it's also supported by later versions
12632 has_iquote=yes
12634 { echo "$as_me:$LINENO: result: $has_iquote" >&5
12635 echo "${ECHO_T}$has_iquote" >&6; }
12636 if test "x-$has_iquote" = "x-yes" ; then
12637 kernel_cflags_iquote=-iquote
12638 kernel_cflags_iquote_end=
12639 else
12640 kernel_cflags_iquote=-I
12641 kernel_cflags_iquote_end=-I-
12644 aros_cflags_iquote=$kernel_cflags_iquote
12645 aros_cflags_iquote_end=$kernel_cflags_iquote_end
12646 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12647 CC="$orig_target_cc"
12648 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
12649 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
12650 if test "x-$crosstools" != "x-yes"; then
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h. */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12659 main ()
12663 return 0;
12665 _ACEOF
12666 rm -f conftest.$ac_objext
12667 if { (ac_try="$ac_compile"
12668 case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12671 esac
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673 (eval "$ac_compile") 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } && {
12680 test -z "$ac_c_werror_flag" ||
12681 test ! -s conftest.err
12682 } && test -s conftest.$ac_objext; then
12683 has_iquote="yes"
12684 else
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 has_iquote="no"
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692 else
12693 # we do know it is supported for the smallest version of gcc we are going to build
12694 # we assume it's also supported by later versions
12695 has_iquote=yes
12697 { echo "$as_me:$LINENO: result: $has_iquote" >&5
12698 echo "${ECHO_T}$has_iquote" >&6; }
12699 if test "x-$has_iquote" = "x-yes" ; then
12700 aros_cflags_iquote=-iquote
12701 aros_cflags_iquote_end=
12702 else
12703 aros_cflags_iquote=-I
12704 aros_cflags_iquote_end=-I-
12707 if test "x-$use_no_stack_protector" = "x-yes" ; then
12708 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
12711 #-----------------------------------------------------------------------------
12713 # Check if we can explicitly choose older version of symbol hashing
12715 CFLAGS="save_cflags -Wl,--hash-style=sysv"
12716 CC="$aros_kernel_cc"
12717 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
12718 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12727 main ()
12731 return 0;
12733 _ACEOF
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (ac_try="$ac_link"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_link") 2>conftest.er1
12742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } && {
12748 test -z "$ac_c_werror_flag" ||
12749 test ! -s conftest.err
12750 } && test -s conftest$ac_exeext &&
12751 $as_test_x conftest$ac_exeext; then
12752 use_hash_style="yes"
12753 else
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 use_hash_style="no"
12760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12761 conftest$ac_exeext conftest.$ac_ext
12762 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
12763 echo "${ECHO_T}$use_hash_style" >&6; }
12764 if test "x-$use_hash_style" = "x-yes" ; then
12765 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
12767 CC="$save_cc"
12768 CFLAGS="$save_cflags"
12778 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
12779 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
12781 # Check whether --with-resolution was given.
12782 if test "${with_resolution+set}" = set; then
12783 withval=$with_resolution; resolution=$withval
12784 else
12785 resolution=none
12788 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
12789 if test "$resolution" = "yes" ; then
12790 resolution="none"
12792 if test "$resolution" = "no" ; then
12793 resolution="none"
12795 if test "$resolution" != "none" ; then
12796 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
12797 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
12798 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
12800 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
12801 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
12802 aros_cv_default_wbwidth=$aros_default_wbwidth
12803 aros_cv_default_wbheight=$aros_default_wbheight
12804 aros_cv_default_wbdepth=$aros_default_wbdepth
12806 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
12807 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
12809 # Check whether --with-serial-debug was given.
12810 if test "${with_serial_debug+set}" = set; then
12811 withval=$with_serial_debug; serial_debug=$withval
12812 else
12813 serial_debug=none
12816 if test "$aros_serial_debug" = 0 ; then
12817 serial_debug_forced=""
12818 if test "$serial_debug" = "yes" ; then
12819 serial_debug="1"
12821 if test "$serial_debug" = "no" ; then
12822 serial_debug="none"
12824 else
12825 serial_debug_forced="(forced)"
12826 serial_debug=$aros_serial_debug
12828 if test "$serial_debug" != "none" ; then
12829 aros_serial_debug=$serial_debug
12830 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
12831 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
12832 else
12833 { echo "$as_me:$LINENO: result: no" >&5
12834 echo "${ECHO_T}no" >&6; }
12837 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
12838 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
12839 # Check whether --enable-palm_debug_hack was given.
12840 if test "${enable_palm_debug_hack+set}" = set; then
12841 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
12842 else
12843 palm_debug_hack="no"
12846 if test "$palm_debug_hack" = "yes" ; then
12847 aros_palm_debug_hack="1"
12849 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
12850 echo "${ECHO_T}$palm_debug_hack" >&6; }
12852 { echo "$as_me:$LINENO: checking if usb3.0 code is enabled" >&5
12853 echo $ECHO_N "checking if usb3.0 code is enabled... $ECHO_C" >&6; }
12854 # Check whether --enable-usb30_code was given.
12855 if test "${enable_usb30_code+set}" = set; then
12856 enableval=$enable_usb30_code; usb30_code="yes"
12857 else
12858 usb30_code="no"
12861 if test "$usb30_code" = "yes" ; then
12862 aros_usb30_code="1"
12863 else
12864 aros_usb30_code="0"
12866 { echo "$as_me:$LINENO: result: $usb30_code" >&5
12867 echo "${ECHO_T}$usb30_code" >&6; }
12869 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
12870 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
12871 # Check whether --enable-nesting_supervisor was given.
12872 if test "${enable_nesting_supervisor+set}" = set; then
12873 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
12874 else
12875 nesting_supervisor="no"
12878 if test "$nesting_supervisor" = "yes" ; then
12879 aros_nesting_supervisor="1"
12881 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
12882 echo "${ECHO_T}$nesting_supervisor" >&6; }
12884 if test "$aros_enable_mmu" = "" ; then
12885 { echo "$as_me:$LINENO: checking if MMU support is enabled" >&5
12886 echo $ECHO_N "checking if MMU support is enabled... $ECHO_C" >&6; }
12887 # Check whether --enable-mmu was given.
12888 if test "${enable_mmu+set}" = set; then
12889 enableval=$enable_mmu; aros_enable_mmu=$enableval
12890 else
12891 aros_enable_mmu="yes"
12894 if test "$aros_enable_mmu" = "" ; then
12895 aros_enable_mmu="yes"
12897 { echo "$as_me:$LINENO: result: $aros_enable_mmu" >&5
12898 echo "${ECHO_T}$aros_enable_mmu" >&6; }
12900 if test "$aros_enable_mmu" = "no" ; then
12901 aros_enable_mmu="0"
12902 else
12903 aros_enable_mmu="1"
12907 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12909 if test "x-$need_dlopen" != "x-no" ; then
12910 { echo "$as_me:$LINENO: checking for dlopen" >&5
12911 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12912 if test "${ac_cv_func_dlopen+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915 cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h. */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12923 #define dlopen innocuous_dlopen
12925 /* System header to define __stub macros and hopefully few prototypes,
12926 which can conflict with char dlopen (); below.
12927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12928 <limits.h> exists even on freestanding compilers. */
12930 #ifdef __STDC__
12931 # include <limits.h>
12932 #else
12933 # include <assert.h>
12934 #endif
12936 #undef dlopen
12938 /* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12941 #ifdef __cplusplus
12942 extern "C"
12943 #endif
12944 char dlopen ();
12945 /* The GNU C library defines this for functions which it implements
12946 to always fail with ENOSYS. Some functions are actually named
12947 something starting with __ and the normal name is an alias. */
12948 #if defined __stub_dlopen || defined __stub___dlopen
12949 choke me
12950 #endif
12953 main ()
12955 return dlopen ();
12957 return 0;
12959 _ACEOF
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (ac_try="$ac_link"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965 esac
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_link") 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } && {
12974 test -z "$ac_c_werror_flag" ||
12975 test ! -s conftest.err
12976 } && test -s conftest$ac_exeext &&
12977 $as_test_x conftest$ac_exeext; then
12978 ac_cv_func_dlopen=yes
12979 else
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 ac_cv_func_dlopen=no
12986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12987 conftest$ac_exeext conftest.$ac_ext
12989 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12990 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12991 if test $ac_cv_func_dlopen = yes; then
12992 have_dl="yes"
12993 else
12994 have_dl="no"
12997 if test "x-$have_dl" = "x-no" ; then
12998 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12999 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 ac_check_lib_save_LIBS=$LIBS
13004 LIBS="-ldl $LIBS"
13005 cat >conftest.$ac_ext <<_ACEOF
13006 /* confdefs.h. */
13007 _ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h. */
13012 /* Override any GCC internal prototype to avoid an error.
13013 Use char because int might match the return type of a GCC
13014 builtin and then its argument prototype would still apply. */
13015 #ifdef __cplusplus
13016 extern "C"
13017 #endif
13018 char dlopen ();
13020 main ()
13022 return dlopen ();
13024 return 0;
13026 _ACEOF
13027 rm -f conftest.$ac_objext conftest$ac_exeext
13028 if { (ac_try="$ac_link"
13029 case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13032 esac
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_link") 2>conftest.er1
13035 ac_status=$?
13036 grep -v '^ *+' conftest.er1 >conftest.err
13037 rm -f conftest.er1
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } && {
13041 test -z "$ac_c_werror_flag" ||
13042 test ! -s conftest.err
13043 } && test -s conftest$ac_exeext &&
13044 $as_test_x conftest$ac_exeext; then
13045 ac_cv_lib_dl_dlopen=yes
13046 else
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13050 ac_cv_lib_dl_dlopen=no
13053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13054 conftest$ac_exeext conftest.$ac_ext
13055 LIBS=$ac_check_lib_save_LIBS
13057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13058 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13059 if test $ac_cv_lib_dl_dlopen = yes; then
13060 have_dl="yes"
13061 aros_host_ldflags="$aros_host_ldflags -ldl"
13062 else
13063 have_dl="no"
13067 if test "x-$have_dl" = "x-no" ; then
13068 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
13069 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
13070 { (exit 1); exit 1; }; }
13075 # Check whether --enable-x11_hidd was given.
13076 if test "${enable_x11_hidd+set}" = set; then
13077 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13078 else
13079 x11_hidd="$need_x11"
13082 case "x-$x11_hidd" in
13083 x-yes|x-no|x-auto) ;;
13084 *) x11_hidd="$need_x11" ;;
13085 esac
13087 ENABLE_X11=0
13089 if test "x-$x11_hidd" != "x-no" ; then
13091 { echo "$as_me:$LINENO: checking for X" >&5
13092 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
13095 # Check whether --with-x was given.
13096 if test "${with_x+set}" = set; then
13097 withval=$with_x;
13100 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13101 if test "x$with_x" = xno; then
13102 # The user explicitly disabled X.
13103 have_x=disabled
13104 else
13105 case $x_includes,$x_libraries in #(
13106 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
13107 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
13108 { (exit 1); exit 1; }; };; #(
13109 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112 # One or both of the vars are not set, and there is no cached value.
13113 ac_x_includes=no ac_x_libraries=no
13114 rm -f -r conftest.dir
13115 if mkdir conftest.dir; then
13116 cd conftest.dir
13117 cat >Imakefile <<'_ACEOF'
13118 incroot:
13119 @echo incroot='${INCROOT}'
13120 usrlibdir:
13121 @echo usrlibdir='${USRLIBDIR}'
13122 libdir:
13123 @echo libdir='${LIBDIR}'
13124 _ACEOF
13125 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13126 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13127 for ac_var in incroot usrlibdir libdir; do
13128 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13129 done
13130 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13131 for ac_extension in a so sl; do
13132 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13133 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13134 ac_im_usrlibdir=$ac_im_libdir; break
13136 done
13137 # Screen out bogus values from the imake configuration. They are
13138 # bogus both because they are the default anyway, and because
13139 # using them would break gcc on systems where it needs fixed includes.
13140 case $ac_im_incroot in
13141 /usr/include) ac_x_includes= ;;
13142 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13143 esac
13144 case $ac_im_usrlibdir in
13145 /usr/lib | /lib) ;;
13146 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13147 esac
13149 cd ..
13150 rm -f -r conftest.dir
13153 # Standard set of common directories for X headers.
13154 # Check X11 before X11Rn because it is often a symlink to the current release.
13155 ac_x_header_dirs='
13156 /usr/X11/include
13157 /usr/X11R6/include
13158 /usr/X11R5/include
13159 /usr/X11R4/include
13161 /usr/include/X11
13162 /usr/include/X11R6
13163 /usr/include/X11R5
13164 /usr/include/X11R4
13166 /usr/local/X11/include
13167 /usr/local/X11R6/include
13168 /usr/local/X11R5/include
13169 /usr/local/X11R4/include
13171 /usr/local/include/X11
13172 /usr/local/include/X11R6
13173 /usr/local/include/X11R5
13174 /usr/local/include/X11R4
13176 /usr/X386/include
13177 /usr/x386/include
13178 /usr/XFree86/include/X11
13180 /usr/include
13181 /usr/local/include
13182 /usr/unsupported/include
13183 /usr/athena/include
13184 /usr/local/x11r5/include
13185 /usr/lpp/Xamples/include
13187 /usr/openwin/include
13188 /usr/openwin/share/include'
13190 if test "$ac_x_includes" = no; then
13191 # Guess where to find include files, by looking for Xlib.h.
13192 # First, try using that file with no special directory specified.
13193 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h. */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13199 #include <X11/Xlib.h>
13200 _ACEOF
13201 if { (ac_try="$ac_cpp conftest.$ac_ext"
13202 case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13208 ac_status=$?
13209 grep -v '^ *+' conftest.er1 >conftest.err
13210 rm -f conftest.er1
13211 cat conftest.err >&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } >/dev/null && {
13214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13215 test ! -s conftest.err
13216 }; then
13217 # We can compile using X headers with no special include directory.
13218 ac_x_includes=
13219 else
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 for ac_dir in $ac_x_header_dirs; do
13224 if test -r "$ac_dir/X11/Xlib.h"; then
13225 ac_x_includes=$ac_dir
13226 break
13228 done
13231 rm -f conftest.err conftest.$ac_ext
13232 fi # $ac_x_includes = no
13234 if test "$ac_x_libraries" = no; then
13235 # Check for the libraries.
13236 # See if we find them without any special options.
13237 # Don't add to $LIBS permanently.
13238 ac_save_LIBS=$LIBS
13239 LIBS="-lX11 $LIBS"
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #include <X11/Xlib.h>
13248 main ()
13250 XrmInitialize ()
13252 return 0;
13254 _ACEOF
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (ac_try="$ac_link"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_link") 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } && {
13269 test -z "$ac_c_werror_flag" ||
13270 test ! -s conftest.err
13271 } && test -s conftest$ac_exeext &&
13272 $as_test_x conftest$ac_exeext; then
13273 LIBS=$ac_save_LIBS
13274 # We can link X programs with no special library path.
13275 ac_x_libraries=
13276 else
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 LIBS=$ac_save_LIBS
13281 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13283 # Don't even attempt the hair of trying to link an X program!
13284 for ac_extension in a so sl; do
13285 if test -r "$ac_dir/libX11.$ac_extension"; then
13286 ac_x_libraries=$ac_dir
13287 break 2
13289 done
13290 done
13293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13294 conftest$ac_exeext conftest.$ac_ext
13295 fi # $ac_x_libraries = no
13297 case $ac_x_includes,$ac_x_libraries in #(
13298 no,* | *,no | *\'*)
13299 # Didn't find X, or a directory has "'" in its name.
13300 ac_cv_have_x="have_x=no";; #(
13302 # Record where we found X for the cache.
13303 ac_cv_have_x="have_x=yes\
13304 ac_x_includes='$ac_x_includes'\
13305 ac_x_libraries='$ac_x_libraries'"
13306 esac
13308 ;; #(
13309 *) have_x=yes;;
13310 esac
13311 eval "$ac_cv_have_x"
13312 fi # $with_x != no
13314 if test "$have_x" != yes; then
13315 { echo "$as_me:$LINENO: result: $have_x" >&5
13316 echo "${ECHO_T}$have_x" >&6; }
13317 no_x=yes
13318 else
13319 # If each of the values was on the command line, it overrides each guess.
13320 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13321 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13322 # Update the cache value to reflect the command line values.
13323 ac_cv_have_x="have_x=yes\
13324 ac_x_includes='$x_includes'\
13325 ac_x_libraries='$x_libraries'"
13326 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
13327 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
13331 x_cflags=
13332 for path in $x_libraries
13334 x_cflags="$x_cflags -L$path"
13335 done
13337 for path in $x_includes
13339 x_cflags="$x_cflags -I$path"
13340 done
13342 if test "x-$no_x" = "x-yes" ; then
13344 if test "x-$x11_hidd" != "x-auto" ; then
13345 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
13346 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
13347 { (exit 1); exit 1; }; }
13350 else
13351 x11_hidd_target=kernel-x11gfx-kobj
13352 ENABLE_X11=1
13354 # Check whether --enable-x11_shm was given.
13355 if test "${enable_x11_shm+set}" = set; then
13356 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13357 else
13358 x11_hidd_shm="auto"
13361 case "x-$x11_hidd_shm" in
13362 x-yes|x-no|x-auto) ;;
13363 *) x11_hidd_shm="auto" ;;
13364 esac
13366 have_xshm=no
13368 if test "x-$x11_hidd_shm" != "x-no" ; then
13371 for ac_header in sys/ipc.h
13373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 ac_res=`eval echo '${'$as_ac_Header'}'`
13381 { echo "$as_me:$LINENO: result: $ac_res" >&5
13382 echo "${ECHO_T}$ac_res" >&6; }
13383 else
13384 # Is the header compilable?
13385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13387 cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h. */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 $ac_includes_default
13394 #include <$ac_header>
13395 _ACEOF
13396 rm -f conftest.$ac_objext
13397 if { (ac_try="$ac_compile"
13398 case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_compile") 2>conftest.er1
13404 ac_status=$?
13405 grep -v '^ *+' conftest.er1 >conftest.err
13406 rm -f conftest.er1
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } && {
13410 test -z "$ac_c_werror_flag" ||
13411 test ! -s conftest.err
13412 } && test -s conftest.$ac_objext; then
13413 ac_header_compiler=yes
13414 else
13415 echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13418 ac_header_compiler=no
13421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13423 echo "${ECHO_T}$ac_header_compiler" >&6; }
13425 # Is the header present?
13426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 #include <$ac_header>
13435 _ACEOF
13436 if { (ac_try="$ac_cpp conftest.$ac_ext"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } >/dev/null && {
13449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 }; then
13452 ac_header_preproc=yes
13453 else
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_header_preproc=no
13460 rm -f conftest.err conftest.$ac_ext
13461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13462 echo "${ECHO_T}$ac_header_preproc" >&6; }
13464 # So? What about this header?
13465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13466 yes:no: )
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13471 ac_header_preproc=yes
13473 no:yes:* )
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13488 esac
13489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 eval "$as_ac_Header=\$ac_header_preproc"
13496 ac_res=`eval echo '${'$as_ac_Header'}'`
13497 { echo "$as_me:$LINENO: result: $ac_res" >&5
13498 echo "${ECHO_T}$ac_res" >&6; }
13501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13502 cat >>confdefs.h <<_ACEOF
13503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13504 _ACEOF
13508 done
13511 for ac_header in sys/shm.h
13513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 ac_res=`eval echo '${'$as_ac_Header'}'`
13521 { echo "$as_me:$LINENO: result: $ac_res" >&5
13522 echo "${ECHO_T}$ac_res" >&6; }
13523 else
13524 # Is the header compilable?
13525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13527 cat >conftest.$ac_ext <<_ACEOF
13528 /* confdefs.h. */
13529 _ACEOF
13530 cat confdefs.h >>conftest.$ac_ext
13531 cat >>conftest.$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13533 $ac_includes_default
13534 #include <$ac_header>
13535 _ACEOF
13536 rm -f conftest.$ac_objext
13537 if { (ac_try="$ac_compile"
13538 case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13541 esac
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_compile") 2>conftest.er1
13544 ac_status=$?
13545 grep -v '^ *+' conftest.er1 >conftest.err
13546 rm -f conftest.er1
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } && {
13550 test -z "$ac_c_werror_flag" ||
13551 test ! -s conftest.err
13552 } && test -s conftest.$ac_objext; then
13553 ac_header_compiler=yes
13554 else
13555 echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13558 ac_header_compiler=no
13561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13563 echo "${ECHO_T}$ac_header_compiler" >&6; }
13565 # Is the header present?
13566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13568 cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h. */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13574 #include <$ac_header>
13575 _ACEOF
13576 if { (ac_try="$ac_cpp conftest.$ac_ext"
13577 case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13580 esac
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13583 ac_status=$?
13584 grep -v '^ *+' conftest.er1 >conftest.err
13585 rm -f conftest.er1
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } >/dev/null && {
13589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13590 test ! -s conftest.err
13591 }; then
13592 ac_header_preproc=yes
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_header_preproc=no
13600 rm -f conftest.err conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13602 echo "${ECHO_T}$ac_header_preproc" >&6; }
13604 # So? What about this header?
13605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13606 yes:no: )
13607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13611 ac_header_preproc=yes
13613 no:yes:* )
13614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13628 esac
13629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 eval "$as_ac_Header=\$ac_header_preproc"
13636 ac_res=`eval echo '${'$as_ac_Header'}'`
13637 { echo "$as_me:$LINENO: result: $ac_res" >&5
13638 echo "${ECHO_T}$ac_res" >&6; }
13641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13642 cat >>confdefs.h <<_ACEOF
13643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13644 _ACEOF
13648 done
13651 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13653 save_cflags="$CFLAGS"
13654 CFLAGS="$CFLAGS $x_cflags"
13655 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
13656 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
13657 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 else
13660 ac_check_lib_save_LIBS=$LIBS
13661 LIBS="-lXext $LIBS"
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13672 #ifdef __cplusplus
13673 extern "C"
13674 #endif
13675 char XShmQueryExtension ();
13677 main ()
13679 return XShmQueryExtension ();
13681 return 0;
13683 _ACEOF
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13689 esac
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } && {
13698 test -z "$ac_c_werror_flag" ||
13699 test ! -s conftest.err
13700 } && test -s conftest$ac_exeext &&
13701 $as_test_x conftest$ac_exeext; then
13702 ac_cv_lib_Xext_XShmQueryExtension=yes
13703 else
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13707 ac_cv_lib_Xext_XShmQueryExtension=no
13710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13715 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13716 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
13717 have_xshm=yes
13720 CFLAGS="$save_cflags"
13724 if test "x-$have_xshm" = "x-yes" ; then
13725 DO_XSHM_SUPPORT="1"
13726 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13727 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
13728 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
13729 { (exit 1); exit 1; }; }
13730 else
13731 DO_XSHM_SUPPORT="0"
13735 # Check whether --enable-x11_vidmode was given.
13736 if test "${enable_x11_vidmode+set}" = set; then
13737 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13738 else
13739 x11_hidd_vidmode="auto"
13742 case "x-$x11_hidd_vidmode" in
13743 x-yes|x-no|x-auto) ;;
13744 *) x11_hidd_vidmode="auto" ;;
13745 esac
13747 have_vidmode=no
13749 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13751 save_cflags="$CFLAGS"
13752 CFLAGS="$CFLAGS $x_cflags"
13753 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13754 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
13755 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758 ac_check_lib_save_LIBS=$LIBS
13759 LIBS="-lXxf86vm $LIBS"
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h. */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 /* Override any GCC internal prototype to avoid an error.
13768 Use char because int might match the return type of a GCC
13769 builtin and then its argument prototype would still apply. */
13770 #ifdef __cplusplus
13771 extern "C"
13772 #endif
13773 char XF86VidModeQueryExtension ();
13775 main ()
13777 return XF86VidModeQueryExtension ();
13779 return 0;
13781 _ACEOF
13782 rm -f conftest.$ac_objext conftest$ac_exeext
13783 if { (ac_try="$ac_link"
13784 case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787 esac
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_link") 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } && {
13796 test -z "$ac_c_werror_flag" ||
13797 test ! -s conftest.err
13798 } && test -s conftest$ac_exeext &&
13799 $as_test_x conftest$ac_exeext; then
13800 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13801 else
13802 echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13805 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13809 conftest$ac_exeext conftest.$ac_ext
13810 LIBS=$ac_check_lib_save_LIBS
13812 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13813 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13814 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
13815 have_vidmode=yes
13818 CFLAGS="$save_cflags"
13821 if test "x-$have_vidmode" = "x-yes" ; then
13822 DO_VIDMODE_SUPPORT="1"
13823 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13824 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
13825 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
13826 { (exit 1); exit 1; }; }
13827 else
13828 DO_VIDMODE_SUPPORT="0"
13832 aros_host_x11_includes=$x_includes
13833 aros_host_x11_libdirs=$x_libraries
13837 # Check whether --enable-sdl_hidd was given.
13838 if test "${enable_sdl_hidd+set}" = set; then
13839 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13840 else
13841 sdl_hidd="auto"
13844 case "x-$sdl_hidd" in
13845 x-yes|x-no|x-auto) ;;
13846 *) sdl_hidd="auto" ;;
13847 esac
13849 if test "x-$sdl_hidd" != "x-no" ; then
13852 # Check whether --with-sdl-prefix was given.
13853 if test "${with_sdl_prefix+set}" = set; then
13854 withval=$with_sdl_prefix; sdl_prefix="$withval"
13855 else
13856 sdl_prefix=""
13860 # Check whether --with-sdl-exec-prefix was given.
13861 if test "${with_sdl_exec_prefix+set}" = set; then
13862 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13863 else
13864 sdl_exec_prefix=""
13867 # Check whether --enable-sdltest was given.
13868 if test "${enable_sdltest+set}" = set; then
13869 enableval=$enable_sdltest;
13870 else
13871 enable_sdltest=yes
13875 if test x$sdl_exec_prefix != x ; then
13876 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
13877 if test x${SDL_CONFIG+set} != xset ; then
13878 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13881 if test x$sdl_prefix != x ; then
13882 sdl_args="$sdl_args --prefix=$sdl_prefix"
13883 if test x${SDL_CONFIG+set} != xset ; then
13884 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13888 if test "x$prefix" != xNONE; then
13889 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13891 # Extract the first word of "sdl-config", so it can be a program name with args.
13892 set dummy sdl-config; ac_word=$2
13893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13895 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898 case $SDL_CONFIG in
13899 [\\/]* | ?:[\\/]*)
13900 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904 for as_dir in $PATH
13906 IFS=$as_save_IFS
13907 test -z "$as_dir" && as_dir=.
13908 for ac_exec_ext in '' $ac_executable_extensions; do
13909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13910 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13912 break 2
13914 done
13915 done
13916 IFS=$as_save_IFS
13918 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13920 esac
13922 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13923 if test -n "$SDL_CONFIG"; then
13924 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
13925 echo "${ECHO_T}$SDL_CONFIG" >&6; }
13926 else
13927 { echo "$as_me:$LINENO: result: no" >&5
13928 echo "${ECHO_T}no" >&6; }
13932 min_sdl_version=1.2.10
13933 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
13934 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
13935 no_sdl=""
13936 if test "$SDL_CONFIG" = "no" ; then
13937 no_sdl=yes
13938 else
13939 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
13940 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
13942 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
13943 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13944 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
13945 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13946 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13947 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13948 if test "x$enable_sdltest" = "xyes" ; then
13949 ac_save_CFLAGS="$CFLAGS"
13950 ac_save_CXXFLAGS="$CXXFLAGS"
13951 ac_save_LIBS="$LIBS"
13952 CFLAGS="$CFLAGS $SDL_CFLAGS"
13953 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13954 LIBS="$LIBS $SDL_LIBS"
13955 rm -f conf.sdltest
13956 if test "$cross_compiling" = yes; then
13957 echo $ac_n "cross compiling; assumed OK... $ac_c"
13958 else
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13966 #include <stdio.h>
13967 #include <stdlib.h>
13968 #include <string.h>
13969 #include "SDL.h"
13971 char*
13972 my_strdup (char *str)
13974 char *new_str;
13976 if (str)
13978 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13979 strcpy (new_str, str);
13981 else
13982 new_str = NULL;
13984 return new_str;
13987 int main (int argc, char *argv[])
13989 int major, minor, micro;
13990 char *tmp_version;
13992 /* This hangs on some systems (?)
13993 system ("touch conf.sdltest");
13995 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13997 /* HP/UX 9 (%@#!) writes to sscanf strings */
13998 tmp_version = my_strdup("$min_sdl_version");
13999 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14000 printf("%s, bad version string\n", "$min_sdl_version");
14001 exit(1);
14004 if (($sdl_major_version > major) ||
14005 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14006 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14008 return 0;
14010 else
14012 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14013 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14014 printf("*** best to upgrade to the required version.\n");
14015 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14016 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14017 printf("*** config.cache before re-running configure\n");
14018 return 1;
14023 _ACEOF
14024 rm -f conftest$ac_exeext
14025 if { (ac_try="$ac_link"
14026 case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_link") 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14035 { (case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038 esac
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_try") 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14045 else
14046 echo "$as_me: program exited with status $ac_status" >&5
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ( exit $ac_status )
14051 no_sdl=yes
14053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14057 CFLAGS="$ac_save_CFLAGS"
14058 CXXFLAGS="$ac_save_CXXFLAGS"
14059 LIBS="$ac_save_LIBS"
14062 if test "x$no_sdl" = x ; then
14063 { echo "$as_me:$LINENO: result: yes" >&5
14064 echo "${ECHO_T}yes" >&6; }
14065 have_sdl="yes"
14066 else
14067 { echo "$as_me:$LINENO: result: no" >&5
14068 echo "${ECHO_T}no" >&6; }
14069 if test "$SDL_CONFIG" = "no" ; then
14070 echo "*** The sdl-config script installed by SDL could not be found"
14071 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14072 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14073 echo "*** full path to sdl-config."
14074 else
14075 if test -f conf.sdltest ; then
14077 else
14078 echo "*** Could not run SDL test program, checking why..."
14079 CFLAGS="$CFLAGS $SDL_CFLAGS"
14080 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14081 LIBS="$LIBS $SDL_LIBS"
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h. */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14089 #include <stdio.h>
14090 #include "SDL.h"
14092 int main(int argc, char *argv[])
14093 { return 0; }
14094 #undef main
14095 #define main K_and_R_C_main
14098 main ()
14100 return 0;
14102 return 0;
14104 _ACEOF
14105 rm -f conftest.$ac_objext conftest$ac_exeext
14106 if { (ac_try="$ac_link"
14107 case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110 esac
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_link") 2>conftest.er1
14113 ac_status=$?
14114 grep -v '^ *+' conftest.er1 >conftest.err
14115 rm -f conftest.er1
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } && {
14119 test -z "$ac_c_werror_flag" ||
14120 test ! -s conftest.err
14121 } && test -s conftest$ac_exeext &&
14122 $as_test_x conftest$ac_exeext; then
14123 echo "*** The test program compiled, but did not run. This usually means"
14124 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14125 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14126 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14127 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14128 echo "*** is required on your system"
14129 echo "***"
14130 echo "*** If you have an old version installed, it is best to remove it, although"
14131 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14132 else
14133 echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14136 echo "*** The test program failed to compile or link. See the file config.log for the"
14137 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14138 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14139 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14143 conftest$ac_exeext conftest.$ac_ext
14144 CFLAGS="$ac_save_CFLAGS"
14145 CXXFLAGS="$ac_save_CXXFLAGS"
14146 LIBS="$ac_save_LIBS"
14149 SDL_CFLAGS=""
14150 SDL_LIBS=""
14151 have_sdl="no"
14155 rm -f conf.sdltest
14158 if test "x-$have_sdl" != "x-yes" ; then
14160 if test "x-$sdl_hidd" != "x-auto" ; then
14161 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
14162 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
14163 { (exit 1); exit 1; }; }
14166 else
14167 sdl_hidd_target=kernel-hidd-sdl
14168 aros_host_sdl_cflags=SDL_CFLAGS
14169 aros_host_sdl_libs=SDL_LIBS
14173 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
14174 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
14175 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
14176 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
14180 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
14181 else
14182 # Is the header compilable?
14183 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
14184 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
14185 cat >conftest.$ac_ext <<_ACEOF
14186 /* confdefs.h. */
14187 _ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 $ac_includes_default
14192 #include <sys/soundcard.h>
14193 _ACEOF
14194 rm -f conftest.$ac_objext
14195 if { (ac_try="$ac_compile"
14196 case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14199 esac
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_compile") 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } && {
14208 test -z "$ac_c_werror_flag" ||
14209 test ! -s conftest.err
14210 } && test -s conftest.$ac_objext; then
14211 ac_header_compiler=yes
14212 else
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 ac_header_compiler=no
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14221 echo "${ECHO_T}$ac_header_compiler" >&6; }
14223 # Is the header present?
14224 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
14225 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h. */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 #include <sys/soundcard.h>
14233 _ACEOF
14234 if { (ac_try="$ac_cpp conftest.$ac_ext"
14235 case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14238 esac
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14241 ac_status=$?
14242 grep -v '^ *+' conftest.er1 >conftest.err
14243 rm -f conftest.er1
14244 cat conftest.err >&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } >/dev/null && {
14247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 }; then
14250 ac_header_preproc=yes
14251 else
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14255 ac_header_preproc=no
14258 rm -f conftest.err conftest.$ac_ext
14259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14260 echo "${ECHO_T}$ac_header_preproc" >&6; }
14262 # So? What about this header?
14263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14264 yes:no: )
14265 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
14266 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14267 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
14268 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
14269 ac_header_preproc=yes
14271 no:yes:* )
14272 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
14273 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
14274 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
14275 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
14276 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
14277 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
14278 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
14279 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
14280 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
14281 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
14282 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
14283 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
14286 esac
14287 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
14288 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
14289 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 ac_cv_header_sys_soundcard_h=$ac_header_preproc
14294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
14295 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
14300 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14301 oss_library_target=workbench-libs-oss-unix
14306 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
14307 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
14308 # Check whether --enable-dbus was given.
14309 if test "${enable_dbus+set}" = set; then
14310 enableval=$enable_dbus; dbus="yes"
14311 else
14312 dbus="no"
14315 if test "$dbus" = "yes" ; then
14316 ENABLE_DBUS=1
14317 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14318 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14319 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14320 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14321 else
14322 ENABLE_DBUS=0
14324 { echo "$as_me:$LINENO: result: $dbus" >&5
14325 echo "${ECHO_T}$dbus" >&6; }
14327 if test "$use_kernel_cc_wrapper" = "yes" ; then
14328 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14332 # Generic
14343 # Compatability with other Amiga-like operation systems
14346 # Host related
14371 # Target Related
14429 # Graphics Related
14446 # Native version related
14449 # Palm native version related
14452 # USB3.0 code
14455 # Unix/Hosted version related
14458 # MMU related
14461 # Apple iOS related
14466 # Android related
14470 # DBUS related
14477 #X11 related
14480 # Debug related
14486 # Collect-aros stuff: "-ius" to ignore undefined symbols
14489 # C compiler related
14492 case "$aros_flavour" in
14493 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14494 aros_flavour="emulation" ;;
14495 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14496 aros_flavour="emulation" ;;
14497 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14498 aros_flavour="standalone";;
14499 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14500 aros_flavour="standalone";;
14501 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14502 aros_flavour="native" ;;
14503 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14504 aros_flavour="native" ;;
14505 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14506 aros_flavour="linklib" ;;
14507 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14508 aros_flavour="palmnative" ;;
14509 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14510 aros_flavour="mac68knative" ;;
14511 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14512 aros_flavour="ppcnative" ;;
14513 esac
14515 if test ! -d ${aros_inc_dir} ; then
14516 ${MKDIR} ${aros_inc_dir}
14518 if test ! -d ${aros_geninc_dir} ; then
14519 ${MKDIR} ${aros_geninc_dir}
14521 if test ! -d ${aros_hostcfg_dir} ; then
14522 ${MKDIR} ${aros_hostcfg_dir}
14524 if test ! -d ${aros_targetcfg_dir} ; then
14525 ${MKDIR} ${aros_targetcfg_dir}
14527 if test ! -d ${aros_tools_dir} ; then
14528 ${MKDIR} ${aros_tools_dir}
14530 if test ! -d ${aros_scripts_dir} ; then
14531 ${MKDIR} ${aros_scripts_dir}
14534 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14537 ac_config_commands="$ac_config_commands compiler_executable"
14539 ac_config_commands="$ac_config_commands genmf_executable"
14542 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14545 cat >confcache <<\_ACEOF
14546 # This file is a shell script that caches the results of configure
14547 # tests run on this system so they can be shared between configure
14548 # scripts and configure runs, see configure's option --config-cache.
14549 # It is not useful on other systems. If it contains results you don't
14550 # want to keep, you may remove or edit it.
14552 # config.status only pays attention to the cache file if you give it
14553 # the --recheck option to rerun configure.
14555 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14556 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14557 # following values.
14559 _ACEOF
14561 # The following way of writing the cache mishandles newlines in values,
14562 # but we know of no workaround that is simple, portable, and efficient.
14563 # So, we kill variables containing newlines.
14564 # Ultrix sh set writes to stderr and can't be redirected directly,
14565 # and sets the high bit in the cache file unless we assign to the vars.
14567 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14568 eval ac_val=\$$ac_var
14569 case $ac_val in #(
14570 *${as_nl}*)
14571 case $ac_var in #(
14572 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14573 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14574 esac
14575 case $ac_var in #(
14576 _ | IFS | as_nl) ;; #(
14577 *) $as_unset $ac_var ;;
14578 esac ;;
14579 esac
14580 done
14582 (set) 2>&1 |
14583 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14584 *${as_nl}ac_space=\ *)
14585 # `set' does not quote correctly, so add quotes (double-quote
14586 # substitution turns \\\\ into \\, and sed turns \\ into \).
14587 sed -n \
14588 "s/'/'\\\\''/g;
14589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14590 ;; #(
14592 # `set' quotes correctly as required by POSIX, so do not add quotes.
14593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14595 esac |
14596 sort
14598 sed '
14599 /^ac_cv_env_/b end
14600 t clear
14601 :clear
14602 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14603 t end
14604 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14605 :end' >>confcache
14606 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14607 if test -w "$cache_file"; then
14608 test "x$cache_file" != "x/dev/null" &&
14609 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14610 echo "$as_me: updating cache $cache_file" >&6;}
14611 cat confcache >$cache_file
14612 else
14613 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14614 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14617 rm -f confcache
14619 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14620 # Let make expand exec_prefix.
14621 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14623 DEFS=-DHAVE_CONFIG_H
14625 ac_libobjs=
14626 ac_ltlibobjs=
14627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14628 # 1. Remove the extension, and $U if already installed.
14629 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14630 ac_i=`echo "$ac_i" | sed "$ac_script"`
14631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14632 # will be set to the directory where LIBOBJS objects are built.
14633 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14634 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14635 done
14636 LIBOBJS=$ac_libobjs
14638 LTLIBOBJS=$ac_ltlibobjs
14642 : ${CONFIG_STATUS=./config.status}
14643 ac_clean_files_save=$ac_clean_files
14644 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14645 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14646 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14647 cat >$CONFIG_STATUS <<_ACEOF
14648 #! $SHELL
14649 # Generated by $as_me.
14650 # Run this file to recreate the current configuration.
14651 # Compiler output produced by configure, useful for debugging
14652 # configure, is in config.log if it exists.
14654 debug=false
14655 ac_cs_recheck=false
14656 ac_cs_silent=false
14657 SHELL=\${CONFIG_SHELL-$SHELL}
14658 _ACEOF
14660 cat >>$CONFIG_STATUS <<\_ACEOF
14661 ## --------------------- ##
14662 ## M4sh Initialization. ##
14663 ## --------------------- ##
14665 # Be more Bourne compatible
14666 DUALCASE=1; export DUALCASE # for MKS sh
14667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14668 emulate sh
14669 NULLCMD=:
14670 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14671 # is contrary to our usage. Disable this feature.
14672 alias -g '${1+"$@"}'='"$@"'
14673 setopt NO_GLOB_SUBST
14674 else
14675 case `(set -o) 2>/dev/null` in
14676 *posix*) set -o posix ;;
14677 esac
14684 # PATH needs CR
14685 # Avoid depending upon Character Ranges.
14686 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14687 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14688 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14689 as_cr_digits='0123456789'
14690 as_cr_alnum=$as_cr_Letters$as_cr_digits
14692 # The user is always right.
14693 if test "${PATH_SEPARATOR+set}" != set; then
14694 echo "#! /bin/sh" >conf$$.sh
14695 echo "exit 0" >>conf$$.sh
14696 chmod +x conf$$.sh
14697 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14698 PATH_SEPARATOR=';'
14699 else
14700 PATH_SEPARATOR=:
14702 rm -f conf$$.sh
14705 # Support unset when possible.
14706 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14707 as_unset=unset
14708 else
14709 as_unset=false
14713 # IFS
14714 # We need space, tab and new line, in precisely that order. Quoting is
14715 # there to prevent editors from complaining about space-tab.
14716 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14717 # splitting by setting IFS to empty value.)
14718 as_nl='
14720 IFS=" "" $as_nl"
14722 # Find who we are. Look in the path if we contain no directory separator.
14723 case $0 in
14724 *[\\/]* ) as_myself=$0 ;;
14725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14726 for as_dir in $PATH
14728 IFS=$as_save_IFS
14729 test -z "$as_dir" && as_dir=.
14730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14731 done
14732 IFS=$as_save_IFS
14735 esac
14736 # We did not find ourselves, most probably we were run as `sh COMMAND'
14737 # in which case we are not to be found in the path.
14738 if test "x$as_myself" = x; then
14739 as_myself=$0
14741 if test ! -f "$as_myself"; then
14742 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14743 { (exit 1); exit 1; }
14746 # Work around bugs in pre-3.0 UWIN ksh.
14747 for as_var in ENV MAIL MAILPATH
14748 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14749 done
14750 PS1='$ '
14751 PS2='> '
14752 PS4='+ '
14754 # NLS nuisances.
14755 for as_var in \
14756 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14757 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14758 LC_TELEPHONE LC_TIME
14760 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14761 eval $as_var=C; export $as_var
14762 else
14763 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14765 done
14767 # Required to use basename.
14768 if expr a : '\(a\)' >/dev/null 2>&1 &&
14769 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14770 as_expr=expr
14771 else
14772 as_expr=false
14775 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14776 as_basename=basename
14777 else
14778 as_basename=false
14782 # Name of the executable.
14783 as_me=`$as_basename -- "$0" ||
14784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14785 X"$0" : 'X\(//\)$' \| \
14786 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14787 echo X/"$0" |
14788 sed '/^.*\/\([^/][^/]*\)\/*$/{
14789 s//\1/
14792 /^X\/\(\/\/\)$/{
14793 s//\1/
14796 /^X\/\(\/\).*/{
14797 s//\1/
14800 s/.*/./; q'`
14802 # CDPATH.
14803 $as_unset CDPATH
14807 as_lineno_1=$LINENO
14808 as_lineno_2=$LINENO
14809 test "x$as_lineno_1" != "x$as_lineno_2" &&
14810 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14812 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14813 # uniformly replaced by the line number. The first 'sed' inserts a
14814 # line-number line after each line using $LINENO; the second 'sed'
14815 # does the real work. The second script uses 'N' to pair each
14816 # line-number line with the line containing $LINENO, and appends
14817 # trailing '-' during substitution so that $LINENO is not a special
14818 # case at line end.
14819 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14820 # scripts with optimization help from Paolo Bonzini. Blame Lee
14821 # E. McMahon (1931-1989) for sed's syntax. :-)
14822 sed -n '
14824 /[$]LINENO/=
14825 ' <$as_myself |
14826 sed '
14827 s/[$]LINENO.*/&-/
14828 t lineno
14830 :lineno
14832 :loop
14833 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14834 t loop
14835 s/-\n.*//
14836 ' >$as_me.lineno &&
14837 chmod +x "$as_me.lineno" ||
14838 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14839 { (exit 1); exit 1; }; }
14841 # Don't try to exec as it changes $[0], causing all sort of problems
14842 # (the dirname of $[0] is not the place where we might find the
14843 # original and so on. Autoconf is especially sensitive to this).
14844 . "./$as_me.lineno"
14845 # Exit status is that of the last command.
14846 exit
14850 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14851 as_dirname=dirname
14852 else
14853 as_dirname=false
14856 ECHO_C= ECHO_N= ECHO_T=
14857 case `echo -n x` in
14858 -n*)
14859 case `echo 'x\c'` in
14860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14861 *) ECHO_C='\c';;
14862 esac;;
14864 ECHO_N='-n';;
14865 esac
14867 if expr a : '\(a\)' >/dev/null 2>&1 &&
14868 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14869 as_expr=expr
14870 else
14871 as_expr=false
14874 rm -f conf$$ conf$$.exe conf$$.file
14875 if test -d conf$$.dir; then
14876 rm -f conf$$.dir/conf$$.file
14877 else
14878 rm -f conf$$.dir
14879 mkdir conf$$.dir
14881 echo >conf$$.file
14882 if ln -s conf$$.file conf$$ 2>/dev/null; then
14883 as_ln_s='ln -s'
14884 # ... but there are two gotchas:
14885 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14886 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14887 # In both cases, we have to default to `cp -p'.
14888 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14889 as_ln_s='cp -p'
14890 elif ln conf$$.file conf$$ 2>/dev/null; then
14891 as_ln_s=ln
14892 else
14893 as_ln_s='cp -p'
14895 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14896 rmdir conf$$.dir 2>/dev/null
14898 if mkdir -p . 2>/dev/null; then
14899 as_mkdir_p=:
14900 else
14901 test -d ./-p && rmdir ./-p
14902 as_mkdir_p=false
14905 if test -x / >/dev/null 2>&1; then
14906 as_test_x='test -x'
14907 else
14908 if ls -dL / >/dev/null 2>&1; then
14909 as_ls_L_option=L
14910 else
14911 as_ls_L_option=
14913 as_test_x='
14914 eval sh -c '\''
14915 if test -d "$1"; then
14916 test -d "$1/.";
14917 else
14918 case $1 in
14919 -*)set "./$1";;
14920 esac;
14921 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14922 ???[sx]*):;;*)false;;esac;fi
14923 '\'' sh
14926 as_executable_p=$as_test_x
14928 # Sed expression to map a string onto a valid CPP name.
14929 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14931 # Sed expression to map a string onto a valid variable name.
14932 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14935 exec 6>&1
14937 # Save the log message, to keep $[0] and so on meaningful, and to
14938 # report actual input values of CONFIG_FILES etc. instead of their
14939 # values after options handling.
14940 ac_log="
14941 This file was extended by $as_me, which was
14942 generated by GNU Autoconf 2.61. Invocation command line was
14944 CONFIG_FILES = $CONFIG_FILES
14945 CONFIG_HEADERS = $CONFIG_HEADERS
14946 CONFIG_LINKS = $CONFIG_LINKS
14947 CONFIG_COMMANDS = $CONFIG_COMMANDS
14948 $ $0 $@
14950 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14953 _ACEOF
14955 cat >>$CONFIG_STATUS <<_ACEOF
14956 # Files that config.status was made for.
14957 config_files="$ac_config_files"
14958 config_headers="$ac_config_headers"
14959 config_commands="$ac_config_commands"
14961 _ACEOF
14963 cat >>$CONFIG_STATUS <<\_ACEOF
14964 ac_cs_usage="\
14965 \`$as_me' instantiates files from templates according to the
14966 current configuration.
14968 Usage: $0 [OPTIONS] [FILE]...
14970 -h, --help print this help, then exit
14971 -V, --version print version number and configuration settings, then exit
14972 -q, --quiet do not print progress messages
14973 -d, --debug don't remove temporary files
14974 --recheck update $as_me by reconfiguring in the same conditions
14975 --file=FILE[:TEMPLATE]
14976 instantiate the configuration file FILE
14977 --header=FILE[:TEMPLATE]
14978 instantiate the configuration header FILE
14980 Configuration files:
14981 $config_files
14983 Configuration headers:
14984 $config_headers
14986 Configuration commands:
14987 $config_commands
14989 Report bugs to <bug-autoconf@gnu.org>."
14991 _ACEOF
14992 cat >>$CONFIG_STATUS <<_ACEOF
14993 ac_cs_version="\\
14994 config.status
14995 configured by $0, generated by GNU Autoconf 2.61,
14996 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14998 Copyright (C) 2006 Free Software Foundation, Inc.
14999 This config.status script is free software; the Free Software Foundation
15000 gives unlimited permission to copy, distribute and modify it."
15002 ac_pwd='$ac_pwd'
15003 srcdir='$srcdir'
15004 _ACEOF
15006 cat >>$CONFIG_STATUS <<\_ACEOF
15007 # If no file are specified by the user, then we need to provide default
15008 # value. By we need to know if files were specified by the user.
15009 ac_need_defaults=:
15010 while test $# != 0
15012 case $1 in
15013 --*=*)
15014 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15015 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15016 ac_shift=:
15019 ac_option=$1
15020 ac_optarg=$2
15021 ac_shift=shift
15023 esac
15025 case $ac_option in
15026 # Handling of the options.
15027 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15028 ac_cs_recheck=: ;;
15029 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15030 echo "$ac_cs_version"; exit ;;
15031 --debug | --debu | --deb | --de | --d | -d )
15032 debug=: ;;
15033 --file | --fil | --fi | --f )
15034 $ac_shift
15035 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15036 ac_need_defaults=false;;
15037 --header | --heade | --head | --hea )
15038 $ac_shift
15039 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15040 ac_need_defaults=false;;
15041 --he | --h)
15042 # Conflict between --help and --header
15043 { echo "$as_me: error: ambiguous option: $1
15044 Try \`$0 --help' for more information." >&2
15045 { (exit 1); exit 1; }; };;
15046 --help | --hel | -h )
15047 echo "$ac_cs_usage"; exit ;;
15048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15050 ac_cs_silent=: ;;
15052 # This is an error.
15053 -*) { echo "$as_me: error: unrecognized option: $1
15054 Try \`$0 --help' for more information." >&2
15055 { (exit 1); exit 1; }; } ;;
15057 *) ac_config_targets="$ac_config_targets $1"
15058 ac_need_defaults=false ;;
15060 esac
15061 shift
15062 done
15064 ac_configure_extra_args=
15066 if $ac_cs_silent; then
15067 exec 6>/dev/null
15068 ac_configure_extra_args="$ac_configure_extra_args --silent"
15071 _ACEOF
15072 cat >>$CONFIG_STATUS <<_ACEOF
15073 if \$ac_cs_recheck; then
15074 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15075 CONFIG_SHELL=$SHELL
15076 export CONFIG_SHELL
15077 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15080 _ACEOF
15081 cat >>$CONFIG_STATUS <<\_ACEOF
15082 exec 5>>config.log
15084 echo
15085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15086 ## Running $as_me. ##
15087 _ASBOX
15088 echo "$ac_log"
15089 } >&5
15091 _ACEOF
15092 cat >>$CONFIG_STATUS <<_ACEOF
15094 # INIT-COMMANDS
15097 aros_host_exe_suffix=${aros_host_exe_suffix}
15098 aros_tools_dir=${aros_tools_dir}
15099 aros_target_cpu=${aros_target_cpu}
15100 aros_target_arch=${aros_target_arch}
15101 aros_target_suffix=${aros_target_suffix}
15102 aros_target_nm_ln=${aros_target_nm_ln}
15103 aros_target_as_ln=${aros_target_as_ln}
15104 aros_target_ar_ln=${aros_target_ar_ln}
15105 aros_target_ranlib_ln=${aros_target_ranlib_ln}
15106 aros_target_objdump_ln=${aros_target_objdump_ln}
15107 aros_target_objcopy_ln=${aros_target_objcopy_ln}
15108 aros_target_strip_ln=${aros_target_strip_ln}
15109 aros_kernel_ld=${aros_kernel_ld}
15112 aros_tools_dir=${aros_tools_dir}
15115 _ACEOF
15117 cat >>$CONFIG_STATUS <<\_ACEOF
15119 # Handling of arguments.
15120 for ac_config_target in $ac_config_targets
15122 case $ac_config_target in
15123 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15124 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15125 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15126 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15127 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15128 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15129 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15130 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15131 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15132 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15133 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15134 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15135 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15136 "${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" ;;
15137 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in" ;;
15138 "${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" ;;
15139 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15140 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15141 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
15143 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15145 { (exit 1); exit 1; }; };;
15146 esac
15147 done
15150 # If the user did not use the arguments to specify the items to instantiate,
15151 # then the envvar interface is used. Set only those that are not.
15152 # We use the long form for the default assignment because of an extremely
15153 # bizarre bug on SunOS 4.1.3.
15154 if $ac_need_defaults; then
15155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15160 # Have a temporary directory for convenience. Make it in the build tree
15161 # simply because there is no reason against having it here, and in addition,
15162 # creating and moving files from /tmp can sometimes cause problems.
15163 # Hook for its removal unless debugging.
15164 # Note that there is a small window in which the directory will not be cleaned:
15165 # after its creation but before its name has been assigned to `$tmp'.
15166 $debug ||
15168 tmp=
15169 trap 'exit_status=$?
15170 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15172 trap '{ (exit 1); exit 1; }' 1 2 13 15
15174 # Create a (secure) tmp directory for tmp files.
15177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15178 test -n "$tmp" && test -d "$tmp"
15179 } ||
15181 tmp=./conf$$-$RANDOM
15182 (umask 077 && mkdir "$tmp")
15183 } ||
15185 echo "$me: cannot create a temporary directory in ." >&2
15186 { (exit 1); exit 1; }
15190 # Set up the sed scripts for CONFIG_FILES section.
15193 # No need to generate the scripts if there are no CONFIG_FILES.
15194 # This happens for instance when ./config.status config.h
15195 if test -n "$CONFIG_FILES"; then
15197 _ACEOF
15201 ac_delim='%!_!# '
15202 for ac_last_try in false false false false false :; do
15203 cat >conf$$subs.sed <<_ACEOF
15204 SHELL!$SHELL$ac_delim
15205 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15206 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15207 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15208 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15209 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15210 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15211 exec_prefix!$exec_prefix$ac_delim
15212 prefix!$prefix$ac_delim
15213 program_transform_name!$program_transform_name$ac_delim
15214 bindir!$bindir$ac_delim
15215 sbindir!$sbindir$ac_delim
15216 libexecdir!$libexecdir$ac_delim
15217 datarootdir!$datarootdir$ac_delim
15218 datadir!$datadir$ac_delim
15219 sysconfdir!$sysconfdir$ac_delim
15220 sharedstatedir!$sharedstatedir$ac_delim
15221 localstatedir!$localstatedir$ac_delim
15222 includedir!$includedir$ac_delim
15223 oldincludedir!$oldincludedir$ac_delim
15224 docdir!$docdir$ac_delim
15225 infodir!$infodir$ac_delim
15226 htmldir!$htmldir$ac_delim
15227 dvidir!$dvidir$ac_delim
15228 pdfdir!$pdfdir$ac_delim
15229 psdir!$psdir$ac_delim
15230 libdir!$libdir$ac_delim
15231 localedir!$localedir$ac_delim
15232 mandir!$mandir$ac_delim
15233 DEFS!$DEFS$ac_delim
15234 ECHO_C!$ECHO_C$ac_delim
15235 ECHO_N!$ECHO_N$ac_delim
15236 ECHO_T!$ECHO_T$ac_delim
15237 LIBS!$LIBS$ac_delim
15238 build_alias!$build_alias$ac_delim
15239 host_alias!$host_alias$ac_delim
15240 target_alias!$target_alias$ac_delim
15241 build!$build$ac_delim
15242 build_cpu!$build_cpu$ac_delim
15243 build_vendor!$build_vendor$ac_delim
15244 build_os!$build_os$ac_delim
15245 host!$host$ac_delim
15246 host_cpu!$host_cpu$ac_delim
15247 host_vendor!$host_vendor$ac_delim
15248 host_os!$host_os$ac_delim
15249 CC!$CC$ac_delim
15250 CFLAGS!$CFLAGS$ac_delim
15251 LDFLAGS!$LDFLAGS$ac_delim
15252 CPPFLAGS!$CPPFLAGS$ac_delim
15253 ac_ct_CC!$ac_ct_CC$ac_delim
15254 EXEEXT!$EXEEXT$ac_delim
15255 OBJEXT!$OBJEXT$ac_delim
15256 CPP!$CPP$ac_delim
15257 AWK!$AWK$ac_delim
15258 MMAKE!$MMAKE$ac_delim
15259 aros_host_ld!$aros_host_ld$ac_delim
15260 aros_host_aclocal!$aros_host_aclocal$ac_delim
15261 aros_host_autoconf!$aros_host_autoconf$ac_delim
15262 aros_host_autoheader!$aros_host_autoheader$ac_delim
15263 aros_host_automake!$aros_host_automake$ac_delim
15264 aros_host_ar!$aros_host_ar$ac_delim
15265 aros_host_ranlib!$aros_host_ranlib$ac_delim
15266 aros_host_strip!$aros_host_strip$ac_delim
15267 RM!$RM$ac_delim
15268 CP!$CP$ac_delim
15269 MV!$MV$ac_delim
15270 ECHO!$ECHO$ac_delim
15271 MKDIR!$MKDIR$ac_delim
15272 TOUCH!$TOUCH$ac_delim
15273 SORT!$SORT$ac_delim
15274 UNIQ!$UNIQ$ac_delim
15275 NOP!$NOP$ac_delim
15276 CAT!$CAT$ac_delim
15277 BISON!$BISON$ac_delim
15278 FLEX!$FLEX$ac_delim
15279 PNGTOPNM!$PNGTOPNM$ac_delim
15280 PPMTOILBM!$PPMTOILBM$ac_delim
15281 SED!$SED$ac_delim
15282 CHMOD!$CHMOD$ac_delim
15283 PATCH!$PATCH$ac_delim
15284 PYTHON!$PYTHON$ac_delim
15285 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
15286 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
15287 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
15288 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
15289 pythondir!$pythondir$ac_delim
15290 pkgpythondir!$pkgpythondir$ac_delim
15291 pyexecdir!$pyexecdir$ac_delim
15292 pkgpyexecdir!$pkgpyexecdir$ac_delim
15293 FOR!$FOR$ac_delim
15294 IF!$IF$ac_delim
15295 TEST!$TEST$ac_delim
15296 CMP!$CMP$ac_delim
15297 GREP!$GREP$ac_delim
15298 EGREP!$EGREP$ac_delim
15299 LIBOBJS!$LIBOBJS$ac_delim
15300 DISTCC!$DISTCC$ac_delim
15301 _ACEOF
15303 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15304 break
15305 elif $ac_last_try; then
15306 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15307 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15308 { (exit 1); exit 1; }; }
15309 else
15310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15312 done
15314 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15315 if test -n "$ac_eof"; then
15316 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15317 ac_eof=`expr $ac_eof + 1`
15320 cat >>$CONFIG_STATUS <<_ACEOF
15321 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15323 _ACEOF
15324 sed '
15325 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15326 s/^/s,@/; s/!/@,|#_!!_#|/
15329 s/'"$ac_delim"'$/,g/; t
15330 s/$/\\/; p
15331 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15332 ' >>$CONFIG_STATUS <conf$$subs.sed
15333 rm -f conf$$subs.sed
15334 cat >>$CONFIG_STATUS <<_ACEOF
15335 CEOF$ac_eof
15336 _ACEOF
15339 ac_delim='%!_!# '
15340 for ac_last_try in false false false false false :; do
15341 cat >conf$$subs.sed <<_ACEOF
15342 CCACHE!$CCACHE$ac_delim
15343 android_tool!$android_tool$ac_delim
15344 ant!$ant$ac_delim
15345 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
15346 aros_kernel_ld!$aros_kernel_ld$ac_delim
15347 aros_kernel_ar!$aros_kernel_ar$ac_delim
15348 aros_kernel_ranlib!$aros_kernel_ranlib$ac_delim
15349 aros_target_as_ln!$aros_target_as_ln$ac_delim
15350 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
15351 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
15352 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
15353 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
15354 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
15355 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
15356 aros_target_cxx!$aros_target_cxx$ac_delim
15357 aros_target_cc!$aros_target_cc$ac_delim
15358 aros_target_ld!$aros_target_ld$ac_delim
15359 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
15360 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
15361 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
15362 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
15363 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
15364 host_cflags_iquote!$host_cflags_iquote$ac_delim
15365 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
15366 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
15367 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
15368 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
15369 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
15370 XMKMF!$XMKMF$ac_delim
15371 SDL_CONFIG!$SDL_CONFIG$ac_delim
15372 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
15373 SDL_LIBS!$SDL_LIBS$ac_delim
15374 aros_arch!$aros_arch$ac_delim
15375 aros_cpu!$aros_cpu$ac_delim
15376 aros_flavour!$aros_flavour$ac_delim
15377 aros_flavour_uc!$aros_flavour_uc$ac_delim
15378 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
15379 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
15380 SRCDIR!$SRCDIR$ac_delim
15381 AROS_CROSSTOOLSDIR!$AROS_CROSSTOOLSDIR$ac_delim
15382 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
15383 aros_amigaos_compliance!$aros_amigaos_compliance$ac_delim
15384 aros_cc_pre!$aros_cc_pre$ac_delim
15385 aros_host_arch!$aros_host_arch$ac_delim
15386 aros_host_cpu!$aros_host_cpu$ac_delim
15387 aros_host_cc!$aros_host_cc$ac_delim
15388 aros_host_make!$aros_host_make$ac_delim
15389 aros_host_cflags!$aros_host_cflags$ac_delim
15390 gnu89_inline!$gnu89_inline$ac_delim
15391 aros_host_ldflags!$aros_host_ldflags$ac_delim
15392 aros_host_debug!$aros_host_debug$ac_delim
15393 aros_host_mkdep!$aros_host_mkdep$ac_delim
15394 aros_host_mkargs!$aros_host_mkargs$ac_delim
15395 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
15396 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
15397 aros_tools_dir!$aros_tools_dir$ac_delim
15398 aros_target_guitheme!$aros_target_guitheme$ac_delim
15399 aros_target_iconset!$aros_target_iconset$ac_delim
15400 aros_target_bootloader!$aros_target_bootloader$ac_delim
15401 aros_target_arch!$aros_target_arch$ac_delim
15402 aros_target_family!$aros_target_family$ac_delim
15403 aros_target_cpu!$aros_target_cpu$ac_delim
15404 aros_target_variant!$aros_target_variant$ac_delim
15405 aros_target_suffix!$aros_target_suffix$ac_delim
15406 aros_target_incl!$aros_target_incl$ac_delim
15407 aros_target_ar!$aros_target_ar$ac_delim
15408 aros_target_ranlib!$aros_target_ranlib$ac_delim
15409 aros_plain_nm!$aros_plain_nm$ac_delim
15410 aros_plain_ar!$aros_plain_ar$ac_delim
15411 orig_target_cc!$orig_target_cc$ac_delim
15412 aros_kernel_cc!$aros_kernel_cc$ac_delim
15413 aros_target_as!$aros_target_as$ac_delim
15414 orig_target_ld!$orig_target_ld$ac_delim
15415 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
15416 aros_target_cc_path!$aros_target_cc_path$ac_delim
15417 aros_target_objdump!$aros_target_objdump$ac_delim
15418 aros_target_objcopy!$aros_target_objcopy$ac_delim
15419 aros_target_strip!$aros_target_strip$ac_delim
15420 aros_target_nm!$aros_target_nm$ac_delim
15421 aros_shared_default!$aros_shared_default$ac_delim
15422 aros_shared_ld!$aros_shared_ld$ac_delim
15423 aros_object_format!$aros_object_format$ac_delim
15424 aros_compiler_libs!$aros_compiler_libs$ac_delim
15425 aros_arch_libs!$aros_arch_libs$ac_delim
15426 aros_config_cflags!$aros_config_cflags$ac_delim
15427 aros_config_aflags!$aros_config_aflags$ac_delim
15428 aros_config_ldflags!$aros_config_ldflags$ac_delim
15429 aros_shared_cflags!$aros_shared_cflags$ac_delim
15430 aros_shared_aflags!$aros_shared_aflags$ac_delim
15431 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
15432 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
15433 aros_kernel_includes!$aros_kernel_includes$ac_delim
15434 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
15435 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
15436 aros_target_cflags!$aros_target_cflags$ac_delim
15437 aros_debug_cflags!$aros_debug_cflags$ac_delim
15438 aros_debug_aflags!$aros_debug_aflags$ac_delim
15439 _ACEOF
15441 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15442 break
15443 elif $ac_last_try; then
15444 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15445 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15446 { (exit 1); exit 1; }; }
15447 else
15448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15450 done
15452 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15453 if test -n "$ac_eof"; then
15454 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15455 ac_eof=`expr $ac_eof + 1`
15458 cat >>$CONFIG_STATUS <<_ACEOF
15459 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15461 _ACEOF
15462 sed '
15463 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15464 s/^/s,@/; s/!/@,|#_!!_#|/
15467 s/'"$ac_delim"'$/,g/; t
15468 s/$/\\/; p
15469 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15470 ' >>$CONFIG_STATUS <conf$$subs.sed
15471 rm -f conf$$subs.sed
15472 cat >>$CONFIG_STATUS <<_ACEOF
15473 CEOF$ac_eof
15474 _ACEOF
15477 ac_delim='%!_!# '
15478 for ac_last_try in false false false false false :; do
15479 cat >conf$$subs.sed <<_ACEOF
15480 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
15481 aros_target_genmap!$aros_target_genmap$ac_delim
15482 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
15483 crosstools_target!$crosstools_target$ac_delim
15484 crosstools_cxx_target!$crosstools_cxx_target$ac_delim
15485 x11_hidd_target!$x11_hidd_target$ac_delim
15486 sdl_hidd_target!$sdl_hidd_target$ac_delim
15487 pci_hidd_target!$pci_hidd_target$ac_delim
15488 oss_library_target!$oss_library_target$ac_delim
15489 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
15490 aros_default_wbheight!$aros_default_wbheight$ac_delim
15491 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
15492 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
15493 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
15494 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
15495 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
15496 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
15497 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
15498 aros_serial_debug!$aros_serial_debug$ac_delim
15499 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
15500 aros_usb30_code!$aros_usb30_code$ac_delim
15501 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
15502 aros_enable_mmu!$aros_enable_mmu$ac_delim
15503 aros_ios_platform!$aros_ios_platform$ac_delim
15504 aros_ios_version!$aros_ios_version$ac_delim
15505 aros_ios_sdk!$aros_ios_sdk$ac_delim
15506 aros_android_level!$aros_android_level$ac_delim
15507 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
15508 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
15509 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
15510 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
15511 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
15512 ENABLE_X11!$ENABLE_X11$ac_delim
15513 aros_debug!$aros_debug$ac_delim
15514 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
15515 aros_stack_debug!$aros_stack_debug$ac_delim
15516 aros_modules_debug!$aros_modules_debug$ac_delim
15517 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
15518 gcc_target_cpu!$gcc_target_cpu$ac_delim
15519 LTLIBOBJS!$LTLIBOBJS$ac_delim
15520 _ACEOF
15522 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
15523 break
15524 elif $ac_last_try; then
15525 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15526 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15527 { (exit 1); exit 1; }; }
15528 else
15529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15531 done
15533 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15534 if test -n "$ac_eof"; then
15535 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15536 ac_eof=`expr $ac_eof + 1`
15539 cat >>$CONFIG_STATUS <<_ACEOF
15540 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
15541 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15542 _ACEOF
15543 sed '
15544 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15545 s/^/s,@/; s/!/@,|#_!!_#|/
15548 s/'"$ac_delim"'$/,g/; t
15549 s/$/\\/; p
15550 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15551 ' >>$CONFIG_STATUS <conf$$subs.sed
15552 rm -f conf$$subs.sed
15553 cat >>$CONFIG_STATUS <<_ACEOF
15554 :end
15555 s/|#_!!_#|//g
15556 CEOF$ac_eof
15557 _ACEOF
15560 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15561 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15562 # trailing colons and then remove the whole line if VPATH becomes empty
15563 # (actually we leave an empty line to preserve line numbers).
15564 if test "x$srcdir" = x.; then
15565 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15566 s/:*\$(srcdir):*/:/
15567 s/:*\${srcdir}:*/:/
15568 s/:*@srcdir@:*/:/
15569 s/^\([^=]*=[ ]*\):*/\1/
15570 s/:*$//
15571 s/^[^=]*=[ ]*$//
15575 cat >>$CONFIG_STATUS <<\_ACEOF
15576 fi # test -n "$CONFIG_FILES"
15579 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
15581 case $ac_tag in
15582 :[FHLC]) ac_mode=$ac_tag; continue;;
15583 esac
15584 case $ac_mode$ac_tag in
15585 :[FHL]*:*);;
15586 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15587 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15588 { (exit 1); exit 1; }; };;
15589 :[FH]-) ac_tag=-:-;;
15590 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15591 esac
15592 ac_save_IFS=$IFS
15593 IFS=:
15594 set x $ac_tag
15595 IFS=$ac_save_IFS
15596 shift
15597 ac_file=$1
15598 shift
15600 case $ac_mode in
15601 :L) ac_source=$1;;
15602 :[FH])
15603 ac_file_inputs=
15604 for ac_f
15606 case $ac_f in
15607 -) ac_f="$tmp/stdin";;
15608 *) # Look for the file first in the build tree, then in the source tree
15609 # (if the path is not absolute). The absolute path cannot be DOS-style,
15610 # because $ac_f cannot contain `:'.
15611 test -f "$ac_f" ||
15612 case $ac_f in
15613 [\\/$]*) false;;
15614 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15615 esac ||
15616 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15617 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15618 { (exit 1); exit 1; }; };;
15619 esac
15620 ac_file_inputs="$ac_file_inputs $ac_f"
15621 done
15623 # Let's still pretend it is `configure' which instantiates (i.e., don't
15624 # use $as_me), people would be surprised to read:
15625 # /* config.h. Generated by config.status. */
15626 configure_input="Generated from "`IFS=:
15627 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15628 if test x"$ac_file" != x-; then
15629 configure_input="$ac_file. $configure_input"
15630 { echo "$as_me:$LINENO: creating $ac_file" >&5
15631 echo "$as_me: creating $ac_file" >&6;}
15634 case $ac_tag in
15635 *:-:* | *:-) cat >"$tmp/stdin";;
15636 esac
15638 esac
15640 ac_dir=`$as_dirname -- "$ac_file" ||
15641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15642 X"$ac_file" : 'X\(//\)[^/]' \| \
15643 X"$ac_file" : 'X\(//\)$' \| \
15644 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15645 echo X"$ac_file" |
15646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15647 s//\1/
15650 /^X\(\/\/\)[^/].*/{
15651 s//\1/
15654 /^X\(\/\/\)$/{
15655 s//\1/
15658 /^X\(\/\).*/{
15659 s//\1/
15662 s/.*/./; q'`
15663 { as_dir="$ac_dir"
15664 case $as_dir in #(
15665 -*) as_dir=./$as_dir;;
15666 esac
15667 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15668 as_dirs=
15669 while :; do
15670 case $as_dir in #(
15671 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15672 *) as_qdir=$as_dir;;
15673 esac
15674 as_dirs="'$as_qdir' $as_dirs"
15675 as_dir=`$as_dirname -- "$as_dir" ||
15676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15677 X"$as_dir" : 'X\(//\)[^/]' \| \
15678 X"$as_dir" : 'X\(//\)$' \| \
15679 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15680 echo X"$as_dir" |
15681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15682 s//\1/
15685 /^X\(\/\/\)[^/].*/{
15686 s//\1/
15689 /^X\(\/\/\)$/{
15690 s//\1/
15693 /^X\(\/\).*/{
15694 s//\1/
15697 s/.*/./; q'`
15698 test -d "$as_dir" && break
15699 done
15700 test -z "$as_dirs" || eval "mkdir $as_dirs"
15701 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15702 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15703 { (exit 1); exit 1; }; }; }
15704 ac_builddir=.
15706 case "$ac_dir" in
15707 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15710 # A ".." for each directory in $ac_dir_suffix.
15711 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15712 case $ac_top_builddir_sub in
15713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15715 esac ;;
15716 esac
15717 ac_abs_top_builddir=$ac_pwd
15718 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15719 # for backward compatibility:
15720 ac_top_builddir=$ac_top_build_prefix
15722 case $srcdir in
15723 .) # We are building in place.
15724 ac_srcdir=.
15725 ac_top_srcdir=$ac_top_builddir_sub
15726 ac_abs_top_srcdir=$ac_pwd ;;
15727 [\\/]* | ?:[\\/]* ) # Absolute name.
15728 ac_srcdir=$srcdir$ac_dir_suffix;
15729 ac_top_srcdir=$srcdir
15730 ac_abs_top_srcdir=$srcdir ;;
15731 *) # Relative name.
15732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15733 ac_top_srcdir=$ac_top_build_prefix$srcdir
15734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15735 esac
15736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15739 case $ac_mode in
15742 # CONFIG_FILE
15745 _ACEOF
15747 cat >>$CONFIG_STATUS <<\_ACEOF
15748 # If the template does not know about datarootdir, expand it.
15749 # FIXME: This hack should be removed a few years after 2.60.
15750 ac_datarootdir_hack=; ac_datarootdir_seen=
15752 case `sed -n '/datarootdir/ {
15756 /@datadir@/p
15757 /@docdir@/p
15758 /@infodir@/p
15759 /@localedir@/p
15760 /@mandir@/p
15761 ' $ac_file_inputs` in
15762 *datarootdir*) ac_datarootdir_seen=yes;;
15763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15764 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15765 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15766 _ACEOF
15767 cat >>$CONFIG_STATUS <<_ACEOF
15768 ac_datarootdir_hack='
15769 s&@datadir@&$datadir&g
15770 s&@docdir@&$docdir&g
15771 s&@infodir@&$infodir&g
15772 s&@localedir@&$localedir&g
15773 s&@mandir@&$mandir&g
15774 s&\\\${datarootdir}&$datarootdir&g' ;;
15775 esac
15776 _ACEOF
15778 # Neutralize VPATH when `$srcdir' = `.'.
15779 # Shell code in configure.ac might set extrasub.
15780 # FIXME: do we really want to maintain this feature?
15781 cat >>$CONFIG_STATUS <<_ACEOF
15782 sed "$ac_vpsub
15783 $extrasub
15784 _ACEOF
15785 cat >>$CONFIG_STATUS <<\_ACEOF
15787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15788 s&@configure_input@&$configure_input&;t t
15789 s&@top_builddir@&$ac_top_builddir_sub&;t t
15790 s&@srcdir@&$ac_srcdir&;t t
15791 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15792 s&@top_srcdir@&$ac_top_srcdir&;t t
15793 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15794 s&@builddir@&$ac_builddir&;t t
15795 s&@abs_builddir@&$ac_abs_builddir&;t t
15796 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15797 $ac_datarootdir_hack
15798 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
15800 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15801 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15802 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15803 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15804 which seems to be undefined. Please make sure it is defined." >&5
15805 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15806 which seems to be undefined. Please make sure it is defined." >&2;}
15808 rm -f "$tmp/stdin"
15809 case $ac_file in
15810 -) cat "$tmp/out"; rm -f "$tmp/out";;
15811 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15812 esac
15816 # CONFIG_HEADER
15818 _ACEOF
15820 # Transform confdefs.h into a sed script `conftest.defines', that
15821 # substitutes the proper values into config.h.in to produce config.h.
15822 rm -f conftest.defines conftest.tail
15823 # First, append a space to every undef/define line, to ease matching.
15824 echo 's/$/ /' >conftest.defines
15825 # Then, protect against being on the right side of a sed subst, or in
15826 # an unquoted here document, in config.status. If some macros were
15827 # called several times there might be several #defines for the same
15828 # symbol, which is useless. But do not sort them, since the last
15829 # AC_DEFINE must be honored.
15830 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15831 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15832 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15833 # PARAMS is the parameter list in the macro definition--in most cases, it's
15834 # just an empty string.
15835 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15836 ac_dB='\\)[ (].*,\\1define\\2'
15837 ac_dC=' '
15838 ac_dD=' ,'
15840 uniq confdefs.h |
15841 sed -n '
15842 t rset
15843 :rset
15844 s/^[ ]*#[ ]*define[ ][ ]*//
15845 t ok
15848 s/[\\&,]/\\&/g
15849 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15850 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15851 ' >>conftest.defines
15853 # Remove the space that was appended to ease matching.
15854 # Then replace #undef with comments. This is necessary, for
15855 # example, in the case of _POSIX_SOURCE, which is predefined and required
15856 # on some systems where configure will not decide to define it.
15857 # (The regexp can be short, since the line contains either #define or #undef.)
15858 echo 's/ $//
15859 s,^[ #]*u.*,/* & */,' >>conftest.defines
15861 # Break up conftest.defines:
15862 ac_max_sed_lines=50
15864 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15865 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15866 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15867 # et cetera.
15868 ac_in='$ac_file_inputs'
15869 ac_out='"$tmp/out1"'
15870 ac_nxt='"$tmp/out2"'
15872 while :
15874 # Write a here document:
15875 cat >>$CONFIG_STATUS <<_ACEOF
15876 # First, check the format of the line:
15877 cat >"\$tmp/defines.sed" <<\\CEOF
15878 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15879 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15881 :def
15882 _ACEOF
15883 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15884 echo 'CEOF
15885 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15886 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15887 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15888 grep . conftest.tail >/dev/null || break
15889 rm -f conftest.defines
15890 mv conftest.tail conftest.defines
15891 done
15892 rm -f conftest.defines conftest.tail
15894 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15895 cat >>$CONFIG_STATUS <<\_ACEOF
15896 if test x"$ac_file" != x-; then
15897 echo "/* $configure_input */" >"$tmp/config.h"
15898 cat "$ac_result" >>"$tmp/config.h"
15899 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15900 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15901 echo "$as_me: $ac_file is unchanged" >&6;}
15902 else
15903 rm -f $ac_file
15904 mv "$tmp/config.h" $ac_file
15906 else
15907 echo "/* $configure_input */"
15908 cat "$ac_result"
15910 rm -f "$tmp/out12"
15913 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15914 echo "$as_me: executing $ac_file commands" >&6;}
15916 esac
15919 case $ac_file$ac_mode in
15920 "compiler_executable":C)
15921 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15922 mkdir -p $prefix
15923 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15924 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15926 echo ${prefix2}
15927 echo ${prefix3}
15928 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
15930 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15931 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15932 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15933 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15934 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15935 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15936 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15938 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15940 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15942 esac
15943 done # for ac_tag
15946 { (exit 0); exit 0; }
15947 _ACEOF
15948 chmod +x $CONFIG_STATUS
15949 ac_clean_files=$ac_clean_files_save
15952 # configure is writing to config.log, and then calls config.status.
15953 # config.status does its own redirection, appending to config.log.
15954 # Unfortunately, on DOS this fails, as config.log is still kept open
15955 # by configure, so config.status won't be able to write to it; its
15956 # output is simply discarded. So we exec the FD to /dev/null,
15957 # effectively closing config.log, so it can be properly (re)opened and
15958 # appended to by config.status. When coming back to configure, we
15959 # need to make the FD available again.
15960 if test "$no_create" != yes; then
15961 ac_cs_success=:
15962 ac_config_status_args=
15963 test "$silent" = yes &&
15964 ac_config_status_args="$ac_config_status_args --quiet"
15965 exec 5>/dev/null
15966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15967 exec 5>>config.log
15968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15969 # would make configure fail if this is the last instruction.
15970 $ac_cs_success || { (exit 1); exit 1; }
15975 #XXX compatability...
15976 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15978 if test -n "$aros_shared_cflags" ; then
15979 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15980 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg